Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 1 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Ned Deily | 4829bc6 | 2016-09-12 21:29:04 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for python 3.7. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4 | # |
Ned Deily | 61e371a | 2022-09-06 06:57:17 | [diff] [blame] | 5 | # Report bugs to <https://github.com/python/cpython/issues/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 | [diff] [blame] | 6 | # |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7 | # |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9 | # |
10 | # | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [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 | [diff] [blame] | 13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | ||||
15 | ## -------------------- ## | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [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 | [diff] [blame] | 20 | emulate sh |
21 | NULLCMD=: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 26 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [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 | [diff] [blame] | 32 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 33 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 34 | |
35 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [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 | [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 | [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 | [diff] [blame] | 81 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 82 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [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 | [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 11:06:09 | [diff] [blame] | 92 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 93 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [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 | [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 | [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 | [diff] [blame] | 102 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 103 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [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 | [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 | [diff] [blame] | 114 | fi |
115 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [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 | [diff] [blame] | 123 | done |
124 | PS1='$ ' | ||||
125 | PS2='> ' | ||||
126 | PS4='+ ' | ||||
127 | |||||
128 | # NLS nuisances. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [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 | [diff] [blame] | 133 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 134 | # CDPATH. |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||||
136 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [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 | [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 | [diff] [blame] | 195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [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 | [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 | [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 | ||||
Ned Deily | 61e371a | 2022-09-06 06:57:17 | [diff] [blame] | 270 | $0: https://github.com/python/cpython/issues/ about your system, including |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [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 05:30:30 | [diff] [blame] | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 359 | |
360 | |||||
361 | } # as_fn_mkdir_p | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [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 | [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 05:30:30 | [diff] [blame] | 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
407 | # ---------------------------------------- | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [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 05:30:30 | [diff] [blame] | 410 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 411 | as_fn_error () |
412 | { | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [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 | [diff] [blame] | 417 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 418 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 419 | as_fn_exit $as_status |
420 | } # as_fn_error | ||||
421 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [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 | [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 | [diff] [blame] | 440 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [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 | [diff] [blame] | 445 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [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 | [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 | [diff] [blame] | 466 | |
467 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [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 | [diff] [blame] | 473 | sed -n ' |
474 | p | ||||
475 | /[$]LINENO/= | ||||
476 | ' <$as_myself | | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 477 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 478 | s/[$]LINENO.*/&-/ |
479 | t lineno | ||||
480 | b | ||||
481 | :lineno | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 482 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [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 | [diff] [blame] | 485 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 486 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 487 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 488 | chmod +x "$as_me.lineno" || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [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 | [diff] [blame] | 490 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [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 | [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 | [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 | [diff] [blame] | 499 | # Exit status is that of the last command. |
500 | exit | ||||
501 | } | ||||
502 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 503 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 504 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 505 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 506 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [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 | [diff] [blame] | 511 | esac;; |
512 | *) | ||||
513 | ECHO_N='-n';; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 514 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 516 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [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 | [diff] [blame] | 521 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 522 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [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 | [diff] [blame] | 529 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [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 | [diff] [blame] | 531 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [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 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 536 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 537 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 538 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 539 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [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 | [diff] [blame] | 542 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 543 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 544 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 545 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 546 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 547 | as_mkdir_p=false |
548 | fi | ||||
549 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [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 | [diff] [blame] | 552 | |
553 | # Sed expression to map a string onto a valid CPP name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [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 | [diff] [blame] | 555 | |
556 | # Sed expression to map a string onto a valid variable name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [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 | [diff] [blame] | 558 | |
559 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [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 | [diff] [blame] | 562 | |
563 | # Name of the host. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [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 | [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 | [diff] [blame] | 568 | # |
569 | # Initializations. | ||||
570 | # | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 571 | ac_default_prefix=/usr/local |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 572 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 573 | ac_config_libobj_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 574 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 575 | cross_compiling=no |
576 | subdirs= | ||||
577 | MFLAGS= | ||||
578 | MAKEFLAGS= | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 580 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 | [diff] [blame] | 581 | PACKAGE_NAME='python' |
582 | PACKAGE_TARNAME='python' | ||||
Ned Deily | 4829bc6 | 2016-09-12 21:29:04 | [diff] [blame] | 583 | PACKAGE_VERSION='3.7' |
584 | PACKAGE_STRING='python 3.7' | ||||
Ned Deily | 61e371a | 2022-09-06 06:57:17 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='https://github.com/python/cpython/issues/' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 586 | PACKAGE_URL='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [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 | [diff] [blame] | 592 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 593 | # include <sys/types.h> |
594 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 595 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 596 | # include <sys/stat.h> |
597 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 598 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 599 | # include <stdlib.h> |
600 | # include <stddef.h> | ||||
601 | #else | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 602 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 603 | # include <stdlib.h> |
604 | # endif | ||||
605 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [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 | [diff] [blame] | 608 | # include <memory.h> |
609 | # endif | ||||
610 | # include <string.h> | ||||
611 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 612 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 613 | # include <strings.h> |
614 | #endif | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 615 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 616 | # include <inttypes.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 617 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [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 | [diff] [blame] | 622 | # include <unistd.h> |
623 | #endif" | ||||
624 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 625 | ac_subst_vars='LTLIBOBJS |
Christian Heimes | ff5be6e | 2018-01-20 12:19:21 | [diff] [blame] | 626 | OPENSSL_LDFLAGS |
627 | OPENSSL_LIBS | ||||
628 | OPENSSL_INCLUDES | ||||
Ned Deily | 322f5ba | 2013-11-22 07:01:59 | [diff] [blame] | 629 | ENSUREPIP |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 630 | SRCDIRS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 631 | THREADHEADERS |
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 632 | LIBPL |
633 | PY_ENABLE_SHARED | ||||
doko@ubuntu.com | d5537d0 | 2013-03-21 20:21:49 | [diff] [blame] | 634 | EXT_SUFFIX |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 635 | SOABI |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 636 | LIBC |
637 | LIBM | ||||
638 | HAVE_GETHOSTBYNAME | ||||
639 | HAVE_GETHOSTBYNAME_R | ||||
640 | HAVE_GETHOSTBYNAME_R_3_ARG | ||||
641 | HAVE_GETHOSTBYNAME_R_5_ARG | ||||
642 | HAVE_GETHOSTBYNAME_R_6_ARG | ||||
643 | LIBOBJS | ||||
644 | TRUE | ||||
645 | MACHDEP_OBJS | ||||
646 | DYNLOADFILE | ||||
647 | DLINCLDIR | ||||
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 648 | DTRACE_OBJS |
649 | DTRACE_HEADERS | ||||
650 | DFLAGS | ||||
651 | DTRACE | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 652 | LDLAST |
Ned Deily | d819b93 | 2013-09-06 08:07:05 | [diff] [blame] | 653 | TCLTK_LIBS |
654 | TCLTK_INCLUDES | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 655 | LIBFFI_INCLUDEDIR |
Victor Stinner | 8291b5e | 2015-03-20 15:03:14 | [diff] [blame] | 656 | PKG_CONFIG_LIBDIR |
657 | PKG_CONFIG_PATH | ||||
658 | PKG_CONFIG | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 659 | SHLIBS |
660 | CFLAGSFORSHARED | ||||
661 | LINKFORSHARED | ||||
662 | CCSHARED | ||||
663 | BLDSHARED | ||||
664 | LDCXXSHARED | ||||
665 | LDSHARED | ||||
doko@ubuntu.com | d5537d0 | 2013-03-21 20:21:49 | [diff] [blame] | 666 | SHLIB_SUFFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 667 | LIBTOOL_CRUFT |
668 | OTHER_LIBTOOL_OPT | ||||
669 | UNIVERSAL_ARCH_FLAGS | ||||
Victor Stinner | 0198f52 | 2018-12-20 15:03:01 | [diff] [blame] | 670 | LDFLAGS_NODIST |
Benjamin Peterson | acb8c52 | 2014-08-10 03:01:49 | [diff] [blame] | 671 | CFLAGS_NODIST |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 672 | BASECFLAGS |
Victor Stinner | 826f83f | 2017-04-28 13:07:10 | [diff] [blame] | 673 | CFLAGS_ALIASING |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 674 | OPT |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 675 | LLVM_PROF_FOUND |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 676 | LLVM_PROFDATA |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 677 | LLVM_PROF_ERR |
678 | LLVM_PROF_FILE | ||||
679 | LLVM_PROF_MERGER | ||||
680 | PGO_PROF_USE_FLAG | ||||
681 | PGO_PROF_GEN_FLAG | ||||
Miss Islington (bot) | 69a3f15 | 2018-10-25 00:32:04 | [diff] [blame] | 682 | LLVM_AR_FOUND |
Miss Islington (bot) | 69a3f15 | 2018-10-25 00:32:04 | [diff] [blame] | 683 | LLVM_AR |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 684 | DEF_MAKE_RULE |
685 | DEF_MAKE_ALL_RULE | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 686 | ABIFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 687 | LN |
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 688 | MKDIR_P |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 689 | INSTALL_DATA |
690 | INSTALL_SCRIPT | ||||
691 | INSTALL_PROGRAM | ||||
doko@ubuntu.com | 5884449 | 2012-06-30 16:25:32 | [diff] [blame] | 692 | ac_ct_READELF |
693 | READELF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 694 | ARFLAGS |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 695 | ac_ct_AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 696 | AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 697 | GNULD |
698 | LINKCC | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 699 | LDVERSION |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 700 | RUNSHARED |
701 | INSTSONAME | ||||
702 | LDLIBRARYDIR | ||||
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 | [diff] [blame] | 703 | PY3LIBRARY |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 704 | BLDLIBRARY |
705 | DLLLIBRARY | ||||
706 | LDLIBRARY | ||||
707 | LIBRARY | ||||
708 | BUILDEXEEXT | ||||
709 | EGREP | ||||
Martin v. Löwis | 48e14d3 | 2011-05-09 05:37:45 | [diff] [blame] | 710 | NO_AS_NEEDED |
doko@ubuntu.com | 5553231 | 2016-06-14 06:55:19 | [diff] [blame] | 711 | MULTIARCH_CPPFLAGS |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 712 | PLATFORM_TRIPLET |
713 | MULTIARCH | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 714 | ac_ct_CXX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 715 | MAINCC |
716 | CXX | ||||
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 717 | SED |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 718 | GREP |
719 | CPP | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 720 | OBJEXT |
721 | EXEEXT | ||||
722 | ac_ct_CC | ||||
723 | CPPFLAGS | ||||
724 | LDFLAGS | ||||
725 | CFLAGS | ||||
726 | CC | ||||
727 | EXPORT_MACOSX_DEPLOYMENT_TARGET | ||||
728 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 729 | _PYTHON_HOST_PLATFORM |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 730 | MACHDEP |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 731 | FRAMEWORKINSTALLAPPSPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 732 | FRAMEWORKUNIXTOOLSPREFIX |
Ned Deily | b8f944f | 2013-11-22 06:42:25 | [diff] [blame] | 733 | FRAMEWORKPYTHONW |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 734 | FRAMEWORKALTINSTALLLAST |
735 | FRAMEWORKALTINSTALLFIRST | ||||
736 | FRAMEWORKINSTALLLAST | ||||
737 | FRAMEWORKINSTALLFIRST | ||||
738 | PYTHONFRAMEWORKINSTALLDIR | ||||
739 | PYTHONFRAMEWORKPREFIX | ||||
740 | PYTHONFRAMEWORKDIR | ||||
741 | PYTHONFRAMEWORKIDENTIFIER | ||||
742 | PYTHONFRAMEWORK | ||||
743 | LIPO_32BIT_FLAGS | ||||
744 | ARCH_RUN_32BIT | ||||
745 | UNIVERSALSDK | ||||
746 | CONFIG_ARGS | ||||
747 | SOVERSION | ||||
748 | VERSION | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 749 | PYTHON_FOR_BUILD |
Victor Stinner | a5c62a8 | 2017-05-03 16:21:48 | [diff] [blame] | 750 | PYTHON_FOR_REGEN |
Matthias Klose | ca2f6ec | 2012-03-15 20:30:11 | [diff] [blame] | 751 | host_os |
752 | host_vendor | ||||
753 | host_cpu | ||||
754 | host | ||||
755 | build_os | ||||
756 | build_vendor | ||||
757 | build_cpu | ||||
758 | build | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 759 | HAS_GIT |
760 | GITBRANCH | ||||
761 | GITTAG | ||||
762 | GITVERSION | ||||
Trent Nelson | 4d4ec65 | 2012-10-16 12:51:24 | [diff] [blame] | 763 | BASECPPFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 764 | target_alias |
765 | host_alias | ||||
766 | build_alias | ||||
767 | LIBS | ||||
768 | ECHO_T | ||||
769 | ECHO_N | ||||
770 | ECHO_C | ||||
771 | DEFS | ||||
772 | mandir | ||||
773 | localedir | ||||
774 | libdir | ||||
775 | psdir | ||||
776 | pdfdir | ||||
777 | dvidir | ||||
778 | htmldir | ||||
779 | infodir | ||||
780 | docdir | ||||
781 | oldincludedir | ||||
782 | includedir | ||||
783 | localstatedir | ||||
784 | sharedstatedir | ||||
785 | sysconfdir | ||||
786 | datadir | ||||
787 | datarootdir | ||||
788 | libexecdir | ||||
789 | sbindir | ||||
790 | bindir | ||||
791 | program_transform_name | ||||
792 | prefix | ||||
793 | exec_prefix | ||||
794 | PACKAGE_URL | ||||
795 | PACKAGE_BUGREPORT | ||||
796 | PACKAGE_STRING | ||||
797 | PACKAGE_VERSION | ||||
798 | PACKAGE_TARNAME | ||||
799 | PACKAGE_NAME | ||||
800 | PATH_SEPARATOR | ||||
801 | SHELL' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 802 | ac_subst_files='' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 803 | ac_user_opts=' |
804 | enable_option_checking | ||||
805 | enable_universalsdk | ||||
806 | with_universal_archs | ||||
807 | with_framework_name | ||||
808 | enable_framework | ||||
809 | with_gcc | ||||
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 810 | with_icc |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 811 | with_cxx_main |
812 | with_suffix | ||||
813 | enable_shared | ||||
814 | enable_profiling | ||||
815 | with_pydebug | ||||
T. Wouters | ddbfa2c | 2017-05-22 23:30:49 | [diff] [blame] | 816 | with_assertions |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 | [diff] [blame] | 817 | enable_optimizations |
Gregory P. Smith | d82da9f | 2016-04-15 23:57:04 | [diff] [blame] | 818 | with_lto |
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 819 | with_hash_algorithm |
Charles-François Natali | d30b022 | 2014-05-08 22:08:51 | [diff] [blame] | 820 | with_address_sanitizer |
Gregory P. Smith | 5f4d05d | 2018-11-12 21:48:24 | [diff] [blame] | 821 | with_memory_sanitizer |
822 | with_undefined_behavior_sanitizer | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 823 | with_libs |
824 | with_system_expat | ||||
825 | with_system_ffi | ||||
Stefan Krah | 60187b5 | 2012-03-23 18:06:27 | [diff] [blame] | 826 | with_system_libmpdec |
Stefan Krah | c4ca1f8 | 2020-02-29 22:10:26 | [diff] [blame] | 827 | with_decimal_contextvar |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 | [diff] [blame] | 828 | enable_loadable_sqlite_extensions |
Ned Deily | d819b93 | 2013-09-06 08:07:05 | [diff] [blame] | 829 | with_tcltk_includes |
830 | with_tcltk_libs | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 831 | with_dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 832 | enable_ipv6 |
833 | with_doc_strings | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 834 | with_pymalloc |
Nick Coghlan | 6ea4186 | 2017-06-11 03:16:15 | [diff] [blame] | 835 | with_c_locale_coercion |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 836 | with_valgrind |
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 837 | with_dtrace |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 838 | with_libm |
839 | with_libc | ||||
840 | enable_big_digits | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 841 | with_computed_gotos |
Ned Deily | 322f5ba | 2013-11-22 07:01:59 | [diff] [blame] | 842 | with_ensurepip |
Christian Heimes | ff5be6e | 2018-01-20 12:19:21 | [diff] [blame] | 843 | with_openssl |
Christian Heimes | 892d66e | 2018-01-29 13:10:18 | [diff] [blame] | 844 | with_ssl_default_suites |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 845 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 846 | ac_precious_vars='build_alias |
847 | host_alias | ||||
848 | target_alias | ||||
doko@python.org | eab42bf | 2013-01-26 17:57:19 | [diff] [blame] | 849 | MACHDEP |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 850 | CC |
851 | CFLAGS | ||||
852 | LDFLAGS | ||||
853 | LIBS | ||||
854 | CPPFLAGS | ||||
Victor Stinner | 8291b5e | 2015-03-20 15:03:14 | [diff] [blame] | 855 | CPP |
856 | PKG_CONFIG | ||||
857 | PKG_CONFIG_PATH | ||||
858 | PKG_CONFIG_LIBDIR' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 859 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 860 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 861 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 862 | ac_init_help= |
863 | ac_init_version=false | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 864 | ac_unrecognized_opts= |
865 | ac_unrecognized_sep= | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 866 | # The variables have the same names as the options, with |
867 | # dashes changed to underlines. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 868 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 869 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 870 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 871 | no_recursion= |
872 | prefix=NONE | ||||
873 | program_prefix=NONE | ||||
874 | program_suffix=NONE | ||||
875 | program_transform_name=s,x,x, | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 876 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 877 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 878 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 879 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 880 | x_includes=NONE |
881 | x_libraries=NONE | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 882 | |
883 | # Installation directory options. | ||||
884 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||||
885 | # and all the variables that are supposed to be based on exec_prefix | ||||
886 | # by default will actually change. | ||||
887 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 888 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 889 | bindir='${exec_prefix}/bin' |
890 | sbindir='${exec_prefix}/sbin' | ||||
891 | libexecdir='${exec_prefix}/libexec' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 892 | datarootdir='${prefix}/share' |
893 | datadir='${datarootdir}' | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 894 | sysconfdir='${prefix}/etc' |
895 | sharedstatedir='${prefix}/com' | ||||
896 | localstatedir='${prefix}/var' | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 897 | includedir='${prefix}/include' |
898 | oldincludedir='/usr/include' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 899 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
900 | infodir='${datarootdir}/info' | ||||
901 | htmldir='${docdir}' | ||||
902 | dvidir='${docdir}' | ||||
903 | pdfdir='${docdir}' | ||||
904 | psdir='${docdir}' | ||||
905 | libdir='${exec_prefix}/lib' | ||||
906 | localedir='${datarootdir}/locale' | ||||
907 | mandir='${datarootdir}/man' | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 908 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 909 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 910 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 911 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 912 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 913 | # If the previous option needs an argument, assign it. |
914 | if test -n "$ac_prev"; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 915 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 916 | ac_prev= |
917 | continue | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 918 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 919 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 920 | case $ac_option in |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 921 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
922 | *=) ac_optarg= ;; | ||||
923 | *) ac_optarg=yes ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 924 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 925 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 926 | # Accept the important Cygnus configure options, so we can diagnose typos. |
927 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 928 | case $ac_dashdash$ac_option in |
929 | --) | ||||
930 | ac_dashdash=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 931 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 932 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
933 | ac_prev=bindir ;; | ||||
934 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 935 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 936 | |
937 | -build | --build | --buil | --bui | --bu) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 938 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 939 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 940 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 941 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 942 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
943 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||||
944 | ac_prev=cache_file ;; | ||||
945 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||||
946 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 947 | cache_file=$ac_optarg ;; |
948 | |||||
949 | --config-cache | -C) | ||||
950 | cache_file=config.cache ;; | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 951 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 952 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 953 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 954 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 955 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 956 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 957 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
958 | | --dataroo | --dataro | --datar) | ||||
959 | ac_prev=datarootdir ;; | ||||
960 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||||
961 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||||
962 | datarootdir=$ac_optarg ;; | ||||
963 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 964 | -disable-* | --disable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 965 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 966 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 967 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 968 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 969 | ac_useropt_orig=$ac_useropt |
970 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
971 | case $ac_user_opts in | ||||
972 | *" | ||||
973 | "enable_$ac_useropt" | ||||
974 | "*) ;; | ||||
975 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||||
976 | ac_unrecognized_sep=', ';; | ||||
977 | esac | ||||
978 | eval enable_$ac_useropt=no ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 979 | |
980 | -docdir | --docdir | --docdi | --doc | --do) | ||||
981 | ac_prev=docdir ;; | ||||
982 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||||
983 | docdir=$ac_optarg ;; | ||||
984 | |||||
985 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||||
986 | ac_prev=dvidir ;; | ||||
987 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||||
988 | dvidir=$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 989 | |
990 | -enable-* | --enable-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 991 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 992 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 993 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 994 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 995 | ac_useropt_orig=$ac_useropt |
996 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
997 | case $ac_user_opts in | ||||
998 | *" | ||||
999 | "enable_$ac_useropt" | ||||
1000 | "*) ;; | ||||
1001 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||||
1002 | ac_unrecognized_sep=', ';; | ||||
1003 | esac | ||||
1004 | eval enable_$ac_useropt=\$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1005 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1006 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1007 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||||
1008 | | --exec | --exe | --ex) | ||||
1009 | ac_prev=exec_prefix ;; | ||||
1010 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||||
1011 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||||
1012 | | --exec=* | --exe=* | --ex=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1013 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1014 | |
1015 | -gas | --gas | --ga | --g) | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1016 | # Obsolete; use --with-gas. |
1017 | with_gas=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1019 | -help | --help | --hel | --he | -h) |
1020 | ac_init_help=long ;; | ||||
1021 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||||
1022 | ac_init_help=recursive ;; | ||||
1023 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||||
1024 | ac_init_help=short ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1025 | |
1026 | -host | --host | --hos | --ho) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1027 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1028 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1029 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1030 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1031 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1032 | ac_prev=htmldir ;; | ||||
1033 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||||
1034 | | --ht=*) | ||||
1035 | htmldir=$ac_optarg ;; | ||||
1036 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1037 | -includedir | --includedir | --includedi | --included | --include \ |
1038 | | --includ | --inclu | --incl | --inc) | ||||
1039 | ac_prev=includedir ;; | ||||
1040 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||||
1041 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1042 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1043 | |
1044 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||||
1045 | ac_prev=infodir ;; | ||||
1046 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1047 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1048 | |
1049 | -libdir | --libdir | --libdi | --libd) | ||||
1050 | ac_prev=libdir ;; | ||||
1051 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1052 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1053 | |
1054 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||||
1055 | | --libexe | --libex | --libe) | ||||
1056 | ac_prev=libexecdir ;; | ||||
1057 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||||
1058 | | --libexe=* | --libex=* | --libe=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1059 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1060 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1061 | -localedir | --localedir | --localedi | --localed | --locale) |
1062 | ac_prev=localedir ;; | ||||
1063 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||||
1064 | localedir=$ac_optarg ;; | ||||
1065 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1066 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1067 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1068 | ac_prev=localstatedir ;; |
1069 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1070 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1071 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1072 | |
1073 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||||
1074 | ac_prev=mandir ;; | ||||
1075 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1076 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1077 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1078 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1079 | # Obsolete; use --without-fp. |
1080 | with_fp=no ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1081 | |
1082 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1083 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1084 | no_create=yes ;; |
1085 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1086 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1087 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||||
1088 | no_recursion=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1089 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1090 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1091 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||||
1092 | | --oldin | --oldi | --old | --ol | --o) | ||||
1093 | ac_prev=oldincludedir ;; | ||||
1094 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||||
1095 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||||
1096 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1097 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1098 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1099 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1100 | ac_prev=prefix ;; | ||||
1101 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1102 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1103 | |
1104 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||||
1105 | | --program-pre | --program-pr | --program-p) | ||||
1106 | ac_prev=program_prefix ;; | ||||
1107 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||||
1108 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1109 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1110 | |
1111 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||||
1112 | | --program-suf | --program-su | --program-s) | ||||
1113 | ac_prev=program_suffix ;; | ||||
1114 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||||
1115 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1116 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1117 | |
1118 | -program-transform-name | --program-transform-name \ | ||||
1119 | | --program-transform-nam | --program-transform-na \ | ||||
1120 | | --program-transform-n | --program-transform- \ | ||||
1121 | | --program-transform | --program-transfor \ | ||||
1122 | | --program-transfo | --program-transf \ | ||||
1123 | | --program-trans | --program-tran \ | ||||
1124 | | --progr-tra | --program-tr | --program-t) | ||||
1125 | ac_prev=program_transform_name ;; | ||||
1126 | -program-transform-name=* | --program-transform-name=* \ | ||||
1127 | | --program-transform-nam=* | --program-transform-na=* \ | ||||
1128 | | --program-transform-n=* | --program-transform-=* \ | ||||
1129 | | --program-transform=* | --program-transfor=* \ | ||||
1130 | | --program-transfo=* | --program-transf=* \ | ||||
1131 | | --program-trans=* | --program-tran=* \ | ||||
1132 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1133 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1134 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1135 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1136 | ac_prev=pdfdir ;; | ||||
1137 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||||
1138 | pdfdir=$ac_optarg ;; | ||||
1139 | |||||
1140 | -psdir | --psdir | --psdi | --psd | --ps) | ||||
1141 | ac_prev=psdir ;; | ||||
1142 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||||
1143 | psdir=$ac_optarg ;; | ||||
1144 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1145 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1146 | | -silent | --silent | --silen | --sile | --sil) | ||||
1147 | silent=yes ;; | ||||
1148 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1149 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1150 | ac_prev=sbindir ;; | ||||
1151 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||||
1152 | | --sbi=* | --sb=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1153 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1154 | |
1155 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||||
1156 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||||
1157 | | --sharedst | --shareds | --shared | --share | --shar \ | ||||
1158 | | --sha | --sh) | ||||
1159 | ac_prev=sharedstatedir ;; | ||||
1160 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||||
1161 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||||
1162 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||||
1163 | | --sha=* | --sh=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1164 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1165 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1166 | -site | --site | --sit) |
1167 | ac_prev=site ;; | ||||
1168 | -site=* | --site=* | --sit=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1169 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1170 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1171 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1172 | ac_prev=srcdir ;; | ||||
1173 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1174 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1175 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1176 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1177 | | --syscon | --sysco | --sysc | --sys | --sy) | ||||
1178 | ac_prev=sysconfdir ;; | ||||
1179 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||||
1180 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1181 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1182 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1183 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1184 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1185 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1186 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1187 | |
1188 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||||
1189 | verbose=yes ;; | ||||
1190 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1191 | -version | --version | --versio | --versi | --vers | -V) |
1192 | ac_init_version=: ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1193 | |
1194 | -with-* | --with-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1195 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1196 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1197 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1198 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1199 | ac_useropt_orig=$ac_useropt |
1200 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
1201 | case $ac_user_opts in | ||||
1202 | *" | ||||
1203 | "with_$ac_useropt" | ||||
1204 | "*) ;; | ||||
1205 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||||
1206 | ac_unrecognized_sep=', ';; | ||||
1207 | esac | ||||
1208 | eval with_$ac_useropt=\$ac_optarg ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1209 | |
1210 | -without-* | --without-*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1211 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1212 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1213 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1214 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1215 | ac_useropt_orig=$ac_useropt |
1216 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||||
1217 | case $ac_user_opts in | ||||
1218 | *" | ||||
1219 | "with_$ac_useropt" | ||||
1220 | "*) ;; | ||||
1221 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||||
1222 | ac_unrecognized_sep=', ';; | ||||
1223 | esac | ||||
1224 | eval with_$ac_useropt=no ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1225 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1226 | --x) |
1227 | # Obsolete; use --with-x. | ||||
1228 | with_x=yes ;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1229 | |
1230 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||||
1231 | | --x-incl | --x-inc | --x-in | --x-i) | ||||
1232 | ac_prev=x_includes ;; | ||||
1233 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||||
1234 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1235 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1236 | |
1237 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||||
1238 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||||
1239 | ac_prev=x_libraries ;; | ||||
1240 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||||
1241 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1242 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1243 | |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1244 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1245 | Try \`$0 --help' for more information" | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1246 | ;; |
1247 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1248 | *=*) |
1249 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||||
1250 | # Reject names that are not valid shell variable names. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1251 | case $ac_envvar in #( |
1252 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1253 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1254 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1255 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1256 | export $ac_envvar ;; |
1257 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 1258 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1259 | # FIXME: should be removed in autoconf 3.0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1260 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1261 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1262 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1263 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1264 | ;; |
1265 | |||||
1266 | esac | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1267 | done |
1268 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1269 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1270 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1271 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1272 | fi |
1273 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1274 | if test -n "$ac_unrecognized_opts"; then |
1275 | case $enable_option_checking in | ||||
1276 | no) ;; | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1277 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1278 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1279 | esac | ||||
1280 | fi | ||||
1281 | |||||
1282 | # Check all directory arguments for consistency. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1283 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1284 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||||
1285 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||||
Victor Stinner | 5403006 | 2019-04-13 00:50:31 | [diff] [blame] | 1286 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1287 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1288 | eval ac_val=\$$ac_var |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1289 | # Remove trailing slashes. |
1290 | case $ac_val in | ||||
1291 | */ ) | ||||
1292 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||||
1293 | eval $ac_var=\$ac_val;; | ||||
1294 | esac | ||||
1295 | # Be sure to have absolute directory names. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1296 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1297 | [\\/$]* | ?:[\\/]* ) continue;; |
1298 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1299 | esac |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1300 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1301 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1302 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1303 | # There might be people who depend on the old broken behavior: `$host' |
1304 | # used to hold the argument of --host etc. | ||||
1305 | # FIXME: To remove some day. | ||||
1306 | build=$build_alias | ||||
1307 | host=$host_alias | ||||
1308 | target=$target_alias | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1309 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1310 | # FIXME: To remove some day. |
1311 | if test "x$host_alias" != x; then | ||||
1312 | if test "x$build_alias" = x; then | ||||
1313 | cross_compiling=maybe | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1314 | elif test "x$build_alias" != "x$host_alias"; then |
1315 | cross_compiling=yes | ||||
1316 | fi | ||||
1317 | fi | ||||
1318 | |||||
1319 | ac_tool_prefix= | ||||
1320 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||||
1321 | |||||
1322 | test "$silent" = yes && exec 6>/dev/null | ||||
1323 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1324 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1325 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1326 | ac_ls_di=`ls -di .` && | ||||
1327 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1328 | as_fn_error $? "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1329 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1330 | as_fn_error $? "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1331 | |
1332 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1333 | # Find the source files, if location was not specified. |
1334 | if test -z "$srcdir"; then | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1335 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1336 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1337 | ac_confdir=`$as_dirname -- "$as_myself" || |
1338 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||||
1339 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||||
1340 | X"$as_myself" : 'X\(//\)$' \| \ | ||||
1341 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||||
1342 | $as_echo X"$as_myself" | | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1344 | s//\1/ | ||||
1345 | q | ||||
1346 | } | ||||
1347 | /^X\(\/\/\)[^/].*/{ | ||||
1348 | s//\1/ | ||||
1349 | q | ||||
1350 | } | ||||
1351 | /^X\(\/\/\)$/{ | ||||
1352 | s//\1/ | ||||
1353 | q | ||||
1354 | } | ||||
1355 | /^X\(\/\).*/{ | ||||
1356 | s//\1/ | ||||
1357 | q | ||||
1358 | } | ||||
1359 | s/.*/./; q'` | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 1360 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1361 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1362 | srcdir=.. |
1363 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1364 | else |
1365 | ac_srcdir_defaulted=no | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 1366 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1367 | if test ! -r "$srcdir/$ac_unique_file"; then |
1368 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1369 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 1370 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1371 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1372 | ac_abs_confdir=`( | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1373 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1374 | pwd)` |
1375 | # When building in place, set srcdir=. | ||||
1376 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||||
1377 | srcdir=. | ||||
1378 | fi | ||||
1379 | # Remove unnecessary trailing slashes from srcdir. | ||||
1380 | # Double slashes in file names in object file debugging info | ||||
1381 | # mess up M-x gdb in Emacs. | ||||
1382 | case $srcdir in | ||||
1383 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||||
1384 | esac | ||||
1385 | for ac_var in $ac_precious_vars; do | ||||
1386 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||||
1387 | eval ac_env_${ac_var}_value=\$${ac_var} | ||||
1388 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||||
1389 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||||
1390 | done | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 1391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1392 | # |
1393 | # Report the --help message. | ||||
1394 | # | ||||
1395 | if test "$ac_init_help" = "long"; then | ||||
1396 | # Omit some internal or obsolete options to make the list less imposing. | ||||
1397 | # This message is too long to be a string in the A/UX 3.1 sh. | ||||
1398 | cat <<_ACEOF | ||||
Ned Deily | 4829bc6 | 2016-09-12 21:29:04 | [diff] [blame] | 1399 | \`configure' configures python 3.7 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1400 | |
1401 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||||
1402 | |||||
1403 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||||
1404 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||||
1405 | |||||
1406 | Defaults for the options are specified in brackets. | ||||
1407 | |||||
1408 | Configuration: | ||||
1409 | -h, --help display this help and exit | ||||
1410 | --help=short display options specific to this package | ||||
1411 | --help=recursive display the short help of all the included packages | ||||
1412 | -V, --version display version information and exit | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1413 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1414 | --cache-file=FILE cache test results in FILE [disabled] |
1415 | -C, --config-cache alias for \`--cache-file=config.cache' | ||||
1416 | -n, --no-create do not create output files | ||||
1417 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||||
1418 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1419 | Installation directories: |
1420 | --prefix=PREFIX install architecture-independent files in PREFIX | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1421 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1422 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1423 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1424 | |
1425 | By default, \`make install' will install all the files in | ||||
1426 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||||
1427 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||||
1428 | for instance \`--prefix=\$HOME'. | ||||
1429 | |||||
1430 | For better control, use the options below. | ||||
1431 | |||||
1432 | Fine tuning of the installation directories: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1433 | --bindir=DIR user executables [EPREFIX/bin] |
1434 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||||
1435 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||||
1436 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||||
1437 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||||
1438 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||||
1439 | --libdir=DIR object code libraries [EPREFIX/lib] | ||||
1440 | --includedir=DIR C header files [PREFIX/include] | ||||
1441 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||||
1442 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||||
1443 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||||
1444 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||||
1445 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||||
1446 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||||
1447 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] | ||||
1448 | --htmldir=DIR html documentation [DOCDIR] | ||||
1449 | --dvidir=DIR dvi documentation [DOCDIR] | ||||
1450 | --pdfdir=DIR pdf documentation [DOCDIR] | ||||
1451 | --psdir=DIR ps documentation [DOCDIR] | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1452 | _ACEOF |
1453 | |||||
1454 | cat <<\_ACEOF | ||||
Matthias Klose | ca2f6ec | 2012-03-15 20:30:11 | [diff] [blame] | 1455 | |
1456 | System types: | ||||
1457 | --build=BUILD configure for building on BUILD [guessed] | ||||
1458 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1459 | _ACEOF |
1460 | fi | ||||
1461 | |||||
1462 | if test -n "$ac_init_help"; then | ||||
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 | [diff] [blame] | 1463 | case $ac_init_help in |
Ned Deily | 4829bc6 | 2016-09-12 21:29:04 | [diff] [blame] | 1464 | short | recursive ) echo "Configuration of python 3.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 | [diff] [blame] | 1465 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1466 | cat <<\_ACEOF |
1467 | |||||
1468 | Optional Features: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1469 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1470 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1471 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||||
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 | [diff] [blame] | 1472 | --enable-universalsdk[=SDKDIR] |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 1473 | Build fat binary against Mac OS X SDK |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1474 | --enable-framework[=INSTALLDIR] |
1475 | Build (MacOSX|Darwin) framework | ||||
1476 | --enable-shared disable/enable building shared python library | ||||
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 | [diff] [blame] | 1477 | --enable-profiling enable C-level code profiling |
Brett Cannon | b4e5fee | 2017-06-09 20:56:57 | [diff] [blame] | 1478 | --enable-optimizations Enable expensive, stable optimizations (PGO, etc). |
1479 | Disabled by default. | ||||
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 | [diff] [blame] | 1480 | --enable-loadable-sqlite-extensions |
1481 | support loadable extensions in _sqlite module | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1482 | --enable-ipv6 Enable ipv6 (with ipv4) support |
1483 | --disable-ipv6 Disable ipv6 support | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 1484 | --enable-big-digits[=BITS] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1485 | use big digits for Python longs [[BITS=30]] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1486 | |
1487 | Optional Packages: | ||||
1488 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||||
1489 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 1490 | --with-universal-archs=ARCH |
1491 | select architectures for universal build ("32-bit", | ||||
Ned Deily | 8c9bb72 | 2018-01-30 12:42:14 | [diff] [blame] | 1492 | "64-bit", "3-way", "intel", "intel-32", "intel-64", |
1493 | or "all") | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 1494 | --with-framework-name=FRAMEWORK |
1495 | specify an alternate name of the framework built | ||||
1496 | with --enable-framework | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1497 | --without-gcc never use gcc |
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 1498 | --with-icc build with icc |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 1499 | --with-cxx-main=<compiler> |
1500 | compile main() and link python executable with C++ | ||||
1501 | compiler | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1502 | --with-suffix=.exe set executable suffix |
1503 | --with-pydebug build with Py_DEBUG defined | ||||
T. Wouters | ddbfa2c | 2017-05-22 23:30:49 | [diff] [blame] | 1504 | --with-assertions build with C assertions enabled |
octaviansoldea | 4c81401 | 2017-09-08 19:14:33 | [diff] [blame] | 1505 | --with-lto Enable Link Time Optimization in any build. Disabled |
1506 | by default. | ||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 1507 | --with-hash-algorithm=[fnv|siphash24] |
1508 | select hash algorithm | ||||
Charles-François Natali | d30b022 | 2014-05-08 22:08:51 | [diff] [blame] | 1509 | --with-address-sanitizer |
Gregory P. Smith | 5f4d05d | 2018-11-12 21:48:24 | [diff] [blame] | 1510 | enable AddressSanitizer (asan) |
1511 | --with-memory-sanitizer enable MemorySanitizer (msan) | ||||
1512 | --with-undefined-behavior-sanitizer | ||||
1513 | enable UndefinedBehaviorSanitizer (ubsan) | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1514 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 | [diff] [blame] | 1515 | --with-system-expat build pyexpat module using an installed expat |
1516 | library | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 1517 | --with-system-ffi build _ctypes module using an installed ffi library |
Stefan Krah | 60187b5 | 2012-03-23 18:06:27 | [diff] [blame] | 1518 | --with-system-libmpdec build _decimal module using an installed libmpdec |
1519 | library | ||||
Stefan Krah | c4ca1f8 | 2020-02-29 22:10:26 | [diff] [blame] | 1520 | --with-decimal-contextvar |
1521 | build _decimal module using a coroutine-local rather | ||||
1522 | than a thread-local context (default is yes) | ||||
Ned Deily | d819b93 | 2013-09-06 08:07:05 | [diff] [blame] | 1523 | --with-tcltk-includes='-I...' |
1524 | override search for Tcl and Tk include files | ||||
1525 | --with-tcltk-libs='-L...' | ||||
1526 | override search for Tcl and Tk libs | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 1527 | --with-dbmliborder=db1:db2:... |
1528 | order to check db backends for dbm. Valid value is a | ||||
1529 | colon separated string with the backend names | ||||
1530 | `ndbm', `gdbm' and `bdb'. | ||||
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1531 | --with(out)-doc-strings disable/enable documentation strings |
1532 | --with(out)-pymalloc disable/enable specialized mallocs | ||||
Nick Coghlan | 6ea4186 | 2017-06-11 03:16:15 | [diff] [blame] | 1533 | --with(out)-c-locale-coercion |
1534 | disable/enable C locale coercion to a UTF-8 based | ||||
1535 | locale | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 1536 | --with-valgrind Enable Valgrind support |
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 1537 | --with(out)-dtrace disable/enable DTrace support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 | [diff] [blame] | 1538 | --with-libm=STRING math library |
1539 | --with-libc=STRING C library | ||||
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 | [diff] [blame] | 1540 | --with(out)-computed-gotos |
1541 | Use computed gotos in evaluation loop (enabled by | ||||
1542 | default on supported compilers) | ||||
Ned Deily | 322f5ba | 2013-11-22 07:01:59 | [diff] [blame] | 1543 | --with(out)-ensurepip=[=upgrade] |
1544 | "install" or "upgrade" using bundled pip | ||||
Christian Heimes | ff5be6e | 2018-01-20 12:19:21 | [diff] [blame] | 1545 | --with-openssl=DIR root of the OpenSSL directory |
Christian Heimes | 892d66e | 2018-01-29 13:10:18 | [diff] [blame] | 1546 | --with-ssl-default-suites=[python|openssl|STRING] |
1547 | Override default cipher suites string, python: use | ||||
1548 | Python's preferred selection (default), openssl: | ||||
1549 | leave OpenSSL's defaults untouched, STRING: use a | ||||
1550 | custom string, PROTOCOL_SSLv2 ignores the setting | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1551 | |
1552 | Some influential environment variables: | ||||
doko@python.org | eab42bf | 2013-01-26 17:57:19 | [diff] [blame] | 1553 | MACHDEP name for machine-dependent library files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1554 | CC C compiler command |
1555 | CFLAGS C compiler flags | ||||
1556 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||||
1557 | nonstandard directory <lib dir> | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1558 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1559 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1560 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1561 | CPP C preprocessor |
Victor Stinner | 8291b5e | 2015-03-20 15:03:14 | [diff] [blame] | 1562 | PKG_CONFIG path to pkg-config utility |
1563 | PKG_CONFIG_PATH | ||||
1564 | directories to add to pkg-config's search path | ||||
1565 | PKG_CONFIG_LIBDIR | ||||
1566 | path overriding pkg-config's built-in search path | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1567 | |
1568 | Use these variables to override the choices made by `configure' or to help | ||||
1569 | it to find libraries and programs with nonstandard names/locations. | ||||
1570 | |||||
Ned Deily | 61e371a | 2022-09-06 06:57:17 | [diff] [blame] | 1571 | Report bugs to <https://github.com/python/cpython/issues/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1572 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1573 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1574 | fi |
1575 | |||||
1576 | if test "$ac_init_help" = "recursive"; then | ||||
1577 | # If there are subdirs, report their specific --help. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1578 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1579 | test -d "$ac_dir" || |
1580 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||||
1581 | continue | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1582 | ac_builddir=. |
1583 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1584 | case "$ac_dir" in |
1585 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
1586 | *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1587 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1588 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1589 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1590 | case $ac_top_builddir_sub in |
1591 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
1592 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||||
1593 | esac ;; | ||||
1594 | esac | ||||
1595 | ac_abs_top_builddir=$ac_pwd | ||||
1596 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||||
1597 | # for backward compatibility: | ||||
1598 | ac_top_builddir=$ac_top_build_prefix | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1599 | |
1600 | case $srcdir in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1601 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1602 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1603 | ac_top_srcdir=$ac_top_builddir_sub |
1604 | ac_abs_top_srcdir=$ac_pwd ;; | ||||
1605 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1606 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1607 | ac_top_srcdir=$srcdir |
1608 | ac_abs_top_srcdir=$srcdir ;; | ||||
1609 | *) # Relative name. | ||||
1610 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||||
1611 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||||
1612 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1613 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1614 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 1615 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1616 | cd "$ac_dir" || { ac_status=$?; continue; } |
1617 | # Check for guested configure. | ||||
1618 | if test -f "$ac_srcdir/configure.gnu"; then | ||||
1619 | echo && | ||||
1620 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||||
1621 | elif test -f "$ac_srcdir/configure"; then | ||||
1622 | echo && | ||||
1623 | $SHELL "$ac_srcdir/configure" --help=recursive | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1624 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1625 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1626 | fi || ac_status=$? |
1627 | cd "$ac_pwd" || { ac_status=$?; break; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1628 | done |
1629 | fi | ||||
1630 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1631 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1632 | if $ac_init_version; then |
1633 | cat <<\_ACEOF | ||||
Ned Deily | 4829bc6 | 2016-09-12 21:29:04 | [diff] [blame] | 1634 | python configure 3.7 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 1635 | generated by GNU Autoconf 2.69 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1636 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 1637 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1638 | This configure script is free software; the Free Software Foundation |
1639 | gives unlimited permission to copy, distribute and modify it. | ||||
1640 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 1641 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 1642 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1643 | |
1644 | ## ------------------------ ## | ||||
1645 | ## Autoconf initialization. ## | ||||
1646 | ## ------------------------ ## | ||||
1647 | |||||
1648 | # ac_fn_c_try_compile LINENO | ||||
1649 | # -------------------------- | ||||
1650 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||||
1651 | ac_fn_c_try_compile () | ||||
1652 | { | ||||
1653 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1654 | rm -f conftest.$ac_objext | ||||
1655 | if { { ac_try="$ac_compile" | ||||
1656 | case "(($ac_try" in | ||||
1657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1658 | *) ac_try_echo=$ac_try;; | ||||
1659 | esac | ||||
1660 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1661 | $as_echo "$ac_try_echo"; } >&5 | ||||
1662 | (eval "$ac_compile") 2>conftest.err | ||||
1663 | ac_status=$? | ||||
1664 | if test -s conftest.err; then | ||||
1665 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1666 | cat conftest.er1 >&5 | ||||
1667 | mv -f conftest.er1 conftest.err | ||||
1668 | fi | ||||
1669 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1670 | test $ac_status = 0; } && { | ||||
1671 | test -z "$ac_c_werror_flag" || | ||||
1672 | test ! -s conftest.err | ||||
1673 | } && test -s conftest.$ac_objext; then : | ||||
1674 | ac_retval=0 | ||||
1675 | else | ||||
1676 | $as_echo "$as_me: failed program was:" >&5 | ||||
1677 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1678 | |||||
1679 | ac_retval=1 | ||||
1680 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1681 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1682 | as_fn_set_status $ac_retval |
1683 | |||||
1684 | } # ac_fn_c_try_compile | ||||
1685 | |||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 1686 | # ac_fn_c_try_cpp LINENO |
1687 | # ---------------------- | ||||
1688 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||||
1689 | ac_fn_c_try_cpp () | ||||
1690 | { | ||||
1691 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1692 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||||
1693 | case "(($ac_try" in | ||||
1694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1695 | *) ac_try_echo=$ac_try;; | ||||
1696 | esac | ||||
1697 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1698 | $as_echo "$ac_try_echo"; } >&5 | ||||
1699 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||||
1700 | ac_status=$? | ||||
1701 | if test -s conftest.err; then | ||||
1702 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1703 | cat conftest.er1 >&5 | ||||
1704 | mv -f conftest.er1 conftest.err | ||||
1705 | fi | ||||
1706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1707 | test $ac_status = 0; } > conftest.i && { | ||||
1708 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||||
1709 | test ! -s conftest.err | ||||
1710 | }; then : | ||||
1711 | ac_retval=0 | ||||
1712 | else | ||||
1713 | $as_echo "$as_me: failed program was:" >&5 | ||||
1714 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1715 | |||||
1716 | ac_retval=1 | ||||
1717 | fi | ||||
1718 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||||
1719 | as_fn_set_status $ac_retval | ||||
1720 | |||||
1721 | } # ac_fn_c_try_cpp | ||||
1722 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1723 | # ac_fn_c_try_link LINENO |
1724 | # ----------------------- | ||||
1725 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||||
1726 | ac_fn_c_try_link () | ||||
1727 | { | ||||
1728 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1729 | rm -f conftest.$ac_objext conftest$ac_exeext | ||||
1730 | if { { ac_try="$ac_link" | ||||
1731 | case "(($ac_try" in | ||||
1732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1733 | *) ac_try_echo=$ac_try;; | ||||
1734 | esac | ||||
1735 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1736 | $as_echo "$ac_try_echo"; } >&5 | ||||
1737 | (eval "$ac_link") 2>conftest.err | ||||
1738 | ac_status=$? | ||||
1739 | if test -s conftest.err; then | ||||
1740 | grep -v '^ *+' conftest.err >conftest.er1 | ||||
1741 | cat conftest.er1 >&5 | ||||
1742 | mv -f conftest.er1 conftest.err | ||||
1743 | fi | ||||
1744 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1745 | test $ac_status = 0; } && { | ||||
1746 | test -z "$ac_c_werror_flag" || | ||||
1747 | test ! -s conftest.err | ||||
1748 | } && test -s conftest$ac_exeext && { | ||||
1749 | test "$cross_compiling" = yes || | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 1750 | test -x conftest$ac_exeext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1751 | }; then : |
1752 | ac_retval=0 | ||||
1753 | else | ||||
1754 | $as_echo "$as_me: failed program was:" >&5 | ||||
1755 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1756 | |||||
1757 | ac_retval=1 | ||||
1758 | fi | ||||
1759 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||||
1760 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||||
1761 | # interfere with the next link command; also delete a directory that is | ||||
1762 | # left behind by Apple's compiler. We do this before executing the actions. | ||||
1763 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1764 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1765 | as_fn_set_status $ac_retval |
1766 | |||||
1767 | } # ac_fn_c_try_link | ||||
1768 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1769 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1770 | # ------------------------------------------------------- | ||||
1771 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||||
1772 | # the include files in INCLUDES and setting the cache variable VAR | ||||
1773 | # accordingly. | ||||
1774 | ac_fn_c_check_header_mongrel () | ||||
1775 | { | ||||
1776 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1777 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1779 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1780 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1781 | $as_echo_n "(cached) " >&6 |
1782 | fi | ||||
1783 | eval ac_res=\$$3 | ||||
1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1785 | $as_echo "$ac_res" >&6; } | ||||
1786 | else | ||||
1787 | # Is the header compilable? | ||||
1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||||
1789 | $as_echo_n "checking $2 usability... " >&6; } | ||||
1790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1791 | /* end confdefs.h. */ | ||||
1792 | $4 | ||||
1793 | #include <$2> | ||||
1794 | _ACEOF | ||||
1795 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1796 | ac_header_compiler=yes | ||||
1797 | else | ||||
1798 | ac_header_compiler=no | ||||
1799 | fi | ||||
1800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||||
1802 | $as_echo "$ac_header_compiler" >&6; } | ||||
1803 | |||||
1804 | # Is the header present? | ||||
1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||||
1806 | $as_echo_n "checking $2 presence... " >&6; } | ||||
1807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1808 | /* end confdefs.h. */ | ||||
1809 | #include <$2> | ||||
1810 | _ACEOF | ||||
1811 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
1812 | ac_header_preproc=yes | ||||
1813 | else | ||||
1814 | ac_header_preproc=no | ||||
1815 | fi | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 1816 | rm -f conftest.err conftest.i conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1818 | $as_echo "$ac_header_preproc" >&6; } | ||||
1819 | |||||
1820 | # So? What about this header? | ||||
1821 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||||
1822 | yes:no: ) | ||||
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||||
1824 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||||
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||||
1826 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||||
1827 | ;; | ||||
1828 | no:yes:* ) | ||||
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||||
1830 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||||
1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||||
1832 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||||
1833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||||
1834 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||||
1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||||
1836 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||||
1837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||||
1838 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||||
Benjamin Peterson | c2fcbf4 | 2016-08-04 05:01:32 | [diff] [blame] | 1839 | ( $as_echo "## --------------------------------------- ## |
Ned Deily | 61e371a | 2022-09-06 06:57:17 | [diff] [blame] | 1840 | ## Report this to https://github.com/python/cpython/issues/ ## |
Benjamin Peterson | c2fcbf4 | 2016-08-04 05:01:32 | [diff] [blame] | 1841 | ## --------------------------------------- ##" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1842 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1843 | ;; | ||||
1844 | esac | ||||
1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1846 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1847 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1848 | $as_echo_n "(cached) " >&6 |
1849 | else | ||||
1850 | eval "$3=\$ac_header_compiler" | ||||
1851 | fi | ||||
1852 | eval ac_res=\$$3 | ||||
1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1854 | $as_echo "$ac_res" >&6; } | ||||
1855 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1856 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1857 | |
1858 | } # ac_fn_c_check_header_mongrel | ||||
1859 | |||||
1860 | # ac_fn_c_try_run LINENO | ||||
1861 | # ---------------------- | ||||
1862 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||||
1863 | # that executables *can* be run. | ||||
1864 | ac_fn_c_try_run () | ||||
1865 | { | ||||
1866 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1867 | if { { ac_try="$ac_link" | ||||
1868 | case "(($ac_try" in | ||||
1869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1870 | *) ac_try_echo=$ac_try;; | ||||
1871 | esac | ||||
1872 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1873 | $as_echo "$ac_try_echo"; } >&5 | ||||
1874 | (eval "$ac_link") 2>&5 | ||||
1875 | ac_status=$? | ||||
1876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1877 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||||
1878 | { { case "(($ac_try" in | ||||
1879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
1880 | *) ac_try_echo=$ac_try;; | ||||
1881 | esac | ||||
1882 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
1883 | $as_echo "$ac_try_echo"; } >&5 | ||||
1884 | (eval "$ac_try") 2>&5 | ||||
1885 | ac_status=$? | ||||
1886 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
1887 | test $ac_status = 0; }; }; then : | ||||
1888 | ac_retval=0 | ||||
1889 | else | ||||
1890 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||||
1891 | $as_echo "$as_me: failed program was:" >&5 | ||||
1892 | sed 's/^/| /' conftest.$ac_ext >&5 | ||||
1893 | |||||
1894 | ac_retval=$ac_status | ||||
1895 | fi | ||||
1896 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1897 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1898 | as_fn_set_status $ac_retval |
1899 | |||||
1900 | } # ac_fn_c_try_run | ||||
1901 | |||||
1902 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||||
1903 | # ------------------------------------------------------- | ||||
1904 | # Tests whether HEADER exists and can be compiled using the include files in | ||||
1905 | # INCLUDES, setting the cache variable VAR accordingly. | ||||
1906 | ac_fn_c_check_header_compile () | ||||
1907 | { | ||||
1908 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1910 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1911 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1912 | $as_echo_n "(cached) " >&6 |
1913 | else | ||||
1914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1915 | /* end confdefs.h. */ | ||||
1916 | $4 | ||||
1917 | #include <$2> | ||||
1918 | _ACEOF | ||||
1919 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1920 | eval "$3=yes" | ||||
1921 | else | ||||
1922 | eval "$3=no" | ||||
1923 | fi | ||||
1924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1925 | fi | ||||
1926 | eval ac_res=\$$3 | ||||
1927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1928 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1929 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1930 | |
1931 | } # ac_fn_c_check_header_compile | ||||
1932 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1933 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1934 | # ------------------------------------------- | ||||
1935 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||||
1936 | # variable VAR accordingly. | ||||
1937 | ac_fn_c_check_type () | ||||
1938 | { | ||||
1939 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
1941 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1942 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1943 | $as_echo_n "(cached) " >&6 |
1944 | else | ||||
1945 | eval "$3=no" | ||||
1946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1947 | /* end confdefs.h. */ | ||||
1948 | $4 | ||||
1949 | int | ||||
1950 | main () | ||||
1951 | { | ||||
1952 | if (sizeof ($2)) | ||||
1953 | return 0; | ||||
1954 | ; | ||||
1955 | return 0; | ||||
1956 | } | ||||
1957 | _ACEOF | ||||
1958 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1960 | /* end confdefs.h. */ | ||||
1961 | $4 | ||||
1962 | int | ||||
1963 | main () | ||||
1964 | { | ||||
1965 | if (sizeof (($2))) | ||||
1966 | return 0; | ||||
1967 | ; | ||||
1968 | return 0; | ||||
1969 | } | ||||
1970 | _ACEOF | ||||
1971 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
1972 | |||||
1973 | else | ||||
1974 | eval "$3=yes" | ||||
1975 | fi | ||||
1976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1977 | fi | ||||
1978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
1979 | fi | ||||
1980 | eval ac_res=\$$3 | ||||
1981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
1982 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 1983 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1984 | |
1985 | } # ac_fn_c_check_type | ||||
1986 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 1987 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
1988 | # -------------------------------------------- | ||||
1989 | # Tries to find the compile-time value of EXPR in a program that includes | ||||
1990 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||||
1991 | # computed | ||||
1992 | ac_fn_c_compute_int () | ||||
1993 | { | ||||
1994 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
1995 | if test "$cross_compiling" = yes; then | ||||
1996 | # Depending upon the size, compute the lo and hi bounds. | ||||
1997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
1998 | /* end confdefs.h. */ | ||||
1999 | $4 | ||||
2000 | int | ||||
2001 | main () | ||||
2002 | { | ||||
2003 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2004 | test_array [0] = 0; |
2005 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2006 | |
2007 | ; | ||||
2008 | return 0; | ||||
2009 | } | ||||
2010 | _ACEOF | ||||
2011 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2012 | ac_lo=0 ac_mid=0 | ||||
2013 | while :; do | ||||
2014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2015 | /* end confdefs.h. */ | ||||
2016 | $4 | ||||
2017 | int | ||||
2018 | main () | ||||
2019 | { | ||||
2020 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2021 | test_array [0] = 0; |
2022 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2023 | |
2024 | ; | ||||
2025 | return 0; | ||||
2026 | } | ||||
2027 | _ACEOF | ||||
2028 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2029 | ac_hi=$ac_mid; break | ||||
2030 | else | ||||
2031 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||||
2032 | if test $ac_lo -le $ac_mid; then | ||||
2033 | ac_lo= ac_hi= | ||||
2034 | break | ||||
2035 | fi | ||||
2036 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||||
2037 | fi | ||||
2038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2039 | done | ||||
2040 | else | ||||
2041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2042 | /* end confdefs.h. */ | ||||
2043 | $4 | ||||
2044 | int | ||||
2045 | main () | ||||
2046 | { | ||||
2047 | static int test_array [1 - 2 * !(($2) < 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2048 | test_array [0] = 0; |
2049 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2050 | |
2051 | ; | ||||
2052 | return 0; | ||||
2053 | } | ||||
2054 | _ACEOF | ||||
2055 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2056 | ac_hi=-1 ac_mid=-1 | ||||
2057 | while :; do | ||||
2058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2059 | /* end confdefs.h. */ | ||||
2060 | $4 | ||||
2061 | int | ||||
2062 | main () | ||||
2063 | { | ||||
2064 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2065 | test_array [0] = 0; |
2066 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2067 | |
2068 | ; | ||||
2069 | return 0; | ||||
2070 | } | ||||
2071 | _ACEOF | ||||
2072 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2073 | ac_lo=$ac_mid; break | ||||
2074 | else | ||||
2075 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||||
2076 | if test $ac_mid -le $ac_hi; then | ||||
2077 | ac_lo= ac_hi= | ||||
2078 | break | ||||
2079 | fi | ||||
2080 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||||
2081 | fi | ||||
2082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2083 | done | ||||
2084 | else | ||||
2085 | ac_lo= ac_hi= | ||||
2086 | fi | ||||
2087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2088 | fi | ||||
2089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2090 | # Binary search between lo and hi bounds. | ||||
2091 | while test "x$ac_lo" != "x$ac_hi"; do | ||||
2092 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||||
2093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2094 | /* end confdefs.h. */ | ||||
2095 | $4 | ||||
2096 | int | ||||
2097 | main () | ||||
2098 | { | ||||
2099 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2100 | test_array [0] = 0; |
2101 | return test_array [0]; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2102 | |
2103 | ; | ||||
2104 | return 0; | ||||
2105 | } | ||||
2106 | _ACEOF | ||||
2107 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2108 | ac_hi=$ac_mid | ||||
2109 | else | ||||
2110 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||||
2111 | fi | ||||
2112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2113 | done | ||||
2114 | case $ac_lo in #(( | ||||
2115 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||||
2116 | '') ac_retval=1 ;; | ||||
2117 | esac | ||||
2118 | else | ||||
2119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2120 | /* end confdefs.h. */ | ||||
2121 | $4 | ||||
2122 | static long int longval () { return $2; } | ||||
2123 | static unsigned long int ulongval () { return $2; } | ||||
2124 | #include <stdio.h> | ||||
2125 | #include <stdlib.h> | ||||
2126 | int | ||||
2127 | main () | ||||
2128 | { | ||||
2129 | |||||
2130 | FILE *f = fopen ("conftest.val", "w"); | ||||
2131 | if (! f) | ||||
2132 | return 1; | ||||
2133 | if (($2) < 0) | ||||
2134 | { | ||||
2135 | long int i = longval (); | ||||
2136 | if (i != ($2)) | ||||
2137 | return 1; | ||||
2138 | fprintf (f, "%ld", i); | ||||
2139 | } | ||||
2140 | else | ||||
2141 | { | ||||
2142 | unsigned long int i = ulongval (); | ||||
2143 | if (i != ($2)) | ||||
2144 | return 1; | ||||
2145 | fprintf (f, "%lu", i); | ||||
2146 | } | ||||
2147 | /* Do not output a trailing newline, as this causes \r\n confusion | ||||
2148 | on some platforms. */ | ||||
2149 | return ferror (f) || fclose (f) != 0; | ||||
2150 | |||||
2151 | ; | ||||
2152 | return 0; | ||||
2153 | } | ||||
2154 | _ACEOF | ||||
2155 | if ac_fn_c_try_run "$LINENO"; then : | ||||
2156 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||||
2157 | else | ||||
2158 | ac_retval=1 | ||||
2159 | fi | ||||
2160 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
2161 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
2162 | rm -f conftest.val | ||||
2163 | |||||
2164 | fi | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2165 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2166 | as_fn_set_status $ac_retval |
2167 | |||||
2168 | } # ac_fn_c_compute_int | ||||
2169 | |||||
2170 | # ac_fn_c_check_func LINENO FUNC VAR | ||||
2171 | # ---------------------------------- | ||||
2172 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||||
2173 | ac_fn_c_check_func () | ||||
2174 | { | ||||
2175 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||||
2177 | $as_echo_n "checking for $2... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2178 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2179 | $as_echo_n "(cached) " >&6 |
2180 | else | ||||
2181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2182 | /* end confdefs.h. */ | ||||
2183 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||||
2184 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||||
2185 | #define $2 innocuous_$2 | ||||
2186 | |||||
2187 | /* System header to define __stub macros and hopefully few prototypes, | ||||
2188 | which can conflict with char $2 (); below. | ||||
2189 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||||
2190 | <limits.h> exists even on freestanding compilers. */ | ||||
2191 | |||||
2192 | #ifdef __STDC__ | ||||
2193 | # include <limits.h> | ||||
2194 | #else | ||||
2195 | # include <assert.h> | ||||
2196 | #endif | ||||
2197 | |||||
2198 | #undef $2 | ||||
2199 | |||||
2200 | /* Override any GCC internal prototype to avoid an error. | ||||
2201 | Use char because int might match the return type of a GCC | ||||
2202 | builtin and then its argument prototype would still apply. */ | ||||
2203 | #ifdef __cplusplus | ||||
2204 | extern "C" | ||||
2205 | #endif | ||||
2206 | char $2 (); | ||||
2207 | /* The GNU C library defines this for functions which it implements | ||||
2208 | to always fail with ENOSYS. Some functions are actually named | ||||
2209 | something starting with __ and the normal name is an alias. */ | ||||
2210 | #if defined __stub_$2 || defined __stub___$2 | ||||
2211 | choke me | ||||
2212 | #endif | ||||
2213 | |||||
2214 | int | ||||
2215 | main () | ||||
2216 | { | ||||
2217 | return $2 (); | ||||
2218 | ; | ||||
2219 | return 0; | ||||
2220 | } | ||||
2221 | _ACEOF | ||||
2222 | if ac_fn_c_try_link "$LINENO"; then : | ||||
2223 | eval "$3=yes" | ||||
2224 | else | ||||
2225 | eval "$3=no" | ||||
2226 | fi | ||||
2227 | rm -f core conftest.err conftest.$ac_objext \ | ||||
2228 | conftest$ac_exeext conftest.$ac_ext | ||||
2229 | fi | ||||
2230 | eval ac_res=\$$3 | ||||
2231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
2232 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2233 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2234 | |
2235 | } # ac_fn_c_check_func | ||||
2236 | |||||
Gregory P. Smith | df300d5 | 2012-01-22 02:20:15 | [diff] [blame] | 2237 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2238 | # --------------------------------------------- | ||||
2239 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||||
2240 | # accordingly. | ||||
2241 | ac_fn_c_check_decl () | ||||
2242 | { | ||||
2243 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2244 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||||
2245 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||||
2246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||||
2247 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||||
2248 | if eval \${$3+:} false; then : | ||||
2249 | $as_echo_n "(cached) " >&6 | ||||
2250 | else | ||||
2251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2252 | /* end confdefs.h. */ | ||||
2253 | $4 | ||||
2254 | int | ||||
2255 | main () | ||||
2256 | { | ||||
2257 | #ifndef $as_decl_name | ||||
2258 | #ifdef __cplusplus | ||||
2259 | (void) $as_decl_use; | ||||
2260 | #else | ||||
2261 | (void) $as_decl_name; | ||||
2262 | #endif | ||||
2263 | #endif | ||||
2264 | |||||
2265 | ; | ||||
2266 | return 0; | ||||
2267 | } | ||||
2268 | _ACEOF | ||||
2269 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2270 | eval "$3=yes" | ||||
2271 | else | ||||
2272 | eval "$3=no" | ||||
2273 | fi | ||||
2274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2275 | fi | ||||
2276 | eval ac_res=\$$3 | ||||
2277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
2278 | $as_echo "$ac_res" >&6; } | ||||
2279 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||||
2280 | |||||
2281 | } # ac_fn_c_check_decl | ||||
2282 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2283 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2284 | # ---------------------------------------------------- | ||||
2285 | # Tries to find if the field MEMBER exists in type AGGR, after including | ||||
2286 | # INCLUDES, setting cache variable VAR accordingly. | ||||
2287 | ac_fn_c_check_member () | ||||
2288 | { | ||||
2289 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
2290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | ||||
2291 | $as_echo_n "checking for $2.$3... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2292 | if eval \${$4+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2293 | $as_echo_n "(cached) " >&6 |
2294 | else | ||||
2295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2296 | /* end confdefs.h. */ | ||||
2297 | $5 | ||||
2298 | int | ||||
2299 | main () | ||||
2300 | { | ||||
2301 | static $2 ac_aggr; | ||||
2302 | if (ac_aggr.$3) | ||||
2303 | return 0; | ||||
2304 | ; | ||||
2305 | return 0; | ||||
2306 | } | ||||
2307 | _ACEOF | ||||
2308 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2309 | eval "$4=yes" | ||||
2310 | else | ||||
2311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
2312 | /* end confdefs.h. */ | ||||
2313 | $5 | ||||
2314 | int | ||||
2315 | main () | ||||
2316 | { | ||||
2317 | static $2 ac_aggr; | ||||
2318 | if (sizeof ac_aggr.$3) | ||||
2319 | return 0; | ||||
2320 | ; | ||||
2321 | return 0; | ||||
2322 | } | ||||
2323 | _ACEOF | ||||
2324 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
2325 | eval "$4=yes" | ||||
2326 | else | ||||
2327 | eval "$4=no" | ||||
2328 | fi | ||||
2329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2330 | fi | ||||
2331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
2332 | fi | ||||
2333 | eval ac_res=\$$4 | ||||
2334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
2335 | $as_echo "$ac_res" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2336 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2337 | |
2338 | } # ac_fn_c_check_member | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2339 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2340 | This file contains any messages produced by compilers while |
2341 | running configure, to aid debugging if configure makes a mistake. | ||||
2342 | |||||
Ned Deily | 4829bc6 | 2016-09-12 21:29:04 | [diff] [blame] | 2343 | It was created by python $as_me 3.7, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 2344 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2345 | |
2346 | $ $0 $@ | ||||
2347 | |||||
2348 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2349 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2350 | { |
2351 | cat <<_ASUNAME | ||||
2352 | ## --------- ## | ||||
2353 | ## Platform. ## | ||||
2354 | ## --------- ## | ||||
2355 | |||||
2356 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||||
2357 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||||
2358 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||||
2359 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||||
2360 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||||
2361 | |||||
2362 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||||
2363 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||||
2364 | |||||
2365 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||||
2366 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||||
2367 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2368 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2369 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2370 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||||
2371 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||||
2372 | |||||
2373 | _ASUNAME | ||||
2374 | |||||
2375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2376 | for as_dir in $PATH | ||||
2377 | do | ||||
2378 | IFS=$as_save_IFS | ||||
2379 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2380 | $as_echo "PATH: $as_dir" |
2381 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2382 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2383 | |
2384 | } >&5 | ||||
2385 | |||||
2386 | cat >&5 <<_ACEOF | ||||
2387 | |||||
2388 | |||||
2389 | ## ----------- ## | ||||
2390 | ## Core tests. ## | ||||
2391 | ## ----------- ## | ||||
2392 | |||||
2393 | _ACEOF | ||||
2394 | |||||
2395 | |||||
2396 | # Keep a trace of the command line. | ||||
2397 | # Strip out --no-create and --no-recursion so they do not pile up. | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2398 | # 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 | [diff] [blame] | 2399 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2400 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2401 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2402 | ac_configure_args0= |
2403 | ac_configure_args1= | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2404 | ac_must_keep_next=false |
2405 | for ac_pass in 1 2 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2406 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2407 | for ac_arg |
2408 | do | ||||
2409 | case $ac_arg in | ||||
2410 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||||
2411 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||||
2412 | | -silent | --silent | --silen | --sile | --sil) | ||||
2413 | continue ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2414 | *\'*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2415 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2416 | esac |
2417 | case $ac_pass in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2418 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2419 | 2) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2420 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2421 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 2422 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2423 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 2424 | case $ac_arg in |
2425 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||||
2426 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||||
2427 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||||
2428 | | -with-* | --with-* | -without-* | --without-* | --x) | ||||
2429 | case "$ac_configure_args0 " in | ||||
2430 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||||
2431 | esac | ||||
2432 | ;; | ||||
2433 | -* ) ac_must_keep_next=true ;; | ||||
2434 | esac | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2435 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2436 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2437 | ;; |
2438 | esac | ||||
2439 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2440 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2441 | { ac_configure_args0=; unset ac_configure_args0;} |
2442 | { ac_configure_args1=; unset ac_configure_args1;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2443 | |
2444 | # When interrupted or exit'd, cleanup temporary files, and complete | ||||
2445 | # config.log. We remove comments because anyway the quotes in there | ||||
2446 | # would cause problems or look ugly. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2447 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2448 | # 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 | [diff] [blame] | 2449 | trap 'exit_status=$? |
2450 | # Save into config.log some information that might help in debugging. | ||||
2451 | { | ||||
2452 | echo | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2453 | |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2454 | $as_echo "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2455 | ## Cache variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2456 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2457 | echo |
2458 | # The following way of writing the cache mishandles newlines in values, | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2459 | ( |
2460 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||||
2461 | eval ac_val=\$$ac_var | ||||
2462 | case $ac_val in #( | ||||
2463 | *${as_nl}*) | ||||
2464 | case $ac_var in #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2465 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2466 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2467 | esac |
2468 | case $ac_var in #( | ||||
2469 | _ | IFS | as_nl) ;; #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2470 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2471 | *) { eval $ac_var=; unset $ac_var;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2472 | esac ;; |
2473 | esac | ||||
2474 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2475 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2476 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2477 | *${as_nl}ac_space=\ *) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2478 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2479 | "s/'\''/'\''\\\\'\'''\''/g; |
2480 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||||
2481 | ;; #( | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 2482 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2483 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 2484 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2485 | esac | |
2486 | sort | ||||
2487 | ) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2488 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2489 | |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2490 | $as_echo "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2491 | ## Output variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2492 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2493 | echo |
2494 | for ac_var in $ac_subst_vars | ||||
2495 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2496 | eval ac_val=\$$ac_var |
2497 | case $ac_val in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2498 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2499 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2500 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2501 | done | sort |
2502 | echo | ||||
2503 | |||||
2504 | if test -n "$ac_subst_files"; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2505 | $as_echo "## ------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2506 | ## File substitutions. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2507 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2508 | echo |
2509 | for ac_var in $ac_subst_files | ||||
2510 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2511 | eval ac_val=\$$ac_var |
2512 | case $ac_val in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2513 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2514 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2515 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 2516 | done | sort |
2517 | echo | ||||
2518 | fi | ||||
2519 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2520 | if test -s confdefs.h; then |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2521 | $as_echo "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2522 | ## confdefs.h. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2523 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2524 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2525 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2526 | echo |
2527 | fi | ||||
2528 | test "$ac_signal" != 0 && | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2529 | $as_echo "$as_me: caught signal $ac_signal" |
2530 | $as_echo "$as_me: exit $exit_status" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2531 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2532 | rm -f core *.core core.conftest.* && |
2533 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2534 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2535 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2536 | for ac_signal in 1 2 13 15; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2537 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2538 | done |
2539 | ac_signal=0 | ||||
2540 | |||||
2541 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2542 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2543 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2544 | $as_echo "/* confdefs.h */" > confdefs.h |
2545 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2546 | # Predefined preprocessor variables. |
2547 | |||||
2548 | cat >>confdefs.h <<_ACEOF | ||||
2549 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||||
2550 | _ACEOF | ||||
2551 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2552 | cat >>confdefs.h <<_ACEOF |
2553 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||||
2554 | _ACEOF | ||||
2555 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2556 | cat >>confdefs.h <<_ACEOF |
2557 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||||
2558 | _ACEOF | ||||
2559 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2560 | cat >>confdefs.h <<_ACEOF |
2561 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||||
2562 | _ACEOF | ||||
2563 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2564 | cat >>confdefs.h <<_ACEOF |
2565 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||||
2566 | _ACEOF | ||||
2567 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2568 | cat >>confdefs.h <<_ACEOF |
2569 | #define PACKAGE_URL "$PACKAGE_URL" | ||||
2570 | _ACEOF | ||||
2571 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2572 | |
2573 | # Let the site file select an alternate cache file if it wants to. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2574 | # Prefer an explicitly selected file to automatically selected ones. |
2575 | ac_site_file1=NONE | ||||
2576 | ac_site_file2=NONE | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2577 | if test -n "$CONFIG_SITE"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2578 | # We do not want a PATH search for config.site. |
2579 | case $CONFIG_SITE in #(( | ||||
2580 | -*) ac_site_file1=./$CONFIG_SITE;; | ||||
2581 | */*) ac_site_file1=$CONFIG_SITE;; | ||||
2582 | *) ac_site_file1=./$CONFIG_SITE;; | ||||
2583 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2584 | elif test "x$prefix" != xNONE; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2585 | ac_site_file1=$prefix/share/config.site |
2586 | ac_site_file2=$prefix/etc/config.site | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2587 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2588 | ac_site_file1=$ac_default_prefix/share/config.site |
2589 | ac_site_file2=$ac_default_prefix/etc/config.site | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2590 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2591 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2592 | do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2593 | test "x$ac_site_file" = xNONE && continue |
2594 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||||
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||||
2596 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2597 | sed 's/^/| /' "$ac_site_file" >&5 |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2598 | . "$ac_site_file" \ |
2599 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
2600 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
2601 | as_fn_error $? "failed to load site script $ac_site_file | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 2602 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2603 | fi |
2604 | done | ||||
2605 | |||||
2606 | if test -r "$cache_file"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2607 | # Some versions of bash will fail to source /dev/null (special files |
2608 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||||
2609 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||||
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||||
2611 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2612 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2613 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2614 | *) . "./$cache_file";; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2615 | esac |
2616 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2617 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2619 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2620 | >$cache_file |
2621 | fi | ||||
2622 | |||||
2623 | # Check that the precious variables saved in the cache have kept the same | ||||
2624 | # value. | ||||
2625 | ac_cache_corrupted=false | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2626 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2627 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2628 | eval ac_new_set=\$ac_env_${ac_var}_set | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2629 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2630 | eval ac_new_val=\$ac_env_${ac_var}_value | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2631 | case $ac_old_set,$ac_new_set in |
2632 | set,) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2634 | $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 | [diff] [blame] | 2635 | ac_cache_corrupted=: ;; |
2636 | ,set) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2638 | $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 | [diff] [blame] | 2639 | ac_cache_corrupted=: ;; |
2640 | ,);; | ||||
2641 | *) | ||||
2642 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2643 | # differences in whitespace do not lead to failure. |
2644 | ac_old_val_w=`echo x $ac_old_val` | ||||
2645 | ac_new_val_w=`echo x $ac_new_val` | ||||
2646 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||||
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||||
2648 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||||
2649 | ac_cache_corrupted=: | ||||
2650 | else | ||||
2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||||
2652 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||||
2653 | eval $ac_var=\$ac_old_val | ||||
2654 | fi | ||||
2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||||
2656 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||||
2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||||
2658 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2659 | fi;; |
2660 | esac | ||||
2661 | # Pass precious variables to config.status. | ||||
2662 | if test "$ac_new_set" = set; then | ||||
2663 | case $ac_new_val in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2664 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2665 | *) ac_arg=$ac_var=$ac_new_val ;; |
2666 | esac | ||||
2667 | case " $ac_configure_args " in | ||||
2668 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2669 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2670 | esac |
2671 | fi | ||||
2672 | done | ||||
2673 | if $ac_cache_corrupted; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2675 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
2676 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||||
2677 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 2678 | 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 | [diff] [blame] | 2679 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2680 | ## -------------------- ## |
2681 | ## Main body of script. ## | ||||
2682 | ## -------------------- ## | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2683 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 2684 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2685 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2686 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2687 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
2688 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 2689 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 2690 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 2691 | |
Trent Nelson | 4d4ec65 | 2012-10-16 12:51:24 | [diff] [blame] | 2692 | |
Christian Heimes | ff5be6e | 2018-01-20 12:19:21 | [diff] [blame] | 2693 | |
2694 | |||||
Martin Panter | c5ee3ca | 2016-09-12 01:32:03 | [diff] [blame] | 2695 | if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then |
Trent Nelson | 4d4ec65 | 2012-10-16 12:51:24 | [diff] [blame] | 2696 | # If we're building out-of-tree, we need to make sure the following |
2697 | # resources get picked up before their $srcdir counterparts. | ||||
2698 | # Objects/ -> typeslots.inc | ||||
2699 | # Include/ -> Python-ast.h, graminit.h | ||||
2700 | # Python/ -> importlib.h | ||||
2701 | # (A side effect of this is that these resources will automatically be | ||||
2702 | # regenerated when building out-of-tree, regardless of whether or not | ||||
2703 | # the $srcdir counterpart is up-to-date. This is an acceptable trade | ||||
2704 | # off.) | ||||
2705 | BASECPPFLAGS="-IObjects -IInclude -IPython" | ||||
2706 | else | ||||
2707 | BASECPPFLAGS="" | ||||
2708 | fi | ||||
2709 | |||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2710 | |
2711 | |||||
2712 | |||||
2713 | |||||
Victor Stinner | 9ed34a8 | 2017-05-02 20:35:58 | [diff] [blame] | 2714 | if test -e $srcdir/.git |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2715 | then |
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2716 | # Extract the first word of "git", so it can be a program name with args. |
2717 | set dummy git; ac_word=$2 | ||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2719 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2720 | if ${ac_cv_prog_HAS_GIT+:} false; then : |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2721 | $as_echo_n "(cached) " >&6 |
2722 | else | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2723 | if test -n "$HAS_GIT"; then |
2724 | ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test. | ||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2725 | else |
2726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2727 | for as_dir in $PATH | ||||
2728 | do | ||||
2729 | IFS=$as_save_IFS | ||||
2730 | test -z "$as_dir" && as_dir=. | ||||
2731 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 2732 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2733 | ac_cv_prog_HAS_GIT="found" |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2735 | break 2 | ||||
2736 | fi | ||||
2737 | done | ||||
2738 | done | ||||
2739 | IFS=$as_save_IFS | ||||
2740 | |||||
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2741 | test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found" |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2742 | fi |
2743 | fi | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2744 | HAS_GIT=$ac_cv_prog_HAS_GIT |
2745 | if test -n "$HAS_GIT"; then | ||||
2746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 | ||||
2747 | $as_echo "$HAS_GIT" >&6; } | ||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2748 | else |
2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
2750 | $as_echo "no" >&6; } | ||||
2751 | fi | ||||
2752 | |||||
2753 | |||||
2754 | else | ||||
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2755 | HAS_GIT=no-repository |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2756 | fi |
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2757 | if test $HAS_GIT = found |
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2758 | then |
Miss Islington (bot) | 2011dd7 | 2018-08-20 14:48:31 | [diff] [blame] | 2759 | GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD" |
2760 | GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty" | ||||
2761 | GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD" | ||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2762 | else |
Ned Deily | 5c4b0d0 | 2017-03-04 05:19:55 | [diff] [blame] | 2763 | GITVERSION="" |
2764 | GITTAG="" | ||||
2765 | GITBRANCH="" | ||||
Benjamin Peterson | 8c6f88e | 2011-06-01 01:52:17 | [diff] [blame] | 2766 | fi |
2767 | |||||
2768 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 2769 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2770 | |
2771 | |||||
Matthias Klose | ca2f6ec | 2012-03-15 20:30:11 | [diff] [blame] | 2772 | ac_aux_dir= |
2773 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||||
2774 | if test -f "$ac_dir/install-sh"; then | ||||
2775 | ac_aux_dir=$ac_dir | ||||
2776 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||||
2777 | break | ||||
2778 | elif test -f "$ac_dir/install.sh"; then | ||||
2779 | ac_aux_dir=$ac_dir | ||||
2780 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||||
2781 | break | ||||
2782 | elif test -f "$ac_dir/shtool"; then | ||||
2783 | ac_aux_dir=$ac_dir | ||||
2784 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||||
2785 | break | ||||
2786 | fi | ||||
2787 | done | ||||
2788 | if test -z "$ac_aux_dir"; then | ||||
2789 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||||
2790 | fi | ||||
2791 | |||||
2792 | # These three variables are undocumented and unsupported, | ||||
2793 | # and are intended to be withdrawn in a future Autoconf release. | ||||
2794 | # They can cause serious problems if a builder's source tree is in a directory | ||||
2795 | # whose full name contains unusual characters. | ||||
2796 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||||
2797 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||||
2798 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||||
2799 | |||||
2800 | |||||
2801 | # Make sure we can run config.sub. | ||||
2802 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||||
2803 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||||
2804 | |||||
2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||||
2806 | $as_echo_n "checking build system type... " >&6; } | ||||
2807 | if ${ac_cv_build+:} false; then : | ||||
2808 | $as_echo_n "(cached) " >&6 | ||||
2809 | else | ||||
2810 | ac_build_alias=$build_alias | ||||
2811 | test "x$ac_build_alias" = x && | ||||
2812 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||||
2813 | test "x$ac_build_alias" = x && | ||||
2814 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||||
2815 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||||
2816 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||||
2817 | |||||
2818 | fi | ||||
2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||||
2820 | $as_echo "$ac_cv_build" >&6; } | ||||
2821 | case $ac_cv_build in | ||||
2822 | *-*-*) ;; | ||||
2823 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | ||||
2824 | esac | ||||
2825 | build=$ac_cv_build | ||||
2826 | ac_save_IFS=$IFS; IFS='-' | ||||
2827 | set x $ac_cv_build | ||||
2828 | shift | ||||
2829 | build_cpu=$1 | ||||
2830 | build_vendor=$2 | ||||
2831 | shift; shift | ||||
2832 | # Remember, the first character of IFS is used to create $*, | ||||
2833 | # except with old shells: | ||||
2834 | build_os=$* | ||||
2835 | IFS=$ac_save_IFS | ||||
2836 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||||
2837 | |||||
2838 | |||||
2839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||||
2840 | $as_echo_n "checking host system type... " >&6; } | ||||
2841 | if ${ac_cv_host+:} false; then : | ||||
2842 | $as_echo_n "(cached) " >&6 | ||||
2843 | else | ||||
2844 | if test "x$host_alias" = x; then | ||||
2845 | ac_cv_host=$ac_cv_build | ||||
2846 | else | ||||
2847 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||||
2848 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||||
2849 | fi | ||||
2850 | |||||
2851 | fi | ||||
2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||||
2853 | $as_echo "$ac_cv_host" >&6; } | ||||
2854 | case $ac_cv_host in | ||||
2855 | *-*-*) ;; | ||||
2856 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | ||||
2857 | esac | ||||
2858 | host=$ac_cv_host | ||||
2859 | ac_save_IFS=$IFS; IFS='-' | ||||
2860 | set x $ac_cv_host | ||||
2861 | shift | ||||
2862 | host_cpu=$1 | ||||
2863 | host_vendor=$2 | ||||
2864 | shift; shift | ||||
2865 | # Remember, the first character of IFS is used to create $*, | ||||
2866 | # except with old shells: | ||||
2867 | host_os=$* | ||||
2868 | IFS=$ac_save_IFS | ||||
2869 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||||
2870 | |||||
2871 | |||||
2872 | |||||
doko@python.org | a10e4a9 | 2013-01-25 17:45:12 | [diff] [blame] | 2873 | |
2874 | |||||
Ned Deily | fcbc246 | 2014-08-22 20:32:49 | [diff] [blame] | 2875 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile |
2876 | rm -f pybuilddir.txt | ||||
2877 | |||||
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2878 | for ac_prog in python$PACKAGE_VERSION python3 python |
2879 | do | ||||
2880 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
2881 | set dummy $ac_prog; ac_word=$2 | ||||
2882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
2883 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | a5c62a8 | 2017-05-03 16:21:48 | [diff] [blame] | 2884 | if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then : |
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2885 | $as_echo_n "(cached) " >&6 |
2886 | else | ||||
Victor Stinner | a5c62a8 | 2017-05-03 16:21:48 | [diff] [blame] | 2887 | if test -n "$PYTHON_FOR_REGEN"; then |
2888 | ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test. | ||||
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2889 | else |
2890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
2891 | for as_dir in $PATH | ||||
2892 | do | ||||
2893 | IFS=$as_save_IFS | ||||
2894 | test -z "$as_dir" && as_dir=. | ||||
2895 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
2896 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
Victor Stinner | a5c62a8 | 2017-05-03 16:21:48 | [diff] [blame] | 2897 | ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" |
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2899 | break 2 | ||||
2900 | fi | ||||
2901 | done | ||||
2902 | done | ||||
2903 | IFS=$as_save_IFS | ||||
2904 | |||||
2905 | fi | ||||
2906 | fi | ||||
Victor Stinner | a5c62a8 | 2017-05-03 16:21:48 | [diff] [blame] | 2907 | PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN |
2908 | if test -n "$PYTHON_FOR_REGEN"; then | ||||
2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 | ||||
2910 | $as_echo "$PYTHON_FOR_REGEN" >&6; } | ||||
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2911 | else |
2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
2913 | $as_echo "no" >&6; } | ||||
2914 | fi | ||||
2915 | |||||
2916 | |||||
Victor Stinner | a5c62a8 | 2017-05-03 16:21:48 | [diff] [blame] | 2917 | test -n "$PYTHON_FOR_REGEN" && break |
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2918 | done |
Victor Stinner | a5c62a8 | 2017-05-03 16:21:48 | [diff] [blame] | 2919 | test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" |
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2920 | |
Xavier de Gaye | fd0d593 | 2016-07-26 10:48:08 | [diff] [blame] | 2921 | |
2922 | |||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 2923 | if test "$cross_compiling" = yes; then |
2924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | ||||
2925 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | ||||
2926 | if test -z "$PYTHON_FOR_BUILD"; then | ||||
2927 | for interp in python$PACKAGE_VERSION python3 python; do | ||||
2928 | which $interp >/dev/null 2>&1 || continue | ||||
Xavier de Gaye | 4afd143 | 2016-07-07 16:00:22 | [diff] [blame] | 2929 | 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 18:42:45 | [diff] [blame] | 2930 | break |
2931 | fi | ||||
2932 | interp= | ||||
2933 | done | ||||
2934 | if test x$interp = x; then | ||||
2935 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | ||||
2936 | fi | ||||
2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | ||||
2938 | $as_echo "$interp" >&6; } | ||||
Xavier de Gaye | 92dec54 | 2016-09-11 20:22:24 | [diff] [blame] | 2939 | 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 18:42:45 | [diff] [blame] | 2940 | fi |
Christian Heimes | 954ac03 | 2012-12-12 12:10:21 | [diff] [blame] | 2941 | elif test "$cross_compiling" = maybe; then |
2942 | as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 | ||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 2943 | else |
2944 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | ||||
2945 | fi | ||||
2946 | |||||
2947 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2948 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 | [diff] [blame] | 2949 | if test "$prefix" != "/"; then |
2950 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` | ||||
2951 | fi | ||||
2952 | |||||
2953 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 2954 | |
2955 | |||||
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 | [diff] [blame] | 2956 | # We don't use PACKAGE_ variables, and they cause conflicts |
2957 | # with other autoconf-based packages that include Python.h | ||||
2958 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | ||||
2959 | rm confdefs.h | ||||
2960 | mv confdefs.h.new confdefs.h | ||||
2961 | |||||
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 | [diff] [blame] | 2962 | |
Ned Deily | 4829bc6 | 2016-09-12 21:29:04 | [diff] [blame] | 2963 | VERSION=3.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 | [diff] [blame] | 2964 | |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 | [diff] [blame] | 2965 | # Version number of Python's own shared library file. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 2966 | |
2967 | SOVERSION=1.0 | ||||
2968 | |||||
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 | [diff] [blame] | 2969 | # The later defininition of _XOPEN_SOURCE disables certain features |
2970 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | ||||
2971 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2972 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 | [diff] [blame] | 2973 | |
2974 | |||||
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 | [diff] [blame] | 2975 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
2976 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | ||||
2977 | # them. | ||||
2978 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2979 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 | [diff] [blame] | 2980 | |
2981 | |||||
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 | [diff] [blame] | 2982 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
2983 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | ||||
2984 | # them. | ||||
2985 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2986 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 | [diff] [blame] | 2987 | |
2988 | |||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 2989 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 2990 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
2991 | # them. | ||||
2992 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 2993 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 2994 | |
2995 | |||||
2996 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 2997 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 | [diff] [blame] | 2998 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 | [diff] [blame] | 2999 | # Arguments passed to configure. |
3000 | |||||
3001 | CONFIG_ARGS="$ac_configure_args" | ||||
3002 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
3004 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3005 | # Check whether --enable-universalsdk was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3006 | if test "${enable_universalsdk+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3007 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3008 | case $enableval in |
3009 | yes) | ||||
Miss Islington (bot) | 1d3395f | 2018-06-04 05:41:12 | [diff] [blame] | 3010 | # Locate the best usable SDK, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3011 | # information |
3012 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 3013 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3014 | then |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3015 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
3016 | if test ! -d "${enableval}" | ||||
3017 | then | ||||
3018 | enableval=/ | ||||
3019 | fi | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3020 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3021 | ;; |
3022 | esac | ||||
3023 | case $enableval in | ||||
3024 | no) | ||||
3025 | UNIVERSALSDK= | ||||
3026 | enable_universalsdk= | ||||
3027 | ;; | ||||
3028 | *) | ||||
3029 | UNIVERSALSDK=$enableval | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3030 | if test ! -d "${UNIVERSALSDK}" |
3031 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 3032 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3033 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3034 | ;; |
3035 | esac | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3036 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3037 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3038 | else |
3039 | |||||
3040 | UNIVERSALSDK= | ||||
3041 | enable_universalsdk= | ||||
3042 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3043 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3044 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3045 | if test -n "${UNIVERSALSDK}" |
3046 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
3048 | $as_echo "${UNIVERSALSDK}" >&6; } | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3049 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3051 | $as_echo "no" >&6; } | ||||
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 | [diff] [blame] | 3052 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3053 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3054 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 | [diff] [blame] | 3055 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 3056 | ARCH_RUN_32BIT="" |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 | [diff] [blame] | 3057 | |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3058 | # For backward compatibility reasons we prefer to select '32-bit' if available, |
3059 | # otherwise use 'intel' | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3060 | UNIVERSAL_ARCHS="32-bit" |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3061 | if test "`uname -s`" = "Darwin" |
3062 | then | ||||
3063 | if test -n "${UNIVERSALSDK}" | ||||
3064 | then | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 3065 | if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`" |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3066 | then |
3067 | UNIVERSAL_ARCHS="intel" | ||||
3068 | fi | ||||
3069 | fi | ||||
3070 | fi | ||||
3071 | |||||
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 | [diff] [blame] | 3072 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
3074 | $as_echo_n "checking for --with-universal-archs... " >&6; } | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3075 | |
3076 | # Check whether --with-universal-archs was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3077 | if test "${with_universal_archs+set}" = set; then : |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3078 | withval=$with_universal_archs; |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3079 | UNIVERSAL_ARCHS="$withval" |
3080 | |||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3081 | fi |
3082 | |||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 3083 | if test -n "${UNIVERSALSDK}" |
3084 | then | ||||
3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 | ||||
3086 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | ||||
3087 | else | ||||
3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
3089 | $as_echo "no" >&6; } | ||||
3090 | fi | ||||
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3091 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 3092 | |
3093 | # Check whether --with-framework-name was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3094 | if test "${with_framework_name+set}" = set; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 3095 | withval=$with_framework_name; |
3096 | PYTHONFRAMEWORK=${withval} | ||||
3097 | PYTHONFRAMEWORKDIR=${withval}.framework | ||||
3098 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | ||||
3099 | |||||
3100 | else | ||||
3101 | |||||
3102 | PYTHONFRAMEWORK=Python | ||||
3103 | PYTHONFRAMEWORKDIR=Python.framework | ||||
3104 | PYTHONFRAMEWORKIDENTIFIER=org.python.python | ||||
3105 | |||||
3106 | fi | ||||
3107 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3108 | # Check whether --enable-framework was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3109 | if test "${enable_framework+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3110 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3111 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3112 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3113 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 | [diff] [blame] | 3114 | esac |
3115 | case $enableval in | ||||
3116 | no) | ||||
3117 | PYTHONFRAMEWORK= | ||||
3118 | PYTHONFRAMEWORKDIR=no-framework | ||||
3119 | PYTHONFRAMEWORKPREFIX= | ||||
3120 | PYTHONFRAMEWORKINSTALLDIR= | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3121 | FRAMEWORKINSTALLFIRST= |
3122 | FRAMEWORKINSTALLLAST= | ||||
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3123 | FRAMEWORKALTINSTALLFIRST= |
3124 | FRAMEWORKALTINSTALLLAST= | ||||
Ned Deily | b8f944f | 2013-11-22 06:42:25 | [diff] [blame] | 3125 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3126 | if test "x${prefix}" = "xNONE"; then |
3127 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
3128 | else | ||||
3129 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3130 | fi | ||||
Jack Jansen | 127e56e | 2001-09-11 14:41:54 | [diff] [blame] | 3131 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3132 | ;; |
3133 | *) | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 3134 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 | [diff] [blame] | 3135 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3136 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 | [diff] [blame] | 3137 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 | [diff] [blame] | 3138 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
3139 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | ||||
Ned Deily | b8f944f | 2013-11-22 06:42:25 | [diff] [blame] | 3140 | FRAMEWORKPYTHONW="frameworkpythonw" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 3141 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3142 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3143 | if test "x${prefix}" = "xNONE" ; then |
3144 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 3145 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3146 | else |
3147 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3148 | fi | ||||
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 3149 | |
3150 | case "${enableval}" in | ||||
3151 | /System*) | ||||
3152 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3153 | if test "${prefix}" = "NONE" ; then | ||||
3154 | # See below | ||||
3155 | FRAMEWORKUNIXTOOLSPREFIX="/usr" | ||||
3156 | fi | ||||
3157 | ;; | ||||
3158 | |||||
3159 | /Library*) | ||||
3160 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3161 | ;; | ||||
3162 | |||||
3163 | */Library/Frameworks) | ||||
3164 | MDIR="`dirname "${enableval}"`" | ||||
3165 | MDIR="`dirname "${MDIR}"`" | ||||
3166 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | ||||
3167 | |||||
3168 | if test "${prefix}" = "NONE"; then | ||||
3169 | # User hasn't specified the | ||||
3170 | # --prefix option, but wants to install | ||||
3171 | # the framework in a non-default location, | ||||
3172 | # ensure that the compatibility links get | ||||
3173 | # installed relative to that prefix as well | ||||
3174 | # instead of in /usr/local. | ||||
3175 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | ||||
3176 | fi | ||||
3177 | ;; | ||||
3178 | |||||
3179 | *) | ||||
3180 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | ||||
3181 | ;; | ||||
3182 | esac | ||||
3183 | |||||
Jack Jansen | 127e56e | 2001-09-11 14:41:54 | [diff] [blame] | 3184 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3185 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 3186 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3187 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3188 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3189 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3190 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3191 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 3192 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
3193 | |||||
3194 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | ||||
3195 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3196 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3197 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 3198 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3199 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3200 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 | [diff] [blame] | 3201 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3202 | PYTHONFRAMEWORKPREFIX= |
3203 | PYTHONFRAMEWORKINSTALLDIR= | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3204 | FRAMEWORKINSTALLFIRST= |
3205 | FRAMEWORKINSTALLLAST= | ||||
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3206 | FRAMEWORKALTINSTALLFIRST= |
3207 | FRAMEWORKALTINSTALLLAST= | ||||
Ned Deily | b8f944f | 2013-11-22 06:42:25 | [diff] [blame] | 3208 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3209 | if test "x${prefix}" = "xNONE" ; then |
3210 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | ||||
3211 | else | ||||
3212 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | ||||
3213 | fi | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3214 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3215 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 | [diff] [blame] | 3216 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3217 | fi |
3218 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3219 | |
3220 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 3221 | |
3222 | |||||
3223 | |||||
3224 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3225 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 | [diff] [blame] | 3226 | |
3227 | |||||
3228 | |||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 3229 | |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 | [diff] [blame] | 3230 | |
Ned Deily | b8f944f | 2013-11-22 06:42:25 | [diff] [blame] | 3231 | |
INADA Naoki | a8f8d5b | 2017-06-28 15:31:53 | [diff] [blame] | 3232 | |
3233 | cat >>confdefs.h <<_ACEOF | ||||
INADA Naoki | 6b42eb1 | 2017-06-29 06:31:38 | [diff] [blame] | 3234 | #define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}" |
INADA Naoki | a8f8d5b | 2017-06-28 15:31:53 | [diff] [blame] | 3235 | _ACEOF |
3236 | |||||
3237 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3238 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 2b8733f | 2010-04-25 18:34:36 | [diff] [blame] | 3239 | ## AS_HELP_STRING([--with-dyld], |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 3240 | ## [Use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 3241 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3242 | # Set name for machine-dependent library files |
3243 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
3245 | $as_echo_n "checking MACHDEP... " >&6; } | ||||
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3246 | if test -z "$MACHDEP" |
3247 | then | ||||
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3248 | # avoid using uname for cross builds |
3249 | if test "$cross_compiling" = yes; then | ||||
doko@python.org | 44bbbda | 2013-01-25 13:44:00 | [diff] [blame] | 3250 | # ac_sys_system and ac_sys_release are used for setting |
3251 | # a lot of different things including 'define_xopen_source' | ||||
3252 | # in the case statement below. | ||||
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3253 | case "$host" in |
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 3254 | *-*-linux-android*) |
3255 | ac_sys_system=Linux-android | ||||
3256 | ;; | ||||
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3257 | *-*-linux*) |
3258 | ac_sys_system=Linux | ||||
3259 | ;; | ||||
3260 | *-*-cygwin*) | ||||
3261 | ac_sys_system=Cygwin | ||||
3262 | ;; | ||||
3263 | *) | ||||
3264 | # for now, limit cross builds to known configurations | ||||
3265 | MACHDEP="unknown" | ||||
3266 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | ||||
3267 | esac | ||||
3268 | ac_sys_release= | ||||
3269 | else | ||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 3270 | ac_sys_system=`uname -s` |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 3271 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 | [diff] [blame] | 3272 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 3273 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3274 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 3275 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3276 | fi |
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3277 | fi |
3278 | ac_md_system=`echo $ac_sys_system | | ||||
3279 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | ||||
3280 | ac_md_release=`echo $ac_sys_release | | ||||
3281 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | ||||
3282 | MACHDEP="$ac_md_system$ac_md_release" | ||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 3283 | |
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3284 | case $MACHDEP in |
Victor Stinner | 7209ff2 | 2011-08-20 22:00:16 | [diff] [blame] | 3285 | linux*) MACHDEP="linux";; |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 | [diff] [blame] | 3286 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 | [diff] [blame] | 3287 | darwin*) MACHDEP="darwin";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 | [diff] [blame] | 3288 | '') MACHDEP="unknown";; |
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 3289 | esac |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3290 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 | [diff] [blame] | 3291 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 3292 | |
3293 | if test "$cross_compiling" = yes; then | ||||
3294 | case "$host" in | ||||
3295 | *-*-linux*) | ||||
3296 | case "$host_cpu" in | ||||
3297 | arm*) | ||||
3298 | _host_cpu=arm | ||||
3299 | ;; | ||||
3300 | *) | ||||
3301 | _host_cpu=$host_cpu | ||||
3302 | esac | ||||
3303 | ;; | ||||
3304 | *-*-cygwin*) | ||||
3305 | _host_cpu= | ||||
3306 | ;; | ||||
3307 | *) | ||||
3308 | # for now, limit cross builds to known configurations | ||||
3309 | MACHDEP="unknown" | ||||
3310 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | ||||
3311 | esac | ||||
3312 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | ||||
3313 | fi | ||||
3314 | |||||
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 3315 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
3316 | # disable features if it is defined, without any means to access these | ||||
3317 | # features as extensions. For these systems, we skip the definition of | ||||
3318 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | ||||
3319 | # some feature, make sure there is no alternative way to access this | ||||
3320 | # feature. Also, when using wildcards, make sure you have verified the | ||||
3321 | # need for not defining _XOPEN_SOURCE on all systems matching the | ||||
3322 | # wildcard, and that the wildcard does not include future systems | ||||
3323 | # (which may remove their limitations). | ||||
3324 | case $ac_sys_system/$ac_sys_release in | ||||
3325 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | ||||
3326 | # even though select is a POSIX function. Reported by J. Ribbens. | ||||
Martin v. Löwis | 76bafc6 | 2003-10-03 13:47:44 | [diff] [blame] | 3327 | # 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 | [diff] [blame] | 3328 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
3329 | # OpenBSD 4.6, but is fixed in 4.7. | ||||
Charles-François Natali | 54ef40b | 2011-07-22 21:52:02 | [diff] [blame] | 3330 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 | [diff] [blame] | 3331 | define_xopen_source=no |
3332 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | ||||
3333 | # also defined. This can be overridden by defining _BSD_SOURCE | ||||
3334 | # As this has a different meaning on Linux, only define it on OpenBSD | ||||
3335 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3336 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 | [diff] [blame] | 3337 | |
3338 | ;; | ||||
Charles-François Natali | 54ef40b | 2011-07-22 21:52:02 | [diff] [blame] | 3339 | OpenBSD/*) |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 | [diff] [blame] | 3340 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
3341 | # also defined. This can be overridden by defining _BSD_SOURCE | ||||
3342 | # As this has a different meaning on Linux, only define it on OpenBSD | ||||
3343 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3344 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 | [diff] [blame] | 3345 | |
3346 | ;; | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 3347 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
3348 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | ||||
3349 | # Marc Recht | ||||
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 | [diff] [blame] | 3350 | 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 | [diff] [blame] | 3351 | define_xopen_source=no;; |
Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 | [diff] [blame] | 3352 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a |
3353 | # request to enable features supported by the standard as a request | ||||
3354 | # to disable features not supported by the standard. The best way | ||||
3355 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | ||||
3356 | # entirely and define __EXTENSIONS__ instead. | ||||
3357 | SunOS/*) | ||||
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 | [diff] [blame] | 3358 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 | [diff] [blame] | 3359 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
3360 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 3361 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 | [diff] [blame] | 3362 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 | [diff] [blame] | 3363 | define_xopen_source=no;; |
3364 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, | ||||
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 | [diff] [blame] | 3365 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 | [diff] [blame] | 3366 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 | [diff] [blame] | 3367 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 | [diff] [blame] | 3368 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
3369 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | ||||
3370 | # identifies itself as Darwin/7.* | ||||
3371 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | ||||
3372 | # disables platform specific features beyond repair. | ||||
3373 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | ||||
3374 | # has no effect, don't bother defining them | ||||
3375 | Darwin/[6789].*) | ||||
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 | [diff] [blame] | 3376 | define_xopen_source=no;; |
Miss Islington (bot) | cfbc759 | 2020-06-25 15:15:52 | [diff] [blame] | 3377 | Darwin/[12][0-9].*) |
Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 | [diff] [blame] | 3378 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 | [diff] [blame] | 3379 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
3380 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | ||||
3381 | # or has another value. By not (re)defining it, the defaults come in place. | ||||
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 | [diff] [blame] | 3382 | AIX/4) |
3383 | define_xopen_source=no;; | ||||
Trent Mick | c5625ba | 2004-08-25 23:59:39 | [diff] [blame] | 3384 | AIX/5) |
3385 | if test `uname -r` -eq 1; then | ||||
3386 | define_xopen_source=no | ||||
3387 | fi | ||||
3388 | ;; | ||||
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 | [diff] [blame] | 3389 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
3390 | # defining NI_NUMERICHOST. | ||||
3391 | QNX/6.3.2) | ||||
3392 | define_xopen_source=no | ||||
3393 | ;; | ||||
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 | [diff] [blame] | 3394 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 3395 | esac |
3396 | |||||
3397 | if test $define_xopen_source = yes | ||||
3398 | then | ||||
Victor Stinner | 14d098d | 2011-09-07 20:29:43 | [diff] [blame] | 3399 | # X/Open 7, incorporating POSIX.1-2008 |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 | [diff] [blame] | 3400 | |
Victor Stinner | 14d098d | 2011-09-07 20:29:43 | [diff] [blame] | 3401 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 3402 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 | [diff] [blame] | 3403 | |
3404 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | ||||
3405 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | ||||
3406 | # several APIs are not declared. Since this is also needed in some | ||||
3407 | # cases for HP-UX, we define it globally. | ||||
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 | [diff] [blame] | 3408 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3409 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 | [diff] [blame] | 3410 | |
3411 | |||||
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 | [diff] [blame] | 3412 | |
Victor Stinner | d169fdc | 2011-09-07 22:56:17 | [diff] [blame] | 3413 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 | [diff] [blame] | 3414 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 | [diff] [blame] | 3415 | fi |
3416 | |||||
Christian Heimes | 647cd87 | 2013-12-07 22:39:33 | [diff] [blame] | 3417 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE |
3418 | case $ac_sys_system in | ||||
Christian Heimes | b02bcae | 2013-12-08 14:21:08 | [diff] [blame] | 3419 | hp*|HP*) |
3420 | define_stdc_a1=yes;; | ||||
3421 | *) | ||||
3422 | define_stdc_a1=no;; | ||||
3423 | esac | ||||
3424 | |||||
3425 | if test $define_stdc_a1 = yes | ||||
3426 | then | ||||
Christian Heimes | 647cd87 | 2013-12-07 22:39:33 | [diff] [blame] | 3427 | |
3428 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h | ||||
3429 | |||||
Christian Heimes | b02bcae | 2013-12-08 14:21:08 | [diff] [blame] | 3430 | fi |
Christian Heimes | 647cd87 | 2013-12-07 22:39:33 | [diff] [blame] | 3431 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 3432 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
3433 | # it may influence the way we can build extensions, so distutils | ||||
3434 | # needs to check it | ||||
3435 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3436 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 3437 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 3438 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 3439 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 3440 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 | [diff] [blame] | 3441 | |
3442 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just | ||||
3443 | # for debug/optimization stuff. BASECFLAGS is for flags that are required | ||||
3444 | # just to get things to compile and link. Users are free to override OPT | ||||
3445 | # when running configure or make. The build should not break if they do. | ||||
3446 | # BASECFLAGS should generally not be messed with, however. | ||||
3447 | |||||
3448 | # XXX shouldn't some/most/all of this code be merged with the stuff later | ||||
3449 | # on that fiddles with OPT and BASECFLAGS? | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 |
3451 | $as_echo_n "checking for --without-gcc... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3452 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3453 | # Check whether --with-gcc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3454 | if test "${with_gcc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3455 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 3456 | case $withval in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 3457 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 3458 | without_gcc=yes;; |
3459 | yes) CC=gcc | ||||
3460 | without_gcc=no;; | ||||
3461 | *) CC=$withval | ||||
3462 | without_gcc=$withval;; | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 3463 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 3464 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3465 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 3466 | case $ac_sys_system in |
Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 | [diff] [blame] | 3467 | AIX*) CC=${CC:-xlc_r} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 | [diff] [blame] | 3468 | without_gcc=;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 3469 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 | [diff] [blame] | 3470 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3471 | fi |
3472 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 |
3474 | $as_echo "$without_gcc" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 3475 | |
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 3476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 |
3477 | $as_echo_n "checking for --with-icc... " >&6; } | ||||
3478 | |||||
3479 | # Check whether --with-icc was given. | ||||
3480 | if test "${with_icc+set}" = set; then : | ||||
3481 | withval=$with_icc; | ||||
3482 | case $withval in | ||||
3483 | no) CC=${CC:-cc} | ||||
3484 | with_icc=no;; | ||||
3485 | yes) CC=icc | ||||
3486 | CXX=icpc | ||||
3487 | with_icc=yes;; | ||||
3488 | *) CC=$withval | ||||
3489 | with_icc=$withval;; | ||||
3490 | esac | ||||
3491 | else | ||||
3492 | |||||
3493 | with_icc=no | ||||
3494 | fi | ||||
3495 | |||||
3496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 | ||||
3497 | $as_echo "$with_icc" >&6; } | ||||
3498 | |||||
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 | [diff] [blame] | 3499 | # If the user switches compilers, we can't believe the cache |
3500 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | ||||
3501 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 3502 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3503 | (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 | [diff] [blame] | 3504 | fi |
3505 | |||||
Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 | [diff] [blame] | 3506 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 |
3507 | # when the compiler supports them, but we don't always want -O2, and | ||||
3508 | # we set -g later. | ||||
3509 | if test -z "$CFLAGS"; then | ||||
3510 | CFLAGS= | ||||
3511 | fi | ||||
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3512 | |
3513 | if test "$ac_sys_system" = "Darwin" | ||||
3514 | then | ||||
3515 | # Compiler selection on MacOSX is more complicated than | ||||
Miss Islington (bot) | 1d3395f | 2018-06-04 05:41:12 | [diff] [blame] | 3516 | # AC_PROG_CC can handle, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3517 | # information |
3518 | if test -z "${CC}" | ||||
3519 | then | ||||
3520 | found_gcc= | ||||
3521 | found_clang= | ||||
3522 | as_save_IFS=$IFS; IFS=: | ||||
3523 | for as_dir in $PATH | ||||
3524 | do | ||||
3525 | IFS=$as_save_IFS | ||||
Ned Deily | 14aa00b | 2017-10-09 17:53:27 | [diff] [blame] | 3526 | if test -x "${as_dir}/gcc"; then |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3527 | if test -z "${found_gcc}"; then |
Ned Deily | 14aa00b | 2017-10-09 17:53:27 | [diff] [blame] | 3528 | found_gcc="${as_dir}/gcc" |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3529 | fi |
3530 | fi | ||||
Ned Deily | 14aa00b | 2017-10-09 17:53:27 | [diff] [blame] | 3531 | if test -x "${as_dir}/clang"; then |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3532 | if test -z "${found_clang}"; then |
Ned Deily | 14aa00b | 2017-10-09 17:53:27 | [diff] [blame] | 3533 | found_clang="${as_dir}/clang" |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 3534 | fi |
3535 | fi | ||||
3536 | done | ||||
3537 | IFS=$as_save_IFS | ||||
3538 | |||||
3539 | if test -n "$found_gcc" -a -n "$found_clang" | ||||
3540 | then | ||||
3541 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" | ||||
3542 | then | ||||
3543 | { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 | ||||
3544 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | ||||
3545 | CC="$found_clang" | ||||
3546 | CXX="$found_clang++" | ||||
3547 | fi | ||||
3548 | |||||
3549 | |||||
3550 | elif test -z "$found_gcc" -a -n "$found_clang" | ||||
3551 | then | ||||
3552 | { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 | ||||
3553 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | ||||
3554 | CC="$found_clang" | ||||
3555 | CXX="$found_clang++" | ||||
3556 | |||||
3557 | elif test -z "$found_gcc" -a -z "$found_clang" | ||||
3558 | then | ||||
3559 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | ||||
3560 | if test -n "${found_clang}" | ||||
3561 | then | ||||
3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 | ||||
3563 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | ||||
3564 | CC="${found_clang}" | ||||
3565 | CXX="`/usr/bin/xcrun -find clang++`" | ||||
3566 | |||||
3567 | # else: use default behaviour | ||||
3568 | fi | ||||
3569 | fi | ||||
3570 | fi | ||||
3571 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3572 | ac_ext=c |
3573 | ac_cpp='$CPP $CPPFLAGS' | ||||
3574 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
3575 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
3576 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
3577 | if test -n "$ac_tool_prefix"; then | ||||
3578 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||||
3579 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3581 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3582 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3583 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3584 | else |
3585 | if test -n "$CC"; then | ||||
3586 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3587 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3589 | for as_dir in $PATH | ||||
3590 | do | ||||
3591 | IFS=$as_save_IFS | ||||
3592 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3593 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3594 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3595 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3596 | $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 | [diff] [blame] | 3597 | break 2 |
3598 | fi | ||||
3599 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3600 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3601 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3602 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3603 | fi |
3604 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3605 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3606 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3608 | $as_echo "$CC" >&6; } | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3609 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3611 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3612 | fi |
3613 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3614 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3615 | fi |
3616 | if test -z "$ac_cv_prog_CC"; then | ||||
3617 | ac_ct_CC=$CC | ||||
3618 | # Extract the first word of "gcc", so it can be a program name with args. | ||||
3619 | set dummy gcc; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3621 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3622 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3623 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3624 | else |
3625 | if test -n "$ac_ct_CC"; then | ||||
3626 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||||
3627 | else | ||||
3628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
3629 | for as_dir in $PATH | ||||
3630 | do | ||||
3631 | IFS=$as_save_IFS | ||||
3632 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3633 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3634 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3635 | ac_cv_prog_ac_ct_CC="gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3636 | $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 | [diff] [blame] | 3637 | break 2 |
3638 | fi | ||||
3639 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3640 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3641 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3642 | |
3643 | fi | ||||
3644 | fi | ||||
3645 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||||
3646 | if test -n "$ac_ct_CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3648 | $as_echo "$ac_ct_CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3649 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3651 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3652 | fi |
3653 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3654 | if test "x$ac_ct_CC" = x; then |
3655 | CC="" | ||||
3656 | else | ||||
3657 | case $cross_compiling:$ac_tool_warned in | ||||
3658 | yes:) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3659 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3660 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3661 | ac_tool_warned=yes ;; |
3662 | esac | ||||
3663 | CC=$ac_ct_CC | ||||
3664 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3665 | else |
3666 | CC="$ac_cv_prog_CC" | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3667 | fi |
3668 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3669 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3670 | if test -n "$ac_tool_prefix"; then |
3671 | # 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 | [diff] [blame] | 3672 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3674 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3675 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3676 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3677 | else |
3678 | if test -n "$CC"; then | ||||
3679 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3680 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3682 | for as_dir in $PATH | ||||
3683 | do | ||||
3684 | IFS=$as_save_IFS | ||||
3685 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3686 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3687 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3688 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3689 | $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 | [diff] [blame] | 3690 | break 2 |
3691 | fi | ||||
3692 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3693 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3694 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3695 | |
3696 | fi | ||||
3697 | fi | ||||
3698 | CC=$ac_cv_prog_CC | ||||
3699 | if test -n "$CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3701 | $as_echo "$CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3702 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3704 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3705 | fi |
3706 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3707 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3708 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3709 | fi |
3710 | if test -z "$CC"; then | ||||
3711 | # Extract the first word of "cc", so it can be a program name with args. | ||||
3712 | set dummy cc; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3714 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3715 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3716 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3717 | else |
3718 | if test -n "$CC"; then | ||||
3719 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3720 | else | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3721 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3723 | for as_dir in $PATH | ||||
3724 | do | ||||
3725 | IFS=$as_save_IFS | ||||
3726 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3727 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3728 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3729 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3730 | ac_prog_rejected=yes | ||||
3731 | continue | ||||
3732 | fi | ||||
3733 | ac_cv_prog_CC="cc" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3734 | $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 | [diff] [blame] | 3735 | break 2 |
3736 | fi | ||||
3737 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3738 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3739 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3740 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3741 | if test $ac_prog_rejected = yes; then |
3742 | # We found a bogon in the path, so make sure we never use it. | ||||
3743 | set dummy $ac_cv_prog_CC | ||||
3744 | shift | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3745 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3746 | # We chose a different compiler from the bogus one. |
3747 | # However, it has the same basename, so the bogon will be chosen | ||||
3748 | # first if we set CC to just the basename; use the full file name. | ||||
3749 | shift | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 3750 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3751 | fi |
3752 | fi | ||||
3753 | fi | ||||
3754 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3755 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3756 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3758 | $as_echo "$CC" >&6; } | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3759 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3761 | $as_echo "no" >&6; } | ||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 3762 | fi |
3763 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3764 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3765 | fi |
3766 | if test -z "$CC"; then | ||||
3767 | if test -n "$ac_tool_prefix"; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3768 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3769 | do |
3770 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
3771 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3773 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3774 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3775 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 3776 | else |
3777 | if test -n "$CC"; then | ||||
3778 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||||
3779 | else | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3781 | for as_dir in $PATH | ||||
3782 | do | ||||
3783 | IFS=$as_save_IFS | ||||
3784 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3785 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3786 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3787 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3788 | $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 | [diff] [blame] | 3789 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 | [diff] [blame] | 3790 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3791 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3792 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3793 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3794 | |
3795 | fi | ||||
3796 | fi | ||||
3797 | CC=$ac_cv_prog_CC | ||||
3798 | if test -n "$CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3800 | $as_echo "$CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3801 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3803 | $as_echo "no" >&6; } | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3804 | fi |
3805 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3807 | test -n "$CC" && break |
3808 | done | ||||
3809 | fi | ||||
3810 | if test -z "$CC"; then | ||||
3811 | ac_ct_CC=$CC | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3812 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3813 | do |
3814 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
3815 | set dummy $ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3817 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3818 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3819 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3820 | else |
3821 | if test -n "$ac_ct_CC"; then | ||||
3822 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||||
3823 | else | ||||
3824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
3825 | for as_dir in $PATH | ||||
3826 | do | ||||
3827 | IFS=$as_save_IFS | ||||
3828 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3829 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 3830 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3831 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3832 | $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 | [diff] [blame] | 3833 | break 2 |
3834 | fi | ||||
3835 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3836 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3837 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3839 | fi |
3840 | fi | ||||
3841 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||||
3842 | if test -n "$ac_ct_CC"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3844 | $as_echo "$ac_ct_CC" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3845 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3847 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3848 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 3849 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3850 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3851 | test -n "$ac_ct_CC" && break |
3852 | done | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 3853 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3854 | if test "x$ac_ct_CC" = x; then |
3855 | CC="" | ||||
3856 | else | ||||
3857 | case $cross_compiling:$ac_tool_warned in | ||||
3858 | yes:) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3860 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3861 | ac_tool_warned=yes ;; |
3862 | esac | ||||
3863 | CC=$ac_ct_CC | ||||
3864 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3865 | fi |
3866 | |||||
3867 | fi | ||||
3868 | |||||
3869 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3870 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3871 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 3872 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3873 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3874 | |
3875 | # Provide some information about the compiler. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3876 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3877 | set X $ac_compile | ||||
3878 | ac_compiler=$2 | ||||
3879 | for ac_option in --version -v -V -qversion; do | ||||
3880 | { { ac_try="$ac_compiler $ac_option >&5" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3881 | case "(($ac_try" in |
3882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
3883 | *) ac_try_echo=$ac_try;; | ||||
3884 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3885 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3886 | $as_echo "$ac_try_echo"; } >&5 | ||||
3887 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3888 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3889 | if test -s conftest.err; then |
3890 | sed '10a\ | ||||
3891 | ... rest of stderr output deleted ... | ||||
3892 | 10q' conftest.err >conftest.er1 | ||||
3893 | cat conftest.er1 >&5 | ||||
3894 | fi | ||||
3895 | rm -f conftest.er1 conftest.err | ||||
3896 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
3897 | test $ac_status = 0; } | ||||
3898 | done | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3899 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 3901 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 3902 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3903 | int |
3904 | main () | ||||
3905 | { | ||||
3906 | |||||
3907 | ; | ||||
3908 | return 0; | ||||
3909 | } | ||||
3910 | _ACEOF | ||||
3911 | ac_clean_files_save=$ac_clean_files | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3912 | 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 | [diff] [blame] | 3913 | # Try to create an executable without -o first, disregard a.out. |
3914 | # It will help us diagnose broken compilers, and finding out an intuition | ||||
3915 | # of exeext. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3917 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||||
3918 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||||
3919 | |||||
3920 | # The possible output files: | ||||
3921 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||||
3922 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3923 | ac_rmfiles= |
3924 | for ac_file in $ac_files | ||||
3925 | do | ||||
3926 | case $ac_file in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3927 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3928 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3929 | esac | ||||
3930 | done | ||||
3931 | rm -f $ac_rmfiles | ||||
3932 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3933 | if { { ac_try="$ac_link_default" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3934 | case "(($ac_try" in |
3935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
3936 | *) ac_try_echo=$ac_try;; | ||||
3937 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3938 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3939 | $as_echo "$ac_try_echo"; } >&5 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3940 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3941 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3943 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3944 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3945 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||||
3946 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||||
3947 | # so that the user can short-circuit this test for compilers unknown to | ||||
3948 | # Autoconf. | ||||
3949 | for ac_file in $ac_files '' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 3950 | do |
3951 | test -f "$ac_file" || continue | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3952 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3953 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 3954 | ;; |
3955 | [ab].out ) | ||||
3956 | # We found the default executable, but exeext='' is most | ||||
3957 | # certainly right. | ||||
3958 | break;; | ||||
3959 | *.* ) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3960 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3961 | then :; else |
3962 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||||
3963 | fi | ||||
3964 | # We set ac_cv_exeext here because the later test for it is not | ||||
3965 | # safe: cross compilers may not add the suffix if given an `-o' | ||||
3966 | # argument, so we may need to know it at that point already. | ||||
3967 | # Even if this section looks crufty: it has the advantage of | ||||
3968 | # actually working. | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 3969 | break;; |
3970 | * ) | ||||
3971 | break;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 3972 | esac |
3973 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3974 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3975 | |||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 3976 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 3977 | ac_file='' |
3978 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3979 | if test -z "$ac_file"; then : |
3980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
3981 | $as_echo "no" >&6; } | ||||
3982 | $as_echo "$as_me: failed program was:" >&5 | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 3983 | sed 's/^/| /' conftest.$ac_ext >&5 |
3984 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3985 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3986 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 3987 | as_fn_error 77 "C compiler cannot create executables |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 3988 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3989 | else |
3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
3991 | $as_echo "yes" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 3992 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3994 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||||
3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||||
3996 | $as_echo "$ac_file" >&6; } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 3997 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 3998 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 3999 | 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 | [diff] [blame] | 4000 | ac_clean_files=$ac_clean_files_save |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4002 | $as_echo_n "checking for suffix of executables... " >&6; } | ||||
4003 | if { { ac_try="$ac_link" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4004 | case "(($ac_try" in |
4005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4006 | *) ac_try_echo=$ac_try;; | ||||
4007 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4008 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4009 | $as_echo "$ac_try_echo"; } >&5 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4010 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4011 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4012 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4013 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4014 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4015 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||||
4016 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||||
4017 | # `rm'. | ||||
4018 | for ac_file in conftest.exe conftest conftest.*; do | ||||
4019 | test -f "$ac_file" || continue | ||||
4020 | case $ac_file in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4021 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4022 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
4023 | break;; | ||||
4024 | * ) break;; | ||||
4025 | esac | ||||
4026 | done | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4027 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4028 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4029 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 4030 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4031 | See \`config.log' for more details" "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 4032 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4033 | rm -f conftest conftest$ac_cv_exeext |
4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||||
4035 | $as_echo "$ac_cv_exeext" >&6; } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4036 | |
4037 | rm -f conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4038 | EXEEXT=$ac_cv_exeext |
4039 | ac_exeext=$EXEEXT | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4041 | /* end confdefs.h. */ | ||||
4042 | #include <stdio.h> | ||||
4043 | int | ||||
4044 | main () | ||||
4045 | { | ||||
4046 | FILE *f = fopen ("conftest.out", "w"); | ||||
4047 | return ferror (f) || fclose (f) != 0; | ||||
4048 | |||||
4049 | ; | ||||
4050 | return 0; | ||||
4051 | } | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4052 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4053 | ac_clean_files="$ac_clean_files conftest.out" |
4054 | # Check that the compiler produces executables we can run. If not, either | ||||
4055 | # the compiler is broken, or we cross compile. | ||||
4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||||
4057 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||||
4058 | if test "$cross_compiling" != yes; then | ||||
4059 | { { ac_try="$ac_link" | ||||
4060 | case "(($ac_try" in | ||||
4061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4062 | *) ac_try_echo=$ac_try;; | ||||
4063 | esac | ||||
4064 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
4065 | $as_echo "$ac_try_echo"; } >&5 | ||||
4066 | (eval "$ac_link") 2>&5 | ||||
4067 | ac_status=$? | ||||
4068 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
4069 | test $ac_status = 0; } | ||||
4070 | if { ac_try='./conftest$ac_cv_exeext' | ||||
4071 | { { case "(($ac_try" in | ||||
4072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4073 | *) ac_try_echo=$ac_try;; | ||||
4074 | esac | ||||
4075 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||||
4076 | $as_echo "$ac_try_echo"; } >&5 | ||||
4077 | (eval "$ac_try") 2>&5 | ||||
4078 | ac_status=$? | ||||
4079 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||||
4080 | test $ac_status = 0; }; }; then | ||||
4081 | cross_compiling=no | ||||
4082 | else | ||||
4083 | if test "$cross_compiling" = maybe; then | ||||
4084 | cross_compiling=yes | ||||
4085 | else | ||||
4086 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
4087 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 4088 | as_fn_error $? "cannot run C compiled programs. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4089 | If you meant to cross compile, use \`--host'. |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4090 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4091 | fi |
4092 | fi | ||||
4093 | fi | ||||
4094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||||
4095 | $as_echo "$cross_compiling" >&6; } | ||||
4096 | |||||
4097 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||||
4098 | ac_clean_files=$ac_clean_files_save | ||||
4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||||
4100 | $as_echo_n "checking for suffix of object files... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4101 | if ${ac_cv_objext+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4102 | $as_echo_n "(cached) " >&6 |
4103 | else | ||||
4104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4105 | /* end confdefs.h. */ |
4106 | |||||
4107 | int | ||||
4108 | main () | ||||
4109 | { | ||||
4110 | |||||
4111 | ; | ||||
4112 | return 0; | ||||
4113 | } | ||||
4114 | _ACEOF | ||||
4115 | rm -f conftest.o conftest.obj | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4116 | if { { ac_try="$ac_compile" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4117 | case "(($ac_try" in |
4118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||||
4119 | *) ac_try_echo=$ac_try;; | ||||
4120 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4121 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4122 | $as_echo "$ac_try_echo"; } >&5 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4123 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4124 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4125 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4126 | test $ac_status = 0; }; then : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4127 | for ac_file in conftest.o conftest.obj conftest.*; do |
4128 | test -f "$ac_file" || continue; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4129 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4130 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4131 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4132 | break;; | ||||
4133 | esac | ||||
4134 | done | ||||
4135 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4136 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4137 | sed 's/^/| /' conftest.$ac_ext >&5 |
4138 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4139 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4140 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 4141 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4142 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4143 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 4144 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4145 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4147 | $as_echo "$ac_cv_objext" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4148 | OBJEXT=$ac_cv_objext |
4149 | ac_objext=$OBJEXT | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4151 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4152 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4153 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4154 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4156 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4158 | int |
4159 | main () | ||||
4160 | { | ||||
4161 | #ifndef __GNUC__ | ||||
4162 | choke me | ||||
4163 | #endif | ||||
4164 | |||||
4165 | ; | ||||
4166 | return 0; | ||||
4167 | } | ||||
4168 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4169 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4170 | ac_compiler_gnu=yes |
4171 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4172 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4173 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4175 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4176 | |||||
4177 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4179 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||||
4180 | if test $ac_compiler_gnu = yes; then | ||||
4181 | GCC=yes | ||||
4182 | else | ||||
4183 | GCC= | ||||
4184 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4185 | ac_test_CFLAGS=${CFLAGS+set} |
4186 | ac_save_CFLAGS=$CFLAGS | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4188 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4189 | if ${ac_cv_prog_cc_g+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4190 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4191 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4192 | ac_save_c_werror_flag=$ac_c_werror_flag |
4193 | ac_c_werror_flag=yes | ||||
4194 | ac_cv_prog_cc_g=no | ||||
4195 | CFLAGS="-g" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4197 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4199 | int |
4200 | main () | ||||
4201 | { | ||||
4202 | |||||
4203 | ; | ||||
4204 | return 0; | ||||
4205 | } | ||||
4206 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4207 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 | [diff] [blame] | 4208 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4209 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4210 | CFLAGS="" |
4211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4212 | /* end confdefs.h. */ |
4213 | |||||
4214 | int | ||||
4215 | main () | ||||
4216 | { | ||||
4217 | |||||
4218 | ; | ||||
4219 | return 0; | ||||
4220 | } | ||||
4221 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4222 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4223 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4224 | else |
4225 | ac_c_werror_flag=$ac_save_c_werror_flag | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4226 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4228 | /* end confdefs.h. */ |
4229 | |||||
4230 | int | ||||
4231 | main () | ||||
4232 | { | ||||
4233 | |||||
4234 | ; | ||||
4235 | return 0; | ||||
4236 | } | ||||
4237 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4238 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4239 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 4240 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4242 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4244 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4246 | ac_c_werror_flag=$ac_save_c_werror_flag | ||||
4247 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4249 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 4250 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4251 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 4252 | elif test $ac_cv_prog_cc_g = yes; then |
4253 | if test "$GCC" = yes; then | ||||
Guido van Rossum | f78abae | 1997-01-21 22:02:36 | [diff] [blame] | 4254 | CFLAGS="-g -O2" |
4255 | else | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 4256 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4257 | fi |
4258 | else | ||||
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 | [diff] [blame] | 4259 | if test "$GCC" = yes; then |
4260 | CFLAGS="-O2" | ||||
4261 | else | ||||
4262 | CFLAGS= | ||||
4263 | fi | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4264 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4266 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4267 | if ${ac_cv_prog_cc_c89+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4268 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4269 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4270 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4271 | ac_save_CC=$CC |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4273 | /* end confdefs.h. */ |
4274 | #include <stdarg.h> | ||||
4275 | #include <stdio.h> | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 4276 | struct stat; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4277 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4278 | struct buf { int x; }; | ||||
4279 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||||
4280 | static char *e (p, i) | ||||
4281 | char **p; | ||||
4282 | int i; | ||||
4283 | { | ||||
4284 | return p[i]; | ||||
4285 | } | ||||
4286 | static char *f (char * (*g) (char **, int), char **p, ...) | ||||
4287 | { | ||||
4288 | char *s; | ||||
4289 | va_list v; | ||||
4290 | va_start (v,p); | ||||
4291 | s = g (p, va_arg (v,int)); | ||||
4292 | va_end (v); | ||||
4293 | return s; | ||||
4294 | } | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 4295 | |
4296 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||||
4297 | function prototypes and stuff, but not '\xHH' hex character constants. | ||||
4298 | These don't provoke an error unfortunately, instead are silently treated | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4299 | as 'x'. The following induces an error, until -std is added to get |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 4300 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4301 | array size at least. It's necessary to write '\x00'==0 to get something | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4302 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 4303 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4304 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4305 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4306 | inside strings and character constants. */ | ||||
4307 | #define FOO(x) 'x' | ||||
4308 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||||
4309 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4310 | int test (int i, double x); |
4311 | struct s1 {int (*f) (int a);}; | ||||
4312 | struct s2 {int (*f) (double a);}; | ||||
4313 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||||
4314 | int argc; | ||||
4315 | char **argv; | ||||
4316 | int | ||||
4317 | main () | ||||
4318 | { | ||||
4319 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||||
4320 | ; | ||||
4321 | return 0; | ||||
4322 | } | ||||
4323 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4324 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4325 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4326 | do |
4327 | CC="$ac_save_CC $ac_arg" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4328 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4329 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4330 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4331 | rm -f core conftest.err conftest.$ac_objext |
4332 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4333 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4334 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4335 | CC=$ac_save_CC |
4336 | |||||
4337 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4338 | # AC_CACHE_VAL |
4339 | case "x$ac_cv_prog_cc_c89" in | ||||
4340 | x) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4342 | $as_echo "none needed" >&6; } ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4343 | xno) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4345 | $as_echo "unsupported" >&6; } ;; | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4346 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4347 | CC="$CC $ac_cv_prog_cc_c89" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
4349 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4350 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4351 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4352 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4353 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 4354 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 4355 | ac_ext=c |
4356 | ac_cpp='$CPP $CPPFLAGS' | ||||
4357 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4358 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4359 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 4360 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 4361 | ac_ext=c |
4362 | ac_cpp='$CPP $CPPFLAGS' | ||||
4363 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4364 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4365 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||||
4367 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||||
4368 | # On Suns, sometimes $CPP names a directory. | ||||
4369 | if test -n "$CPP" && test -d "$CPP"; then | ||||
4370 | CPP= | ||||
4371 | fi | ||||
4372 | if test -z "$CPP"; then | ||||
4373 | if ${ac_cv_prog_CPP+:} false; then : | ||||
4374 | $as_echo_n "(cached) " >&6 | ||||
4375 | else | ||||
4376 | # Double quotes because CPP needs to be expanded | ||||
4377 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||||
4378 | do | ||||
4379 | ac_preproc_ok=false | ||||
4380 | for ac_c_preproc_warn_flag in '' yes | ||||
4381 | do | ||||
4382 | # Use a header file that comes with gcc, so configuring glibc | ||||
4383 | # with a fresh cross-compiler works. | ||||
4384 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||||
4385 | # <limits.h> exists even on freestanding compilers. | ||||
4386 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||||
4387 | # not just through cpp. "Syntax error" is here to catch this case. | ||||
4388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4389 | /* end confdefs.h. */ | ||||
4390 | #ifdef __STDC__ | ||||
4391 | # include <limits.h> | ||||
4392 | #else | ||||
4393 | # include <assert.h> | ||||
4394 | #endif | ||||
4395 | Syntax error | ||||
4396 | _ACEOF | ||||
4397 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4398 | |||||
4399 | else | ||||
4400 | # Broken: fails on valid input. | ||||
4401 | continue | ||||
4402 | fi | ||||
4403 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4404 | |||||
4405 | # OK, works on sane cases. Now check whether nonexistent headers | ||||
4406 | # can be detected and how. | ||||
4407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4408 | /* end confdefs.h. */ | ||||
4409 | #include <ac_nonexistent.h> | ||||
4410 | _ACEOF | ||||
4411 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4412 | # Broken: success on invalid input. | ||||
4413 | continue | ||||
4414 | else | ||||
4415 | # Passes both tests. | ||||
4416 | ac_preproc_ok=: | ||||
4417 | break | ||||
4418 | fi | ||||
4419 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4420 | |||||
4421 | done | ||||
4422 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||||
4423 | rm -f conftest.i conftest.err conftest.$ac_ext | ||||
4424 | if $ac_preproc_ok; then : | ||||
4425 | break | ||||
4426 | fi | ||||
4427 | |||||
4428 | done | ||||
4429 | ac_cv_prog_CPP=$CPP | ||||
4430 | |||||
4431 | fi | ||||
4432 | CPP=$ac_cv_prog_CPP | ||||
4433 | else | ||||
4434 | ac_cv_prog_CPP=$CPP | ||||
4435 | fi | ||||
4436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||||
4437 | $as_echo "$CPP" >&6; } | ||||
4438 | ac_preproc_ok=false | ||||
4439 | for ac_c_preproc_warn_flag in '' yes | ||||
4440 | do | ||||
4441 | # Use a header file that comes with gcc, so configuring glibc | ||||
4442 | # with a fresh cross-compiler works. | ||||
4443 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||||
4444 | # <limits.h> exists even on freestanding compilers. | ||||
4445 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||||
4446 | # not just through cpp. "Syntax error" is here to catch this case. | ||||
4447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4448 | /* end confdefs.h. */ | ||||
4449 | #ifdef __STDC__ | ||||
4450 | # include <limits.h> | ||||
4451 | #else | ||||
4452 | # include <assert.h> | ||||
4453 | #endif | ||||
4454 | Syntax error | ||||
4455 | _ACEOF | ||||
4456 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4457 | |||||
4458 | else | ||||
4459 | # Broken: fails on valid input. | ||||
4460 | continue | ||||
4461 | fi | ||||
4462 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4463 | |||||
4464 | # OK, works on sane cases. Now check whether nonexistent headers | ||||
4465 | # can be detected and how. | ||||
4466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
4467 | /* end confdefs.h. */ | ||||
4468 | #include <ac_nonexistent.h> | ||||
4469 | _ACEOF | ||||
4470 | if ac_fn_c_try_cpp "$LINENO"; then : | ||||
4471 | # Broken: success on invalid input. | ||||
4472 | continue | ||||
4473 | else | ||||
4474 | # Passes both tests. | ||||
4475 | ac_preproc_ok=: | ||||
4476 | break | ||||
4477 | fi | ||||
4478 | rm -f conftest.err conftest.i conftest.$ac_ext | ||||
4479 | |||||
4480 | done | ||||
4481 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||||
4482 | rm -f conftest.i conftest.err conftest.$ac_ext | ||||
4483 | if $ac_preproc_ok; then : | ||||
4484 | |||||
4485 | else | ||||
4486 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
4487 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
4488 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||||
4489 | See \`config.log' for more details" "$LINENO" 5; } | ||||
4490 | fi | ||||
4491 | |||||
4492 | ac_ext=c | ||||
4493 | ac_cpp='$CPP $CPPFLAGS' | ||||
4494 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
4495 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||||
4496 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
4497 | |||||
4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||||
4499 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||||
4500 | if ${ac_cv_path_GREP+:} false; then : | ||||
4501 | $as_echo_n "(cached) " >&6 | ||||
4502 | else | ||||
4503 | if test -z "$GREP"; then | ||||
4504 | ac_path_GREP_found=false | ||||
4505 | # Loop through the user's path and test for each of PROGNAME-LIST | ||||
4506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4507 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||||
4508 | do | ||||
4509 | IFS=$as_save_IFS | ||||
4510 | test -z "$as_dir" && as_dir=. | ||||
4511 | for ac_prog in grep ggrep; do | ||||
4512 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
4513 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||||
4514 | as_fn_executable_p "$ac_path_GREP" || continue | ||||
4515 | # Check for GNU ac_path_GREP and select it if it is found. | ||||
4516 | # Check for GNU $ac_path_GREP | ||||
4517 | case `"$ac_path_GREP" --version 2>&1` in | ||||
4518 | *GNU*) | ||||
4519 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||||
4520 | *) | ||||
4521 | ac_count=0 | ||||
4522 | $as_echo_n 0123456789 >"conftest.in" | ||||
4523 | while : | ||||
4524 | do | ||||
4525 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
4526 | mv "conftest.tmp" "conftest.in" | ||||
4527 | cp "conftest.in" "conftest.nl" | ||||
4528 | $as_echo 'GREP' >> "conftest.nl" | ||||
4529 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||||
4530 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
4531 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||||
4532 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||||
4533 | # Best one so far, save it but keep looking for a better one | ||||
4534 | ac_cv_path_GREP="$ac_path_GREP" | ||||
4535 | ac_path_GREP_max=$ac_count | ||||
4536 | fi | ||||
4537 | # 10*(2^10) chars as input seems more than enough | ||||
4538 | test $ac_count -gt 10 && break | ||||
4539 | done | ||||
4540 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
4541 | esac | ||||
4542 | |||||
4543 | $ac_path_GREP_found && break 3 | ||||
4544 | done | ||||
4545 | done | ||||
4546 | done | ||||
4547 | IFS=$as_save_IFS | ||||
4548 | if test -z "$ac_cv_path_GREP"; then | ||||
4549 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||||
4550 | fi | ||||
4551 | else | ||||
4552 | ac_cv_path_GREP=$GREP | ||||
4553 | fi | ||||
4554 | |||||
4555 | fi | ||||
4556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||||
4557 | $as_echo "$ac_cv_path_GREP" >&6; } | ||||
4558 | GREP="$ac_cv_path_GREP" | ||||
4559 | |||||
4560 | |||||
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 4561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4562 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||||
4563 | if ${ac_cv_path_SED+:} false; then : | ||||
4564 | $as_echo_n "(cached) " >&6 | ||||
4565 | else | ||||
4566 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||||
4567 | for ac_i in 1 2 3 4 5 6 7; do | ||||
4568 | ac_script="$ac_script$as_nl$ac_script" | ||||
4569 | done | ||||
4570 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||||
4571 | { ac_script=; unset ac_script;} | ||||
4572 | if test -z "$SED"; then | ||||
4573 | ac_path_SED_found=false | ||||
4574 | # Loop through the user's path and test for each of PROGNAME-LIST | ||||
4575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4576 | for as_dir in $PATH | ||||
4577 | do | ||||
4578 | IFS=$as_save_IFS | ||||
4579 | test -z "$as_dir" && as_dir=. | ||||
4580 | for ac_prog in sed gsed; do | ||||
4581 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
4582 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||||
4583 | as_fn_executable_p "$ac_path_SED" || continue | ||||
4584 | # Check for GNU ac_path_SED and select it if it is found. | ||||
4585 | # Check for GNU $ac_path_SED | ||||
4586 | case `"$ac_path_SED" --version 2>&1` in | ||||
4587 | *GNU*) | ||||
4588 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||||
4589 | *) | ||||
4590 | ac_count=0 | ||||
4591 | $as_echo_n 0123456789 >"conftest.in" | ||||
4592 | while : | ||||
4593 | do | ||||
4594 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
4595 | mv "conftest.tmp" "conftest.in" | ||||
4596 | cp "conftest.in" "conftest.nl" | ||||
4597 | $as_echo '' >> "conftest.nl" | ||||
4598 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||||
4599 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
4600 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||||
4601 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||||
4602 | # Best one so far, save it but keep looking for a better one | ||||
4603 | ac_cv_path_SED="$ac_path_SED" | ||||
4604 | ac_path_SED_max=$ac_count | ||||
4605 | fi | ||||
4606 | # 10*(2^10) chars as input seems more than enough | ||||
4607 | test $ac_count -gt 10 && break | ||||
4608 | done | ||||
4609 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
4610 | esac | ||||
4611 | |||||
4612 | $ac_path_SED_found && break 3 | ||||
4613 | done | ||||
4614 | done | ||||
4615 | done | ||||
4616 | IFS=$as_save_IFS | ||||
4617 | if test -z "$ac_cv_path_SED"; then | ||||
4618 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||||
4619 | fi | ||||
4620 | else | ||||
4621 | ac_cv_path_SED=$SED | ||||
4622 | fi | ||||
4623 | |||||
4624 | fi | ||||
4625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | ||||
4626 | $as_echo "$ac_cv_path_SED" >&6; } | ||||
4627 | SED="$ac_cv_path_SED" | ||||
4628 | rm -f conftest.sed | ||||
4629 | |||||
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 | [diff] [blame] | 4630 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4631 | |
4632 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
4634 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4635 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4636 | # Check whether --with-cxx_main was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4637 | if test "${with_cxx_main+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4638 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4639 | |
4640 | case $withval in | ||||
4641 | no) with_cxx_main=no | ||||
4642 | MAINCC='$(CC)';; | ||||
4643 | yes) with_cxx_main=yes | ||||
4644 | MAINCC='$(CXX)';; | ||||
4645 | *) with_cxx_main=yes | ||||
4646 | MAINCC=$withval | ||||
4647 | if test -z "$CXX" | ||||
4648 | then | ||||
4649 | CXX=$withval | ||||
4650 | fi;; | ||||
4651 | esac | ||||
4652 | else | ||||
4653 | |||||
4654 | with_cxx_main=no | ||||
4655 | MAINCC='$(CC)' | ||||
4656 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4657 | fi |
4658 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
4660 | $as_echo "$with_cxx_main" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4661 | |
4662 | preset_cxx="$CXX" | ||||
4663 | if test -z "$CXX" | ||||
4664 | then | ||||
4665 | case "$CC" in | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4666 | gcc) if test -n "$ac_tool_prefix"; then |
4667 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | ||||
4668 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | ||||
4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4670 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4671 | if ${ac_cv_path_CXX+:} false; then : | ||||
4672 | $as_echo_n "(cached) " >&6 | ||||
4673 | else | ||||
4674 | case $CXX in | ||||
4675 | [\\/]* | ?:[\\/]*) | ||||
4676 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4677 | ;; | ||||
4678 | *) | ||||
4679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4680 | for as_dir in notfound | ||||
4681 | do | ||||
4682 | IFS=$as_save_IFS | ||||
4683 | test -z "$as_dir" && as_dir=. | ||||
4684 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 4685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4686 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
4687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4688 | break 2 | ||||
4689 | fi | ||||
4690 | done | ||||
4691 | done | ||||
4692 | IFS=$as_save_IFS | ||||
4693 | |||||
4694 | ;; | ||||
4695 | esac | ||||
4696 | fi | ||||
4697 | CXX=$ac_cv_path_CXX | ||||
4698 | if test -n "$CXX"; then | ||||
4699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||||
4700 | $as_echo "$CXX" >&6; } | ||||
4701 | else | ||||
4702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4703 | $as_echo "no" >&6; } | ||||
4704 | fi | ||||
4705 | |||||
4706 | |||||
4707 | fi | ||||
4708 | if test -z "$ac_cv_path_CXX"; then | ||||
4709 | ac_pt_CXX=$CXX | ||||
4710 | # Extract the first word of "g++", so it can be a program name with args. | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4711 | set dummy g++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4713 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4714 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
4715 | $as_echo_n "(cached) " >&6 | ||||
4716 | else | ||||
4717 | case $ac_pt_CXX in | ||||
4718 | [\\/]* | ?:[\\/]*) | ||||
4719 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
4720 | ;; | ||||
4721 | *) | ||||
4722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4723 | for as_dir in notfound | ||||
4724 | do | ||||
4725 | IFS=$as_save_IFS | ||||
4726 | test -z "$as_dir" && as_dir=. | ||||
4727 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 4728 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4729 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
4730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4731 | break 2 | ||||
4732 | fi | ||||
4733 | done | ||||
4734 | done | ||||
4735 | IFS=$as_save_IFS | ||||
4736 | |||||
4737 | ;; | ||||
4738 | esac | ||||
4739 | fi | ||||
4740 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
4741 | if test -n "$ac_pt_CXX"; then | ||||
4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
4743 | $as_echo "$ac_pt_CXX" >&6; } | ||||
4744 | else | ||||
4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4746 | $as_echo "no" >&6; } | ||||
4747 | fi | ||||
4748 | |||||
4749 | if test "x$ac_pt_CXX" = x; then | ||||
4750 | CXX="g++" | ||||
4751 | else | ||||
4752 | case $cross_compiling:$ac_tool_warned in | ||||
4753 | yes:) | ||||
4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
4755 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
4756 | ac_tool_warned=yes ;; | ||||
4757 | esac | ||||
4758 | CXX=$ac_pt_CXX | ||||
4759 | fi | ||||
4760 | else | ||||
4761 | CXX="$ac_cv_path_CXX" | ||||
4762 | fi | ||||
4763 | ;; | ||||
4764 | cc) if test -n "$ac_tool_prefix"; then | ||||
4765 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | ||||
4766 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | ||||
4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4768 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 4769 | if ${ac_cv_path_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4770 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4771 | else |
4772 | case $CXX in | ||||
4773 | [\\/]* | ?:[\\/]*) | ||||
4774 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4775 | ;; | ||||
4776 | *) | ||||
4777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4778 | for as_dir in notfound | ||||
4779 | do | ||||
4780 | IFS=$as_save_IFS | ||||
4781 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4782 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 4783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4784 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4785 | $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 | [diff] [blame] | 4786 | break 2 |
4787 | fi | ||||
4788 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4789 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4790 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4791 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4792 | ;; |
4793 | esac | ||||
4794 | fi | ||||
4795 | CXX=$ac_cv_path_CXX | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 4796 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4798 | $as_echo "$CXX" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 4799 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4801 | $as_echo "no" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 4802 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4803 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4804 | |
4805 | fi | ||||
4806 | if test -z "$ac_cv_path_CXX"; then | ||||
4807 | ac_pt_CXX=$CXX | ||||
4808 | # Extract the first word of "c++", so it can be a program name with args. | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4809 | set dummy c++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4811 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4812 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4813 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4814 | else |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4815 | case $ac_pt_CXX in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4816 | [\\/]* | ?:[\\/]*) |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4817 | 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 | [diff] [blame] | 4818 | ;; |
4819 | *) | ||||
4820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4821 | for as_dir in notfound | ||||
4822 | do | ||||
4823 | IFS=$as_save_IFS | ||||
4824 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4825 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 4826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4827 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4828 | $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 | [diff] [blame] | 4829 | break 2 |
4830 | fi | ||||
4831 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4832 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4833 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4834 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4835 | ;; |
4836 | esac | ||||
4837 | fi | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4838 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
4839 | if test -n "$ac_pt_CXX"; then | ||||
4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
4841 | $as_echo "$ac_pt_CXX" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 4842 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4844 | $as_echo "no" >&6; } | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 4845 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 4846 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4847 | if test "x$ac_pt_CXX" = x; then |
4848 | CXX="c++" | ||||
4849 | else | ||||
4850 | case $cross_compiling:$ac_tool_warned in | ||||
4851 | yes:) | ||||
4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
4853 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
4854 | ac_tool_warned=yes ;; | ||||
4855 | esac | ||||
4856 | CXX=$ac_pt_CXX | ||||
4857 | fi | ||||
4858 | else | ||||
4859 | CXX="$ac_cv_path_CXX" | ||||
4860 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 4861 | ;; |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4862 | clang|*/clang) if test -n "$ac_tool_prefix"; then |
4863 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | ||||
4864 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | ||||
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 4865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4866 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4867 | if ${ac_cv_path_CXX+:} false; then : | ||||
4868 | $as_echo_n "(cached) " >&6 | ||||
4869 | else | ||||
4870 | case $CXX in | ||||
4871 | [\\/]* | ?:[\\/]*) | ||||
4872 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4873 | ;; | ||||
4874 | *) | ||||
4875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4876 | for as_dir in notfound | ||||
4877 | do | ||||
4878 | IFS=$as_save_IFS | ||||
4879 | test -z "$as_dir" && as_dir=. | ||||
4880 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 4881 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 4882 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
4883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4884 | break 2 | ||||
4885 | fi | ||||
4886 | done | ||||
4887 | done | ||||
4888 | IFS=$as_save_IFS | ||||
4889 | |||||
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 4890 | ;; |
4891 | esac | ||||
4892 | fi | ||||
4893 | CXX=$ac_cv_path_CXX | ||||
4894 | if test -n "$CXX"; then | ||||
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||||
4896 | $as_echo "$CXX" >&6; } | ||||
4897 | else | ||||
4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4899 | $as_echo "no" >&6; } | ||||
4900 | fi | ||||
4901 | |||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4902 | |
4903 | fi | ||||
4904 | if test -z "$ac_cv_path_CXX"; then | ||||
4905 | ac_pt_CXX=$CXX | ||||
4906 | # Extract the first word of "clang++", so it can be a program name with args. | ||||
4907 | set dummy clang++; ac_word=$2 | ||||
4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4909 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4910 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
4911 | $as_echo_n "(cached) " >&6 | ||||
4912 | else | ||||
4913 | case $ac_pt_CXX in | ||||
4914 | [\\/]* | ?:[\\/]*) | ||||
4915 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
4916 | ;; | ||||
4917 | *) | ||||
4918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4919 | for as_dir in notfound | ||||
4920 | do | ||||
4921 | IFS=$as_save_IFS | ||||
4922 | test -z "$as_dir" && as_dir=. | ||||
4923 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 4924 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 4925 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
4926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4927 | break 2 | ||||
4928 | fi | ||||
4929 | done | ||||
4930 | done | ||||
4931 | IFS=$as_save_IFS | ||||
4932 | |||||
4933 | ;; | ||||
4934 | esac | ||||
4935 | fi | ||||
4936 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
4937 | if test -n "$ac_pt_CXX"; then | ||||
4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
4939 | $as_echo "$ac_pt_CXX" >&6; } | ||||
4940 | else | ||||
4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4942 | $as_echo "no" >&6; } | ||||
4943 | fi | ||||
4944 | |||||
4945 | if test "x$ac_pt_CXX" = x; then | ||||
4946 | CXX="clang++" | ||||
4947 | else | ||||
4948 | case $cross_compiling:$ac_tool_warned in | ||||
4949 | yes:) | ||||
4950 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
4951 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
4952 | ac_tool_warned=yes ;; | ||||
4953 | esac | ||||
4954 | CXX=$ac_pt_CXX | ||||
4955 | fi | ||||
4956 | else | ||||
4957 | CXX="$ac_cv_path_CXX" | ||||
4958 | fi | ||||
Ned Deily | cbfb9a5 | 2012-06-23 23:02:19 | [diff] [blame] | 4959 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 4960 | icc|*/icc) if test -n "$ac_tool_prefix"; then |
4961 | # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. | ||||
4962 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 | ||||
4963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
4964 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
4965 | if ${ac_cv_path_CXX+:} false; then : | ||||
4966 | $as_echo_n "(cached) " >&6 | ||||
4967 | else | ||||
4968 | case $CXX in | ||||
4969 | [\\/]* | ?:[\\/]*) | ||||
4970 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | ||||
4971 | ;; | ||||
4972 | *) | ||||
4973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
4974 | for as_dir in notfound | ||||
4975 | do | ||||
4976 | IFS=$as_save_IFS | ||||
4977 | test -z "$as_dir" && as_dir=. | ||||
4978 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
4979 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
4980 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
4981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
4982 | break 2 | ||||
4983 | fi | ||||
4984 | done | ||||
4985 | done | ||||
4986 | IFS=$as_save_IFS | ||||
4987 | |||||
4988 | ;; | ||||
4989 | esac | ||||
4990 | fi | ||||
4991 | CXX=$ac_cv_path_CXX | ||||
4992 | if test -n "$CXX"; then | ||||
4993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||||
4994 | $as_echo "$CXX" >&6; } | ||||
4995 | else | ||||
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
4997 | $as_echo "no" >&6; } | ||||
4998 | fi | ||||
4999 | |||||
5000 | |||||
5001 | fi | ||||
5002 | if test -z "$ac_cv_path_CXX"; then | ||||
5003 | ac_pt_CXX=$CXX | ||||
5004 | # Extract the first word of "icpc", so it can be a program name with args. | ||||
5005 | set dummy icpc; ac_word=$2 | ||||
5006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
5007 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
5008 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | ||||
5009 | $as_echo_n "(cached) " >&6 | ||||
5010 | else | ||||
5011 | case $ac_pt_CXX in | ||||
5012 | [\\/]* | ?:[\\/]*) | ||||
5013 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | ||||
5014 | ;; | ||||
5015 | *) | ||||
5016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5017 | for as_dir in notfound | ||||
5018 | do | ||||
5019 | IFS=$as_save_IFS | ||||
5020 | test -z "$as_dir" && as_dir=. | ||||
5021 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
5022 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
5023 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | ||||
5024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
5025 | break 2 | ||||
5026 | fi | ||||
5027 | done | ||||
5028 | done | ||||
5029 | IFS=$as_save_IFS | ||||
5030 | |||||
5031 | ;; | ||||
5032 | esac | ||||
5033 | fi | ||||
5034 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | ||||
5035 | if test -n "$ac_pt_CXX"; then | ||||
5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | ||||
5037 | $as_echo "$ac_pt_CXX" >&6; } | ||||
5038 | else | ||||
5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
5040 | $as_echo "no" >&6; } | ||||
5041 | fi | ||||
5042 | |||||
5043 | if test "x$ac_pt_CXX" = x; then | ||||
5044 | CXX="icpc" | ||||
5045 | else | ||||
5046 | case $cross_compiling:$ac_tool_warned in | ||||
5047 | yes:) | ||||
5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
5049 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
5050 | ac_tool_warned=yes ;; | ||||
5051 | esac | ||||
5052 | CXX=$ac_pt_CXX | ||||
5053 | fi | ||||
5054 | else | ||||
5055 | CXX="$ac_cv_path_CXX" | ||||
5056 | fi | ||||
5057 | ;; | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5058 | esac |
5059 | if test "$CXX" = "notfound" | ||||
5060 | then | ||||
5061 | CXX="" | ||||
5062 | fi | ||||
5063 | fi | ||||
5064 | if test -z "$CXX" | ||||
5065 | then | ||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5066 | if test -n "$ac_tool_prefix"; then |
5067 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | ||||
5068 | do | ||||
5069 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
5070 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5072 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5073 | if ${ac_cv_prog_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5074 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5075 | else |
5076 | if test -n "$CXX"; then | ||||
5077 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||||
5078 | else | ||||
5079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5080 | for as_dir in $PATH | ||||
5081 | do | ||||
5082 | IFS=$as_save_IFS | ||||
5083 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5084 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 5085 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5086 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5087 | $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 | [diff] [blame] | 5088 | break 2 |
5089 | fi | ||||
5090 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5091 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5092 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5093 | |
5094 | fi | ||||
5095 | fi | ||||
5096 | CXX=$ac_cv_prog_CXX | ||||
5097 | if test -n "$CXX"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5099 | $as_echo "$CXX" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5100 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5102 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5103 | fi |
5104 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5105 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5106 | test -n "$CXX" && break |
5107 | done | ||||
5108 | fi | ||||
5109 | if test -z "$CXX"; then | ||||
5110 | ac_ct_CXX=$CXX | ||||
5111 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | ||||
5112 | do | ||||
5113 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
5114 | set dummy $ac_prog; ac_word=$2 | ||||
5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
5116 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
5117 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | ||||
5118 | $as_echo_n "(cached) " >&6 | ||||
5119 | else | ||||
5120 | if test -n "$ac_ct_CXX"; then | ||||
5121 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||||
5122 | else | ||||
5123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5124 | for as_dir in $PATH | ||||
5125 | do | ||||
5126 | IFS=$as_save_IFS | ||||
5127 | test -z "$as_dir" && as_dir=. | ||||
5128 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 5129 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5130 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5131 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
5132 | break 2 | ||||
5133 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5134 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5135 | done |
5136 | IFS=$as_save_IFS | ||||
5137 | |||||
5138 | fi | ||||
5139 | fi | ||||
5140 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||||
5141 | if test -n "$ac_ct_CXX"; then | ||||
5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||||
5143 | $as_echo "$ac_ct_CXX" >&6; } | ||||
5144 | else | ||||
5145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
5146 | $as_echo "no" >&6; } | ||||
5147 | fi | ||||
5148 | |||||
5149 | |||||
5150 | test -n "$ac_ct_CXX" && break | ||||
5151 | done | ||||
5152 | |||||
5153 | if test "x$ac_ct_CXX" = x; then | ||||
5154 | CXX="notfound" | ||||
5155 | else | ||||
5156 | case $cross_compiling:$ac_tool_warned in | ||||
5157 | yes:) | ||||
5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
5159 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
5160 | ac_tool_warned=yes ;; | ||||
5161 | esac | ||||
5162 | CXX=$ac_ct_CXX | ||||
5163 | fi | ||||
5164 | fi | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5165 | |
5166 | if test "$CXX" = "notfound" | ||||
5167 | then | ||||
5168 | CXX="" | ||||
5169 | fi | ||||
5170 | fi | ||||
5171 | if test "$preset_cxx" != "$CXX" | ||||
5172 | then | ||||
Christian Heimes | fe32aec | 2013-11-20 00:18:26 | [diff] [blame] | 5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5174 | |
5175 | By default, distutils will build C++ extension modules with \"$CXX\". | ||||
5176 | If this is not intended, then set CXX on the configure command line. | ||||
5177 | " >&5 | ||||
Christian Heimes | fe32aec | 2013-11-20 00:18:26 | [diff] [blame] | 5178 | $as_echo "$as_me: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5179 | |
5180 | By default, distutils will build C++ extension modules with \"$CXX\". | ||||
5181 | If this is not intended, then set CXX on the configure command line. | ||||
Christian Heimes | fe32aec | 2013-11-20 00:18:26 | [diff] [blame] | 5182 | " >&6;} |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 5183 | fi |
5184 | |||||
5185 | |||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 |
5187 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } | ||||
5188 | cat >> conftest.c <<EOF | ||||
doko@ubuntu.com | 5cc9c4f | 2015-04-19 12:44:05 | [diff] [blame] | 5189 | #undef bfin |
5190 | #undef cris | ||||
5191 | #undef fr30 | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5192 | #undef linux |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 12:44:05 | [diff] [blame] | 5193 | #undef hppa |
5194 | #undef hpux | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5195 | #undef i386 |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 12:44:05 | [diff] [blame] | 5196 | #undef mips |
doko@ubuntu.com | 9abe049 | 2015-04-15 21:31:02 | [diff] [blame] | 5197 | #undef powerpc |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 12:44:05 | [diff] [blame] | 5198 | #undef sparc |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5199 | #undef unix |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 20:05:20 | [diff] [blame] | 5200 | #if defined(__ANDROID__) |
Xavier de Gaye | 32cf1ac | 2016-12-10 16:31:28 | [diff] [blame] | 5201 | # Android is not a multiarch system. |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 20:05:20 | [diff] [blame] | 5202 | #elif defined(__linux__) |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5203 | # if defined(__x86_64__) && defined(__LP64__) |
5204 | x86_64-linux-gnu | ||||
5205 | # elif defined(__x86_64__) && defined(__ILP32__) | ||||
5206 | x86_64-linux-gnux32 | ||||
5207 | # elif defined(__i386__) | ||||
5208 | i386-linux-gnu | ||||
5209 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | ||||
5210 | # if defined(__ILP32__) | ||||
5211 | aarch64_ilp32-linux-gnu | ||||
5212 | # else | ||||
5213 | aarch64-linux-gnu | ||||
5214 | # endif | ||||
5215 | # elif defined(__aarch64__) && defined(__AARCH64EB__) | ||||
5216 | # if defined(__ILP32__) | ||||
5217 | aarch64_be_ilp32-linux-gnu | ||||
5218 | # else | ||||
5219 | aarch64_be-linux-gnu | ||||
5220 | # endif | ||||
5221 | # elif defined(__alpha__) | ||||
5222 | alpha-linux-gnu | ||||
5223 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) | ||||
5224 | # if defined(__ARMEL__) | ||||
5225 | arm-linux-gnueabihf | ||||
5226 | # else | ||||
5227 | armeb-linux-gnueabihf | ||||
5228 | # endif | ||||
5229 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) | ||||
5230 | # if defined(__ARMEL__) | ||||
5231 | arm-linux-gnueabi | ||||
5232 | # else | ||||
5233 | armeb-linux-gnueabi | ||||
5234 | # endif | ||||
5235 | # elif defined(__hppa__) | ||||
5236 | hppa-linux-gnu | ||||
5237 | # elif defined(__ia64__) | ||||
5238 | ia64-linux-gnu | ||||
5239 | # elif defined(__m68k__) && !defined(__mcoldfire__) | ||||
5240 | m68k-linux-gnu | ||||
Miss Islington (bot) | 0596f31 | 2018-05-01 14:40:17 | [diff] [blame] | 5241 | # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL) |
5242 | # if _MIPS_SIM == _ABIO32 | ||||
5243 | mipsisa32r6el-linux-gnu | ||||
5244 | # elif _MIPS_SIM == _ABIN32 | ||||
5245 | mipsisa64r6el-linux-gnuabin32 | ||||
5246 | # elif _MIPS_SIM == _ABI64 | ||||
5247 | mipsisa64r6el-linux-gnuabi64 | ||||
5248 | # else | ||||
5249 | # error unknown platform triplet | ||||
5250 | # endif | ||||
5251 | # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) | ||||
5252 | # if _MIPS_SIM == _ABIO32 | ||||
5253 | mipsisa32r6-linux-gnu | ||||
5254 | # elif _MIPS_SIM == _ABIN32 | ||||
5255 | mipsisa64r6-linux-gnuabin32 | ||||
5256 | # elif _MIPS_SIM == _ABI64 | ||||
5257 | mipsisa64r6-linux-gnuabi64 | ||||
5258 | # else | ||||
5259 | # error unknown platform triplet | ||||
5260 | # endif | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5261 | # elif defined(__mips_hard_float) && defined(_MIPSEL) |
5262 | # if _MIPS_SIM == _ABIO32 | ||||
5263 | mipsel-linux-gnu | ||||
5264 | # elif _MIPS_SIM == _ABIN32 | ||||
5265 | mips64el-linux-gnuabin32 | ||||
5266 | # elif _MIPS_SIM == _ABI64 | ||||
5267 | mips64el-linux-gnuabi64 | ||||
5268 | # else | ||||
5269 | # error unknown platform triplet | ||||
5270 | # endif | ||||
5271 | # elif defined(__mips_hard_float) | ||||
5272 | # if _MIPS_SIM == _ABIO32 | ||||
5273 | mips-linux-gnu | ||||
5274 | # elif _MIPS_SIM == _ABIN32 | ||||
5275 | mips64-linux-gnuabin32 | ||||
5276 | # elif _MIPS_SIM == _ABI64 | ||||
5277 | mips64-linux-gnuabi64 | ||||
5278 | # else | ||||
5279 | # error unknown platform triplet | ||||
5280 | # endif | ||||
5281 | # elif defined(__or1k__) | ||||
5282 | or1k-linux-gnu | ||||
5283 | # elif defined(__powerpc__) && defined(__SPE__) | ||||
5284 | powerpc-linux-gnuspe | ||||
5285 | # elif defined(__powerpc64__) | ||||
5286 | # if defined(__LITTLE_ENDIAN__) | ||||
5287 | powerpc64le-linux-gnu | ||||
5288 | # else | ||||
5289 | powerpc64-linux-gnu | ||||
5290 | # endif | ||||
5291 | # elif defined(__powerpc__) | ||||
5292 | powerpc-linux-gnu | ||||
5293 | # elif defined(__s390x__) | ||||
5294 | s390x-linux-gnu | ||||
5295 | # elif defined(__s390__) | ||||
5296 | s390-linux-gnu | ||||
5297 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) | ||||
5298 | sh4-linux-gnu | ||||
5299 | # elif defined(__sparc__) && defined(__arch64__) | ||||
5300 | sparc64-linux-gnu | ||||
5301 | # elif defined(__sparc__) | ||||
5302 | sparc-linux-gnu | ||||
Miss Islington (bot) | 0596f31 | 2018-05-01 14:40:17 | [diff] [blame] | 5303 | # elif defined(__riscv) |
5304 | # if __riscv_xlen == 32 | ||||
5305 | riscv32-linux-gnu | ||||
5306 | # elif __riscv_xlen == 64 | ||||
5307 | riscv64-linux-gnu | ||||
5308 | # else | ||||
5309 | # error unknown platform triplet | ||||
5310 | # endif | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5311 | # else |
5312 | # error unknown platform triplet | ||||
5313 | # endif | ||||
5314 | #elif defined(__FreeBSD_kernel__) | ||||
5315 | # if defined(__LP64__) | ||||
5316 | x86_64-kfreebsd-gnu | ||||
5317 | # elif defined(__i386__) | ||||
5318 | i386-kfreebsd-gnu | ||||
5319 | # else | ||||
5320 | # error unknown platform triplet | ||||
5321 | # endif | ||||
5322 | #elif defined(__gnu_hurd__) | ||||
5323 | i386-gnu | ||||
Ned Deily | 3b81248 | 2015-04-16 00:11:47 | [diff] [blame] | 5324 | #elif defined(__APPLE__) |
5325 | darwin | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5326 | #else |
5327 | # error unknown platform triplet | ||||
5328 | #endif | ||||
5329 | |||||
5330 | EOF | ||||
5331 | |||||
Xavier de Gaye | 3a32bdf | 2016-07-30 09:28:35 | [diff] [blame] | 5332 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5333 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` |
5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 | ||||
5335 | $as_echo "$PLATFORM_TRIPLET" >&6; } | ||||
5336 | else | ||||
5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||||
5338 | $as_echo "none" >&6; } | ||||
5339 | fi | ||||
5340 | rm -f conftest.c conftest.out | ||||
5341 | |||||
Ned Deily | 720bb45 | 2022-03-15 07:18:39 | [diff] [blame] | 5342 | if test x$PLATFORM_TRIPLET != xdarwin; then |
5343 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | ||||
5344 | fi | ||||
5345 | |||||
5346 | |||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5347 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then |
5348 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then | ||||
5349 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 | ||||
5350 | fi | ||||
doko@ubuntu.com | 75b1cb1 | 2016-08-29 18:03:25 | [diff] [blame] | 5351 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then |
5352 | MULTIARCH=$PLATFORM_TRIPLET | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5353 | fi |
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5354 | |
doko@ubuntu.com | 5553231 | 2016-06-14 06:55:19 | [diff] [blame] | 5355 | if test x$MULTIARCH != x; then |
5356 | MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" | ||||
5357 | fi | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 5358 | |
5359 | |||||
Martin v. Löwis | 48e14d3 | 2011-05-09 05:37:45 | [diff] [blame] | 5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 |
5361 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | ||||
5362 | save_LDFLAGS="$LDFLAGS" | ||||
5363 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 5364 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 05:37:45 | [diff] [blame] | 5365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5366 | /* end confdefs.h. */ | ||||
5367 | |||||
5368 | int | ||||
5369 | main () | ||||
5370 | { | ||||
5371 | |||||
5372 | ; | ||||
5373 | return 0; | ||||
5374 | } | ||||
5375 | _ACEOF | ||||
5376 | if ac_fn_c_try_link "$LINENO"; then : | ||||
5377 | NO_AS_NEEDED="-Wl,--no-as-needed" | ||||
5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
5379 | $as_echo "yes" >&6; } | ||||
5380 | else | ||||
5381 | NO_AS_NEEDED="" | ||||
5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
5383 | $as_echo "no" >&6; } | ||||
5384 | fi | ||||
5385 | rm -f core conftest.err conftest.$ac_objext \ | ||||
5386 | conftest$ac_exeext conftest.$ac_ext | ||||
5387 | LDFLAGS="$save_LDFLAGS" | ||||
5388 | |||||
5389 | |||||
5390 | |||||
5391 | # checks for UNIX variants that set C preprocessor variables | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5392 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
5394 | $as_echo_n "checking for egrep... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5395 | if ${ac_cv_path_EGREP+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5396 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5397 | else |
5398 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||||
5399 | then ac_cv_path_EGREP="$GREP -E" | ||||
5400 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5401 | if test -z "$EGREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5402 | ac_path_EGREP_found=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5403 | # Loop through the user's path and test for each of PROGNAME-LIST |
5404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5405 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5406 | do | ||||
5407 | IFS=$as_save_IFS | ||||
5408 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5409 | for ac_prog in egrep; do |
5410 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
5411 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 5412 | as_fn_executable_p "$ac_path_EGREP" || continue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5413 | # Check for GNU ac_path_EGREP and select it if it is found. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5414 | # Check for GNU $ac_path_EGREP |
5415 | case `"$ac_path_EGREP" --version 2>&1` in | ||||
5416 | *GNU*) | ||||
5417 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||||
5418 | *) | ||||
5419 | ac_count=0 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5420 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5421 | while : |
5422 | do | ||||
5423 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||||
5424 | mv "conftest.tmp" "conftest.in" | ||||
5425 | cp "conftest.in" "conftest.nl" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5426 | $as_echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5427 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5428 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5429 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5430 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
5431 | # Best one so far, save it but keep looking for a better one | ||||
5432 | ac_cv_path_EGREP="$ac_path_EGREP" | ||||
5433 | ac_path_EGREP_max=$ac_count | ||||
5434 | fi | ||||
5435 | # 10*(2^10) chars as input seems more than enough | ||||
5436 | test $ac_count -gt 10 && break | ||||
5437 | done | ||||
5438 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||||
5439 | esac | ||||
5440 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5441 | $ac_path_EGREP_found && break 3 |
5442 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5443 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5444 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5445 | IFS=$as_save_IFS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5446 | if test -z "$ac_cv_path_EGREP"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 5447 | 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 | [diff] [blame] | 5448 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5449 | else |
5450 | ac_cv_path_EGREP=$EGREP | ||||
5451 | fi | ||||
5452 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5453 | fi |
5454 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5456 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 5457 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 5458 | |
5459 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5461 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5462 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5463 | $as_echo_n "(cached) " >&6 |
5464 | else | ||||
5465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 5466 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5467 | #include <stdlib.h> |
5468 | #include <stdarg.h> | ||||
5469 | #include <string.h> | ||||
5470 | #include <float.h> | ||||
5471 | |||||
5472 | int | ||||
5473 | main () | ||||
5474 | { | ||||
5475 | |||||
5476 | ; | ||||
5477 | return 0; | ||||
5478 | } | ||||
5479 | _ACEOF | ||||
5480 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
5481 | ac_cv_header_stdc=yes | ||||
5482 | else | ||||
5483 | ac_cv_header_stdc=no | ||||
5484 | fi | ||||
5485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
5486 | |||||
5487 | if test $ac_cv_header_stdc = yes; then | ||||
5488 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||||
5489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5490 | /* end confdefs.h. */ | ||||
5491 | #include <string.h> | ||||
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 5492 | |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 5493 | _ACEOF |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 5494 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5495 | $EGREP "memchr" >/dev/null 2>&1; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5496 | |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 5497 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5498 | ac_cv_header_stdc=no |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 5499 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 5500 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5501 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5502 | fi |
5503 | |||||
5504 | if test $ac_cv_header_stdc = yes; then | ||||
5505 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||||
5506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5507 | /* end confdefs.h. */ | ||||
5508 | #include <stdlib.h> | ||||
5509 | |||||
5510 | _ACEOF | ||||
5511 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
5512 | $EGREP "free" >/dev/null 2>&1; then : | ||||
5513 | |||||
5514 | else | ||||
5515 | ac_cv_header_stdc=no | ||||
5516 | fi | ||||
5517 | rm -f conftest* | ||||
5518 | |||||
5519 | fi | ||||
5520 | |||||
5521 | if test $ac_cv_header_stdc = yes; then | ||||
5522 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||||
5523 | if test "$cross_compiling" = yes; then : | ||||
5524 | : | ||||
5525 | else | ||||
5526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5527 | /* end confdefs.h. */ | ||||
5528 | #include <ctype.h> | ||||
5529 | #include <stdlib.h> | ||||
5530 | #if ((' ' & 0x0FF) == 0x020) | ||||
5531 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||||
5532 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||||
5533 | #else | ||||
5534 | # define ISLOWER(c) \ | ||||
5535 | (('a' <= (c) && (c) <= 'i') \ | ||||
5536 | || ('j' <= (c) && (c) <= 'r') \ | ||||
5537 | || ('s' <= (c) && (c) <= 'z')) | ||||
5538 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||||
5539 | #endif | ||||
5540 | |||||
5541 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||||
5542 | int | ||||
5543 | main () | ||||
5544 | { | ||||
5545 | int i; | ||||
5546 | for (i = 0; i < 256; i++) | ||||
5547 | if (XOR (islower (i), ISLOWER (i)) | ||||
5548 | || toupper (i) != TOUPPER (i)) | ||||
5549 | return 2; | ||||
5550 | return 0; | ||||
5551 | } | ||||
5552 | _ACEOF | ||||
5553 | if ac_fn_c_try_run "$LINENO"; then : | ||||
5554 | |||||
5555 | else | ||||
5556 | ac_cv_header_stdc=no | ||||
5557 | fi | ||||
5558 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
5559 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
5560 | fi | ||||
5561 | |||||
5562 | fi | ||||
5563 | fi | ||||
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||||
5565 | $as_echo "$ac_cv_header_stdc" >&6; } | ||||
5566 | if test $ac_cv_header_stdc = yes; then | ||||
5567 | |||||
5568 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||||
5569 | |||||
5570 | fi | ||||
5571 | |||||
5572 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||||
5573 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||||
5574 | inttypes.h stdint.h unistd.h | ||||
5575 | do : | ||||
5576 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
5577 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||||
5578 | " | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 5579 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5580 | cat >>confdefs.h <<_ACEOF |
5581 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
5582 | _ACEOF | ||||
5583 | |||||
5584 | fi | ||||
5585 | |||||
5586 | done | ||||
5587 | |||||
5588 | |||||
5589 | |||||
5590 | 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 11:06:09 | [diff] [blame] | 5591 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5592 | MINIX=yes |
5593 | else | ||||
5594 | MINIX= | ||||
5595 | fi | ||||
5596 | |||||
5597 | |||||
5598 | if test "$MINIX" = yes; then | ||||
5599 | |||||
5600 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | ||||
5601 | |||||
5602 | |||||
5603 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | ||||
5604 | |||||
5605 | |||||
5606 | $as_echo "#define _MINIX 1" >>confdefs.h | ||||
5607 | |||||
5608 | fi | ||||
5609 | |||||
5610 | |||||
5611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | ||||
5612 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5613 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5614 | $as_echo_n "(cached) " >&6 |
5615 | else | ||||
5616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
5617 | /* end confdefs.h. */ | ||||
5618 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 5619 | # define __EXTENSIONS__ 1 |
5620 | $ac_includes_default | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5621 | int |
5622 | main () | ||||
5623 | { | ||||
5624 | |||||
5625 | ; | ||||
5626 | return 0; | ||||
5627 | } | ||||
5628 | _ACEOF | ||||
5629 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
5630 | ac_cv_safe_to_define___extensions__=yes | ||||
5631 | else | ||||
5632 | ac_cv_safe_to_define___extensions__=no | ||||
5633 | fi | ||||
5634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
5635 | fi | ||||
5636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | ||||
5637 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | ||||
5638 | test $ac_cv_safe_to_define___extensions__ = yes && | ||||
5639 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | ||||
5640 | |||||
5641 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | ||||
5642 | |||||
5643 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | ||||
5644 | |||||
5645 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | ||||
5646 | |||||
5647 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | ||||
5648 | |||||
5649 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5650 | |
Xavier de Gaye | 95750b1 | 2016-07-09 09:05:42 | [diff] [blame] | 5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 |
5652 | $as_echo_n "checking for the Android API level... " >&6; } | ||||
5653 | cat >> conftest.c <<EOF | ||||
5654 | #ifdef __ANDROID__ | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 5655 | android_api = __ANDROID_API__ |
5656 | arm_arch = __ARM_ARCH | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 09:05:42 | [diff] [blame] | 5657 | #else |
5658 | #error not Android | ||||
5659 | #endif | ||||
5660 | EOF | ||||
5661 | |||||
5662 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 5663 | ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` |
5664 | _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 09:05:42 | [diff] [blame] | 5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 |
5666 | $as_echo "$ANDROID_API_LEVEL" >&6; } | ||||
xdegaye | c06c22e | 2017-11-23 10:44:38 | [diff] [blame] | 5667 | if test -z "$ANDROID_API_LEVEL"; then |
5668 | echo 'Fatal: you must define __ANDROID_API__' | ||||
5669 | exit 1 | ||||
5670 | fi | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 09:05:42 | [diff] [blame] | 5671 | |
5672 | cat >>confdefs.h <<_ACEOF | ||||
5673 | #define ANDROID_API_LEVEL $ANDROID_API_LEVEL | ||||
5674 | _ACEOF | ||||
5675 | |||||
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 5676 | |
5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 | ||||
5678 | $as_echo_n "checking for the Android arm ABI... " >&6; } | ||||
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 | ||||
5680 | $as_echo "$_arm_arch" >&6; } | ||||
5681 | if test "$_arm_arch" = 7; then | ||||
5682 | BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" | ||||
5683 | LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" | ||||
5684 | fi | ||||
Xavier de Gaye | 95750b1 | 2016-07-09 09:05:42 | [diff] [blame] | 5685 | else |
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 | ||||
5687 | $as_echo "not Android" >&6; } | ||||
5688 | fi | ||||
5689 | rm -f conftest.c conftest.out | ||||
5690 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5691 | # Check for unsupported systems |
5692 | case $ac_sys_system/$ac_sys_release in | ||||
5693 | atheos*|Linux*/1*) | ||||
5694 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | ||||
5695 | echo See README for details. | ||||
5696 | exit 1;; | ||||
5697 | esac | ||||
5698 | |||||
5699 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
5701 | $as_echo_n "checking for --with-suffix... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5702 | |
5703 | # Check whether --with-suffix was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5704 | if test "${with_suffix+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5705 | withval=$with_suffix; |
5706 | case $withval in | ||||
5707 | no) EXEEXT=;; | ||||
5708 | yes) EXEEXT=.exe;; | ||||
5709 | *) EXEEXT=$withval;; | ||||
5710 | esac | ||||
5711 | fi | ||||
5712 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
5714 | $as_echo "$EXEEXT" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5715 | |
5716 | # Test whether we're running on a non-case-sensitive system, in which | ||||
5717 | # case we give a warning if no ext is given | ||||
5718 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
5720 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5721 | if test ! -d CaseSensitiveTestDir; then |
5722 | mkdir CaseSensitiveTestDir | ||||
5723 | fi | ||||
5724 | |||||
5725 | if test -d casesensitivetestdir | ||||
5726 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5728 | $as_echo "yes" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5729 | BUILDEXEEXT=.exe |
5730 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5732 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5733 | BUILDEXEEXT=$EXEEXT |
5734 | fi | ||||
5735 | rmdir CaseSensitiveTestDir | ||||
5736 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5737 | case $ac_sys_system in |
5738 | hp*|HP*) | ||||
5739 | case $CC in | ||||
5740 | cc|*/cc) CC="$CC -Ae";; | ||||
5741 | esac;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5742 | esac |
5743 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5744 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
5746 | $as_echo_n "checking LIBRARY... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5747 | if test -z "$LIBRARY" |
5748 | then | ||||
Barry Warsaw | f040d7d | 2010-10-18 17:09:07 | [diff] [blame] | 5749 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5750 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
5752 | $as_echo "$LIBRARY" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5753 | |
5754 | # LDLIBRARY is the name of the library to link against (as opposed to the | ||||
5755 | # name of the library into which to insert object files). BLDLIBRARY is also | ||||
5756 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | ||||
5757 | # is blank as the main program is not linked directly against LDLIBRARY. | ||||
5758 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | ||||
5759 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | ||||
5760 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | ||||
5761 | # DLLLIBRARY is the shared (i.e., DLL) library. | ||||
5762 | # | ||||
5763 | # RUNSHARED is used to run shared python without installed libraries | ||||
5764 | # | ||||
5765 | # INSTSONAME is the name of the shared library that will be use to install | ||||
5766 | # on the system - some systems like version suffix, others don't | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5767 | # |
5768 | # LDVERSION is the shared library version number, normally the Python version | ||||
5769 | # with the ABI build flags appended. | ||||
5770 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5771 | |
5772 | |||||
5773 | |||||
5774 | |||||
5775 | |||||
5776 | |||||
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 | [diff] [blame] | 5777 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5778 | LDLIBRARY="$LIBRARY" |
5779 | BLDLIBRARY='$(LDLIBRARY)' | ||||
5780 | INSTSONAME='$(LDLIBRARY)' | ||||
5781 | DLLLIBRARY='' | ||||
5782 | LDLIBRARYDIR='' | ||||
5783 | RUNSHARED='' | ||||
Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 | [diff] [blame] | 5784 | LDVERSION="$VERSION" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5785 | |
5786 | # LINKCC is the command that links the python executable -- default is $(CC). | ||||
5787 | # If CXX is set, and if it is needed to link a main function that was | ||||
5788 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | ||||
5789 | # python might then depend on the C++ runtime | ||||
5790 | # This is altered for AIX in order to build the export list before | ||||
5791 | # linking. | ||||
5792 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
5794 | $as_echo_n "checking LINKCC... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5795 | if test -z "$LINKCC" |
5796 | then | ||||
5797 | LINKCC='$(PURIFY) $(MAINCC)' | ||||
5798 | case $ac_sys_system in | ||||
5799 | AIX*) | ||||
5800 | exp_extra="\"\"" | ||||
5801 | if test $ac_sys_release -ge 5 -o \ | ||||
5802 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | ||||
5803 | exp_extra="." | ||||
5804 | fi | ||||
5805 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5806 | QNX*) |
5807 | # qcc must be used because the other compilers do not | ||||
5808 | # support -N. | ||||
5809 | LINKCC=qcc;; | ||||
5810 | esac | ||||
5811 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
5813 | $as_echo "$LINKCC" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5814 | |
5815 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong | ||||
5816 | # make sure we default having it set to "no": this is used by | ||||
5817 | # distutils.unixccompiler to know if it should add --enable-new-dtags | ||||
5818 | # to linker command lines, and failing to detect GNU ld simply results | ||||
5819 | # in the same bahaviour as before. | ||||
5820 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5822 | $as_echo_n "checking for GNU ld... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5823 | ac_prog=ld |
5824 | if test "$GCC" = yes; then | ||||
5825 | ac_prog=`$CC -print-prog-name=ld` | ||||
5826 | fi | ||||
5827 | case `"$ac_prog" -V 2>&1 < /dev/null` in | ||||
5828 | *GNU*) | ||||
5829 | GNULD=yes;; | ||||
5830 | *) | ||||
5831 | GNULD=no;; | ||||
5832 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
5834 | $as_echo "$GNULD" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5835 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
5837 | $as_echo_n "checking for --enable-shared... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5838 | # Check whether --enable-shared was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5839 | if test "${enable_shared+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5840 | enableval=$enable_shared; |
5841 | fi | ||||
5842 | |||||
5843 | |||||
5844 | if test -z "$enable_shared" | ||||
5845 | then | ||||
5846 | case $ac_sys_system in | ||||
Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 | [diff] [blame] | 5847 | CYGWIN*) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5848 | enable_shared="yes";; |
5849 | *) | ||||
5850 | enable_shared="no";; | ||||
5851 | esac | ||||
5852 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
5854 | $as_echo "$enable_shared" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5855 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
5857 | $as_echo_n "checking for --enable-profiling... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5858 | # Check whether --enable-profiling was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5859 | if test "${enable_profiling+set}" = set; then : |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5860 | enableval=$enable_profiling; |
5861 | fi | ||||
5862 | |||||
5863 | if test "x$enable_profiling" = xyes; then | ||||
5864 | ac_save_cc="$CC" | ||||
Benjamin Peterson | 615ea1a | 2013-03-26 12:55:37 | [diff] [blame] | 5865 | CC="$CC -pg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5867 | /* end confdefs.h. */ |
5868 | int main() { return 0; } | ||||
5869 | _ACEOF | ||||
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5870 | if ac_fn_c_try_link "$LINENO"; then : |
5871 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5872 | else |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5873 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5874 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5875 | rm -f core conftest.err conftest.$ac_objext \ |
5876 | conftest$ac_exeext conftest.$ac_ext | ||||
5877 | CC="$ac_save_cc" | ||||
5878 | else | ||||
5879 | enable_profiling=no | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5880 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 |
5882 | $as_echo "$enable_profiling" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5883 | |
doko@ubuntu.com | ba01583 | 2012-06-30 14:52:05 | [diff] [blame] | 5884 | if test "x$enable_profiling" = xyes; then |
5885 | BASECFLAGS="-pg $BASECFLAGS" | ||||
5886 | LDFLAGS="-pg $LDFLAGS" | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5887 | fi |
5888 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
5890 | $as_echo_n "checking LDLIBRARY... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5891 | |
5892 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | ||||
5893 | # library that we build, but we do not want to link against it (we | ||||
5894 | # will find it with a -framework option). For this reason there is an | ||||
5895 | # extra variable BLDLIBRARY against which Python and the extension | ||||
5896 | # modules are linked, BLDLIBRARY. This is normally the same as | ||||
5897 | # LDLIBRARY, but empty for MacOSX framework builds. | ||||
5898 | if test "$enable_framework" | ||||
5899 | then | ||||
5900 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5901 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5902 | BLDLIBRARY='' |
5903 | else | ||||
5904 | BLDLIBRARY='$(LDLIBRARY)' | ||||
5905 | fi | ||||
5906 | |||||
5907 | # Other platforms follow | ||||
5908 | if test $enable_shared = "yes"; then | ||||
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 5909 | PY_ENABLE_SHARED=1 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5910 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5911 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5912 | |
5913 | case $ac_sys_system in | ||||
5914 | CYGWIN*) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5915 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
5916 | DLLLIBRARY='libpython$(LDVERSION).dll' | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5917 | ;; |
5918 | SunOS*) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5919 | LDLIBRARY='libpython$(LDVERSION).so' |
5920 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5921 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5922 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 | [diff] [blame] | 5923 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 | [diff] [blame] | 5924 | then |
5925 | PY3LIBRARY=libpython3.so | ||||
5926 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5927 | ;; |
Charles-François Natali | 749400a | 2011-07-24 20:41:18 | [diff] [blame] | 5928 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5929 | LDLIBRARY='libpython$(LDVERSION).so' |
5930 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5931 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5932 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 | [diff] [blame] | 5933 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 | [diff] [blame] | 5934 | then |
5935 | PY3LIBRARY=libpython3.so | ||||
5936 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5937 | ;; |
5938 | hp*|HP*) | ||||
5939 | case `uname -m` in | ||||
5940 | ia64) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5941 | LDLIBRARY='libpython$(LDVERSION).so' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5942 | ;; |
5943 | *) | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5944 | LDLIBRARY='libpython$(LDVERSION).sl' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5945 | ;; |
5946 | esac | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5947 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5948 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5949 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5950 | Darwin*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5951 | LDLIBRARY='libpython$(LDVERSION).dylib' |
5952 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | ||||
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5953 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5954 | ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 | [diff] [blame] | 5955 | AIX*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5956 | LDLIBRARY='libpython$(LDVERSION).so' |
doko@ubuntu.com | e5de66e | 2014-05-07 10:57:44 | [diff] [blame] | 5957 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 | [diff] [blame] | 5958 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5959 | |
5960 | esac | ||||
5961 | else # shared is disabled | ||||
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 5962 | PY_ENABLE_SHARED=0 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5963 | case $ac_sys_system in |
5964 | CYGWIN*) | ||||
5965 | BLDLIBRARY='$(LIBRARY)' | ||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 5966 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5967 | ;; |
5968 | esac | ||||
5969 | fi | ||||
5970 | |||||
doko@ubuntu.com | 1abe1c5 | 2012-06-30 18:42:45 | [diff] [blame] | 5971 | if test "$cross_compiling" = yes; then |
5972 | RUNSHARED= | ||||
5973 | fi | ||||
5974 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
5976 | $as_echo "$LDLIBRARY" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5977 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5978 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5979 | if test -n "$ac_tool_prefix"; then |
5980 | for ac_prog in ar aal | ||||
5981 | do | ||||
5982 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
5983 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5985 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 5986 | if ${ac_cv_prog_AR+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5987 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 5988 | else |
5989 | if test -n "$AR"; then | ||||
5990 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||||
5991 | else | ||||
5992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
5993 | for as_dir in $PATH | ||||
5994 | do | ||||
5995 | IFS=$as_save_IFS | ||||
5996 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 5997 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 5998 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 5999 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6000 | $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 | [diff] [blame] | 6001 | break 2 |
6002 | fi | ||||
6003 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6004 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6005 | IFS=$as_save_IFS |
6006 | |||||
6007 | fi | ||||
6008 | fi | ||||
6009 | AR=$ac_cv_prog_AR | ||||
6010 | if test -n "$AR"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6012 | $as_echo "$AR" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6013 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6015 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6016 | fi |
6017 | |||||
6018 | |||||
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 6019 | test -n "$AR" && break |
6020 | done | ||||
6021 | fi | ||||
6022 | if test -z "$AR"; then | ||||
6023 | ac_ct_AR=$AR | ||||
6024 | for ac_prog in ar aal | ||||
6025 | do | ||||
6026 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
6027 | set dummy $ac_prog; ac_word=$2 | ||||
6028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6029 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6030 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||||
6031 | $as_echo_n "(cached) " >&6 | ||||
6032 | else | ||||
6033 | if test -n "$ac_ct_AR"; then | ||||
6034 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||||
6035 | else | ||||
6036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6037 | for as_dir in $PATH | ||||
6038 | do | ||||
6039 | IFS=$as_save_IFS | ||||
6040 | test -z "$as_dir" && as_dir=. | ||||
6041 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 | [diff] [blame] | 6042 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 6043 | ac_cv_prog_ac_ct_AR="$ac_prog" |
6044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6045 | break 2 | ||||
6046 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6047 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 12:42:46 | [diff] [blame] | 6048 | done |
6049 | IFS=$as_save_IFS | ||||
6050 | |||||
6051 | fi | ||||
6052 | fi | ||||
6053 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||||
6054 | if test -n "$ac_ct_AR"; then | ||||
6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||||
6056 | $as_echo "$ac_ct_AR" >&6; } | ||||
6057 | else | ||||
6058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6059 | $as_echo "no" >&6; } | ||||
6060 | fi | ||||
6061 | |||||
6062 | |||||
6063 | test -n "$ac_ct_AR" && break | ||||
6064 | done | ||||
6065 | |||||
6066 | if test "x$ac_ct_AR" = x; then | ||||
6067 | AR="ar" | ||||
6068 | else | ||||
6069 | case $cross_compiling:$ac_tool_warned in | ||||
6070 | yes:) | ||||
6071 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
6072 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
6073 | ac_tool_warned=yes ;; | ||||
6074 | esac | ||||
6075 | AR=$ac_ct_AR | ||||
6076 | fi | ||||
6077 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6078 | |
6079 | |||||
6080 | # tweak ARFLAGS only if the user didn't set it on the command line | ||||
6081 | |||||
6082 | if test -z "$ARFLAGS" | ||||
6083 | then | ||||
Benjamin Peterson | d15108a | 2017-09-29 15:42:41 | [diff] [blame] | 6084 | ARFLAGS="rcs" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6085 | fi |
6086 | |||||
doko@ubuntu.com | 5884449 | 2012-06-30 16:25:32 | [diff] [blame] | 6087 | if test -n "$ac_tool_prefix"; then |
6088 | for ac_prog in readelf | ||||
6089 | do | ||||
6090 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||||
6091 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||||
6092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6093 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6094 | if ${ac_cv_prog_READELF+:} false; then : | ||||
6095 | $as_echo_n "(cached) " >&6 | ||||
6096 | else | ||||
6097 | if test -n "$READELF"; then | ||||
6098 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | ||||
6099 | else | ||||
6100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6101 | for as_dir in $PATH | ||||
6102 | do | ||||
6103 | IFS=$as_save_IFS | ||||
6104 | test -z "$as_dir" && as_dir=. | ||||
6105 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 6106 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 5884449 | 2012-06-30 16:25:32 | [diff] [blame] | 6107 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" |
6108 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6109 | break 2 | ||||
6110 | fi | ||||
6111 | done | ||||
6112 | done | ||||
6113 | IFS=$as_save_IFS | ||||
6114 | |||||
6115 | fi | ||||
6116 | fi | ||||
6117 | READELF=$ac_cv_prog_READELF | ||||
6118 | if test -n "$READELF"; then | ||||
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | ||||
6120 | $as_echo "$READELF" >&6; } | ||||
6121 | else | ||||
6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6123 | $as_echo "no" >&6; } | ||||
6124 | fi | ||||
6125 | |||||
6126 | |||||
6127 | test -n "$READELF" && break | ||||
6128 | done | ||||
6129 | fi | ||||
6130 | if test -z "$READELF"; then | ||||
6131 | ac_ct_READELF=$READELF | ||||
6132 | for ac_prog in readelf | ||||
6133 | do | ||||
6134 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
6135 | set dummy $ac_prog; ac_word=$2 | ||||
6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6137 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6138 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | ||||
6139 | $as_echo_n "(cached) " >&6 | ||||
6140 | else | ||||
6141 | if test -n "$ac_ct_READELF"; then | ||||
6142 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | ||||
6143 | else | ||||
6144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6145 | for as_dir in $PATH | ||||
6146 | do | ||||
6147 | IFS=$as_save_IFS | ||||
6148 | test -z "$as_dir" && as_dir=. | ||||
6149 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 6150 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 5884449 | 2012-06-30 16:25:32 | [diff] [blame] | 6151 | ac_cv_prog_ac_ct_READELF="$ac_prog" |
6152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6153 | break 2 | ||||
6154 | fi | ||||
6155 | done | ||||
6156 | done | ||||
6157 | IFS=$as_save_IFS | ||||
6158 | |||||
6159 | fi | ||||
6160 | fi | ||||
6161 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | ||||
6162 | if test -n "$ac_ct_READELF"; then | ||||
6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | ||||
6164 | $as_echo "$ac_ct_READELF" >&6; } | ||||
6165 | else | ||||
6166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6167 | $as_echo "no" >&6; } | ||||
6168 | fi | ||||
6169 | |||||
6170 | |||||
6171 | test -n "$ac_ct_READELF" && break | ||||
6172 | done | ||||
6173 | |||||
6174 | if test "x$ac_ct_READELF" = x; then | ||||
6175 | READELF=":" | ||||
6176 | else | ||||
6177 | case $cross_compiling:$ac_tool_warned in | ||||
6178 | yes:) | ||||
6179 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
6180 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
6181 | ac_tool_warned=yes ;; | ||||
6182 | esac | ||||
6183 | READELF=$ac_ct_READELF | ||||
6184 | fi | ||||
6185 | fi | ||||
6186 | |||||
6187 | if test "$cross_compiling" = yes; then | ||||
6188 | case "$READELF" in | ||||
6189 | readelf|:) | ||||
6190 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | ||||
6191 | ;; | ||||
6192 | esac | ||||
6193 | fi | ||||
6194 | |||||
6195 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6196 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6197 | case $MACHDEP in |
Benjamin Peterson | 288d1da | 2017-09-29 05:44:27 | [diff] [blame] | 6198 | hp*|HP*) |
6199 | # install -d does not work on HP-UX | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6200 | if test -z "$INSTALL" |
6201 | then | ||||
6202 | INSTALL="${srcdir}/install-sh -c" | ||||
6203 | fi | ||||
6204 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6205 | # Find a good install program. We prefer a C program (faster), |
6206 | # so one script is as good as another. But avoid the broken or | ||||
6207 | # incompatible versions: | ||||
6208 | # SysV /etc/install, /usr/sbin/install | ||||
6209 | # SunOS /usr/etc/install | ||||
6210 | # IRIX /sbin/install | ||||
6211 | # AIX /bin/install | ||||
6212 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||||
6213 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||||
6214 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||||
6215 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||||
6216 | # OS/2's system install, which has a completely different semantic | ||||
6217 | # ./install, which can be erroneously created by make from ./install.sh. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6218 | # Reject install programs that cannot install multiple files. |
6219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||||
6220 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6221 | if test -z "$INSTALL"; then |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 6222 | if ${ac_cv_path_install+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6223 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6224 | else |
6225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6226 | for as_dir in $PATH | ||||
6227 | do | ||||
6228 | IFS=$as_save_IFS | ||||
6229 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6230 | # Account for people who put trailing slashes in PATH elements. |
6231 | case $as_dir/ in #(( | ||||
6232 | ./ | .// | /[cC]/* | \ | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6233 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6234 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6235 | /usr/ucb/* ) ;; |
6236 | *) | ||||
6237 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||||
6238 | # Don't use installbsd from OSF since it installs stuff as root | ||||
6239 | # by default. | ||||
6240 | for ac_prog in ginstall scoinst install; do | ||||
6241 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 6242 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6243 | if test $ac_prog = install && |
6244 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||||
6245 | # AIX install. It has an incompatible calling convention. | ||||
6246 | : | ||||
6247 | elif test $ac_prog = install && | ||||
6248 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||||
6249 | # program-specific install script used by HP pwplus--don't use. | ||||
6250 | : | ||||
6251 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6252 | rm -rf conftest.one conftest.two conftest.dir |
6253 | echo one > conftest.one | ||||
6254 | echo two > conftest.two | ||||
6255 | mkdir conftest.dir | ||||
6256 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||||
6257 | test -s conftest.one && test -s conftest.two && | ||||
6258 | test -s conftest.dir/conftest.one && | ||||
6259 | test -s conftest.dir/conftest.two | ||||
6260 | then | ||||
6261 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||||
6262 | break 3 | ||||
6263 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6264 | fi |
6265 | fi | ||||
6266 | done | ||||
6267 | done | ||||
6268 | ;; | ||||
6269 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6270 | |
6271 | done | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6272 | IFS=$as_save_IFS |
6273 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6274 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6275 | |
6276 | fi | ||||
6277 | if test "${ac_cv_path_install+set}" = set; then | ||||
6278 | INSTALL=$ac_cv_path_install | ||||
6279 | else | ||||
6280 | # As a last resort, use the slow shell script. Don't cache a | ||||
6281 | # value for INSTALL within a source directory, because that will | ||||
6282 | # break other packages using the cache if that directory is | ||||
6283 | # removed, or if the value is a relative name. | ||||
6284 | INSTALL=$ac_install_sh | ||||
6285 | fi | ||||
6286 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
6288 | $as_echo "$INSTALL" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6289 | |
6290 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||||
6291 | # It thinks the first close brace ends the variable substitution. | ||||
6292 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||||
6293 | |||||
6294 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||||
6295 | |||||
6296 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||||
6297 | |||||
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 6298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
6299 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||||
6300 | if test -z "$MKDIR_P"; then | ||||
6301 | if ${ac_cv_path_mkdir+:} false; then : | ||||
6302 | $as_echo_n "(cached) " >&6 | ||||
6303 | else | ||||
6304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6305 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||||
6306 | do | ||||
6307 | IFS=$as_save_IFS | ||||
6308 | test -z "$as_dir" && as_dir=. | ||||
6309 | for ac_prog in mkdir gmkdir; do | ||||
6310 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 6311 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 6312 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
6313 | 'mkdir (GNU coreutils) '* | \ | ||||
6314 | 'mkdir (coreutils) '* | \ | ||||
6315 | 'mkdir (fileutils) '4.1*) | ||||
6316 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||||
6317 | break 3;; | ||||
6318 | esac | ||||
6319 | done | ||||
6320 | done | ||||
6321 | done | ||||
6322 | IFS=$as_save_IFS | ||||
6323 | |||||
6324 | fi | ||||
6325 | |||||
6326 | test -d ./--version && rmdir ./--version | ||||
6327 | if test "${ac_cv_path_mkdir+set}" = set; then | ||||
6328 | MKDIR_P="$ac_cv_path_mkdir -p" | ||||
6329 | else | ||||
6330 | # As a last resort, use the slow shell script. Don't cache a | ||||
6331 | # value for MKDIR_P within a source directory, because that will | ||||
6332 | # break other packages using the cache if that directory is | ||||
6333 | # removed, or if the value is a relative name. | ||||
6334 | MKDIR_P="$ac_install_sh -d" | ||||
6335 | fi | ||||
6336 | fi | ||||
6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||||
6338 | $as_echo "$MKDIR_P" >&6; } | ||||
6339 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6340 | |
6341 | # Not every filesystem supports hard links | ||||
6342 | |||||
6343 | if test -z "$LN" ; then | ||||
6344 | case $ac_sys_system in | ||||
6345 | CYGWIN*) LN="ln -s";; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6346 | *) LN=ln;; |
6347 | esac | ||||
6348 | fi | ||||
6349 | |||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 6350 | # For calculating the .so ABI tag. |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 6351 | |
6352 | ABIFLAGS="" | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 6353 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6354 | # Check for --with-pydebug |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
6356 | $as_echo_n "checking for --with-pydebug... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6357 | |
6358 | # Check whether --with-pydebug was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6359 | if test "${with_pydebug+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6360 | withval=$with_pydebug; |
6361 | if test "$withval" != no | ||||
6362 | then | ||||
6363 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6364 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6365 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6367 | $as_echo "yes" >&6; }; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6368 | Py_DEBUG='true' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 6369 | ABIFLAGS="${ABIFLAGS}d" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6370 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6371 | $as_echo "no" >&6; }; Py_DEBUG='false' | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6372 | fi |
6373 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6375 | $as_echo "no" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6376 | fi |
6377 | |||||
6378 | |||||
T. Wouters | ddbfa2c | 2017-05-22 23:30:49 | [diff] [blame] | 6379 | # Check for --with-assertions. Py_DEBUG implies assertions, but also changes |
6380 | # the ABI. This allows enabling assertions without changing the ABI. | ||||
6381 | assertions='false' | ||||
6382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 | ||||
6383 | $as_echo_n "checking for --with-assertions... " >&6; } | ||||
6384 | |||||
6385 | # Check whether --with-assertions was given. | ||||
6386 | if test "${with_assertions+set}" = set; then : | ||||
6387 | withval=$with_assertions; | ||||
6388 | if test "$withval" != no | ||||
6389 | then | ||||
6390 | assertions='true' | ||||
6391 | fi | ||||
6392 | fi | ||||
6393 | |||||
6394 | if test "$assertions" = 'true'; then | ||||
6395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
6396 | $as_echo "yes" >&6; } | ||||
6397 | elif test "$Py_DEBUG" = 'true'; then | ||||
6398 | assertions='true' | ||||
6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 | ||||
6400 | $as_echo "implied by --with-pydebug" >&6; } | ||||
6401 | else | ||||
6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6403 | $as_echo "no" >&6; } | ||||
6404 | fi | ||||
6405 | |||||
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 6406 | # Enable optimization flags |
6407 | |||||
6408 | |||||
6409 | Py_OPT='false' | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 | [diff] [blame] | 6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 |
6411 | $as_echo_n "checking for --enable-optimizations... " >&6; } | ||||
6412 | # Check whether --enable-optimizations was given. | ||||
6413 | if test "${enable_optimizations+set}" = set; then : | ||||
6414 | enableval=$enable_optimizations; | ||||
Alex Wang | 8cea592 | 2017-03-28 12:50:51 | [diff] [blame] | 6415 | if test "$enableval" != no |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 6416 | then |
6417 | Py_OPT='true' | ||||
6418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
6419 | $as_echo "yes" >&6; }; | ||||
6420 | else | ||||
6421 | Py_OPT='false' | ||||
6422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6423 | $as_echo "no" >&6; }; | ||||
6424 | fi | ||||
6425 | else | ||||
6426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6427 | $as_echo "no" >&6; } | ||||
6428 | fi | ||||
6429 | |||||
6430 | if test "$Py_OPT" = 'true' ; then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 | [diff] [blame] | 6431 | # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not |
6432 | # compile working code using it and both test_distutils and test_gdb are | ||||
Brett Cannon | 1d8f755 | 2016-11-03 23:20:00 | [diff] [blame] | 6433 | # 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 | [diff] [blame] | 6434 | # who want LTO need to use --with-lto themselves. |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 6435 | DEF_MAKE_ALL_RULE="profile-opt" |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6436 | REQUIRE_PGO="yes" |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 6437 | DEF_MAKE_RULE="build_all" |
6438 | else | ||||
6439 | DEF_MAKE_ALL_RULE="build_all" | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6440 | REQUIRE_PGO="no" |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 6441 | DEF_MAKE_RULE="all" |
6442 | fi | ||||
6443 | |||||
Miss Islington (bot) | 69a3f15 | 2018-10-25 00:32:04 | [diff] [blame] | 6444 | # Make llvm-relatec checks work on systems where llvm tools are not installed with their |
6445 | # normal names in the default $PATH (ie: Ubuntu). They exist under the | ||||
6446 | # non-suffixed name in their versioned llvm directory. | ||||
6447 | |||||
6448 | llvm_bin_dir='' | ||||
6449 | llvm_path="${PATH}" | ||||
6450 | if test "${CC}" = "clang" | ||||
6451 | then | ||||
6452 | clang_bin=`which clang` | ||||
6453 | # Some systems install clang elsewhere as a symlink to the real path | ||||
6454 | # which is where the related llvm tools are located. | ||||
6455 | if test -L "${clang_bin}" | ||||
6456 | then | ||||
6457 | clang_dir=`dirname "${clang_bin}"` | ||||
6458 | clang_bin=`readlink "${clang_bin}"` | ||||
6459 | llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` | ||||
6460 | llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" | ||||
6461 | fi | ||||
6462 | fi | ||||
6463 | |||||
Gregory P. Smith | d82da9f | 2016-04-15 23:57:04 | [diff] [blame] | 6464 | # Enable LTO flags |
Gregory P. Smith | d82da9f | 2016-04-15 23:57:04 | [diff] [blame] | 6465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 |
6466 | $as_echo_n "checking for --with-lto... " >&6; } | ||||
6467 | |||||
6468 | # Check whether --with-lto was given. | ||||
6469 | if test "${with_lto+set}" = set; then : | ||||
6470 | withval=$with_lto; | ||||
6471 | if test "$withval" != no | ||||
6472 | then | ||||
6473 | Py_LTO='true' | ||||
6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
6475 | $as_echo "yes" >&6; }; | ||||
6476 | else | ||||
6477 | Py_LTO='false' | ||||
6478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6479 | $as_echo "no" >&6; }; | ||||
6480 | fi | ||||
6481 | else | ||||
6482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6483 | $as_echo "no" >&6; } | ||||
6484 | fi | ||||
6485 | |||||
6486 | if test "$Py_LTO" = 'true' ; then | ||||
6487 | case $CC in | ||||
6488 | *clang*) | ||||
Miss Islington (bot) | 1bb9dd3 | 2018-06-22 07:10:20 | [diff] [blame] | 6489 | |
Miss Islington (bot) | 0a5a1a1 | 2019-09-13 14:51:15 | [diff] [blame] | 6490 | if test -n "$ac_tool_prefix"; then |
6491 | # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args. | ||||
6492 | set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2 | ||||
Miss Islington (bot) | 69a3f15 | 2018-10-25 00:32:04 | [diff] [blame] | 6493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6494 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6495 | if ${ac_cv_path_LLVM_AR+:} false; then : | ||||
6496 | $as_echo_n "(cached) " >&6 | ||||
6497 | else | ||||
6498 | case $LLVM_AR in | ||||
6499 | [\\/]* | ?:[\\/]*) | ||||
6500 | ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path. | ||||
6501 | ;; | ||||
6502 | *) | ||||
6503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6504 | for as_dir in ${llvm_path} | ||||
6505 | do | ||||
6506 | IFS=$as_save_IFS | ||||
6507 | test -z "$as_dir" && as_dir=. | ||||
6508 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6509 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
6510 | ac_cv_path_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" | ||||
6511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6512 | break 2 | ||||
6513 | fi | ||||
6514 | done | ||||
6515 | done | ||||
6516 | IFS=$as_save_IFS | ||||
6517 | |||||
6518 | ;; | ||||
6519 | esac | ||||
6520 | fi | ||||
6521 | LLVM_AR=$ac_cv_path_LLVM_AR | ||||
6522 | if test -n "$LLVM_AR"; then | ||||
6523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5 | ||||
6524 | $as_echo "$LLVM_AR" >&6; } | ||||
6525 | else | ||||
6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6527 | $as_echo "no" >&6; } | ||||
6528 | fi | ||||
6529 | |||||
6530 | |||||
Miss Islington (bot) | 0a5a1a1 | 2019-09-13 14:51:15 | [diff] [blame] | 6531 | fi |
Miss Islington (bot) | 69a3f15 | 2018-10-25 00:32:04 | [diff] [blame] | 6532 | if test -z "$ac_cv_path_LLVM_AR"; then |
Miss Islington (bot) | 0a5a1a1 | 2019-09-13 14:51:15 | [diff] [blame] | 6533 | ac_pt_LLVM_AR=$LLVM_AR |
6534 | # Extract the first word of "llvm-ar", so it can be a program name with args. | ||||
Miss Islington (bot) | 69a3f15 | 2018-10-25 00:32:04 | [diff] [blame] | 6535 | set dummy llvm-ar; ac_word=$2 |
6536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6537 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6538 | if ${ac_cv_path_ac_pt_LLVM_AR+:} false; then : | ||||
6539 | $as_echo_n "(cached) " >&6 | ||||
6540 | else | ||||
6541 | case $ac_pt_LLVM_AR in | ||||
6542 | [\\/]* | ?:[\\/]*) | ||||
6543 | ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path. | ||||
6544 | ;; | ||||
6545 | *) | ||||
6546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6547 | for as_dir in ${llvm_path} | ||||
6548 | do | ||||
6549 | IFS=$as_save_IFS | ||||
6550 | test -z "$as_dir" && as_dir=. | ||||
6551 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6552 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
6553 | ac_cv_path_ac_pt_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" | ||||
6554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6555 | break 2 | ||||
6556 | fi | ||||
6557 | done | ||||
6558 | done | ||||
6559 | IFS=$as_save_IFS | ||||
6560 | |||||
Miss Islington (bot) | 69a3f15 | 2018-10-25 00:32:04 | [diff] [blame] | 6561 | ;; |
6562 | esac | ||||
6563 | fi | ||||
6564 | ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR | ||||
6565 | if test -n "$ac_pt_LLVM_AR"; then | ||||
6566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5 | ||||
6567 | $as_echo "$ac_pt_LLVM_AR" >&6; } | ||||
6568 | else | ||||
6569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6570 | $as_echo "no" >&6; } | ||||
6571 | fi | ||||
6572 | |||||
Miss Islington (bot) | 0a5a1a1 | 2019-09-13 14:51:15 | [diff] [blame] | 6573 | if test "x$ac_pt_LLVM_AR" = x; then |
Miss Islington (bot) | 69a3f15 | 2018-10-25 00:32:04 | [diff] [blame] | 6574 | LLVM_AR="''" |
Miss Islington (bot) | 0a5a1a1 | 2019-09-13 14:51:15 | [diff] [blame] | 6575 | else |
6576 | case $cross_compiling:$ac_tool_warned in | ||||
6577 | yes:) | ||||
6578 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
6579 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
6580 | ac_tool_warned=yes ;; | ||||
6581 | esac | ||||
6582 | LLVM_AR=$ac_pt_LLVM_AR | ||||
Miss Islington (bot) | 69a3f15 | 2018-10-25 00:32:04 | [diff] [blame] | 6583 | fi |
6584 | else | ||||
6585 | LLVM_AR="$ac_cv_path_LLVM_AR" | ||||
6586 | fi | ||||
6587 | |||||
6588 | |||||
6589 | if test -n "${LLVM_AR}" -a -x "${LLVM_AR}" | ||||
6590 | then | ||||
6591 | LLVM_AR_FOUND="found" | ||||
6592 | else | ||||
6593 | LLVM_AR_FOUND="not-found" | ||||
6594 | fi | ||||
6595 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found" | ||||
6596 | then | ||||
6597 | found_llvm_ar=`/usr/bin/xcrun -find llvm-ar 2>/dev/null` | ||||
6598 | if test -n "${found_llvm_ar}" | ||||
6599 | then | ||||
6600 | LLVM_AR='/usr/bin/xcrun llvm-ar' | ||||
6601 | LLVM_AR_FOUND=found | ||||
6602 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5 | ||||
6603 | $as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;} | ||||
6604 | fi | ||||
6605 | fi | ||||
6606 | if test $LLVM_AR_FOUND = not-found | ||||
6607 | then | ||||
6608 | LLVM_PROFR_ERR=yes | ||||
6609 | as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5 | ||||
6610 | else | ||||
6611 | LLVM_AR_ERR=no | ||||
6612 | fi | ||||
6613 | AR="${LLVM_AR}" | ||||
6614 | case $ac_sys_system in | ||||
6615 | Darwin*) | ||||
6616 | # Any changes made here should be reflected in the GCC+Darwin case below | ||||
6617 | LTOFLAGS="-flto -Wl,-export_dynamic" | ||||
6618 | ;; | ||||
6619 | *) | ||||
6620 | LTOFLAGS="-flto" | ||||
6621 | ;; | ||||
6622 | esac | ||||
6623 | ;; | ||||
6624 | *gcc*) | ||||
6625 | case $ac_sys_system in | ||||
6626 | Darwin*) | ||||
6627 | LTOFLAGS="-flto -Wl,-export_dynamic" | ||||
6628 | ;; | ||||
6629 | *) | ||||
6630 | LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" | ||||
6631 | ;; | ||||
6632 | esac | ||||
6633 | ;; | ||||
6634 | esac | ||||
6635 | |||||
6636 | if test "$ac_cv_prog_cc_g" = "yes" | ||||
6637 | then | ||||
6638 | # bpo-30345: Add -g to LDFLAGS when compiling with LTO | ||||
6639 | # to get debug symbols. | ||||
6640 | LTOFLAGS="$LTOFLAGS -g" | ||||
6641 | fi | ||||
6642 | |||||
Miss Islington (bot) | 1751423 | 2018-12-04 15:06:16 | [diff] [blame] | 6643 | CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS" |
Victor Stinner | 0198f52 | 2018-12-20 15:03:01 | [diff] [blame] | 6644 | LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS" |
Miss Islington (bot) | 69a3f15 | 2018-10-25 00:32:04 | [diff] [blame] | 6645 | fi |
6646 | |||||
6647 | # Enable PGO flags. | ||||
6648 | |||||
6649 | |||||
6650 | |||||
6651 | |||||
6652 | |||||
6653 | |||||
Miss Islington (bot) | 0a5a1a1 | 2019-09-13 14:51:15 | [diff] [blame] | 6654 | if test -n "$ac_tool_prefix"; then |
6655 | # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args. | ||||
6656 | set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2 | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6658 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6659 | if ${ac_cv_path_LLVM_PROFDATA+:} false; then : | ||||
6660 | $as_echo_n "(cached) " >&6 | ||||
6661 | else | ||||
6662 | case $LLVM_PROFDATA in | ||||
6663 | [\\/]* | ?:[\\/]*) | ||||
6664 | ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. | ||||
6665 | ;; | ||||
6666 | *) | ||||
6667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6668 | for as_dir in ${llvm_path} | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6669 | do |
6670 | IFS=$as_save_IFS | ||||
6671 | test -z "$as_dir" && as_dir=. | ||||
6672 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6673 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6674 | ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6676 | break 2 | ||||
6677 | fi | ||||
6678 | done | ||||
6679 | done | ||||
6680 | IFS=$as_save_IFS | ||||
6681 | |||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6682 | ;; |
6683 | esac | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6684 | fi |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6685 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA |
6686 | if test -n "$LLVM_PROFDATA"; then | ||||
6687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 | ||||
6688 | $as_echo "$LLVM_PROFDATA" >&6; } | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6689 | else |
6690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6691 | $as_echo "no" >&6; } | ||||
6692 | fi | ||||
6693 | |||||
6694 | |||||
Miss Islington (bot) | 0a5a1a1 | 2019-09-13 14:51:15 | [diff] [blame] | 6695 | fi |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6696 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then |
Miss Islington (bot) | 0a5a1a1 | 2019-09-13 14:51:15 | [diff] [blame] | 6697 | ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA |
6698 | # Extract the first word of "llvm-profdata", so it can be a program name with args. | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6699 | set dummy llvm-profdata; ac_word=$2 |
6700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
6701 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
6702 | if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : | ||||
6703 | $as_echo_n "(cached) " >&6 | ||||
6704 | else | ||||
6705 | case $ac_pt_LLVM_PROFDATA in | ||||
6706 | [\\/]* | ?:[\\/]*) | ||||
6707 | ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. | ||||
6708 | ;; | ||||
6709 | *) | ||||
6710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
6711 | for as_dir in ${llvm_path} | ||||
6712 | do | ||||
6713 | IFS=$as_save_IFS | ||||
6714 | test -z "$as_dir" && as_dir=. | ||||
6715 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
6716 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
6717 | ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | ||||
6718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
6719 | break 2 | ||||
6720 | fi | ||||
6721 | done | ||||
6722 | done | ||||
6723 | IFS=$as_save_IFS | ||||
6724 | |||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6725 | ;; |
6726 | esac | ||||
6727 | fi | ||||
6728 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA | ||||
6729 | if test -n "$ac_pt_LLVM_PROFDATA"; then | ||||
6730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 | ||||
6731 | $as_echo "$ac_pt_LLVM_PROFDATA" >&6; } | ||||
6732 | else | ||||
6733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
6734 | $as_echo "no" >&6; } | ||||
6735 | fi | ||||
6736 | |||||
Miss Islington (bot) | 0a5a1a1 | 2019-09-13 14:51:15 | [diff] [blame] | 6737 | if test "x$ac_pt_LLVM_PROFDATA" = x; then |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6738 | LLVM_PROFDATA="''" |
Miss Islington (bot) | 0a5a1a1 | 2019-09-13 14:51:15 | [diff] [blame] | 6739 | else |
6740 | case $cross_compiling:$ac_tool_warned in | ||||
6741 | yes:) | ||||
6742 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
6743 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
6744 | ac_tool_warned=yes ;; | ||||
6745 | esac | ||||
6746 | LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6747 | fi |
6748 | else | ||||
6749 | LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" | ||||
6750 | fi | ||||
6751 | |||||
6752 | |||||
6753 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" | ||||
6754 | then | ||||
6755 | LLVM_PROF_FOUND="found" | ||||
6756 | else | ||||
6757 | LLVM_PROF_FOUND="not-found" | ||||
6758 | fi | ||||
6759 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" | ||||
6760 | then | ||||
6761 | found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` | ||||
6762 | if test -n "${found_llvm_profdata}" | ||||
6763 | then | ||||
6764 | # llvm-profdata isn't directly in $PATH in some cases. | ||||
6765 | # https://apple.stackexchange.com/questions/197053/ | ||||
6766 | LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' | ||||
6767 | LLVM_PROF_FOUND=found | ||||
6768 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 | ||||
6769 | $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} | ||||
6770 | fi | ||||
6771 | fi | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6772 | LLVM_PROF_ERR=no |
6773 | case $CC in | ||||
6774 | *clang*) | ||||
6775 | # Any changes made here should be reflected in the GCC+Darwin case below | ||||
6776 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | ||||
6777 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6778 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6779 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
6780 | if test $LLVM_PROF_FOUND = not-found | ||||
6781 | then | ||||
6782 | LLVM_PROF_ERR=yes | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6783 | if test "${REQUIRE_PGO}" = "yes" |
6784 | then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 | [diff] [blame] | 6785 | 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 23:10:00 | [diff] [blame] | 6786 | fi |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6787 | fi |
6788 | ;; | ||||
6789 | *gcc*) | ||||
6790 | case $ac_sys_system in | ||||
6791 | Darwin*) | ||||
6792 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | ||||
6793 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6794 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6795 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6796 | if test "${LLVM_PROF_FOUND}" = "not-found" |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6797 | then |
6798 | LLVM_PROF_ERR=yes | ||||
Gregory P. Smith | 799520c | 2016-09-07 23:10:00 | [diff] [blame] | 6799 | if test "${REQUIRE_PGO}" = "yes" |
6800 | then | ||||
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 | [diff] [blame] | 6801 | 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 23:10:00 | [diff] [blame] | 6802 | fi |
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6803 | fi |
6804 | ;; | ||||
6805 | *) | ||||
6806 | PGO_PROF_GEN_FLAG="-fprofile-generate" | ||||
6807 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | ||||
6808 | LLVM_PROF_MERGER="true" | ||||
6809 | LLVM_PROF_FILE="" | ||||
6810 | ;; | ||||
6811 | esac | ||||
6812 | ;; | ||||
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 6813 | *icc*) |
6814 | PGO_PROF_GEN_FLAG="-prof-gen" | ||||
6815 | PGO_PROF_USE_FLAG="-prof-use" | ||||
6816 | LLVM_PROF_MERGER="true" | ||||
6817 | LLVM_PROF_FILE="" | ||||
6818 | ;; | ||||
Brett Cannon | 7188a3e | 2015-09-18 22:13:44 | [diff] [blame] | 6819 | esac |
6820 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6821 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
6822 | # merged with this chunk of code? | ||||
6823 | |||||
6824 | # Optimizer/debugger flags | ||||
6825 | # ------------------------ | ||||
6826 | # (The following bit of code is complicated enough - please keep things | ||||
6827 | # indented properly. Just pretend you're editing Python code. ;-) | ||||
6828 | |||||
6829 | # There are two parallel sets of case statements below, one that checks to | ||||
6830 | # see if OPT was set and one that does BASECFLAGS setting based upon | ||||
6831 | # compiler and platform. BASECFLAGS tweaks need to be made even if the | ||||
6832 | # user set OPT. | ||||
6833 | |||||
6834 | # tweak OPT based on compiler and platform, only if the user didn't set | ||||
6835 | # it on the command line | ||||
6836 | |||||
Victor Stinner | 9ed34a8 | 2017-05-02 20:35:58 | [diff] [blame] | 6837 | |
Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 | [diff] [blame] | 6838 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6839 | then |
6840 | case $GCC in | ||||
6841 | yes) | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6842 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
6843 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | ||||
6844 | WRAP="-fwrapv" | ||||
6845 | fi | ||||
Stefan Krah | 962055d | 2011-09-14 13:14:08 | [diff] [blame] | 6846 | |
Stefan Krah | af04ff2 | 2011-12-08 21:20:31 | [diff] [blame] | 6847 | case $CC in |
Victor Stinner | 28205b2 | 2017-04-21 09:24:34 | [diff] [blame] | 6848 | *clang*) |
Victor Stinner | 35f3d24 | 2017-04-21 10:35:24 | [diff] [blame] | 6849 | cc_is_clang=1 |
Victor Stinner | 28205b2 | 2017-04-21 09:24:34 | [diff] [blame] | 6850 | ;; |
Victor Stinner | 35f3d24 | 2017-04-21 10:35:24 | [diff] [blame] | 6851 | *) |
6852 | if $CC --version 2>&1 | grep -q clang | ||||
6853 | then | ||||
6854 | cc_is_clang=1 | ||||
6855 | else | ||||
6856 | cc_is_clang= | ||||
6857 | fi | ||||
Stefan Krah | af04ff2 | 2011-12-08 21:20:31 | [diff] [blame] | 6858 | esac |
Stefan Krah | 962055d | 2011-09-14 13:14:08 | [diff] [blame] | 6859 | |
Victor Stinner | 35f3d24 | 2017-04-21 10:35:24 | [diff] [blame] | 6860 | if test -n "${cc_is_clang}" |
6861 | then | ||||
6862 | # Clang also needs -fwrapv | ||||
6863 | WRAP="-fwrapv" | ||||
Victor Stinner | 9ed34a8 | 2017-05-02 20:35:58 | [diff] [blame] | 6864 | # bpo-30104: disable strict aliasing to compile correctly dtoa.c, |
6865 | # see Makefile.pre.in for more information | ||||
Victor Stinner | 826f83f | 2017-04-28 13:07:10 | [diff] [blame] | 6866 | CFLAGS_ALIASING="-fno-strict-aliasing" |
Victor Stinner | 35f3d24 | 2017-04-21 10:35:24 | [diff] [blame] | 6867 | fi |
6868 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6869 | case $ac_cv_prog_cc_g in |
6870 | yes) | ||||
6871 | if test "$Py_DEBUG" = 'true' ; then | ||||
6872 | # Optimization messes up debuggers, so turn it off for | ||||
6873 | # debug builds. | ||||
Antoine Pitrou | 3d6c784 | 2015-02-11 18:39:16 | [diff] [blame] | 6874 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then |
Victor Stinner | 28205b2 | 2017-04-21 09:24:34 | [diff] [blame] | 6875 | OPT="-g -Og -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 18:39:16 | [diff] [blame] | 6876 | else |
Victor Stinner | 28205b2 | 2017-04-21 09:24:34 | [diff] [blame] | 6877 | OPT="-g -O0 -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 18:39:16 | [diff] [blame] | 6878 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6879 | else |
Victor Stinner | 28205b2 | 2017-04-21 09:24:34 | [diff] [blame] | 6880 | OPT="-g $WRAP -O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6881 | fi |
6882 | ;; | ||||
6883 | *) | ||||
Victor Stinner | 28205b2 | 2017-04-21 09:24:34 | [diff] [blame] | 6884 | OPT="-O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6885 | ;; |
6886 | esac | ||||
Victor Stinner | 28205b2 | 2017-04-21 09:24:34 | [diff] [blame] | 6887 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6888 | case $ac_sys_system in |
6889 | SCO_SV*) OPT="$OPT -m486 -DSCO5" | ||||
6890 | ;; | ||||
6891 | esac | ||||
6892 | ;; | ||||
6893 | |||||
6894 | *) | ||||
6895 | OPT="-O" | ||||
6896 | ;; | ||||
6897 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6898 | fi |
6899 | |||||
6900 | |||||
6901 | |||||
Benjamin Peterson | acb8c52 | 2014-08-10 03:01:49 | [diff] [blame] | 6902 | |
Victor Stinner | 0198f52 | 2018-12-20 15:03:01 | [diff] [blame] | 6903 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6904 | # The -arch flags for universal builds on OSX |
6905 | UNIVERSAL_ARCH_FLAGS= | ||||
6906 | |||||
6907 | |||||
6908 | # tweak BASECFLAGS based on compiler and platform | ||||
6909 | case $GCC in | ||||
6910 | yes) | ||||
Benjamin Peterson | 050af5d | 2016-09-11 00:53:13 | [diff] [blame] | 6911 | CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" |
Benjamin Peterson | d170256 | 2016-09-07 19:00:06 | [diff] [blame] | 6912 | |
Serhiy Storchaka | ea80ffb | 2016-09-11 18:56:32 | [diff] [blame] | 6913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 |
6914 | $as_echo_n "checking for -Wextra... " >&6; } | ||||
6915 | ac_save_cc="$CC" | ||||
6916 | CC="$CC -Wextra -Werror" | ||||
6917 | if ${ac_cv_extra_warnings+:} false; then : | ||||
6918 | $as_echo_n "(cached) " >&6 | ||||
6919 | else | ||||
6920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
6921 | /* end confdefs.h. */ | ||||
6922 | |||||
6923 | |||||
6924 | int | ||||
6925 | main () | ||||
6926 | { | ||||
6927 | |||||
6928 | ; | ||||
6929 | return 0; | ||||
6930 | } | ||||
6931 | |||||
6932 | _ACEOF | ||||
6933 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
6934 | |||||
6935 | ac_cv_extra_warnings=yes | ||||
6936 | |||||
6937 | else | ||||
6938 | |||||
6939 | ac_cv_extra_warnings=no | ||||
6940 | |||||
6941 | fi | ||||
6942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
6943 | fi | ||||
6944 | |||||
6945 | CC="$ac_save_cc" | ||||
6946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 | ||||
6947 | $as_echo "$ac_cv_extra_warnings" >&6; } | ||||
6948 | |||||
6949 | if test $ac_cv_extra_warnings = yes | ||||
6950 | then | ||||
6951 | CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" | ||||
6952 | fi | ||||
6953 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 6954 | # Python doesn't violate C99 aliasing rules, but older versions of |
6955 | # GCC produce warnings for legal Python code. Enable | ||||
6956 | # -fno-strict-aliasing on versions of GCC that support but produce | ||||
6957 | # warnings. See Issue3326 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
6959 | $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6960 | ac_save_cc="$CC" |
6961 | CC="$CC -fno-strict-aliasing" | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 6962 | save_CFLAGS="$CFLAGS" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 6963 | if ${ac_cv_no_strict_aliasing+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6964 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 6965 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6967 | /* end confdefs.h. */ |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 | [diff] [blame] | 6968 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 6969 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 | [diff] [blame] | 6970 | int |
6971 | main () | ||||
6972 | { | ||||
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 | [diff] [blame] | 6973 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 | [diff] [blame] | 6974 | ; |
6975 | return 0; | ||||
6976 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 6977 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 6978 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6979 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 6980 | |
6981 | CC="$ac_save_cc -fstrict-aliasing" | ||||
6982 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | ||||
6983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 6984 | /* end confdefs.h. */ |
6985 | |||||
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 | [diff] [blame] | 6986 | void f(int **x) {} |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 6987 | int |
6988 | main () | ||||
6989 | { | ||||
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 | [diff] [blame] | 6990 | double *x; f((int **) &x); |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 6991 | ; |
6992 | return 0; | ||||
6993 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 6994 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 6995 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 6996 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 6997 | |
6998 | ac_cv_no_strict_aliasing=no | ||||
6999 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7000 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7001 | |
7002 | ac_cv_no_strict_aliasing=yes | ||||
7003 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7004 | fi |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7006 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7007 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 7008 | |
7009 | ac_cv_no_strict_aliasing=no | ||||
7010 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7011 | fi |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 | [diff] [blame] | 7012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 7013 | fi |
7014 | |||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7015 | CFLAGS="$save_CFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7016 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
7018 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | ||||
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 | [diff] [blame] | 7019 | if test $ac_cv_no_strict_aliasing = yes |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7020 | then |
7021 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | ||||
7022 | fi | ||||
7023 | |||||
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 7024 | # ICC doesn't recognize the option, but only emits a warning |
7025 | ## XXX does it emit an unused result warning and can it be disabled? | ||||
7026 | case "$CC" in | ||||
7027 | *icc*) | ||||
7028 | ac_cv_disable_unused_result_warning=no | ||||
7029 | ;; | ||||
7030 | *) | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 17:23:22 | [diff] [blame] | 7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 |
7032 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | ||||
7033 | ac_save_cc="$CC" | ||||
7034 | CC="$CC -Wunused-result -Werror" | ||||
7035 | save_CFLAGS="$CFLAGS" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7036 | if ${ac_cv_disable_unused_result_warning+:} false; then : |
Benjamin Peterson | 7ddbf10 | 2011-09-23 17:23:22 | [diff] [blame] | 7037 | $as_echo_n "(cached) " >&6 |
7038 | else | ||||
7039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7040 | /* end confdefs.h. */ | ||||
7041 | |||||
7042 | |||||
7043 | int | ||||
7044 | main () | ||||
7045 | { | ||||
7046 | |||||
7047 | ; | ||||
7048 | return 0; | ||||
7049 | } | ||||
7050 | |||||
7051 | _ACEOF | ||||
7052 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7053 | |||||
7054 | ac_cv_disable_unused_result_warning=yes | ||||
7055 | |||||
7056 | else | ||||
7057 | |||||
7058 | ac_cv_disable_unused_result_warning=no | ||||
7059 | |||||
7060 | fi | ||||
7061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7062 | fi | ||||
7063 | |||||
7064 | CFLAGS="$save_CFLAGS" | ||||
7065 | CC="$ac_save_cc" | ||||
7066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 | ||||
7067 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | ||||
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 7068 | ;; |
7069 | esac | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 17:23:22 | [diff] [blame] | 7070 | |
7071 | if test $ac_cv_disable_unused_result_warning = yes | ||||
7072 | then | ||||
7073 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" | ||||
Serhiy Storchaka | ea80ffb | 2016-09-11 18:56:32 | [diff] [blame] | 7074 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" |
7075 | fi | ||||
7076 | |||||
7077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 | ||||
7078 | $as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } | ||||
7079 | ac_save_cc="$CC" | ||||
7080 | CC="$CC -Wunused-parameter -Werror" | ||||
7081 | if ${ac_cv_disable_unused_parameter_warning+:} false; then : | ||||
7082 | $as_echo_n "(cached) " >&6 | ||||
7083 | else | ||||
7084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7085 | /* end confdefs.h. */ | ||||
7086 | |||||
7087 | |||||
7088 | int | ||||
7089 | main () | ||||
7090 | { | ||||
7091 | |||||
7092 | ; | ||||
7093 | return 0; | ||||
7094 | } | ||||
7095 | |||||
7096 | _ACEOF | ||||
7097 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7098 | |||||
7099 | ac_cv_disable_unused_parameter_warning=yes | ||||
7100 | |||||
7101 | else | ||||
7102 | |||||
7103 | ac_cv_disable_unused_parameter_warning=no | ||||
7104 | |||||
7105 | fi | ||||
7106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7107 | fi | ||||
7108 | |||||
7109 | CC="$ac_save_cc" | ||||
7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 | ||||
7111 | $as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } | ||||
7112 | |||||
7113 | if test $ac_cv_disable_unused_parameter_warning = yes | ||||
7114 | then | ||||
7115 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" | ||||
7116 | fi | ||||
7117 | |||||
7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 | ||||
7119 | $as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } | ||||
7120 | ac_save_cc="$CC" | ||||
7121 | CC="$CC -Wmissing-field-initializers -Werror" | ||||
7122 | if ${ac_cv_disable_missing_field_initializers+:} false; then : | ||||
7123 | $as_echo_n "(cached) " >&6 | ||||
7124 | else | ||||
7125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7126 | /* end confdefs.h. */ | ||||
7127 | |||||
7128 | |||||
7129 | int | ||||
7130 | main () | ||||
7131 | { | ||||
7132 | |||||
7133 | ; | ||||
7134 | return 0; | ||||
7135 | } | ||||
7136 | |||||
7137 | _ACEOF | ||||
7138 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7139 | |||||
7140 | ac_cv_disable_missing_field_initializers=yes | ||||
7141 | |||||
7142 | else | ||||
7143 | |||||
7144 | ac_cv_disable_missing_field_initializers=no | ||||
7145 | |||||
7146 | fi | ||||
7147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7148 | fi | ||||
7149 | |||||
7150 | CC="$ac_save_cc" | ||||
7151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 | ||||
7152 | $as_echo "$ac_cv_disable_missing_field_initializers" >&6; } | ||||
7153 | |||||
7154 | if test $ac_cv_disable_missing_field_initializers = yes | ||||
7155 | then | ||||
7156 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" | ||||
Benjamin Peterson | 7ddbf10 | 2011-09-23 17:23:22 | [diff] [blame] | 7157 | fi |
7158 | |||||
Serhiy Storchaka | ef91dde | 2018-05-25 10:16:51 | [diff] [blame] | 7159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC invalid function cast warning" >&5 |
7160 | $as_echo_n "checking if we can turn off $CC invalid function cast warning... " >&6; } | ||||
7161 | ac_save_cc="$CC" | ||||
7162 | CC="$CC -Wcast-function-type -Werror" | ||||
7163 | if ${ac_cv_disable_cast_function_type+:} false; then : | ||||
7164 | $as_echo_n "(cached) " >&6 | ||||
7165 | else | ||||
7166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7167 | /* end confdefs.h. */ | ||||
7168 | |||||
7169 | |||||
7170 | int | ||||
7171 | main () | ||||
7172 | { | ||||
7173 | |||||
7174 | ; | ||||
7175 | return 0; | ||||
7176 | } | ||||
7177 | |||||
7178 | _ACEOF | ||||
7179 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7180 | |||||
7181 | ac_cv_disable_cast_function_type=yes | ||||
7182 | |||||
7183 | else | ||||
7184 | |||||
7185 | ac_cv_disable_cast_function_type=no | ||||
7186 | |||||
7187 | fi | ||||
7188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7189 | fi | ||||
7190 | |||||
7191 | CC="$ac_save_cc" | ||||
7192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_cast_function_type" >&5 | ||||
7193 | $as_echo "$ac_cv_disable_cast_function_type" >&6; } | ||||
7194 | |||||
7195 | if test $ac_cv_disable_cast_function_type = yes | ||||
7196 | then | ||||
7197 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-cast-function-type" | ||||
7198 | fi | ||||
7199 | |||||
Charles-François Natali | 7f9cc93 | 2014-08-01 20:57:49 | [diff] [blame] | 7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 |
7201 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } | ||||
7202 | ac_save_cc="$CC" | ||||
7203 | CC="$CC -Wsign-compare" | ||||
7204 | save_CFLAGS="$CFLAGS" | ||||
7205 | if ${ac_cv_enable_sign_compare_warning+:} false; then : | ||||
7206 | $as_echo_n "(cached) " >&6 | ||||
7207 | else | ||||
7208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7209 | /* end confdefs.h. */ | ||||
7210 | |||||
7211 | |||||
7212 | int | ||||
7213 | main () | ||||
7214 | { | ||||
7215 | |||||
7216 | ; | ||||
7217 | return 0; | ||||
7218 | } | ||||
7219 | |||||
7220 | _ACEOF | ||||
7221 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7222 | |||||
7223 | ac_cv_enable_sign_compare_warning=yes | ||||
7224 | |||||
7225 | else | ||||
7226 | |||||
7227 | ac_cv_enable_sign_compare_warning=no | ||||
7228 | |||||
7229 | fi | ||||
7230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7231 | fi | ||||
7232 | |||||
7233 | CFLAGS="$save_CFLAGS" | ||||
7234 | CC="$ac_save_cc" | ||||
7235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 | ||||
7236 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } | ||||
7237 | |||||
7238 | if test $ac_cv_enable_sign_compare_warning = yes | ||||
7239 | then | ||||
7240 | BASECFLAGS="$BASECFLAGS -Wsign-compare" | ||||
7241 | fi | ||||
7242 | |||||
7243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 | ||||
7244 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } | ||||
7245 | ac_save_cc="$CC" | ||||
7246 | CC="$CC -Wunreachable-code" | ||||
7247 | save_CFLAGS="$CFLAGS" | ||||
7248 | if ${ac_cv_enable_unreachable_code_warning+:} false; then : | ||||
7249 | $as_echo_n "(cached) " >&6 | ||||
7250 | else | ||||
7251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7252 | /* end confdefs.h. */ | ||||
7253 | |||||
7254 | |||||
7255 | int | ||||
7256 | main () | ||||
7257 | { | ||||
7258 | |||||
7259 | ; | ||||
7260 | return 0; | ||||
7261 | } | ||||
7262 | |||||
7263 | _ACEOF | ||||
7264 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7265 | |||||
7266 | ac_cv_enable_unreachable_code_warning=yes | ||||
7267 | |||||
7268 | else | ||||
7269 | |||||
7270 | ac_cv_enable_unreachable_code_warning=no | ||||
7271 | |||||
7272 | fi | ||||
7273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7274 | fi | ||||
7275 | |||||
7276 | CFLAGS="$save_CFLAGS" | ||||
7277 | CC="$ac_save_cc" | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 20:57:49 | [diff] [blame] | 7278 | |
7279 | # Don't enable unreachable code warning in debug mode, since it usually | ||||
7280 | # results in non-standard code paths. | ||||
Ned Deily | bec699e | 2016-03-08 05:28:37 | [diff] [blame] | 7281 | # Issue #24324: Unfortunately, the unreachable code warning does not work |
7282 | # correctly on gcc and has been silently removed from the compiler. | ||||
7283 | # It is supported on clang but on OS X systems gcc may be an alias | ||||
7284 | # for clang. Try to determine if the compiler is not really gcc and, | ||||
7285 | # if so, only then enable the warning. | ||||
7286 | if test $ac_cv_enable_unreachable_code_warning = yes && \ | ||||
7287 | test "$Py_DEBUG" != "true" && \ | ||||
7288 | test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`" | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 20:57:49 | [diff] [blame] | 7289 | then |
7290 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" | ||||
Ned Deily | bec699e | 2016-03-08 05:28:37 | [diff] [blame] | 7291 | else |
7292 | ac_cv_enable_unreachable_code_warning=no | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 20:57:49 | [diff] [blame] | 7293 | fi |
Ned Deily | bec699e | 2016-03-08 05:28:37 | [diff] [blame] | 7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 |
7295 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } | ||||
Charles-François Natali | 7f9cc93 | 2014-08-01 20:57:49 | [diff] [blame] | 7296 | |
Miss Islington (bot) | d6e789c | 2018-06-06 00:12:06 | [diff] [blame] | 7297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5 |
7298 | $as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; } | ||||
7299 | ac_save_cc="$CC" | ||||
7300 | CC="$CC -Werror -Wstrict-prototypes" | ||||
7301 | if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then : | ||||
7302 | $as_echo_n "(cached) " >&6 | ||||
7303 | else | ||||
7304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7305 | /* end confdefs.h. */ | ||||
7306 | |||||
7307 | |||||
7308 | int | ||||
7309 | main () | ||||
7310 | { | ||||
7311 | |||||
7312 | ; | ||||
7313 | return 0; | ||||
7314 | } | ||||
7315 | |||||
7316 | _ACEOF | ||||
7317 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7318 | |||||
7319 | ac_cv_enable_strict_prototypes_warning=yes | ||||
7320 | |||||
7321 | else | ||||
7322 | |||||
7323 | ac_cv_enable_strict_prototypes_warning=no | ||||
7324 | |||||
7325 | fi | ||||
7326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7327 | fi | ||||
7328 | |||||
7329 | CC="$ac_save_cc" | ||||
7330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5 | ||||
7331 | $as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; } | ||||
7332 | |||||
7333 | if test $ac_cv_enable_strict_prototypes_warning = yes | ||||
7334 | then | ||||
7335 | CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes" | ||||
7336 | fi | ||||
7337 | |||||
Victor Stinner | 193ee0a | 2017-02-06 13:24:00 | [diff] [blame] | 7338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 |
7339 | $as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; } | ||||
7340 | ac_save_cc="$CC" | ||||
7341 | CC="$CC -Werror=implicit-function-declaration" | ||||
7342 | if ${ac_cv_enable_implicit_function_declaration_error+:} false; then : | ||||
7343 | $as_echo_n "(cached) " >&6 | ||||
7344 | else | ||||
7345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
7346 | /* end confdefs.h. */ | ||||
7347 | |||||
7348 | |||||
7349 | int | ||||
7350 | main () | ||||
7351 | { | ||||
7352 | |||||
7353 | ; | ||||
7354 | return 0; | ||||
7355 | } | ||||
7356 | |||||
7357 | _ACEOF | ||||
7358 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
7359 | |||||
7360 | ac_cv_enable_implicit_function_declaration_error=yes | ||||
7361 | |||||
7362 | else | ||||
7363 | |||||
7364 | ac_cv_enable_implicit_function_declaration_error=no | ||||
7365 | |||||
7366 | fi | ||||
7367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
7368 | fi | ||||
7369 | |||||
7370 | CC="$ac_save_cc" | ||||
7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 | ||||
7372 | $as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; } | ||||
7373 | |||||
7374 | if test $ac_cv_enable_implicit_function_declaration_error = yes | ||||
7375 | then | ||||
7376 | CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" | ||||
7377 | fi | ||||
7378 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7379 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
7380 | # support. Without this, treatment of subnormals doesn't follow | ||||
7381 | # the standard. | ||||
Matthias Klose | df2aecb | 2012-03-15 21:19:28 | [diff] [blame] | 7382 | case $host in |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7383 | alpha*) |
7384 | BASECFLAGS="$BASECFLAGS -mieee" | ||||
7385 | ;; | ||||
7386 | esac | ||||
7387 | |||||
7388 | case $ac_sys_system in | ||||
7389 | SCO_SV*) | ||||
7390 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | ||||
7391 | ;; | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7392 | |
7393 | # is there any other compiler on Darwin besides gcc? | ||||
7394 | Darwin*) | ||||
7395 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | ||||
7396 | # used to be here, but non-Apple gcc doesn't accept them. | ||||
7397 | if test "${CC}" = gcc | ||||
7398 | then | ||||
7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7400 | $as_echo_n "checking which compiler should be used... " >&6; } |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7401 | case "${UNIVERSALSDK}" in |
7402 | */MacOSX10.4u.sdk) | ||||
7403 | # Build using 10.4 SDK, force usage of gcc when the | ||||
7404 | # compiler is gcc, otherwise the user will get very | ||||
7405 | # confusing error messages when building on OSX 10.6 | ||||
7406 | CC=gcc-4.0 | ||||
7407 | CPP=cpp-4.0 | ||||
7408 | ;; | ||||
7409 | esac | ||||
7410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7411 | $as_echo "$CC" >&6; } |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7412 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7413 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7414 | if test "${enable_universalsdk}" |
7415 | then | ||||
7416 | case "$UNIVERSAL_ARCHS" in | ||||
7417 | 32-bit) | ||||
7418 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | ||||
7419 | LIPO_32BIT_FLAGS="" | ||||
7420 | ARCH_RUN_32BIT="" | ||||
7421 | ;; | ||||
7422 | 64-bit) | ||||
7423 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | ||||
7424 | LIPO_32BIT_FLAGS="" | ||||
7425 | ARCH_RUN_32BIT="true" | ||||
7426 | ;; | ||||
7427 | all) | ||||
7428 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | ||||
7429 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | ||||
7430 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | ||||
7431 | ;; | ||||
7432 | intel) | ||||
7433 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | ||||
7434 | LIPO_32BIT_FLAGS="-extract i386" | ||||
7435 | ARCH_RUN_32BIT="/usr/bin/arch -i386" | ||||
7436 | ;; | ||||
7437 | intel-32) | ||||
7438 | UNIVERSAL_ARCH_FLAGS="-arch i386" | ||||
7439 | LIPO_32BIT_FLAGS="" | ||||
7440 | ARCH_RUN_32BIT="" | ||||
7441 | ;; | ||||
Ned Deily | 8c9bb72 | 2018-01-30 12:42:14 | [diff] [blame] | 7442 | intel-64) |
7443 | UNIVERSAL_ARCH_FLAGS="-arch x86_64" | ||||
7444 | LIPO_32BIT_FLAGS="" | ||||
7445 | ARCH_RUN_32BIT="true" | ||||
7446 | ;; | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7447 | 3-way) |
7448 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | ||||
7449 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | ||||
7450 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | ||||
7451 | ;; | ||||
7452 | *) | ||||
7453 | as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | ||||
7454 | ;; | ||||
7455 | esac | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7456 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7457 | if test "${UNIVERSALSDK}" != "/" |
7458 | then | ||||
Ned Deily | 8c9bb72 | 2018-01-30 12:42:14 | [diff] [blame] | 7459 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
7460 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7461 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
Ned Deily | 8c9bb72 | 2018-01-30 12:42:14 | [diff] [blame] | 7462 | else |
7463 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" | ||||
7464 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}" | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7465 | fi |
7466 | fi | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7467 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7468 | # Calculate an appropriate deployment target for this build: |
7469 | # The deployment target value is used explicitly to enable certain | ||||
7470 | # features are enabled (such as builtin libedit support for readline) | ||||
Raymond Hettinger | 15f44ab | 2016-08-30 17:47:49 | [diff] [blame] | 7471 | # through the use of Apple's Availability Macros and is used as a |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7472 | # component of the string returned by distutils.get_platform(). |
7473 | # | ||||
7474 | # Use the value from: | ||||
7475 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | ||||
7476 | # 2. the operating system version of the build machine if >= 10.6 | ||||
7477 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests | ||||
7478 | # below to pick either 10.3, 10.4, or 10.5 as the target. | ||||
7479 | # 4. If we are running on OS X 10.2 or earlier, good luck! | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7480 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 |
7482 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | ||||
Ned Deily | 36820b6 | 2014-06-25 20:44:22 | [diff] [blame] | 7483 | cur_target_major=`sw_vers -productVersion | \ |
7484 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | ||||
7485 | cur_target_minor=`sw_vers -productVersion | \ | ||||
7486 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | ||||
7487 | cur_target="${cur_target_major}.${cur_target_minor}" | ||||
7488 | if test ${cur_target_major} -eq 10 && \ | ||||
7489 | test ${cur_target_minor} -ge 3 && \ | ||||
7490 | test ${cur_target_minor} -le 5 | ||||
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7491 | then |
Ned Deily | 36820b6 | 2014-06-25 20:44:22 | [diff] [blame] | 7492 | # OS X 10.3 through 10.5 |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7493 | cur_target=10.3 |
7494 | if test ${enable_universalsdk} | ||||
7495 | then | ||||
7496 | case "$UNIVERSAL_ARCHS" in | ||||
7497 | all|3-way|intel|64-bit) | ||||
7498 | # These configurations were first supported in 10.5 | ||||
7499 | cur_target='10.5' | ||||
7500 | ;; | ||||
7501 | esac | ||||
7502 | else | ||||
7503 | if test `/usr/bin/arch` = "i386" | ||||
7504 | then | ||||
7505 | # 10.4 was the first release to support Intel archs | ||||
7506 | cur_target="10.4" | ||||
7507 | fi | ||||
7508 | fi | ||||
7509 | fi | ||||
7510 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 | [diff] [blame] | 7511 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7512 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
7513 | # environment with a value that is the same as what we'll use | ||||
7514 | # in the Makefile to ensure that we'll get the same compiler | ||||
7515 | # environment during configure and build time. | ||||
7516 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | ||||
7517 | export MACOSX_DEPLOYMENT_TARGET | ||||
7518 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' | ||||
7519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 | ||||
7520 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 | [diff] [blame] | 7521 | |
Ned Deily | 87adb6e | 2013-10-19 04:09:56 | [diff] [blame] | 7522 | # end of Darwin* tests |
7523 | ;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7524 | esac |
7525 | ;; | ||||
7526 | |||||
7527 | *) | ||||
7528 | case $ac_sys_system in | ||||
7529 | OpenUNIX*|UnixWare*) | ||||
7530 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | ||||
7531 | ;; | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7532 | SCO_SV*) |
7533 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | ||||
7534 | ;; | ||||
7535 | esac | ||||
7536 | ;; | ||||
7537 | esac | ||||
7538 | |||||
Zachary Ware | 5af8564 | 2015-12-21 18:09:17 | [diff] [blame] | 7539 | # ICC needs -fp-model strict or floats behave badly |
7540 | case "$CC" in | ||||
7541 | *icc*) | ||||
7542 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" | ||||
7543 | ;; | ||||
7544 | esac | ||||
7545 | |||||
T. Wouters | ddbfa2c | 2017-05-22 23:30:49 | [diff] [blame] | 7546 | if test "$assertions" = 'true'; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7547 | : |
7548 | else | ||||
7549 | OPT="-DNDEBUG $OPT" | ||||
7550 | fi | ||||
7551 | |||||
7552 | if test "$ac_arch_flags" | ||||
7553 | then | ||||
7554 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" | ||||
7555 | fi | ||||
7556 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7557 | # On some compilers, pthreads are available without further options |
7558 | # (e.g. MacOS X). On some of these systems, the compiler will not | ||||
7559 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | ||||
7560 | # So we have to see first whether pthreads are available without | ||||
7561 | # options before we can check whether -Kpthread improves anything. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
7563 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7564 | if ${ac_cv_pthread_is_default+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7565 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7566 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7567 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7568 | ac_cv_pthread_is_default=no |
7569 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7571 | /* end confdefs.h. */ |
7572 | |||||
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 7573 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7574 | #include <pthread.h> |
7575 | |||||
7576 | void* routine(void* p){return NULL;} | ||||
7577 | |||||
7578 | int main(){ | ||||
7579 | pthread_t p; | ||||
7580 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7581 | return 1; | ||||
7582 | (void)pthread_detach(p); | ||||
7583 | return 0; | ||||
7584 | } | ||||
7585 | |||||
7586 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7587 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7588 | |
7589 | ac_cv_pthread_is_default=yes | ||||
7590 | ac_cv_kthread=no | ||||
7591 | ac_cv_pthread=no | ||||
7592 | |||||
7593 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7594 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7595 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7596 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7597 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7598 | fi |
7599 | |||||
7600 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7601 | fi |
7602 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
7604 | $as_echo "$ac_cv_pthread_is_default" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7605 | |
7606 | |||||
7607 | if test $ac_cv_pthread_is_default = yes | ||||
7608 | then | ||||
7609 | ac_cv_kpthread=no | ||||
7610 | else | ||||
7611 | # -Kpthread, if available, provides the right #defines | ||||
7612 | # and linker options to make pthread_create available | ||||
7613 | # Some compilers won't report that they do not support -Kpthread, | ||||
7614 | # so we need to run a program to see whether it really made the | ||||
7615 | # function available. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
7617 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7618 | if ${ac_cv_kpthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7619 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7620 | else |
7621 | ac_save_cc="$CC" | ||||
7622 | CC="$CC -Kpthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7623 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7624 | ac_cv_kpthread=no |
7625 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7627 | /* end confdefs.h. */ |
7628 | |||||
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 7629 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7630 | #include <pthread.h> |
7631 | |||||
7632 | void* routine(void* p){return NULL;} | ||||
7633 | |||||
7634 | int main(){ | ||||
7635 | pthread_t p; | ||||
7636 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7637 | return 1; | ||||
7638 | (void)pthread_detach(p); | ||||
7639 | return 0; | ||||
7640 | } | ||||
7641 | |||||
7642 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7643 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7644 | ac_cv_kpthread=yes |
7645 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7646 | ac_cv_kpthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7647 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7648 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7649 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7650 | fi |
7651 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7652 | CC="$ac_save_cc" |
7653 | fi | ||||
7654 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
7656 | $as_echo "$ac_cv_kpthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7657 | fi |
7658 | |||||
7659 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | ||||
7660 | then | ||||
7661 | # -Kthread, if available, provides the right #defines | ||||
7662 | # and linker options to make pthread_create available | ||||
7663 | # Some compilers won't report that they do not support -Kthread, | ||||
7664 | # so we need to run a program to see whether it really made the | ||||
7665 | # function available. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
7667 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7668 | if ${ac_cv_kthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7669 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7670 | else |
7671 | ac_save_cc="$CC" | ||||
7672 | CC="$CC -Kthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7673 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7674 | ac_cv_kthread=no |
7675 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7677 | /* end confdefs.h. */ |
7678 | |||||
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 7679 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7680 | #include <pthread.h> |
7681 | |||||
7682 | void* routine(void* p){return NULL;} | ||||
7683 | |||||
7684 | int main(){ | ||||
7685 | pthread_t p; | ||||
7686 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7687 | return 1; | ||||
7688 | (void)pthread_detach(p); | ||||
7689 | return 0; | ||||
7690 | } | ||||
7691 | |||||
7692 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7693 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7694 | ac_cv_kthread=yes |
7695 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7696 | ac_cv_kthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7697 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7698 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7699 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7700 | fi |
7701 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7702 | CC="$ac_save_cc" |
7703 | fi | ||||
7704 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
7706 | $as_echo "$ac_cv_kthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7707 | fi |
7708 | |||||
7709 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | ||||
7710 | then | ||||
7711 | # -pthread, if available, provides the right #defines | ||||
7712 | # and linker options to make pthread_create available | ||||
7713 | # Some compilers won't report that they do not support -pthread, | ||||
7714 | # so we need to run a program to see whether it really made the | ||||
7715 | # function available. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
7717 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | ||||
doko@python.org | 7981f20 | 2013-01-25 14:33:25 | [diff] [blame] | 7718 | if ${ac_cv_pthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7719 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7720 | else |
7721 | ac_save_cc="$CC" | ||||
7722 | CC="$CC -pthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7723 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7724 | ac_cv_pthread=no |
7725 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7727 | /* end confdefs.h. */ |
7728 | |||||
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 7729 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7730 | #include <pthread.h> |
7731 | |||||
7732 | void* routine(void* p){return NULL;} | ||||
7733 | |||||
7734 | int main(){ | ||||
7735 | pthread_t p; | ||||
7736 | if(pthread_create(&p,NULL,routine,NULL)!=0) | ||||
7737 | return 1; | ||||
7738 | (void)pthread_detach(p); | ||||
7739 | return 0; | ||||
7740 | } | ||||
7741 | |||||
7742 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7743 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7744 | ac_cv_pthread=yes |
7745 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7746 | ac_cv_pthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7747 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7748 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7749 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7750 | fi |
7751 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7752 | CC="$ac_save_cc" |
7753 | fi | ||||
7754 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
7756 | $as_echo "$ac_cv_pthread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7757 | fi |
7758 | |||||
7759 | # If we have set a CC compiler flag for thread support then | ||||
7760 | # check if it works for CXX, too. | ||||
7761 | ac_cv_cxx_thread=no | ||||
7762 | if test ! -z "$CXX" | ||||
7763 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
7765 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7766 | ac_save_cxx="$CXX" |
7767 | |||||
7768 | if test "$ac_cv_kpthread" = "yes" | ||||
7769 | then | ||||
7770 | CXX="$CXX -Kpthread" | ||||
7771 | ac_cv_cxx_thread=yes | ||||
7772 | elif test "$ac_cv_kthread" = "yes" | ||||
7773 | then | ||||
7774 | CXX="$CXX -Kthread" | ||||
7775 | ac_cv_cxx_thread=yes | ||||
7776 | elif test "$ac_cv_pthread" = "yes" | ||||
7777 | then | ||||
7778 | CXX="$CXX -pthread" | ||||
7779 | ac_cv_cxx_thread=yes | ||||
7780 | fi | ||||
7781 | |||||
7782 | if test $ac_cv_cxx_thread = yes | ||||
7783 | then | ||||
7784 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | ||||
7785 | $CXX -c conftest.$ac_ext 2>&5 | ||||
7786 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | ||||
7787 | && test -s conftest$ac_exeext && ./conftest$ac_exeext | ||||
7788 | then | ||||
7789 | ac_cv_cxx_thread=yes | ||||
7790 | else | ||||
7791 | ac_cv_cxx_thread=no | ||||
7792 | fi | ||||
7793 | rm -fr conftest* | ||||
7794 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
7796 | $as_echo "$ac_cv_cxx_thread" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7797 | fi |
7798 | CXX="$ac_save_cxx" | ||||
7799 | |||||
7800 | |||||
7801 | # checks for header files | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7803 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7804 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7805 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7806 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7808 | /* end confdefs.h. */ |
7809 | #include <stdlib.h> | ||||
7810 | #include <stdarg.h> | ||||
7811 | #include <string.h> | ||||
7812 | #include <float.h> | ||||
7813 | |||||
7814 | int | ||||
7815 | main () | ||||
7816 | { | ||||
7817 | |||||
7818 | ; | ||||
7819 | return 0; | ||||
7820 | } | ||||
7821 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7822 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7823 | ac_cv_header_stdc=yes |
7824 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7825 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7826 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7828 | |||||
7829 | if test $ac_cv_header_stdc = yes; then | ||||
7830 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7832 | /* end confdefs.h. */ |
7833 | #include <string.h> | ||||
7834 | |||||
7835 | _ACEOF | ||||
7836 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7837 | $EGREP "memchr" >/dev/null 2>&1; then : |
7838 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7839 | else |
7840 | ac_cv_header_stdc=no | ||||
7841 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 7842 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7843 | |
7844 | fi | ||||
7845 | |||||
7846 | if test $ac_cv_header_stdc = yes; then | ||||
7847 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7849 | /* end confdefs.h. */ |
7850 | #include <stdlib.h> | ||||
7851 | |||||
7852 | _ACEOF | ||||
7853 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7854 | $EGREP "free" >/dev/null 2>&1; then : |
7855 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7856 | else |
7857 | ac_cv_header_stdc=no | ||||
7858 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 7859 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7860 | |
7861 | fi | ||||
7862 | |||||
7863 | if test $ac_cv_header_stdc = yes; then | ||||
7864 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7865 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7866 | : |
7867 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7869 | /* end confdefs.h. */ |
7870 | #include <ctype.h> | ||||
7871 | #include <stdlib.h> | ||||
7872 | #if ((' ' & 0x0FF) == 0x020) | ||||
7873 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||||
7874 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||||
7875 | #else | ||||
7876 | # define ISLOWER(c) \ | ||||
7877 | (('a' <= (c) && (c) <= 'i') \ | ||||
7878 | || ('j' <= (c) && (c) <= 'r') \ | ||||
7879 | || ('s' <= (c) && (c) <= 'z')) | ||||
7880 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||||
7881 | #endif | ||||
7882 | |||||
7883 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||||
7884 | int | ||||
7885 | main () | ||||
7886 | { | ||||
7887 | int i; | ||||
7888 | for (i = 0; i < 256; i++) | ||||
7889 | if (XOR (islower (i), ISLOWER (i)) | ||||
7890 | || toupper (i) != TOUPPER (i)) | ||||
7891 | return 2; | ||||
7892 | return 0; | ||||
7893 | } | ||||
7894 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7895 | if ac_fn_c_try_run "$LINENO"; then : |
7896 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7897 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7898 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7899 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7900 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7901 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7902 | fi |
7903 | |||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7904 | fi |
7905 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7907 | $as_echo "$ac_cv_header_stdc" >&6; } | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7908 | if test $ac_cv_header_stdc = yes; then |
7909 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7910 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 7911 | |
7912 | fi | ||||
7913 | |||||
stratakis | e768c86 | 2018-01-23 15:11:24 | [diff] [blame] | 7914 | 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 | [diff] [blame] | 7915 | fcntl.h grp.h \ |
doko@ubuntu.com | 1a4f561 | 2014-04-17 18:13:44 | [diff] [blame] | 7916 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ |
Benjamin Peterson | 4fe5510 | 2016-09-06 18:58:01 | [diff] [blame] | 7917 | sched.h shadow.h signal.h stropts.h termios.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 | [diff] [blame] | 7918 | unistd.h utime.h \ |
Jesus Cea | d8b9ae6 | 2011-11-14 18:07:41 | [diff] [blame] | 7919 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ |
Antoine Pitrou | bcf2b59 | 2012-02-08 22:28:36 | [diff] [blame] | 7920 | 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 16:44:58 | [diff] [blame] | 7921 | sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ |
Benjamin Peterson | fb2ae15 | 2016-12-20 07:54:25 | [diff] [blame] | 7922 | 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 16:44:58 | [diff] [blame] | 7923 | 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 | [diff] [blame] | 7924 | 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 19:18:23 | [diff] [blame] | 7925 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Benjamin Peterson | 93b2dee | 2016-09-09 17:22:45 | [diff] [blame] | 7926 | linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \ |
Christian Heimes | 75b9618 | 2017-09-05 13:53:09 | [diff] [blame] | 7927 | sys/endian.h sys/sysmacros.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7928 | do : |
7929 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
7930 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 7931 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7932 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7933 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7934 | _ACEOF |
7935 | |||||
7936 | fi | ||||
7937 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 7938 | done |
7939 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 7940 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7941 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7942 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
7943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | ||||
7944 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7945 | if eval \${$as_ac_Header+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7946 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 7947 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 7949 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 7950 | #include <sys/types.h> |
7951 | #include <$ac_hdr> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7953 | int |
7954 | main () | ||||
7955 | { | ||||
7956 | if ((DIR *) 0) | ||||
7957 | return 0; | ||||
7958 | ; | ||||
7959 | return 0; | ||||
7960 | } | ||||
7961 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7962 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7963 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 7964 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7965 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 7966 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 7967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 7968 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7969 | eval ac_res=\$$as_ac_Header |
7970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||||
7971 | $as_echo "$ac_res" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 7972 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7973 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7974 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7975 | _ACEOF |
7976 | |||||
7977 | ac_header_dirent=$ac_hdr; break | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 7978 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7979 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 7980 | done |
7981 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | ||||
7982 | if test $ac_header_dirent = dirent.h; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
7984 | $as_echo_n "checking for library containing opendir... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 7985 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7986 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 7987 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7988 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 7989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 7990 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7991 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 7992 | /* Override any GCC internal prototype to avoid an error. |
7993 | Use char because int might match the return type of a GCC | ||||
7994 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7995 | #ifdef __cplusplus |
7996 | extern "C" | ||||
7997 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7998 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 7999 | int |
8000 | main () | ||||
8001 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8002 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8003 | ; |
8004 | return 0; | ||||
8005 | } | ||||
8006 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8007 | for ac_lib in '' dir; do |
8008 | if test -z "$ac_lib"; then | ||||
8009 | ac_res="none required" | ||||
8010 | else | ||||
8011 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 8012 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8013 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8014 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8015 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 8016 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8017 | rm -f core conftest.err conftest.$ac_objext \ |
8018 | conftest$ac_exeext | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8019 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8020 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 8021 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8022 | done |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8023 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8024 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8025 | else |
8026 | ac_cv_search_opendir=no | ||||
8027 | fi | ||||
8028 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8029 | LIBS=$ac_func_search_save_LIBS |
8030 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
8032 | $as_echo "$ac_cv_search_opendir" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8033 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8034 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8035 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8036 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8037 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8038 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8039 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
8041 | $as_echo_n "checking for library containing opendir... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8042 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8043 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8044 | else |
8045 | ac_func_search_save_LIBS=$LIBS | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8047 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8048 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8049 | /* Override any GCC internal prototype to avoid an error. |
8050 | Use char because int might match the return type of a GCC | ||||
8051 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8052 | #ifdef __cplusplus |
8053 | extern "C" | ||||
8054 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8055 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8056 | int |
8057 | main () | ||||
8058 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8059 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8060 | ; |
8061 | return 0; | ||||
8062 | } | ||||
8063 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8064 | for ac_lib in '' x; do |
8065 | if test -z "$ac_lib"; then | ||||
8066 | ac_res="none required" | ||||
8067 | else | ||||
8068 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 8069 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8070 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8071 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8072 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 8073 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8074 | rm -f core conftest.err conftest.$ac_objext \ |
8075 | conftest$ac_exeext | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8076 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8077 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 8078 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8079 | done |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8080 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8081 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8082 | else |
8083 | ac_cv_search_opendir=no | ||||
8084 | fi | ||||
8085 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8086 | LIBS=$ac_func_search_save_LIBS |
8087 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
8089 | $as_echo "$ac_cv_search_opendir" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8090 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8091 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8092 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8093 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8094 | fi |
8095 | |||||
8096 | fi | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8097 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
8099 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8100 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8101 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8102 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8104 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8105 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8106 | int |
8107 | main () | ||||
8108 | { | ||||
8109 | return makedev(0, 0); | ||||
8110 | ; | ||||
8111 | return 0; | ||||
8112 | } | ||||
8113 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8114 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8115 | ac_cv_header_sys_types_h_makedev=yes |
8116 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8117 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8118 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8119 | rm -f core conftest.err conftest.$ac_objext \ |
8120 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8121 | |
8122 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
8124 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8125 | |
8126 | if test $ac_cv_header_sys_types_h_makedev = no; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8127 | 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 11:06:09 | [diff] [blame] | 8128 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8129 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8130 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8131 | |
8132 | fi | ||||
8133 | |||||
8134 | |||||
8135 | |||||
8136 | if test $ac_cv_header_sys_mkdev_h = no; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8137 | 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 11:06:09 | [diff] [blame] | 8138 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8139 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8140 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 8141 | |
8142 | fi | ||||
8143 | |||||
8144 | |||||
8145 | fi | ||||
8146 | fi | ||||
8147 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8148 | |
Benjamin Peterson | 93b2dee | 2016-09-09 17:22:45 | [diff] [blame] | 8149 | # bluetooth/bluetooth.h has been known to not compile with -std=c99. |
8150 | # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 | ||||
8151 | SAVE_CFLAGS=$CFLAGS | ||||
8152 | CFLAGS="-std=c99 $CFLAGS" | ||||
8153 | for ac_header in bluetooth/bluetooth.h | ||||
8154 | do : | ||||
8155 | ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" | ||||
8156 | if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : | ||||
8157 | cat >>confdefs.h <<_ACEOF | ||||
8158 | #define HAVE_BLUETOOTH_BLUETOOTH_H 1 | ||||
8159 | _ACEOF | ||||
8160 | |||||
8161 | fi | ||||
8162 | |||||
8163 | done | ||||
8164 | |||||
8165 | CFLAGS=$SAVE_CFLAGS | ||||
8166 | |||||
Gregory P. Smith | 3b1f2c3 | 2011-05-15 19:18:23 | [diff] [blame] | 8167 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. |
8168 | for ac_header in net/if.h | ||||
8169 | do : | ||||
8170 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | ||||
8171 | #ifdef STDC_HEADERS | ||||
8172 | # include <stdlib.h> | ||||
8173 | # include <stddef.h> | ||||
8174 | #else | ||||
8175 | # ifdef HAVE_STDLIB_H | ||||
8176 | # include <stdlib.h> | ||||
8177 | # endif | ||||
8178 | #endif | ||||
8179 | #ifdef HAVE_SYS_SOCKET_H | ||||
8180 | # include <sys/socket.h> | ||||
8181 | #endif | ||||
8182 | |||||
8183 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8184 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 19:18:23 | [diff] [blame] | 8185 | cat >>confdefs.h <<_ACEOF |
8186 | #define HAVE_NET_IF_H 1 | ||||
8187 | _ACEOF | ||||
8188 | |||||
8189 | fi | ||||
8190 | |||||
8191 | done | ||||
8192 | |||||
8193 | |||||
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 | [diff] [blame] | 8194 | # On Linux, netlink.h requires asm/types.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 | [diff] [blame] | 8195 | for ac_header in linux/netlink.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8196 | do : |
8197 | 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 | [diff] [blame] | 8198 | #ifdef HAVE_ASM_TYPES_H |
8199 | #include <asm/types.h> | ||||
8200 | #endif | ||||
8201 | #ifdef HAVE_SYS_SOCKET_H | ||||
8202 | #include <sys/socket.h> | ||||
8203 | #endif | ||||
8204 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8205 | " |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8206 | if test "x$ac_cv_header_linux_netlink_h" = xyes; then : |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 | [diff] [blame] | 8207 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8208 | #define HAVE_LINUX_NETLINK_H 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 | [diff] [blame] | 8209 | _ACEOF |
8210 | |||||
8211 | fi | ||||
8212 | |||||
8213 | done | ||||
8214 | |||||
8215 | |||||
caavery | effc12f | 2017-09-06 22:18:10 | [diff] [blame] | 8216 | for ac_header in linux/vm_sockets.h |
8217 | do : | ||||
8218 | ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" " | ||||
8219 | #ifdef HAVE_SYS_SOCKET_H | ||||
8220 | #include <sys/socket.h> | ||||
8221 | #endif | ||||
8222 | |||||
8223 | " | ||||
8224 | if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then : | ||||
8225 | cat >>confdefs.h <<_ACEOF | ||||
8226 | #define HAVE_LINUX_VM_SOCKETS_H 1 | ||||
8227 | _ACEOF | ||||
8228 | |||||
8229 | fi | ||||
8230 | |||||
8231 | done | ||||
8232 | |||||
8233 | |||||
Charles-François Natali | 47413c1 | 2011-10-06 17:47:44 | [diff] [blame] | 8234 | # On Linux, can.h and can/raw.h require sys/socket.h |
Charles-François Natali | 773e42d | 2013-02-05 18:42:01 | [diff] [blame] | 8235 | for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h |
Charles-François Natali | 47413c1 | 2011-10-06 17:47:44 | [diff] [blame] | 8236 | do : |
8237 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
8238 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | ||||
8239 | #ifdef HAVE_SYS_SOCKET_H | ||||
8240 | #include <sys/socket.h> | ||||
8241 | #endif | ||||
8242 | |||||
8243 | " | ||||
8244 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
8245 | cat >>confdefs.h <<_ACEOF | ||||
8246 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
8247 | _ACEOF | ||||
8248 | |||||
8249 | fi | ||||
8250 | |||||
8251 | done | ||||
8252 | |||||
8253 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8254 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 8255 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
8257 | $as_echo_n "checking for clock_t in time.h... " >&6; } | ||||
8258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8259 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8260 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8261 | |
8262 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8263 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8264 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 8265 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8267 | |
8268 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8269 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8270 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 8271 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8272 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 8273 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8274 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
8276 | $as_echo "$was_it_defined" >&6; } | ||||
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 8277 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
8279 | $as_echo_n "checking for makedev... " >&6; } | ||||
8280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8281 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 8282 | |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 | [diff] [blame] | 8283 | #if defined(MAJOR_IN_MKDEV) |
8284 | #include <sys/mkdev.h> | ||||
8285 | #elif defined(MAJOR_IN_SYSMACROS) | ||||
8286 | #include <sys/sysmacros.h> | ||||
8287 | #else | ||||
8288 | #include <sys/types.h> | ||||
8289 | #endif | ||||
8290 | |||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8291 | int |
8292 | main () | ||||
8293 | { | ||||
Jesus Cea | 740f53a | 2010-04-28 11:35:30 | [diff] [blame] | 8294 | |
8295 | makedev(0, 0) | ||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8296 | ; |
8297 | return 0; | ||||
8298 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 8299 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8300 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8301 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8302 | ac_cv_has_makedev=yes |
8303 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8304 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8305 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8306 | rm -f core conftest.err conftest.$ac_objext \ |
8307 | conftest$ac_exeext conftest.$ac_ext | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
8309 | $as_echo "$ac_cv_has_makedev" >&6; } | ||||
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8310 | if test "$ac_cv_has_makedev" = "yes"; then |
8311 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8312 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 | [diff] [blame] | 8313 | |
8314 | fi | ||||
8315 | |||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 8316 | # byte swapping |
8317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 | ||||
8318 | $as_echo_n "checking for le64toh... " >&6; } | ||||
8319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
8320 | /* end confdefs.h. */ | ||||
8321 | |||||
8322 | #ifdef HAVE_ENDIAN_H | ||||
8323 | #include <endian.h> | ||||
8324 | #elif defined(HAVE_SYS_ENDIAN_H) | ||||
8325 | #include <sys/endian.h> | ||||
8326 | #endif | ||||
8327 | |||||
8328 | int | ||||
8329 | main () | ||||
8330 | { | ||||
8331 | |||||
8332 | le64toh(1) | ||||
8333 | ; | ||||
8334 | return 0; | ||||
8335 | } | ||||
8336 | |||||
8337 | _ACEOF | ||||
8338 | if ac_fn_c_try_link "$LINENO"; then : | ||||
8339 | ac_cv_has_le64toh=yes | ||||
8340 | else | ||||
8341 | ac_cv_has_le64toh=no | ||||
8342 | fi | ||||
8343 | rm -f core conftest.err conftest.$ac_objext \ | ||||
8344 | conftest$ac_exeext conftest.$ac_ext | ||||
8345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 | ||||
8346 | $as_echo "$ac_cv_has_le64toh" >&6; } | ||||
8347 | if test "$ac_cv_has_le64toh" = "yes"; then | ||||
8348 | |||||
8349 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h | ||||
8350 | |||||
8351 | fi | ||||
8352 | |||||
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 | [diff] [blame] | 8353 | use_lfs=yes |
doko@ubuntu.com | 006a56c | 2016-06-14 08:15:25 | [diff] [blame] | 8354 | # Don't use largefile support for GNU/Hurd |
8355 | case $ac_sys_system in GNU*) | ||||
8356 | use_lfs=no | ||||
8357 | esac | ||||
8358 | |||||
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 | [diff] [blame] | 8359 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 | [diff] [blame] | 8360 | # Two defines needed to enable largefile support on various platforms |
8361 | # These may affect some typedefs | ||||
Georg Brandl | 216e404 | 2011-02-19 08:58:23 | [diff] [blame] | 8362 | case $ac_sys_system/$ac_sys_release in |
8363 | AIX*) | ||||
8364 | |||||
8365 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | ||||
8366 | |||||
8367 | ;; | ||||
8368 | esac | ||||
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 | [diff] [blame] | 8369 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8370 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8371 | |
8372 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8373 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 | [diff] [blame] | 8374 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 | [diff] [blame] | 8375 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8376 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 | [diff] [blame] | 8377 | # Add some code to confdefs.h so that the test for off_t works on SCO |
8378 | cat >> confdefs.h <<\EOF | ||||
8379 | #if defined(SCO_DS) | ||||
8380 | #undef _OFF_T | ||||
8381 | #endif | ||||
8382 | EOF | ||||
8383 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8384 | # Type availability checks |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8385 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8386 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8387 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8388 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8389 | |
8390 | cat >>confdefs.h <<_ACEOF | ||||
8391 | #define mode_t int | ||||
8392 | _ACEOF | ||||
8393 | |||||
8394 | fi | ||||
8395 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8396 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8397 | if test "x$ac_cv_type_off_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8398 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8399 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8400 | |
8401 | cat >>confdefs.h <<_ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8402 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8403 | _ACEOF |
8404 | |||||
8405 | fi | ||||
8406 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8407 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8408 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8409 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8411 | |
8412 | cat >>confdefs.h <<_ACEOF | ||||
8413 | #define pid_t int | ||||
8414 | _ACEOF | ||||
8415 | |||||
8416 | fi | ||||
8417 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 8418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8419 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | bada4c3 | 2010-04-25 21:18:48 | [diff] [blame] | 8420 | #define RETSIGTYPE void |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8421 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8422 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8423 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8424 | if test "x$ac_cv_type_size_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8425 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8426 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8427 | |
8428 | cat >>confdefs.h <<_ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8429 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8430 | _ACEOF |
8431 | |||||
8432 | fi | ||||
8433 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
8435 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8436 | if ${ac_cv_type_uid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8437 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8438 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 8440 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8441 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8442 | |
8443 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8444 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8445 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8446 | ac_cv_type_uid_t=yes |
8447 | else | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8448 | ac_cv_type_uid_t=no |
8449 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 8450 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 8451 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8452 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
8454 | $as_echo "$ac_cv_type_uid_t" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8455 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8456 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8457 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8458 | |
8459 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8460 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 8461 | |
8462 | fi | ||||
8463 | |||||
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 | [diff] [blame] | 8464 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8465 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8466 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8467 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8468 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8469 | |
8470 | fi | ||||
8471 | |||||
Stefan Krah | 1919b7e | 2012-03-21 17:25:23 | [diff] [blame] | 8472 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" |
8473 | if test "x$ac_cv_type___uint128_t" = xyes; then : | ||||
8474 | |||||
8475 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h | ||||
8476 | |||||
8477 | fi | ||||
8478 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 8479 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8480 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 | [diff] [blame] | 8481 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8482 | # The cast to long int works around a bug in the HP C Compiler |
8483 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8484 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8485 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
8487 | $as_echo_n "checking size of int... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8488 | if ${ac_cv_sizeof_int+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8489 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8490 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8491 | 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 | [diff] [blame] | 8492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8493 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8494 | if test "$ac_cv_type_int" = yes; then |
8495 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8496 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8497 | as_fn_error 77 "cannot compute sizeof (int) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8498 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8499 | else |
8500 | ac_cv_sizeof_int=0 | ||||
8501 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8502 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8504 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
8506 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8507 | |
8508 | |||||
8509 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8510 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 | [diff] [blame] | 8511 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8512 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 | [diff] [blame] | 8513 | |
8514 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8515 | # The cast to long int works around a bug in the HP C Compiler |
8516 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8517 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8518 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
8520 | $as_echo_n "checking size of long... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8521 | if ${ac_cv_sizeof_long+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8522 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8523 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8524 | 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 | [diff] [blame] | 8525 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8526 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8527 | if test "$ac_cv_type_long" = yes; then |
8528 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8529 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8530 | as_fn_error 77 "cannot compute sizeof (long) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8531 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8532 | else |
8533 | ac_cv_sizeof_long=0 | ||||
8534 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8535 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8536 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8537 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
8539 | $as_echo "$ac_cv_sizeof_long" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8540 | |
8541 | |||||
8542 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8543 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 | [diff] [blame] | 8544 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8545 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 | [diff] [blame] | 8546 | |
8547 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8548 | # The cast to long int works around a bug in the HP C Compiler |
8549 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8550 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8551 | # This bug is HP SR number 8606223364. | ||||
Benjamin Peterson | ed4aa83 | 2016-09-06 00:44:18 | [diff] [blame] | 8552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
8553 | $as_echo_n "checking size of long long... " >&6; } | ||||
8554 | if ${ac_cv_sizeof_long_long+:} false; then : | ||||
8555 | $as_echo_n "(cached) " >&6 | ||||
8556 | else | ||||
8557 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | ||||
8558 | |||||
8559 | else | ||||
8560 | if test "$ac_cv_type_long_long" = yes; then | ||||
8561 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8562 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
8563 | as_fn_error 77 "cannot compute sizeof (long long) | ||||
8564 | See \`config.log' for more details" "$LINENO" 5; } | ||||
8565 | else | ||||
8566 | ac_cv_sizeof_long_long=0 | ||||
8567 | fi | ||||
8568 | fi | ||||
8569 | |||||
8570 | fi | ||||
8571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | ||||
8572 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | ||||
8573 | |||||
8574 | |||||
8575 | |||||
8576 | cat >>confdefs.h <<_ACEOF | ||||
8577 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | ||||
8578 | _ACEOF | ||||
8579 | |||||
8580 | |||||
8581 | # The cast to long int works around a bug in the HP C Compiler | ||||
8582 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8583 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8584 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
8586 | $as_echo_n "checking size of void *... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8587 | if ${ac_cv_sizeof_void_p+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8588 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8589 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8590 | 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 | [diff] [blame] | 8591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8592 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8593 | if test "$ac_cv_type_void_p" = yes; then |
8594 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8595 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8596 | as_fn_error 77 "cannot compute sizeof (void *) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8597 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8598 | else |
8599 | ac_cv_sizeof_void_p=0 | ||||
8600 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8601 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8603 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
8605 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8606 | |
8607 | |||||
8608 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8609 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 8610 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8611 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 8612 | |
8613 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8614 | # The cast to long int works around a bug in the HP C Compiler |
8615 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8616 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8617 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
8619 | $as_echo_n "checking size of short... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8620 | if ${ac_cv_sizeof_short+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8621 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8622 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8623 | 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 | [diff] [blame] | 8624 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8625 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8626 | if test "$ac_cv_type_short" = yes; then |
8627 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8628 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8629 | as_fn_error 77 "cannot compute sizeof (short) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8630 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8631 | else |
8632 | ac_cv_sizeof_short=0 | ||||
8633 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8634 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8635 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8636 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
8638 | $as_echo "$ac_cv_sizeof_short" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8639 | |
8640 | |||||
8641 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8642 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8643 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8644 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8645 | |
8646 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8647 | # The cast to long int works around a bug in the HP C Compiler |
8648 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8649 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8650 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
8652 | $as_echo_n "checking size of float... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8653 | if ${ac_cv_sizeof_float+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8654 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8655 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8656 | 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 | [diff] [blame] | 8657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8658 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8659 | if test "$ac_cv_type_float" = yes; then |
8660 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8661 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8662 | as_fn_error 77 "cannot compute sizeof (float) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8663 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8664 | else |
8665 | ac_cv_sizeof_float=0 | ||||
8666 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8667 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8669 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
8671 | $as_echo "$ac_cv_sizeof_float" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8672 | |
8673 | |||||
8674 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8675 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8676 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8677 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8678 | |
8679 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8680 | # The cast to long int works around a bug in the HP C Compiler |
8681 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8682 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8683 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
8685 | $as_echo_n "checking size of double... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8686 | if ${ac_cv_sizeof_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8687 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8688 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8689 | 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 | [diff] [blame] | 8690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8691 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8692 | if test "$ac_cv_type_double" = yes; then |
8693 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8694 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8695 | as_fn_error 77 "cannot compute sizeof (double) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8696 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8697 | else |
8698 | ac_cv_sizeof_double=0 | ||||
8699 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8700 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8702 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
8704 | $as_echo "$ac_cv_sizeof_double" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8705 | |
8706 | |||||
8707 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8708 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8709 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8710 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 8711 | |
8712 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8713 | # The cast to long int works around a bug in the HP C Compiler |
8714 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8715 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8716 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
8718 | $as_echo_n "checking size of fpos_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8719 | if ${ac_cv_sizeof_fpos_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8720 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8721 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8722 | 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 | [diff] [blame] | 8723 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8724 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8725 | if test "$ac_cv_type_fpos_t" = yes; then |
8726 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8727 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8728 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8729 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8730 | else |
8731 | ac_cv_sizeof_fpos_t=0 | ||||
8732 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8733 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8735 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
8737 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8738 | |
8739 | |||||
8740 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8741 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 8742 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8743 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 8744 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8745 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8746 | # The cast to long int works around a bug in the HP C Compiler |
8747 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8748 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8749 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
8751 | $as_echo_n "checking size of size_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8752 | if ${ac_cv_sizeof_size_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8753 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8754 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8755 | 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 | [diff] [blame] | 8756 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8757 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8758 | if test "$ac_cv_type_size_t" = yes; then |
8759 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8760 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8761 | as_fn_error 77 "cannot compute sizeof (size_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8762 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8763 | else |
8764 | ac_cv_sizeof_size_t=0 | ||||
8765 | fi | ||||
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8766 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8767 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8768 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
8770 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8771 | |
8772 | |||||
8773 | |||||
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 | [diff] [blame] | 8774 | cat >>confdefs.h <<_ACEOF |
8775 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | ||||
8776 | _ACEOF | ||||
8777 | |||||
8778 | |||||
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8779 | # The cast to long int works around a bug in the HP C Compiler |
8780 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8781 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8782 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
8784 | $as_echo_n "checking size of pid_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8785 | if ${ac_cv_sizeof_pid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8786 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8787 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8788 | 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 | [diff] [blame] | 8789 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8790 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8791 | if test "$ac_cv_type_pid_t" = yes; then |
8792 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8793 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8794 | as_fn_error 77 "cannot compute sizeof (pid_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8795 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8796 | else |
8797 | ac_cv_sizeof_pid_t=0 | ||||
8798 | fi | ||||
8799 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8800 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8801 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
8803 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | ||||
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 | [diff] [blame] | 8804 | |
8805 | |||||
8806 | |||||
8807 | cat >>confdefs.h <<_ACEOF | ||||
8808 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | ||||
8809 | _ACEOF | ||||
8810 | |||||
8811 | |||||
Benjamin Peterson | df6ff7b | 2016-09-06 20:53:14 | [diff] [blame] | 8812 | # The cast to long int works around a bug in the HP C Compiler |
8813 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8814 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8815 | # This bug is HP SR number 8606223364. | ||||
8816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | ||||
8817 | $as_echo_n "checking size of uintptr_t... " >&6; } | ||||
8818 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | ||||
8819 | $as_echo_n "(cached) " >&6 | ||||
8820 | else | ||||
8821 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : | ||||
8822 | |||||
8823 | else | ||||
8824 | if test "$ac_cv_type_uintptr_t" = yes; then | ||||
8825 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8826 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
8827 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | ||||
8828 | See \`config.log' for more details" "$LINENO" 5; } | ||||
8829 | else | ||||
8830 | ac_cv_sizeof_uintptr_t=0 | ||||
8831 | fi | ||||
8832 | fi | ||||
8833 | |||||
8834 | fi | ||||
8835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | ||||
8836 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | ||||
8837 | |||||
8838 | |||||
8839 | |||||
8840 | cat >>confdefs.h <<_ACEOF | ||||
8841 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | ||||
8842 | _ACEOF | ||||
8843 | |||||
8844 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8845 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 |
8847 | $as_echo_n "checking for long double support... " >&6; } | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8848 | have_long_double=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8850 | /* end confdefs.h. */ |
8851 | |||||
8852 | int | ||||
8853 | main () | ||||
8854 | { | ||||
8855 | long double x; x = (long double)0; | ||||
8856 | ; | ||||
8857 | return 0; | ||||
8858 | } | ||||
8859 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8860 | if ac_fn_c_try_compile "$LINENO"; then : |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8861 | |
8862 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8863 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8864 | |
8865 | have_long_double=yes | ||||
8866 | |||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8867 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 |
8870 | $as_echo "$have_long_double" >&6; } | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8871 | if test "$have_long_double" = yes ; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8872 | # The cast to long int works around a bug in the HP C Compiler |
8873 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8874 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8875 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
8877 | $as_echo_n "checking size of long double... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8878 | if ${ac_cv_sizeof_long_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8879 | $as_echo_n "(cached) " >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8880 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8881 | 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 | [diff] [blame] | 8882 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8883 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8884 | if test "$ac_cv_type_long_double" = yes; then |
8885 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8886 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8887 | as_fn_error 77 "cannot compute sizeof (long double) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8888 | See \`config.log' for more details" "$LINENO" 5; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8889 | else |
8890 | ac_cv_sizeof_long_double=0 | ||||
8891 | fi | ||||
8892 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8893 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8894 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
8896 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | ||||
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 | [diff] [blame] | 8897 | |
8898 | |||||
8899 | |||||
8900 | cat >>confdefs.h <<_ACEOF | ||||
8901 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | ||||
8902 | _ACEOF | ||||
8903 | |||||
8904 | |||||
8905 | fi | ||||
8906 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8907 | # The cast to long int works around a bug in the HP C Compiler |
8908 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8909 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8910 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
8912 | $as_echo_n "checking size of _Bool... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8913 | if ${ac_cv_sizeof__Bool+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8914 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8915 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8916 | 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 | [diff] [blame] | 8917 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8918 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8919 | if test "$ac_cv_type__Bool" = yes; then |
8920 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8921 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8922 | as_fn_error 77 "cannot compute sizeof (_Bool) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8923 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8924 | else |
8925 | ac_cv_sizeof__Bool=0 | ||||
8926 | fi | ||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8927 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8928 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8929 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
8931 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 8932 | |
8933 | |||||
8934 | |||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8935 | cat >>confdefs.h <<_ACEOF |
8936 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | ||||
8937 | _ACEOF | ||||
8938 | |||||
8939 | |||||
Thomas Wouters | b213704 | 2007-02-01 18:02:27 | [diff] [blame] | 8940 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 8941 | # The cast to long int works around a bug in the HP C Compiler |
8942 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8943 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8944 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
8946 | $as_echo_n "checking size of off_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8947 | if ${ac_cv_sizeof_off_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8948 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 8949 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8950 | 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 | [diff] [blame] | 8951 | #ifdef HAVE_SYS_TYPES_H |
8952 | #include <sys/types.h> | ||||
8953 | #endif | ||||
8954 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8955 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 8956 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 8957 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8958 | if test "$ac_cv_type_off_t" = yes; then |
8959 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
8960 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 8961 | as_fn_error 77 "cannot compute sizeof (off_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 8962 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 8963 | else |
8964 | ac_cv_sizeof_off_t=0 | ||||
8965 | fi | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 8966 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8967 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 8968 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
8970 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8971 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 8972 | |
8973 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8974 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 8975 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8976 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 8977 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 8978 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 8979 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
8981 | $as_echo_n "checking whether to enable large file support... " >&6; } | ||||
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 | [diff] [blame] | 8982 | if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 | [diff] [blame] | 8983 | "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 8984 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8985 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 8986 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8988 | $as_echo "yes" >&6; } | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 8989 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8991 | $as_echo "no" >&6; } | ||||
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 | [diff] [blame] | 8992 | fi |
8993 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 8994 | # The cast to long int works around a bug in the HP C Compiler |
8995 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
8996 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
8997 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 8998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
8999 | $as_echo_n "checking size of time_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9000 | if ${ac_cv_sizeof_time_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9001 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9002 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9003 | 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 | [diff] [blame] | 9004 | #ifdef HAVE_SYS_TYPES_H |
9005 | #include <sys/types.h> | ||||
9006 | #endif | ||||
9007 | #ifdef HAVE_TIME_H | ||||
9008 | #include <time.h> | ||||
9009 | #endif | ||||
9010 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9011 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9012 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9013 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9014 | if test "$ac_cv_type_time_t" = yes; then |
9015 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9016 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 9017 | as_fn_error 77 "cannot compute sizeof (time_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9018 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9019 | else |
9020 | ac_cv_sizeof_time_t=0 | ||||
9021 | fi | ||||
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 9022 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9023 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 9024 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
9026 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9027 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9028 | |
9029 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9030 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 9031 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9032 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 | [diff] [blame] | 9033 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 9034 | |
9035 | |||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9036 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 | [diff] [blame] | 9037 | ac_save_cc="$CC" |
9038 | if test "$ac_cv_kpthread" = "yes" | ||||
9039 | then CC="$CC -Kpthread" | ||||
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 | [diff] [blame] | 9040 | elif test "$ac_cv_kthread" = "yes" |
9041 | then CC="$CC -Kthread" | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 9042 | elif test "$ac_cv_pthread" = "yes" |
9043 | then CC="$CC -pthread" | ||||
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 | [diff] [blame] | 9044 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9045 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
9047 | $as_echo_n "checking for pthread_t... " >&6; } | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9048 | have_pthread_t=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9050 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9051 | |
9052 | #include <pthread.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9053 | int |
9054 | main () | ||||
9055 | { | ||||
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 | [diff] [blame] | 9056 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9057 | ; |
9058 | return 0; | ||||
9059 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9061 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9062 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9063 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9064 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
9067 | $as_echo "$have_pthread_t" >&6; } | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9068 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9069 | # The cast to long int works around a bug in the HP C Compiler |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9070 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
9071 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9072 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
9074 | $as_echo_n "checking size of pthread_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9075 | if ${ac_cv_sizeof_pthread_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9076 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9077 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9078 | 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 | [diff] [blame] | 9079 | #ifdef HAVE_PTHREAD_H |
9080 | #include <pthread.h> | ||||
9081 | #endif | ||||
9082 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9083 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9084 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9085 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9086 | if test "$ac_cv_type_pthread_t" = yes; then |
9087 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9088 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 9089 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9090 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9091 | else |
9092 | ac_cv_sizeof_pthread_t=0 | ||||
9093 | fi | ||||
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9094 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9095 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9096 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
9098 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9099 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9100 | |
9101 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9102 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9103 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9104 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9105 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 9106 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9107 | fi |
Masayuki Yamamoto | 731e189 | 2017-10-06 10:41:34 | [diff] [blame] | 9108 | |
9109 | # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int. | ||||
9110 | # This checking will be unnecessary after removing deprecated TLS API. | ||||
9111 | # The cast to long int works around a bug in the HP C Compiler | ||||
9112 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||||
9113 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
9114 | # This bug is HP SR number 8606223364. | ||||
9115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5 | ||||
9116 | $as_echo_n "checking size of pthread_key_t... " >&6; } | ||||
9117 | if ${ac_cv_sizeof_pthread_key_t+:} false; then : | ||||
9118 | $as_echo_n "(cached) " >&6 | ||||
9119 | else | ||||
9120 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h> | ||||
9121 | "; then : | ||||
9122 | |||||
9123 | else | ||||
9124 | if test "$ac_cv_type_pthread_key_t" = yes; then | ||||
9125 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
9126 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
9127 | as_fn_error 77 "cannot compute sizeof (pthread_key_t) | ||||
9128 | See \`config.log' for more details" "$LINENO" 5; } | ||||
9129 | else | ||||
9130 | ac_cv_sizeof_pthread_key_t=0 | ||||
9131 | fi | ||||
9132 | fi | ||||
9133 | |||||
9134 | fi | ||||
9135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5 | ||||
9136 | $as_echo "$ac_cv_sizeof_pthread_key_t" >&6; } | ||||
9137 | |||||
9138 | |||||
9139 | |||||
9140 | cat >>confdefs.h <<_ACEOF | ||||
9141 | #define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t | ||||
9142 | _ACEOF | ||||
9143 | |||||
9144 | |||||
9145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5 | ||||
9146 | $as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; } | ||||
9147 | if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then | ||||
9148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9149 | /* end confdefs.h. */ | ||||
9150 | #include <pthread.h> | ||||
9151 | int | ||||
9152 | main () | ||||
9153 | { | ||||
9154 | pthread_key_t k; k * 1; | ||||
9155 | ; | ||||
9156 | return 0; | ||||
9157 | } | ||||
9158 | _ACEOF | ||||
9159 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
9160 | ac_pthread_key_t_is_arithmetic_type=yes | ||||
9161 | else | ||||
9162 | ac_pthread_key_t_is_arithmetic_type=no | ||||
9163 | |||||
9164 | fi | ||||
9165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
9166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5 | ||||
9167 | $as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; } | ||||
9168 | if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then | ||||
9169 | |||||
9170 | $as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h | ||||
9171 | |||||
9172 | fi | ||||
9173 | else | ||||
9174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
9175 | $as_echo "no" >&6; } | ||||
9176 | fi | ||||
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 | [diff] [blame] | 9177 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 | [diff] [blame] | 9178 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 9179 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9180 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 9181 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 | [diff] [blame] | 9182 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
9183 | ;; | ||||
9184 | Darwin/*) | ||||
9185 | OTHER_LIBTOOL_OPT="" | ||||
9186 | ;; | ||||
9187 | esac | ||||
9188 | |||||
9189 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9190 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 | [diff] [blame] | 9191 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 9192 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 9193 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
9194 | if test "${enable_universalsdk}"; then | ||||
9195 | : | ||||
9196 | else | ||||
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 | [diff] [blame] | 9197 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 9198 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 | [diff] [blame] | 9199 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 | [diff] [blame] | 9200 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 | [diff] [blame] | 9201 | Darwin/*) |
Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 | [diff] [blame] | 9202 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 | [diff] [blame] | 9203 | if test ${gcc_version} '<' 4.0 |
9204 | then | ||||
9205 | LIBTOOL_CRUFT="-lcc_dynamic" | ||||
9206 | else | ||||
9207 | LIBTOOL_CRUFT="" | ||||
9208 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9209 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 | [diff] [blame] | 9210 | ac_osx_32bit=yes |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9211 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9213 | /* end confdefs.h. */ |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 | [diff] [blame] | 9214 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9215 | #include <unistd.h> |
9216 | int main(int argc, char*argv[]) | ||||
9217 | { | ||||
9218 | if (sizeof(long) == 4) { | ||||
9219 | return 0; | ||||
9220 | } else { | ||||
9221 | return 1; | ||||
9222 | } | ||||
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 | [diff] [blame] | 9223 | } |
9224 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9225 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9226 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9227 | ac_osx_32bit=yes |
9228 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9229 | ac_osx_32bit=no |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9230 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9231 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
9232 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9233 | fi |
9234 | |||||
9235 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9236 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 | [diff] [blame] | 9237 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9238 | i386) |
9239 | MACOSX_DEFAULT_ARCH="i386" | ||||
9240 | ;; | ||||
9241 | ppc) | ||||
9242 | MACOSX_DEFAULT_ARCH="ppc" | ||||
9243 | ;; | ||||
9244 | *) | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 9245 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9246 | ;; |
9247 | esac | ||||
9248 | else | ||||
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 | [diff] [blame] | 9249 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9250 | i386) |
9251 | MACOSX_DEFAULT_ARCH="x86_64" | ||||
9252 | ;; | ||||
9253 | ppc) | ||||
9254 | MACOSX_DEFAULT_ARCH="ppc64" | ||||
9255 | ;; | ||||
Ned Deily | a0ad829 | 2020-08-15 03:48:14 | [diff] [blame] | 9256 | arm64) |
9257 | MACOSX_DEFAULT_ARCH="arm64" | ||||
9258 | ;; | ||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9259 | *) |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 9260 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9261 | ;; |
9262 | esac | ||||
9263 | |||||
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 | [diff] [blame] | 9264 | fi |
9265 | |||||
9266 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | ||||
Jack Jansen | b36687a | 2004-07-16 08:43:47 | [diff] [blame] | 9267 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9268 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9269 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
9271 | $as_echo_n "checking for --enable-framework... " >&6; } | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9272 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9273 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 | [diff] [blame] | 9274 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9275 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9276 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9277 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9278 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9279 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9281 | $as_echo "yes" >&6; } | ||||
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 | [diff] [blame] | 9282 | if test $enable_shared = "yes" |
9283 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 9284 | 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 | [diff] [blame] | 9285 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9286 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9288 | $as_echo "no" >&6; } | ||||
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9289 | fi |
9290 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
9292 | $as_echo_n "checking for dyld... " >&6; } | ||||
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 | [diff] [blame] | 9293 | case $ac_sys_system/$ac_sys_release in |
9294 | Darwin/*) | ||||
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9295 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9296 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9297 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
9299 | $as_echo "always on for Darwin" >&6; } | ||||
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 | [diff] [blame] | 9300 | ;; |
9301 | *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9303 | $as_echo "no" >&6; } | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9304 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 | [diff] [blame] | 9305 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9306 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9307 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9308 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 9309 | |
9310 | |||||
9311 | |||||
9312 | |||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9313 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 9314 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 20:21:49 | [diff] [blame] | 9315 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) |
9316 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | ||||
9317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 | ||||
9318 | $as_echo_n "checking the extension of shared libraries... " >&6; } | ||||
9319 | if test -z "$SHLIB_SUFFIX"; then | ||||
9320 | case $ac_sys_system in | ||||
9321 | hp*|HP*) | ||||
9322 | case `uname -m` in | ||||
9323 | ia64) SHLIB_SUFFIX=.so;; | ||||
9324 | *) SHLIB_SUFFIX=.sl;; | ||||
9325 | esac | ||||
9326 | ;; | ||||
9327 | CYGWIN*) SHLIB_SUFFIX=.dll;; | ||||
9328 | *) SHLIB_SUFFIX=.so;; | ||||
9329 | esac | ||||
9330 | fi | ||||
9331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 | ||||
9332 | $as_echo "$SHLIB_SUFFIX" >&6; } | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 9333 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9334 | # LDSHARED is the ld *command* used to create shared library |
Benjamin Peterson | 0693063 | 2017-09-04 23:36:05 | [diff] [blame] | 9335 | # -- "cc -G" on SunOS 5.x. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9336 | # (Shared libraries in this instance are shared modules to be loaded into |
9337 | # Python, as opposed to building Python itself as a shared library.) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
9339 | $as_echo_n "checking LDSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9340 | if test -z "$LDSHARED" |
9341 | then | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9342 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 | [diff] [blame] | 9343 | AIX*) |
Martin Panter | 395733d | 2016-11-20 07:56:37 | [diff] [blame] | 9344 | BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Martin Panter | 5de141f | 2016-08-27 04:00:19 | [diff] [blame] | 9345 | LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 | [diff] [blame] | 9346 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9347 | SunOS/5*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9348 | if test "$GCC" = "yes" ; then |
9349 | LDSHARED='$(CC) -shared' | ||||
9350 | LDCXXSHARED='$(CXX) -shared' | ||||
9351 | else | ||||
9352 | LDSHARED='$(CC) -G' | ||||
9353 | LDCXXSHARED='$(CXX) -G' | ||||
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 | [diff] [blame] | 9354 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 | [diff] [blame] | 9355 | hp*|HP*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9356 | if test "$GCC" = "yes" ; then |
9357 | LDSHARED='$(CC) -shared' | ||||
9358 | LDCXXSHARED='$(CXX) -shared' | ||||
9359 | else | ||||
Rob Boehne | 9d25bd1 | 2017-12-06 17:58:17 | [diff] [blame] | 9360 | LDSHARED='$(CC) -b' |
Benjamin Peterson | 62ed6be | 2017-12-22 05:43:09 | [diff] [blame] | 9361 | LDCXXSHARED='$(CXX) -b' |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 | [diff] [blame] | 9362 | fi ;; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 | [diff] [blame] | 9363 | Darwin/1.3*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9364 | LDSHARED='$(CC) -bundle' |
9365 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | a3891ea | 2001-09-07 14:25:12 | [diff] [blame] | 9366 | if test "$enable_framework" ; then |
9367 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 | [diff] [blame] | 9368 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9369 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9370 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 | [diff] [blame] | 9371 | else |
9372 | # No framework. Ignore undefined symbols, assuming they come from Python | ||||
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 | [diff] [blame] | 9373 | LDSHARED="$LDSHARED -undefined suppress" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9374 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 | [diff] [blame] | 9375 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9376 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9377 | LDSHARED='$(CC) -bundle' |
9378 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9379 | if test "$enable_framework" ; then |
9380 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 | [diff] [blame] | 9381 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9382 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9383 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9384 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 | [diff] [blame] | 9385 | # No framework, use the Python app as bundle-loader |
9386 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | ||||
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 | [diff] [blame] | 9387 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9388 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9389 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9390 | Darwin/*) |
9391 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). | ||||
9392 | # This allows an extension to be used in any Python | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 9393 | |
Ned Deily | 36820b6 | 2014-06-25 20:44:22 | [diff] [blame] | 9394 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
9395 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | ||||
9396 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | ||||
9397 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | ||||
9398 | if test ${dep_target_major} -eq 10 && \ | ||||
9399 | test ${dep_target_minor} -le 2 | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9400 | then |
Ned Deily | 36820b6 | 2014-06-25 20:44:22 | [diff] [blame] | 9401 | # building for OS X 10.0 through 10.2 |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9402 | LDSHARED='$(CC) -bundle' |
9403 | LDCXXSHARED='$(CXX) -bundle' | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9404 | if test "$enable_framework" ; then |
9405 | # Link against the framework. All externals should be defined. | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 | [diff] [blame] | 9406 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
9407 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9408 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9409 | else |
9410 | # No framework, use the Python app as bundle-loader | ||||
9411 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | ||||
9412 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9413 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9414 | fi |
Ned Deily | 36820b6 | 2014-06-25 20:44:22 | [diff] [blame] | 9415 | else |
9416 | # building for OS X 10.3 and later | ||||
9417 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | ||||
9418 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | ||||
9419 | BLDSHARED="$LDSHARED" | ||||
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 | [diff] [blame] | 9420 | fi |
9421 | ;; | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9422 | Linux*|GNU*|QNX*) |
9423 | LDSHARED='$(CC) -shared' | ||||
9424 | LDCXXSHARED='$(CXX) -shared';; | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 9425 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 | [diff] [blame] | 9426 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 | [diff] [blame] | 9427 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9428 | LDSHARED='$(CC) -shared' |
9429 | LDCXXSHARED='$(CXX) -shared' | ||||
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 | [diff] [blame] | 9430 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9431 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 | [diff] [blame] | 9432 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 9433 | OpenBSD*) |
9434 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | ||||
9435 | then | ||||
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9436 | LDSHARED='$(CC) -shared $(CCSHARED)' |
9437 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 9438 | else |
9439 | case `uname -r` in | ||||
9440 | [01].* | 2.[0-7] | 2.[0-7].*) | ||||
9441 | LDSHARED="ld -Bshareable ${LDFLAGS}" | ||||
9442 | ;; | ||||
9443 | *) | ||||
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 | [diff] [blame] | 9444 | LDSHARED='$(CC) -shared $(CCSHARED)' |
9445 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | ||||
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 9446 | ;; |
9447 | esac | ||||
9448 | fi;; | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9449 | NetBSD*|DragonFly*) |
Antoine Pitrou | ece919e | 2011-01-02 20:45:21 | [diff] [blame] | 9450 | LDSHARED='$(CC) -shared' |
9451 | LDCXXSHARED='$(CXX) -shared';; | ||||
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 | [diff] [blame] | 9452 | OpenUNIX*|UnixWare*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9453 | if test "$GCC" = "yes" ; then |
9454 | LDSHARED='$(CC) -shared' | ||||
9455 | LDCXXSHARED='$(CXX) -shared' | ||||
9456 | else | ||||
9457 | LDSHARED='$(CC) -G' | ||||
9458 | LDCXXSHARED='$(CXX) -G' | ||||
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 | [diff] [blame] | 9459 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9460 | SCO_SV*) |
9461 | LDSHARED='$(CC) -Wl,-G,-Bexport' | ||||
9462 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | ||||
9463 | CYGWIN*) | ||||
9464 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | ||||
9465 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9466 | *) LDSHARED="ld";; |
9467 | esac | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9468 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
9470 | $as_echo "$LDSHARED" >&6; } | ||||
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 | [diff] [blame] | 9471 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 | [diff] [blame] | 9472 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9473 | # CCSHARED are the C *flags* used to create objects to go into a shared |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9474 | # library (module) -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
9476 | $as_echo_n "checking CCSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9477 | if test -z "$CCSHARED" |
9478 | then | ||||
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 | [diff] [blame] | 9479 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 | [diff] [blame] | 9480 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 9481 | then CCSHARED="-fPIC"; |
9482 | elif test `uname -p` = sparc; | ||||
9483 | then CCSHARED="-xcode=pic32"; | ||||
9484 | else CCSHARED="-Kpic"; | ||||
9485 | fi;; | ||||
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 | [diff] [blame] | 9486 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 | [diff] [blame] | 9487 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 | [diff] [blame] | 9488 | else CCSHARED="+z"; |
9489 | fi;; | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 9490 | Linux-android*) ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 | [diff] [blame] | 9491 | Linux*|GNU*) CCSHARED="-fPIC";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 | [diff] [blame] | 9492 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 | [diff] [blame] | 9493 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 | [diff] [blame] | 9494 | if test "$GCC" = "yes" |
9495 | then CCSHARED="-fPIC" | ||||
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 9496 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 | [diff] [blame] | 9497 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 | [diff] [blame] | 9498 | SCO_SV*) |
9499 | if test "$GCC" = "yes" | ||||
9500 | then CCSHARED="-fPIC" | ||||
9501 | else CCSHARED="-Kpic -belf" | ||||
9502 | fi;; | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9503 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9504 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
9506 | $as_echo "$CCSHARED" >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9507 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 9508 | # the python executable -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
9510 | $as_echo_n "checking LINKFORSHARED... " >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9511 | if test -z "$LINKFORSHARED" |
9512 | then | ||||
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 | [diff] [blame] | 9513 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 | [diff] [blame] | 9514 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 | [diff] [blame] | 9515 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 9516 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
9517 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | ||||
Xavier de Gaye | 2a352b6 | 2017-01-04 20:51:16 | [diff] [blame] | 9518 | Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 | [diff] [blame] | 9519 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 | [diff] [blame] | 9520 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9521 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 | [diff] [blame] | 9522 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Miss Islington (bot) | bf82cd3 | 2019-07-02 07:38:36 | [diff] [blame] | 9523 | |
9524 | # Issue #18075: the default maximum stack size (8MBytes) is too | ||||
9525 | # small for the default recursion limit. Increase the stack size | ||||
9526 | # to ensure that tests don't crash | ||||
9527 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" | ||||
9528 | |||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9529 | if test "$enable_framework" |
9530 | then | ||||
Jack Jansen | da49e19 | 2005-01-07 13:08:22 | [diff] [blame] | 9531 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 9532 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 | [diff] [blame] | 9533 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 | [diff] [blame] | 9534 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 | [diff] [blame] | 9535 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 | [diff] [blame] | 9536 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 | [diff] [blame] | 9537 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 | [diff] [blame] | 9538 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
9539 | then | ||||
9540 | LINKFORSHARED="-Wl,--export-dynamic" | ||||
9541 | fi;; | ||||
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 | [diff] [blame] | 9542 | SunOS/5*) case $CC in |
9543 | *gcc*) | ||||
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 | [diff] [blame] | 9544 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 | [diff] [blame] | 9545 | then |
9546 | LINKFORSHARED="-Xlinker --export-dynamic" | ||||
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 | [diff] [blame] | 9547 | fi;; |
9548 | esac;; | ||||
Jason Tishler | 3076559 | 2003-09-04 11:04:06 | [diff] [blame] | 9549 | CYGWIN*) |
9550 | if test $enable_shared = "no" | ||||
9551 | then | ||||
9552 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | ||||
9553 | fi;; | ||||
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 | [diff] [blame] | 9554 | QNX*) |
9555 | # -Wl,-E causes the symbols to be added to the dynamic | ||||
9556 | # symbol table so that they can be found when a module | ||||
9557 | # is loaded. -N 2048K causes the stack size to be set | ||||
9558 | # to 2048 kilobytes so that the stack doesn't overflow | ||||
9559 | # when running test_compile.py. | ||||
9560 | LINKFORSHARED='-Wl,-E -N 2048K';; | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9561 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9562 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
9564 | $as_echo "$LINKFORSHARED" >&6; } | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 9565 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 9566 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 | [diff] [blame] | 9567 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
9569 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 9570 | if test ! "$LIBRARY" = "$LDLIBRARY" |
9571 | then | ||||
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 | [diff] [blame] | 9572 | case $ac_sys_system in |
9573 | CYGWIN*) | ||||
9574 | # Cygwin needs CCSHARED when building extension DLLs | ||||
9575 | # but not when building the interpreter DLL. | ||||
9576 | CFLAGSFORSHARED='';; | ||||
9577 | *) | ||||
9578 | CFLAGSFORSHARED='$(CCSHARED)' | ||||
9579 | esac | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 9580 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
9582 | $as_echo "$CFLAGSFORSHARED" >&6; } | ||||
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 9583 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9584 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
9585 | # library (with --enable-shared). | ||||
9586 | # For platforms on which shared libraries are not allowed to have unresolved | ||||
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 | [diff] [blame] | 9587 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
9588 | # if it is not required, since it creates a dependency of the shared library | ||||
9589 | # to LIBS. This, in turn, means that applications linking the shared libpython | ||||
9590 | # don't need to link LIBS explicitly. The default should be only changed | ||||
9591 | # on systems where this approach causes problems. | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9592 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
9594 | $as_echo_n "checking SHLIBS... " >&6; } | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9595 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9596 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 | [diff] [blame] | 9597 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9598 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
9600 | $as_echo "$SHLIBS" >&6; } | ||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 9601 | |
9602 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9603 | # checks for libraries |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 | [diff] [blame] | 9604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 |
9605 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9606 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 | [diff] [blame] | 9607 | $as_echo_n "(cached) " >&6 |
9608 | else | ||||
9609 | ac_check_lib_save_LIBS=$LIBS | ||||
9610 | LIBS="-lsendfile $LIBS" | ||||
9611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9612 | /* end confdefs.h. */ | ||||
9613 | |||||
9614 | /* Override any GCC internal prototype to avoid an error. | ||||
9615 | Use char because int might match the return type of a GCC | ||||
9616 | builtin and then its argument prototype would still apply. */ | ||||
9617 | #ifdef __cplusplus | ||||
9618 | extern "C" | ||||
9619 | #endif | ||||
9620 | char sendfile (); | ||||
9621 | int | ||||
9622 | main () | ||||
9623 | { | ||||
9624 | return sendfile (); | ||||
9625 | ; | ||||
9626 | return 0; | ||||
9627 | } | ||||
9628 | _ACEOF | ||||
9629 | if ac_fn_c_try_link "$LINENO"; then : | ||||
9630 | ac_cv_lib_sendfile_sendfile=yes | ||||
9631 | else | ||||
9632 | ac_cv_lib_sendfile_sendfile=no | ||||
9633 | fi | ||||
9634 | rm -f core conftest.err conftest.$ac_objext \ | ||||
9635 | conftest$ac_exeext conftest.$ac_ext | ||||
9636 | LIBS=$ac_check_lib_save_LIBS | ||||
9637 | fi | ||||
9638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 | ||||
9639 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9640 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 | [diff] [blame] | 9641 | cat >>confdefs.h <<_ACEOF |
9642 | #define HAVE_LIBSENDFILE 1 | ||||
9643 | _ACEOF | ||||
9644 | |||||
9645 | LIBS="-lsendfile $LIBS" | ||||
9646 | |||||
9647 | fi | ||||
9648 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
9650 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9651 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9652 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9653 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9654 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 9655 | LIBS="-ldl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9657 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9658 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9659 | /* Override any GCC internal prototype to avoid an error. |
9660 | Use char because int might match the return type of a GCC | ||||
9661 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9662 | #ifdef __cplusplus |
9663 | extern "C" | ||||
9664 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9665 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9666 | int |
9667 | main () | ||||
9668 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9669 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9670 | ; |
9671 | return 0; | ||||
9672 | } | ||||
9673 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9674 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9675 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9676 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9677 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9678 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9679 | rm -f core conftest.err conftest.$ac_objext \ |
9680 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9681 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9682 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
9684 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9685 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9686 | cat >>confdefs.h <<_ACEOF |
9687 | #define HAVE_LIBDL 1 | ||||
9688 | _ACEOF | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9689 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 9690 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 9691 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9692 | fi |
9693 | # Dynamic linking for SunOS/Solaris and SYSV | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
9695 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9696 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9697 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9698 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9699 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 9700 | LIBS="-ldld $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9702 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9703 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9704 | /* Override any GCC internal prototype to avoid an error. |
9705 | Use char because int might match the return type of a GCC | ||||
9706 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9707 | #ifdef __cplusplus |
9708 | extern "C" | ||||
9709 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9710 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9711 | int |
9712 | main () | ||||
9713 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9714 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9715 | ; |
9716 | return 0; | ||||
9717 | } | ||||
9718 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9719 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9720 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9721 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9722 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9723 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9724 | rm -f core conftest.err conftest.$ac_objext \ |
9725 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9726 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9727 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
9729 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9730 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9731 | cat >>confdefs.h <<_ACEOF |
9732 | #define HAVE_LIBDLD 1 | ||||
9733 | _ACEOF | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 9734 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 9735 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9736 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 9737 | fi |
9738 | # Dynamic linking for HP-UX | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 9739 | |
Michael Felt | 0d3ccb4 | 2017-12-30 21:39:20 | [diff] [blame] | 9740 | # checks for uuid.h location |
9741 | for ac_header in uuid/uuid.h uuid.h | ||||
9742 | do : | ||||
9743 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
9744 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
9745 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
9746 | cat >>confdefs.h <<_ACEOF | ||||
9747 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
9748 | _ACEOF | ||||
9749 | |||||
9750 | fi | ||||
9751 | |||||
9752 | done | ||||
9753 | |||||
9754 | |||||
Berker Peksag | 9a10ff4 | 2017-11-08 20:09:16 | [diff] [blame] | 9755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5 |
9756 | $as_echo_n "checking for uuid_generate_time_safe... " >&6; } | ||||
9757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9758 | /* end confdefs.h. */ | ||||
9759 | #include <uuid/uuid.h> | ||||
9760 | int | ||||
9761 | main () | ||||
9762 | { | ||||
9763 | |||||
9764 | #ifndef uuid_generate_time_safe | ||||
Berker Peksag | 0e163d2 | 2017-11-08 21:43:14 | [diff] [blame] | 9765 | void *x = uuid_generate_time_safe |
Berker Peksag | 9a10ff4 | 2017-11-08 20:09:16 | [diff] [blame] | 9766 | #endif |
9767 | |||||
9768 | ; | ||||
9769 | return 0; | ||||
9770 | } | ||||
9771 | _ACEOF | ||||
9772 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
9773 | |||||
9774 | $as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h | ||||
9775 | |||||
9776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
9777 | $as_echo "yes" >&6; } | ||||
9778 | else | ||||
9779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
9780 | $as_echo "no" >&6; } | ||||
9781 | |||||
9782 | fi | ||||
9783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
9784 | |||||
Michael Felt | 0d3ccb4 | 2017-12-30 21:39:20 | [diff] [blame] | 9785 | # 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 | [diff] [blame] | 9786 | # FreeBSD and OpenBSD provides support as well |
9787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5 | ||||
9788 | $as_echo_n "checking for uuid_create... " >&6; } | ||||
Michael Felt | 0d3ccb4 | 2017-12-30 21:39:20 | [diff] [blame] | 9789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9790 | /* end confdefs.h. */ | ||||
9791 | #include <uuid.h> | ||||
9792 | int | ||||
9793 | main () | ||||
9794 | { | ||||
9795 | |||||
9796 | #ifndef uuid_create | ||||
9797 | void *x = uuid_create | ||||
9798 | #endif | ||||
9799 | |||||
9800 | ; | ||||
9801 | return 0; | ||||
9802 | } | ||||
9803 | _ACEOF | ||||
9804 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
9805 | |||||
9806 | $as_echo "#define HAVE_UUID_CREATE 1" >>confdefs.h | ||||
9807 | |||||
9808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
9809 | $as_echo "yes" >&6; } | ||||
9810 | else | ||||
9811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
9812 | $as_echo "no" >&6; } | ||||
9813 | |||||
9814 | fi | ||||
9815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
9816 | |||||
Miss Islington (bot) | 5734f41 | 2018-05-24 23:22:59 | [diff] [blame] | 9817 | # Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet |
9818 | # stream in big-endian byte-order | ||||
9819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5 | ||||
9820 | $as_echo_n "checking for uuid_enc_be... " >&6; } | ||||
9821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
9822 | /* end confdefs.h. */ | ||||
9823 | #include <uuid.h> | ||||
9824 | int | ||||
9825 | main () | ||||
9826 | { | ||||
9827 | |||||
9828 | #ifndef uuid_enc_be | ||||
Michael Felt | 20cd5c6 | 2018-06-09 21:59:02 | [diff] [blame] | 9829 | void *x = uuid_enc_be |
Miss Islington (bot) | 5734f41 | 2018-05-24 23:22:59 | [diff] [blame] | 9830 | #endif |
9831 | |||||
9832 | ; | ||||
9833 | return 0; | ||||
9834 | } | ||||
9835 | _ACEOF | ||||
9836 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
9837 | |||||
9838 | $as_echo "#define HAVE_UUID_ENC_BE 1" >>confdefs.h | ||||
9839 | |||||
9840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
9841 | $as_echo "yes" >&6; } | ||||
9842 | else | ||||
9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
9844 | $as_echo "no" >&6; } | ||||
9845 | |||||
9846 | fi | ||||
9847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
9848 | |||||
Serhiy Storchaka | 9e78dc2 | 2017-11-11 17:18:28 | [diff] [blame] | 9849 | # 'Real Time' functions on Solaris |
9850 | # posix4 on Solaris 2.6 | ||||
9851 | # pthread (first!) on Linux | ||||
Berker Peksag | 7e666ee | 2017-11-06 16:06:05 | [diff] [blame] | 9852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9853 | $as_echo_n "checking for library containing sem_init... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9854 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9855 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 | [diff] [blame] | 9856 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 | [diff] [blame] | 9857 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9859 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9860 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9861 | /* Override any GCC internal prototype to avoid an error. |
9862 | Use char because int might match the return type of a GCC | ||||
9863 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9864 | #ifdef __cplusplus |
9865 | extern "C" | ||||
9866 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9867 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9868 | int |
9869 | main () | ||||
9870 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9871 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9872 | ; |
9873 | return 0; | ||||
9874 | } | ||||
9875 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9876 | for ac_lib in '' pthread rt posix4; do |
9877 | if test -z "$ac_lib"; then | ||||
9878 | ac_res="none required" | ||||
9879 | else | ||||
9880 | ac_res=-l$ac_lib | ||||
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 9881 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9882 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9883 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9884 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 9885 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9886 | rm -f core conftest.err conftest.$ac_objext \ |
9887 | conftest$ac_exeext | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9888 | if ${ac_cv_search_sem_init+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9889 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 9890 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9891 | done |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9892 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9893 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9894 | else |
9895 | ac_cv_search_sem_init=no | ||||
9896 | fi | ||||
9897 | rm conftest.$ac_ext | ||||
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 | [diff] [blame] | 9898 | LIBS=$ac_func_search_save_LIBS |
9899 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
9901 | $as_echo "$ac_cv_search_sem_init" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9902 | ac_res=$ac_cv_search_sem_init |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9903 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9904 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 | [diff] [blame] | 9905 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 | [diff] [blame] | 9906 | fi |
Serhiy Storchaka | 9e78dc2 | 2017-11-11 17:18:28 | [diff] [blame] | 9907 | |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 9908 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9909 | # check if we need libintl for locale functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
9911 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9912 | if ${ac_cv_lib_intl_textdomain+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9913 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9914 | else |
9915 | ac_check_lib_save_LIBS=$LIBS | ||||
9916 | LIBS="-lintl $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9918 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9919 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9920 | /* Override any GCC internal prototype to avoid an error. |
9921 | Use char because int might match the return type of a GCC | ||||
9922 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9923 | #ifdef __cplusplus |
9924 | extern "C" | ||||
9925 | #endif | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9926 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9927 | int |
9928 | main () | ||||
9929 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 9930 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9931 | ; |
9932 | return 0; | ||||
9933 | } | ||||
9934 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9935 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9936 | ac_cv_lib_intl_textdomain=yes |
9937 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9938 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9939 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9940 | rm -f core conftest.err conftest.$ac_objext \ |
9941 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9942 | LIBS=$ac_check_lib_save_LIBS |
9943 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
9945 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 9946 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9947 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9948 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9949 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 | [diff] [blame] | 9950 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 | [diff] [blame] | 9951 | fi |
9952 | |||||
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 9953 | |
9954 | # checks for system dependent C++ extensions support | ||||
9955 | case "$ac_sys_system" in | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9956 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
9957 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | ||||
9958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 9959 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9960 | |
Georg Brandl | 59e87bd | 2011-02-15 19:48:59 | [diff] [blame] | 9961 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9962 | int |
9963 | main () | ||||
9964 | { | ||||
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 9965 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9966 | ; |
9967 | return 0; | ||||
9968 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9970 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9971 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 9972 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9973 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9974 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 9975 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9977 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9978 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 9979 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9980 | |
9981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9982 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 9983 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 9984 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 9985 | rm -f core conftest.err conftest.$ac_objext \ |
9986 | conftest$ac_exeext conftest.$ac_ext;; | ||||
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 | [diff] [blame] | 9987 | *) ;; |
9988 | esac | ||||
9989 | |||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 9990 | # check for systems that require aligned memory access |
9991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 | ||||
9992 | $as_echo_n "checking aligned memory access is required... " >&6; } | ||||
Benjamin Peterson | e4f961b | 2017-04-14 16:36:45 | [diff] [blame] | 9993 | if ${ac_cv_aligned_required+:} false; then : |
9994 | $as_echo_n "(cached) " >&6 | ||||
9995 | else | ||||
9996 | if test "$cross_compiling" = yes; then : | ||||
9997 | ac_cv_aligned_required=yes | ||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 9998 | else |
9999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
10000 | /* end confdefs.h. */ | ||||
10001 | |||||
10002 | int main() | ||||
10003 | { | ||||
10004 | char s[16]; | ||||
10005 | int i, *p1, *p2; | ||||
10006 | for (i=0; i < 16; i++) | ||||
10007 | s[i] = i; | ||||
10008 | p1 = (int*)(s+1); | ||||
10009 | p2 = (int*)(s+2); | ||||
10010 | if (*p1 == *p2) | ||||
10011 | return 1; | ||||
10012 | return 0; | ||||
10013 | } | ||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 10014 | _ACEOF |
10015 | if ac_fn_c_try_run "$LINENO"; then : | ||||
Benjamin Peterson | e4f961b | 2017-04-14 16:36:45 | [diff] [blame] | 10016 | ac_cv_aligned_required=no |
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 10017 | else |
Benjamin Peterson | e4f961b | 2017-04-14 16:36:45 | [diff] [blame] | 10018 | ac_cv_aligned_required=yes |
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 10019 | fi |
10020 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
10021 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
10022 | fi | ||||
10023 | |||||
10024 | |||||
Benjamin Peterson | e4f961b | 2017-04-14 16:36:45 | [diff] [blame] | 10025 | fi |
10026 | |||||
10027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 | ||||
10028 | $as_echo "$ac_cv_aligned_required" >&6; } | ||||
10029 | if test "$ac_cv_aligned_required" = yes ; then | ||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 10030 | |
10031 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h | ||||
10032 | |||||
10033 | fi | ||||
Christian Heimes | 985ecdc | 2013-11-20 10:46:18 | [diff] [blame] | 10034 | |
10035 | # str, bytes and memoryview hash algorithm | ||||
10036 | |||||
10037 | |||||
10038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 | ||||
10039 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | ||||
10040 | |||||
10041 | # Check whether --with-hash_algorithm was given. | ||||
10042 | if test "${with_hash_algorithm+set}" = set; then : | ||||
10043 | withval=$with_hash_algorithm; | ||||
10044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
10045 | $as_echo "$withval" >&6; } | ||||
10046 | case "$withval" in | ||||
10047 | siphash24) | ||||
10048 | $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h | ||||
10049 | |||||
10050 | ;; | ||||
10051 | fnv) | ||||
10052 | $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h | ||||
10053 | |||||
10054 | ;; | ||||
10055 | *) | ||||
10056 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | ||||
10057 | ;; | ||||
10058 | esac | ||||
10059 | |||||
10060 | else | ||||
10061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | ||||
10062 | $as_echo "default" >&6; } | ||||
10063 | fi | ||||
10064 | |||||
10065 | |||||
Charles-François Natali | d30b022 | 2014-05-08 22:08:51 | [diff] [blame] | 10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 |
10067 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } | ||||
10068 | |||||
10069 | # Check whether --with-address_sanitizer was given. | ||||
10070 | if test "${with_address_sanitizer+set}" = set; then : | ||||
10071 | withval=$with_address_sanitizer; | ||||
10072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
10073 | $as_echo "$withval" >&6; } | ||||
10074 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" | ||||
10075 | LDFLAGS="-fsanitize=address $LDFLAGS" | ||||
Gregory P. Smith | 5f4d05d | 2018-11-12 21:48:24 | [diff] [blame] | 10076 | # ASan works by controlling memory allocation, our own malloc interferes. |
10077 | with_pymalloc="no" | ||||
10078 | |||||
10079 | else | ||||
10080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10081 | $as_echo "no" >&6; } | ||||
10082 | fi | ||||
10083 | |||||
10084 | |||||
10085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5 | ||||
10086 | $as_echo_n "checking for --with-memory-sanitizer... " >&6; } | ||||
10087 | |||||
10088 | # Check whether --with-memory_sanitizer was given. | ||||
10089 | if test "${with_memory_sanitizer+set}" = set; then : | ||||
10090 | withval=$with_memory_sanitizer; | ||||
10091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
10092 | $as_echo "$withval" >&6; } | ||||
10093 | BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS" | ||||
10094 | LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS" | ||||
10095 | # MSan works by controlling memory allocation, our own malloc interferes. | ||||
10096 | with_pymalloc="no" | ||||
10097 | |||||
10098 | else | ||||
10099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10100 | $as_echo "no" >&6; } | ||||
10101 | fi | ||||
10102 | |||||
10103 | |||||
10104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5 | ||||
10105 | $as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; } | ||||
10106 | |||||
10107 | # Check whether --with-undefined_behavior_sanitizer was given. | ||||
10108 | if test "${with_undefined_behavior_sanitizer+set}" = set; then : | ||||
10109 | withval=$with_undefined_behavior_sanitizer; | ||||
10110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
10111 | $as_echo "$withval" >&6; } | ||||
10112 | BASECFLAGS="-fsanitize=undefined $BASECFLAGS" | ||||
10113 | LDFLAGS="-fsanitize=undefined $LDFLAGS" | ||||
Charles-François Natali | d30b022 | 2014-05-08 22:08:51 | [diff] [blame] | 10114 | |
10115 | else | ||||
10116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10117 | $as_echo "no" >&6; } | ||||
10118 | fi | ||||
10119 | |||||
10120 | |||||
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 | [diff] [blame] | 10121 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
10123 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10124 | if ${ac_cv_lib_nsl_t_open+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10125 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10126 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10127 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 10128 | LIBS="-lnsl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10130 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10131 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10132 | /* Override any GCC internal prototype to avoid an error. |
10133 | Use char because int might match the return type of a GCC | ||||
10134 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10135 | #ifdef __cplusplus |
10136 | extern "C" | ||||
10137 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10138 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10139 | int |
10140 | main () | ||||
10141 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10142 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10143 | ; |
10144 | return 0; | ||||
10145 | } | ||||
10146 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10147 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10148 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10149 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10150 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10151 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10152 | rm -f core conftest.err conftest.$ac_objext \ |
10153 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10154 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10155 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
10157 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10158 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10159 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 | [diff] [blame] | 10160 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 | [diff] [blame] | 10161 | # SVR4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
10163 | $as_echo_n "checking for socket in -lsocket... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10164 | if ${ac_cv_lib_socket_socket+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10165 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10166 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10167 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 10168 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10170 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10171 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10172 | /* Override any GCC internal prototype to avoid an error. |
10173 | Use char because int might match the return type of a GCC | ||||
10174 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10175 | #ifdef __cplusplus |
10176 | extern "C" | ||||
10177 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10178 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10179 | int |
10180 | main () | ||||
10181 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10182 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10183 | ; |
10184 | return 0; | ||||
10185 | } | ||||
10186 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10187 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10188 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 | [diff] [blame] | 10189 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10190 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 | [diff] [blame] | 10191 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10192 | rm -f core conftest.err conftest.$ac_objext \ |
10193 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10194 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 | [diff] [blame] | 10195 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
10197 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10198 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 10199 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 10200 | fi |
10201 | # SVR4 sockets | ||||
Skip Montanaro | b9949db | 2004-01-17 04:04:13 | [diff] [blame] | 10202 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
10204 | $as_echo_n "checking for --with-libs... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10205 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10206 | # Check whether --with-libs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10207 | if test "${with_libs+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10208 | withval=$with_libs; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
10210 | $as_echo "$withval" >&6; } | ||||
Guido van Rossum | a68acba | 1996-07-31 17:36:39 | [diff] [blame] | 10211 | LIBS="$withval $LIBS" |
10212 | |||||
10213 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10215 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10216 | fi |
10217 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 10218 | |
Victor Stinner | 8291b5e | 2015-03-20 15:03:14 | [diff] [blame] | 10219 | |
10220 | |||||
10221 | |||||
10222 | |||||
10223 | |||||
10224 | |||||
Benjamin Peterson | 62ed6be | 2017-12-22 05:43:09 | [diff] [blame] | 10225 | |
Victor Stinner | 8291b5e | 2015-03-20 15:03:14 | [diff] [blame] | 10226 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
10227 | if test -n "$ac_tool_prefix"; then | ||||
10228 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||||
10229 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||||
10230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
10231 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
10232 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | ||||
10233 | $as_echo_n "(cached) " >&6 | ||||
10234 | else | ||||
10235 | case $PKG_CONFIG in | ||||
10236 | [\\/]* | ?:[\\/]*) | ||||
10237 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||||
10238 | ;; | ||||
10239 | *) | ||||
10240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
10241 | for as_dir in $PATH | ||||
10242 | do | ||||
10243 | IFS=$as_save_IFS | ||||
10244 | test -z "$as_dir" && as_dir=. | ||||
10245 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
10246 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
10247 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||||
10248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
10249 | break 2 | ||||
10250 | fi | ||||
10251 | done | ||||
10252 | done | ||||
10253 | IFS=$as_save_IFS | ||||
10254 | |||||
10255 | ;; | ||||
10256 | esac | ||||
10257 | fi | ||||
10258 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||||
10259 | if test -n "$PKG_CONFIG"; then | ||||
10260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||||
10261 | $as_echo "$PKG_CONFIG" >&6; } | ||||
10262 | else | ||||
10263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10264 | $as_echo "no" >&6; } | ||||
10265 | fi | ||||
10266 | |||||
10267 | |||||
10268 | fi | ||||
10269 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||||
10270 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||||
10271 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||||
10272 | set dummy pkg-config; ac_word=$2 | ||||
10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
10274 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
10275 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | ||||
10276 | $as_echo_n "(cached) " >&6 | ||||
10277 | else | ||||
10278 | case $ac_pt_PKG_CONFIG in | ||||
10279 | [\\/]* | ?:[\\/]*) | ||||
10280 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||||
10281 | ;; | ||||
10282 | *) | ||||
10283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
10284 | for as_dir in $PATH | ||||
10285 | do | ||||
10286 | IFS=$as_save_IFS | ||||
10287 | test -z "$as_dir" && as_dir=. | ||||
10288 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
10289 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
10290 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||||
10291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
10292 | break 2 | ||||
10293 | fi | ||||
10294 | done | ||||
10295 | done | ||||
10296 | IFS=$as_save_IFS | ||||
10297 | |||||
10298 | ;; | ||||
10299 | esac | ||||
10300 | fi | ||||
10301 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||||
10302 | if test -n "$ac_pt_PKG_CONFIG"; then | ||||
10303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||||
10304 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||||
10305 | else | ||||
10306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10307 | $as_echo "no" >&6; } | ||||
10308 | fi | ||||
10309 | |||||
10310 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||||
10311 | PKG_CONFIG="" | ||||
10312 | else | ||||
10313 | case $cross_compiling:$ac_tool_warned in | ||||
10314 | yes:) | ||||
10315 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
10316 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
10317 | ac_tool_warned=yes ;; | ||||
10318 | esac | ||||
10319 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||||
10320 | fi | ||||
10321 | else | ||||
10322 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||||
10323 | fi | ||||
10324 | |||||
10325 | fi | ||||
10326 | if test -n "$PKG_CONFIG"; then | ||||
10327 | _pkg_min_version=0.9.0 | ||||
10328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||||
10329 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||||
10330 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||||
10331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
10332 | $as_echo "yes" >&6; } | ||||
10333 | else | ||||
10334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
10335 | $as_echo "no" >&6; } | ||||
10336 | PKG_CONFIG="" | ||||
10337 | fi | ||||
10338 | fi | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10339 | |
10340 | # Check for use of the system expat library | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
10342 | $as_echo_n "checking for --with-system-expat... " >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10343 | |
10344 | # Check whether --with-system_expat was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10345 | if test "${with_system_expat+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10346 | withval=$with_system_expat; |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 | [diff] [blame] | 10347 | else |
10348 | with_system_expat="no" | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10349 | fi |
10350 | |||||
10351 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
10353 | $as_echo "$with_system_expat" >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10354 | |
10355 | # Check for use of the system libffi library | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
10357 | $as_echo_n "checking for --with-system-ffi... " >&6; } | ||||
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10358 | |
10359 | # Check whether --with-system_ffi was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10360 | if test "${with_system_ffi+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10361 | withval=$with_system_ffi; |
10362 | fi | ||||
10363 | |||||
10364 | |||||
Zachary Ware | f40d4dd | 2016-09-17 06:25:24 | [diff] [blame] | 10365 | if test "$ac_sys_system" = "Darwin" |
10366 | then | ||||
10367 | case "$with_system_ffi" in | ||||
10368 | "") | ||||
10369 | with_system_ffi="no" | ||||
10370 | ;; | ||||
10371 | yes|no) | ||||
10372 | ;; | ||||
10373 | *) | ||||
10374 | as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 | ||||
10375 | ;; | ||||
10376 | esac | ||||
10377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | ||||
10378 | $as_echo "$with_system_ffi" >&6; } | ||||
10379 | else | ||||
10380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
10381 | $as_echo "yes" >&6; } | ||||
10382 | if test "$with_system_ffi" != "" | ||||
10383 | then | ||||
10384 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5 | ||||
10385 | $as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;} | ||||
10386 | fi | ||||
10387 | with_system_ffi="yes" | ||||
10388 | fi | ||||
Zachary Ware | 935043d | 2016-09-10 00:01:21 | [diff] [blame] | 10389 | |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 | [diff] [blame] | 10390 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 | [diff] [blame] | 10391 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
10392 | else | ||||
10393 | LIBFFI_INCLUDEDIR="" | ||||
10394 | fi | ||||
10395 | |||||
10396 | |||||
Stefan Krah | 60187b5 | 2012-03-23 18:06:27 | [diff] [blame] | 10397 | # Check for use of the system libmpdec library |
10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 | ||||
10399 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | ||||
10400 | |||||
10401 | # Check whether --with-system_libmpdec was given. | ||||
10402 | if test "${with_system_libmpdec+set}" = set; then : | ||||
10403 | withval=$with_system_libmpdec; | ||||
10404 | else | ||||
10405 | with_system_libmpdec="no" | ||||
10406 | fi | ||||
10407 | |||||
10408 | |||||
10409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 | ||||
10410 | $as_echo "$with_system_libmpdec" >&6; } | ||||
10411 | |||||
Stefan Krah | c4ca1f8 | 2020-02-29 22:10:26 | [diff] [blame] | 10412 | # Check whether _decimal should use a coroutine-local or thread-local context |
10413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5 | ||||
10414 | $as_echo_n "checking for --with-decimal-contextvar... " >&6; } | ||||
10415 | |||||
10416 | # Check whether --with-decimal_contextvar was given. | ||||
10417 | if test "${with_decimal_contextvar+set}" = set; then : | ||||
10418 | withval=$with_decimal_contextvar; | ||||
10419 | else | ||||
10420 | with_decimal_contextvar="yes" | ||||
10421 | fi | ||||
10422 | |||||
10423 | |||||
10424 | if test "$with_decimal_contextvar" != "no" | ||||
10425 | then | ||||
10426 | |||||
10427 | $as_echo "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h | ||||
10428 | |||||
10429 | fi | ||||
10430 | |||||
10431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5 | ||||
10432 | $as_echo "$with_decimal_contextvar" >&6; } | ||||
10433 | |||||
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 | [diff] [blame] | 10434 | # Check for support for loadable sqlite extensions |
10435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | ||||
10436 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | ||||
10437 | # Check whether --enable-loadable-sqlite-extensions was given. | ||||
10438 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | ||||
10439 | enableval=$enable_loadable_sqlite_extensions; | ||||
10440 | else | ||||
10441 | enable_loadable_sqlite_extensions="no" | ||||
10442 | fi | ||||
10443 | |||||
10444 | |||||
10445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | ||||
10446 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | ||||
10447 | |||||
Ned Deily | d819b93 | 2013-09-06 08:07:05 | [diff] [blame] | 10448 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path |
10449 | |||||
10450 | |||||
10451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | ||||
10452 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | ||||
10453 | |||||
10454 | # Check whether --with-tcltk-includes was given. | ||||
10455 | if test "${with_tcltk_includes+set}" = set; then : | ||||
10456 | withval=$with_tcltk_includes; | ||||
10457 | else | ||||
10458 | with_tcltk_includes="default" | ||||
10459 | fi | ||||
10460 | |||||
10461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | ||||
10462 | $as_echo "$with_tcltk_includes" >&6; } | ||||
10463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | ||||
10464 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | ||||
10465 | |||||
10466 | # Check whether --with-tcltk-libs was given. | ||||
10467 | if test "${with_tcltk_libs+set}" = set; then : | ||||
10468 | withval=$with_tcltk_libs; | ||||
10469 | else | ||||
10470 | with_tcltk_libs="default" | ||||
10471 | fi | ||||
10472 | |||||
10473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | ||||
10474 | $as_echo "$with_tcltk_libs" >&6; } | ||||
10475 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | ||||
10476 | then | ||||
10477 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | ||||
10478 | then | ||||
10479 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | ||||
10480 | fi | ||||
10481 | TCLTK_INCLUDES="" | ||||
10482 | TCLTK_LIBS="" | ||||
10483 | else | ||||
10484 | TCLTK_INCLUDES="$with_tcltk_includes" | ||||
10485 | TCLTK_LIBS="$with_tcltk_libs" | ||||
10486 | fi | ||||
10487 | |||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10488 | # Check for --with-dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
10490 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10491 | |
10492 | # Check whether --with-dbmliborder was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10493 | if test "${with_dbmliborder+set}" = set; then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10494 | withval=$with_dbmliborder; |
10495 | if test x$with_dbmliborder = xyes | ||||
10496 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 10497 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10498 | else |
10499 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | ||||
10500 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | ||||
10501 | then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 10502 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10503 | fi |
10504 | done | ||||
10505 | fi | ||||
10506 | fi | ||||
10507 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
10509 | $as_echo "$with_dbmliborder" >&6; } | ||||
Matthias Klose | 55708cc | 2009-04-30 08:06:49 | [diff] [blame] | 10510 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10512 | |
10513 | # Templates for things AC_DEFINEd more than once. | ||||
10514 | # For a single AC_DEFINE, no template is needed. | ||||
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 | [diff] [blame] | 10515 | |
10516 | |||||
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10517 | if test "$ac_cv_pthread_is_default" = yes |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 | [diff] [blame] | 10518 | then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 10519 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10520 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 10521 | |
10522 | posix_threads=yes | ||||
Miss Islington (bot) | 6112b91 | 2019-09-28 02:21:24 | [diff] [blame] | 10523 | if test "$ac_sys_system" = "SunOS"; then |
10524 | CFLAGS="$CFLAGS -D_REENTRANT" | ||||
10525 | fi | ||||
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10526 | elif test "$ac_cv_kpthread" = "yes" |
10527 | then | ||||
10528 | CC="$CC -Kpthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 10529 | if test "$ac_cv_cxx_thread" = "yes"; then |
10530 | CXX="$CXX -Kpthread" | ||||
10531 | fi | ||||
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 10532 | posix_threads=yes |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 | [diff] [blame] | 10533 | elif test "$ac_cv_kthread" = "yes" |
10534 | then | ||||
10535 | CC="$CC -Kthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 10536 | if test "$ac_cv_cxx_thread" = "yes"; then |
10537 | CXX="$CXX -Kthread" | ||||
10538 | fi | ||||
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 | [diff] [blame] | 10539 | posix_threads=yes |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10540 | elif test "$ac_cv_pthread" = "yes" |
10541 | then | ||||
10542 | CC="$CC -pthread" | ||||
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 | [diff] [blame] | 10543 | if test "$ac_cv_cxx_thread" = "yes"; then |
10544 | CXX="$CXX -pthread" | ||||
10545 | fi | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10546 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10547 | else |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10548 | if test ! -z "$withval" -a -d "$withval" |
10549 | then LDFLAGS="$LDFLAGS -L$withval" | ||||
10550 | fi | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10551 | |
10552 | # According to the POSIX spec, a pthreads implementation must | ||||
Matthias Klose | a2542be | 2004-08-16 11:35:51 | [diff] [blame] | 10553 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
10554 | # (e.g. gnu pth with pthread emulation) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
10556 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | ||||
10557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10558 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 | [diff] [blame] | 10559 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10560 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 | [diff] [blame] | 10561 | #ifdef _POSIX_THREADS |
10562 | yes | ||||
10563 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10564 | |
10565 | _ACEOF | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10566 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10567 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10568 | unistd_defines_pthreads=yes |
10569 | else | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10570 | unistd_defines_pthreads=no |
10571 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 10572 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10573 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
10575 | $as_echo "$unistd_defines_pthreads" >&6; } | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10576 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10577 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 | [diff] [blame] | 10578 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 | [diff] [blame] | 10579 | # Just looking for pthread_create in libpthread is not enough: |
10580 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | ||||
10581 | # So we really have to include pthread.h, and then link. | ||||
10582 | _libs=$LIBS | ||||
10583 | LIBS="$LIBS -lpthread" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
10585 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | ||||
10586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10587 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 10588 | |
10589 | #include <stdio.h> | ||||
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 | [diff] [blame] | 10590 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 | [diff] [blame] | 10591 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 | [diff] [blame] | 10592 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10593 | int |
10594 | main () | ||||
10595 | { | ||||
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 | [diff] [blame] | 10596 | |
10597 | pthread_create (NULL, NULL, start_routine, NULL) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10598 | ; |
10599 | return 0; | ||||
10600 | } | ||||
10601 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10602 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10603 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10605 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10606 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10607 | |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 | [diff] [blame] | 10608 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10609 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 | [diff] [blame] | 10610 | LIBS=$_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10611 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10612 | if test "x$ac_cv_func_pthread_detach" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 10613 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 | [diff] [blame] | 10614 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10615 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 10616 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 | [diff] [blame] | 10617 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
10619 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10620 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10621 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10622 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10623 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 10624 | LIBS="-lpthreads $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10626 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10627 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10628 | /* Override any GCC internal prototype to avoid an error. |
10629 | Use char because int might match the return type of a GCC | ||||
10630 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10631 | #ifdef __cplusplus |
10632 | extern "C" | ||||
10633 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10634 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10635 | int |
10636 | main () | ||||
10637 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10638 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10639 | ; |
10640 | return 0; | ||||
10641 | } | ||||
10642 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10643 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10644 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10645 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10646 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10647 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10648 | rm -f core conftest.err conftest.$ac_objext \ |
10649 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10650 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10651 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
10653 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10654 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10655 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 10656 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10657 | LIBS="$LIBS -lpthreads" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10658 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10659 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10660 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
10662 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10663 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10664 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10665 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10666 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 | [diff] [blame] | 10667 | LIBS="-lc_r $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10669 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10670 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10671 | /* Override any GCC internal prototype to avoid an error. |
10672 | Use char because int might match the return type of a GCC | ||||
10673 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10674 | #ifdef __cplusplus |
10675 | extern "C" | ||||
10676 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10677 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10678 | int |
10679 | main () | ||||
10680 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10681 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10682 | ; |
10683 | return 0; | ||||
10684 | } | ||||
10685 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10686 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10687 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 | [diff] [blame] | 10688 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10689 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 | [diff] [blame] | 10690 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10691 | rm -f core conftest.err conftest.$ac_objext \ |
10692 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10693 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 | [diff] [blame] | 10694 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
10696 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10697 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 | [diff] [blame] | 10698 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 10699 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10700 | LIBS="$LIBS -lc_r" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10701 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 | [diff] [blame] | 10702 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 | [diff] [blame] | 10703 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
10705 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10706 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10707 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10709 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10710 | LIBS="-lpthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10712 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10713 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10714 | /* Override any GCC internal prototype to avoid an error. |
10715 | Use char because int might match the return type of a GCC | ||||
10716 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10717 | #ifdef __cplusplus |
10718 | extern "C" | ||||
10719 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10720 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10721 | int |
10722 | main () | ||||
10723 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10724 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10725 | ; |
10726 | return 0; | ||||
10727 | } | ||||
10728 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10729 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10730 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10731 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10732 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10733 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10734 | rm -f core conftest.err conftest.$ac_objext \ |
10735 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10736 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10737 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
10739 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10740 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10741 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 10742 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10743 | LIBS="$LIBS -lpthread" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10744 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10745 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 | [diff] [blame] | 10746 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
10748 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10749 | if ${ac_cv_lib_cma_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10750 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10751 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10752 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10753 | LIBS="-lcma $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10755 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10756 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10757 | /* Override any GCC internal prototype to avoid an error. |
10758 | Use char because int might match the return type of a GCC | ||||
10759 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10760 | #ifdef __cplusplus |
10761 | extern "C" | ||||
10762 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10763 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10764 | int |
10765 | main () | ||||
10766 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10767 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10768 | ; |
10769 | return 0; | ||||
10770 | } | ||||
10771 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10772 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10773 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10774 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10775 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10776 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10777 | rm -f core conftest.err conftest.$ac_objext \ |
10778 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10779 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10780 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
10782 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10783 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10784 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 10785 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10786 | LIBS="$LIBS -lcma" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10787 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10788 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 | [diff] [blame] | 10789 | |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10790 | as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 |
10791 | |||||
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 | [diff] [blame] | 10792 | fi |
10793 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10794 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 | [diff] [blame] | 10795 | fi |
10796 | |||||
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 | [diff] [blame] | 10797 | fi |
10798 | |||||
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 | [diff] [blame] | 10799 | fi |
10800 | |||||
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 | [diff] [blame] | 10801 | fi |
10802 | |||||
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 | [diff] [blame] | 10803 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10804 | rm -f core conftest.err conftest.$ac_objext \ |
10805 | conftest$ac_exeext conftest.$ac_ext | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 10806 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
10808 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10809 | if ${ac_cv_lib_mpc_usconfig+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10810 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10811 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10812 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 10813 | LIBS="-lmpc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10815 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10816 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10817 | /* Override any GCC internal prototype to avoid an error. |
10818 | Use char because int might match the return type of a GCC | ||||
10819 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10820 | #ifdef __cplusplus |
10821 | extern "C" | ||||
10822 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10823 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10824 | int |
10825 | main () | ||||
10826 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10827 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10828 | ; |
10829 | return 0; | ||||
10830 | } | ||||
10831 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10832 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10833 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10834 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10835 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10836 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10837 | rm -f core conftest.err conftest.$ac_objext \ |
10838 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10839 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 10840 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
10842 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10843 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10844 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 | [diff] [blame] | 10845 | LIBS="$LIBS -lmpc" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 10846 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10847 | fi |
10848 | |||||
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 | [diff] [blame] | 10849 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10850 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 | [diff] [blame] | 10851 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10852 | if test "$posix_threads" = "yes"; then |
10853 | if test "$unistd_defines_pthreads" = "no"; then | ||||
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 | [diff] [blame] | 10854 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10855 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10856 | |
10857 | fi | ||||
10858 | |||||
10859 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | ||||
10860 | case $ac_sys_system/$ac_sys_release in | ||||
Charles-François Natali | 996f606 | 2011-07-21 17:45:31 | [diff] [blame] | 10861 | SunOS/5.6) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10862 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 | [diff] [blame] | 10863 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10864 | ;; |
10865 | SunOS/5.8) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10866 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10867 | |
10868 | ;; | ||||
Charles-François Natali | 996f606 | 2011-07-21 17:45:31 | [diff] [blame] | 10869 | AIX/*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10870 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 | [diff] [blame] | 10871 | |
10872 | ;; | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10873 | esac |
10874 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
10876 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10877 | if ${ac_cv_pthread_system_supported+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10878 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10879 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10880 | if test "$cross_compiling" = yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10881 | ac_cv_pthread_system_supported=no |
10882 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10884 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 21:49:11 | [diff] [blame] | 10885 | |
10886 | #include <stdio.h> | ||||
10887 | #include <pthread.h> | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10888 | void *foo(void *parm) { |
10889 | return NULL; | ||||
10890 | } | ||||
10891 | main() { | ||||
10892 | pthread_attr_t attr; | ||||
10893 | pthread_t id; | ||||
10894 | if (pthread_attr_init(&attr)) exit(-1); | ||||
10895 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | ||||
10896 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | ||||
10897 | exit(0); | ||||
10898 | } | ||||
10899 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10900 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10901 | ac_cv_pthread_system_supported=yes |
10902 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10903 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10904 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10905 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
10906 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10907 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 | [diff] [blame] | 10908 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10909 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 10910 | fi |
10911 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
10913 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10914 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
10915 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10916 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10917 | |
10918 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10919 | for ac_func in pthread_sigmask |
10920 | do : | ||||
10921 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 10922 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10923 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10924 | #define HAVE_PTHREAD_SIGMASK 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10925 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 | [diff] [blame] | 10926 | case $ac_sys_system in |
10927 | CYGWIN*) | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10928 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10929 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 | [diff] [blame] | 10930 | |
10931 | ;; | ||||
10932 | esac | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10933 | fi |
10934 | done | ||||
10935 | |||||
pdox | e14679c | 2017-10-05 07:01:56 | [diff] [blame] | 10936 | for ac_func in pthread_getcpuclockid |
10937 | do : | ||||
10938 | ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid" | ||||
10939 | if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then : | ||||
10940 | cat >>confdefs.h <<_ACEOF | ||||
10941 | #define HAVE_PTHREAD_GETCPUCLOCKID 1 | ||||
10942 | _ACEOF | ||||
10943 | |||||
10944 | fi | ||||
10945 | done | ||||
10946 | |||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 10947 | fi |
10948 | |||||
10949 | |||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10950 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10951 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
10953 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10954 | # Check whether --enable-ipv6 was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10955 | if test "${enable_ipv6+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10956 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10957 | no) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10959 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10960 | ipv6=no |
10961 | ;; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10962 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10963 | $as_echo "yes" >&6; } | ||||
10964 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10965 | |
10966 | ipv6=yes | ||||
10967 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10968 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10970 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 10972 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10973 | /* AF_INET6 available check */ |
10974 | #include <sys/types.h> | ||||
10975 | #include <sys/socket.h> | ||||
Charles-François Natali | f6fd794 | 2013-01-08 18:49:42 | [diff] [blame] | 10976 | int |
10977 | main () | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10978 | { |
Charles-François Natali | f6fd794 | 2013-01-08 18:49:42 | [diff] [blame] | 10979 | int domain = AF_INET6; |
10980 | ; | ||||
10981 | return 0; | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10982 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 10983 | _ACEOF |
Charles-François Natali | f6fd794 | 2013-01-08 18:49:42 | [diff] [blame] | 10984 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10985 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10987 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10988 | ipv6=yes |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10989 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10990 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10991 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 10992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10993 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10994 | ipv6=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 10995 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 10996 | fi |
Charles-François Natali | f6fd794 | 2013-01-08 18:49:42 | [diff] [blame] | 10997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 10998 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 10999 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
11001 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | ||||
11002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11003 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11004 | |
11005 | #include <sys/types.h> | ||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 11006 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11007 | int |
11008 | main () | ||||
11009 | { | ||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 11010 | struct sockaddr_in6 x; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11011 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11012 | ; |
11013 | return 0; | ||||
11014 | } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11016 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11017 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11018 | |
11019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11020 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11021 | ipv6=yes |
11022 | |||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 11023 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11024 | |
11025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11026 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11027 | ipv6=no |
11028 | |||||
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 11029 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 11031 | fi |
11032 | |||||
11033 | if test "$ipv6" = "yes"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11034 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 | [diff] [blame] | 11035 | |
11036 | fi | ||||
11037 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11038 | fi |
11039 | |||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11040 | |
11041 | ipv6type=unknown | ||||
11042 | ipv6lib=none | ||||
11043 | ipv6trylibc=no | ||||
11044 | |||||
11045 | if test "$ipv6" = "yes"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
11047 | $as_echo_n "checking ipv6 stack type... " >&6; } | ||||
Guido van Rossum | b855216 | 2001-09-05 14:58:11 | [diff] [blame] | 11048 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
11049 | do | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11050 | case $i in |
11051 | inria) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11053 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11054 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11055 | #include <netinet/in.h> |
11056 | #ifdef IPV6_INRIA_VERSION | ||||
11057 | yes | ||||
11058 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11059 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11060 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11061 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 | [diff] [blame] | 11062 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11063 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11064 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11065 | |
11066 | ;; | ||||
11067 | kame) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11069 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11070 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11071 | #include <netinet/in.h> |
11072 | #ifdef __KAME__ | ||||
11073 | yes | ||||
11074 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11075 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11076 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11077 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11078 | ipv6type=$i; |
11079 | ipv6lib=inet6 | ||||
11080 | ipv6libdir=/usr/local/v6/lib | ||||
11081 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11082 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11083 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11084 | |
11085 | ;; | ||||
11086 | linux-glibc) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11088 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11089 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11090 | #include <features.h> |
11091 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | ||||
11092 | yes | ||||
11093 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11094 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11095 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11096 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11097 | ipv6type=$i; |
11098 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11099 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11100 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11101 | |
11102 | ;; | ||||
11103 | linux-inet6) | ||||
11104 | if test -d /usr/inet6; then | ||||
11105 | ipv6type=$i | ||||
11106 | ipv6lib=inet6 | ||||
11107 | ipv6libdir=/usr/inet6/lib | ||||
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 | [diff] [blame] | 11108 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11109 | fi |
11110 | ;; | ||||
11111 | solaris) | ||||
11112 | if test -f /etc/netconfig; then | ||||
Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 | [diff] [blame] | 11113 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11114 | ipv6type=$i |
11115 | ipv6trylibc=yes | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11116 | fi |
11117 | fi | ||||
11118 | ;; | ||||
11119 | toshiba) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11121 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11122 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11123 | #include <sys/param.h> |
11124 | #ifdef _TOSHIBA_INET6 | ||||
11125 | yes | ||||
11126 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11127 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11128 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11129 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11130 | ipv6type=$i; |
11131 | ipv6lib=inet6; | ||||
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 | [diff] [blame] | 11132 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11133 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11134 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11135 | |
11136 | ;; | ||||
11137 | v6d) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11139 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11140 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11141 | #include </usr/local/v6/include/sys/v6config.h> |
11142 | #ifdef __V6D__ | ||||
11143 | yes | ||||
11144 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11145 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11147 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11148 | ipv6type=$i; |
11149 | ipv6lib=v6; | ||||
11150 | ipv6libdir=/usr/local/v6/lib; | ||||
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 | [diff] [blame] | 11151 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11152 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11153 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11154 | |
11155 | ;; | ||||
11156 | zeta) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11158 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 | [diff] [blame] | 11159 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11160 | #include <sys/param.h> |
11161 | #ifdef _ZETA_MINAMI_INET6 | ||||
11162 | yes | ||||
11163 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11164 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11165 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11166 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11167 | ipv6type=$i; |
11168 | ipv6lib=inet6; | ||||
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 | [diff] [blame] | 11169 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11170 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 11171 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11172 | |
11173 | ;; | ||||
11174 | esac | ||||
11175 | if test "$ipv6type" != "unknown"; then | ||||
11176 | break | ||||
11177 | fi | ||||
11178 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
11180 | $as_echo "$ipv6type" >&6; } | ||||
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 | [diff] [blame] | 11181 | fi |
11182 | |||||
11183 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | ||||
11184 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | ||||
11185 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | ||||
11186 | echo "using lib$ipv6lib" | ||||
11187 | else | ||||
11188 | if test $ipv6trylibc = "yes"; then | ||||
11189 | echo "using libc" | ||||
11190 | else | ||||
11191 | echo 'Fatal: no $ipv6lib library found. cannot continue.' | ||||
11192 | echo "You need to fetch lib$ipv6lib.a from appropriate" | ||||
11193 | echo 'ipv6 kit and compile beforehand.' | ||||
11194 | exit 1 | ||||
11195 | fi | ||||
11196 | fi | ||||
11197 | fi | ||||
11198 | |||||
Larry Hastings | a6cc551 | 2015-04-13 21:48:40 | [diff] [blame] | 11199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 |
11200 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } | ||||
11201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11202 | /* end confdefs.h. */ | ||||
11203 | /* CAN_RAW_FD_FRAMES available check */ | ||||
11204 | #include <linux/can/raw.h> | ||||
11205 | int | ||||
11206 | main () | ||||
11207 | { | ||||
11208 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; | ||||
11209 | ; | ||||
11210 | return 0; | ||||
11211 | } | ||||
11212 | _ACEOF | ||||
11213 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11214 | |||||
11215 | |||||
11216 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h | ||||
11217 | |||||
11218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11219 | $as_echo "yes" >&6; } | ||||
11220 | |||||
11221 | else | ||||
11222 | |||||
11223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11224 | $as_echo "no" >&6; } | ||||
11225 | |||||
11226 | fi | ||||
11227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
11228 | |||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11229 | # Check for --with-doc-strings |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
11231 | $as_echo_n "checking for --with-doc-strings... " >&6; } | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11232 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11233 | # Check whether --with-doc-strings was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11234 | if test "${with_doc_strings+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11235 | withval=$with_doc_strings; |
11236 | fi | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11237 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11238 | |
11239 | if test -z "$with_doc_strings" | ||||
11240 | then with_doc_strings="yes" | ||||
11241 | fi | ||||
11242 | if test "$with_doc_strings" != "no" | ||||
11243 | then | ||||
11244 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11245 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11246 | |
11247 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
11249 | $as_echo "$with_doc_strings" >&6; } | ||||
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 | [diff] [blame] | 11250 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 | [diff] [blame] | 11251 | # Check for Python-specific malloc support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
11253 | $as_echo_n "checking for --with-pymalloc... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11254 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11255 | # Check whether --with-pymalloc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11256 | if test "${with_pymalloc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11257 | withval=$with_pymalloc; |
11258 | fi | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 11259 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 | [diff] [blame] | 11260 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 | [diff] [blame] | 11261 | if test -z "$with_pymalloc" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 11262 | then |
11263 | with_pymalloc="yes" | ||||
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 | [diff] [blame] | 11264 | fi |
11265 | if test "$with_pymalloc" != "no" | ||||
11266 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11267 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11268 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 | [diff] [blame] | 11269 | |
doko@ubuntu.com | 9c7817e | 2012-06-30 15:05:13 | [diff] [blame] | 11270 | ABIFLAGS="${ABIFLAGS}m" |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 | [diff] [blame] | 11271 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
11273 | $as_echo "$with_pymalloc" >&6; } | ||||
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 | [diff] [blame] | 11274 | |
Nick Coghlan | 6ea4186 | 2017-06-11 03:16:15 | [diff] [blame] | 11275 | # Check for --with-c-locale-coercion |
11276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5 | ||||
11277 | $as_echo_n "checking for --with-c-locale-coercion... " >&6; } | ||||
11278 | |||||
11279 | # Check whether --with-c-locale-coercion was given. | ||||
11280 | if test "${with_c_locale_coercion+set}" = set; then : | ||||
11281 | withval=$with_c_locale_coercion; | ||||
11282 | fi | ||||
11283 | |||||
11284 | |||||
11285 | if test -z "$with_c_locale_coercion" | ||||
11286 | then | ||||
11287 | with_c_locale_coercion="yes" | ||||
11288 | fi | ||||
11289 | if test "$with_c_locale_coercion" != "no" | ||||
11290 | then | ||||
11291 | |||||
11292 | $as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h | ||||
11293 | |||||
11294 | fi | ||||
11295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5 | ||||
11296 | $as_echo "$with_c_locale_coercion" >&6; } | ||||
11297 | |||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11298 | # Check for Valgrind support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
11300 | $as_echo_n "checking for --with-valgrind... " >&6; } | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11301 | |
11302 | # Check whether --with-valgrind was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11303 | if test "${with_valgrind+set}" = set; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11304 | withval=$with_valgrind; |
11305 | else | ||||
11306 | with_valgrind=no | ||||
11307 | fi | ||||
11308 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
11310 | $as_echo "$with_valgrind" >&6; } | ||||
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11311 | if test "$with_valgrind" != no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11312 | 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 11:06:09 | [diff] [blame] | 11313 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11314 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11315 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11316 | |
11317 | else | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 11318 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11319 | |
11320 | fi | ||||
11321 | |||||
11322 | |||||
Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 | [diff] [blame] | 11323 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 | [diff] [blame] | 11324 | fi |
11325 | |||||
Łukasz Langa | a785c87 | 2016-09-10 00:37:37 | [diff] [blame] | 11326 | # Check for DTrace support |
11327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 | ||||
11328 | $as_echo_n "checking for --with-dtrace... " >&6; } | ||||
11329 | |||||
11330 | # Check whether --with-dtrace was given. | ||||
11331 | if test "${with_dtrace+set}" = set; then : | ||||
11332 | withval=$with_dtrace; | ||||
11333 | else | ||||
11334 | with_dtrace=no | ||||
11335 | fi | ||||
11336 | |||||
11337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 | ||||
11338 | $as_echo "$with_dtrace" >&6; } | ||||
11339 | |||||
11340 | |||||
11341 | |||||
11342 | |||||
11343 | |||||
11344 | DTRACE= | ||||
11345 | DFLAGS= | ||||
11346 | DTRACE_HEADERS= | ||||
11347 | DTRACE_OBJS= | ||||
11348 | |||||
11349 | if test "$with_dtrace" = "yes" | ||||
11350 | then | ||||
11351 | # Extract the first word of "dtrace", so it can be a program name with args. | ||||
11352 | set dummy dtrace; ac_word=$2 | ||||
11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
11354 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
11355 | if ${ac_cv_path_DTRACE+:} false; then : | ||||
11356 | $as_echo_n "(cached) " >&6 | ||||
11357 | else | ||||
11358 | case $DTRACE in | ||||
11359 | [\\/]* | ?:[\\/]*) | ||||
11360 | ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. | ||||
11361 | ;; | ||||
11362 | *) | ||||
11363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
11364 | for as_dir in $PATH | ||||
11365 | do | ||||
11366 | IFS=$as_save_IFS | ||||
11367 | test -z "$as_dir" && as_dir=. | ||||
11368 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
11369 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
11370 | ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" | ||||
11371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
11372 | break 2 | ||||
11373 | fi | ||||
11374 | done | ||||
11375 | done | ||||
11376 | IFS=$as_save_IFS | ||||
11377 | |||||
11378 | test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" | ||||
11379 | ;; | ||||
11380 | esac | ||||
11381 | fi | ||||
11382 | DTRACE=$ac_cv_path_DTRACE | ||||
11383 | if test -n "$DTRACE"; then | ||||
11384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 | ||||
11385 | $as_echo "$DTRACE" >&6; } | ||||
11386 | else | ||||
11387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11388 | $as_echo "no" >&6; } | ||||
11389 | fi | ||||
11390 | |||||
11391 | |||||
11392 | if test "$DTRACE" = "not found"; then | ||||
11393 | as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 | ||||
11394 | fi | ||||
11395 | |||||
11396 | $as_echo "#define WITH_DTRACE 1" >>confdefs.h | ||||
11397 | |||||
11398 | DTRACE_HEADERS="Include/pydtrace_probes.h" | ||||
11399 | |||||
11400 | # On OS X, DTrace providers do not need to be explicitly compiled and | ||||
11401 | # linked into the binary. Correspondingly, dtrace(1) is missing the ELF | ||||
11402 | # generation flag '-G'. We check for presence of this flag, rather than | ||||
11403 | # hardcoding support by OS, in the interest of robustness. | ||||
11404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 | ||||
11405 | $as_echo_n "checking whether DTrace probes require linking... " >&6; } | ||||
11406 | if ${ac_cv_dtrace_link+:} false; then : | ||||
11407 | $as_echo_n "(cached) " >&6 | ||||
11408 | else | ||||
11409 | ac_cv_dtrace_link=no | ||||
11410 | echo 'BEGIN' > conftest.d | ||||
11411 | "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ | ||||
11412 | ac_cv_dtrace_link=yes | ||||
11413 | |||||
11414 | fi | ||||
11415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 | ||||
11416 | $as_echo "$ac_cv_dtrace_link" >&6; } | ||||
11417 | if test "$ac_cv_dtrace_link" = "yes"; then | ||||
11418 | DTRACE_OBJS="Python/pydtrace.o" | ||||
11419 | fi | ||||
11420 | fi | ||||
11421 | |||||
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 11422 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 11423 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 | [diff] [blame] | 11424 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 11425 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11426 | # the dlopen() function means we might want to use dynload_shlib.o. some |
11427 | # platforms, such as AIX, have dlopen(), but don't want to use it. | ||||
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 11428 | for ac_func in dlopen |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11429 | do : |
11430 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11431 | if test "x$ac_cv_func_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11432 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11433 | #define HAVE_DLOPEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11434 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11435 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11436 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 11437 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11438 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 11439 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11440 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
11441 | # loading of modules. | ||||
11442 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
11444 | $as_echo_n "checking DYNLOADFILE... " >&6; } | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11445 | if test -z "$DYNLOADFILE" |
11446 | then | ||||
11447 | case $ac_sys_system/$ac_sys_release in | ||||
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 | [diff] [blame] | 11448 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
11449 | if test "$ac_cv_func_dlopen" = yes | ||||
11450 | then DYNLOADFILE="dynload_shlib.o" | ||||
11451 | else DYNLOADFILE="dynload_aix.o" | ||||
11452 | fi | ||||
11453 | ;; | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11454 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11455 | *) |
11456 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | ||||
11457 | # out any dynamic loading | ||||
11458 | if test "$ac_cv_func_dlopen" = yes | ||||
11459 | then DYNLOADFILE="dynload_shlib.o" | ||||
11460 | else DYNLOADFILE="dynload_stub.o" | ||||
11461 | fi | ||||
11462 | ;; | ||||
11463 | esac | ||||
11464 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
11466 | $as_echo "$DYNLOADFILE" >&6; } | ||||
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11467 | if test "$DYNLOADFILE" != "dynload_stub.o" |
11468 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11469 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11470 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 | [diff] [blame] | 11471 | |
11472 | fi | ||||
11473 | |||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 | [diff] [blame] | 11474 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
11475 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 11476 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
11478 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 | [diff] [blame] | 11479 | if test -z "$MACHDEP_OBJS" |
11480 | then | ||||
Jack Jansen | e578a63 | 2001-08-15 01:27:14 | [diff] [blame] | 11481 | MACHDEP_OBJS=$extra_machdep_objs |
11482 | else | ||||
11483 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 | [diff] [blame] | 11484 | fi |
doko@ubuntu.com | 9c7817e | 2012-06-30 15:05:13 | [diff] [blame] | 11485 | if test -z "$MACHDEP_OBJS"; then |
11486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||||
11487 | $as_echo "none" >&6; } | ||||
11488 | else | ||||
11489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 | ||||
11490 | $as_echo "$MACHDEP_OBJS" >&6; } | ||||
11491 | fi | ||||
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 | [diff] [blame] | 11492 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 11493 | # checks for library functions |
Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 | [diff] [blame] | 11494 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ |
Victor Stinner | daf4555 | 2013-08-27 22:53:59 | [diff] [blame] | 11495 | clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ |
Ross Lagerwall | 7807c35 | 2011-03-17 18:20:30 | [diff] [blame] | 11496 | fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ |
Victor Stinner | 4d6a3d6 | 2014-12-21 00:16:38 | [diff] [blame] | 11497 | futimens futimes gai_strerror getentropy \ |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 11498 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 | [diff] [blame] | 11499 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
xdegaye | 5ad7ef8 | 2017-11-23 10:13:22 | [diff] [blame] | 11500 | if_nameindex \ |
Miss Islington (bot) | 35c94c7 | 2018-09-13 05:33:02 | [diff] [blame] | 11501 | initgroups kill killpg lchown lockf linkat lstat lutimes mmap \ |
Antoine Pitrou | f0effe6 | 2011-11-26 00:11:02 | [diff] [blame] | 11502 | memrchr mbrtowc mkdirat mkfifo \ |
Charles-François Natali | daafdd5 | 2011-05-29 18:07:40 | [diff] [blame] | 11503 | mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ |
Pablo Galindo | 6c6ddf9 | 2018-01-29 01:56:10 | [diff] [blame] | 11504 | posix_fallocate posix_fadvise posix_spawn pread preadv preadv2 \ |
Pablo Galindo | 4defba3 | 2018-01-27 16:16:37 | [diff] [blame] | 11505 | pthread_init pthread_kill putenv pwrite pwritev pwritev2 readlink readlinkat readv realpath renameat \ |
Benjamin Peterson | a234485 | 2017-09-04 17:21:42 | [diff] [blame] | 11506 | sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ |
Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 | [diff] [blame] | 11507 | setgid sethostname \ |
Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 | [diff] [blame] | 11508 | setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ |
Charles-François Natali | ea0d5fc | 2011-09-06 17:03:35 | [diff] [blame] | 11509 | sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ |
11510 | sched_rr_get_interval \ | ||||
Ross Lagerwall | bc80822 | 2011-06-25 10:13:40 | [diff] [blame] | 11511 | sigaction sigaltstack siginterrupt sigpending sigrelse \ |
11512 | sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ | ||||
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 | [diff] [blame] | 11513 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Ross Lagerwall | 7807c35 | 2011-03-17 18:20:30 | [diff] [blame] | 11514 | truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ |
Victor Stinner | cd777ea | 2013-04-08 20:43:44 | [diff] [blame] | 11515 | wcscoll wcsftime wcsxfrm wmemcmp writev _getpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11516 | do : |
11517 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
11518 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 11519 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11520 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11521 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 11522 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 11523 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 11524 | fi |
11525 | done | ||||
11526 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 11527 | |
Miss Islington (bot) | 98344a4 | 2018-09-12 23:36:05 | [diff] [blame] | 11528 | # Force lchmod off for Linux. Linux disallows changing the mode of symbolic |
11529 | # links. Some libc implementations have a stub lchmod implementation that always | ||||
11530 | # returns an error. | ||||
11531 | if test "$MACHDEP" != linux; then | ||||
Miss Islington (bot) | 35c94c7 | 2018-09-13 05:33:02 | [diff] [blame] | 11532 | for ac_func in lchmod |
11533 | do : | ||||
Miss Islington (bot) | 98344a4 | 2018-09-12 23:36:05 | [diff] [blame] | 11534 | ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" |
11535 | if test "x$ac_cv_func_lchmod" = xyes; then : | ||||
Miss Islington (bot) | 35c94c7 | 2018-09-13 05:33:02 | [diff] [blame] | 11536 | cat >>confdefs.h <<_ACEOF |
11537 | #define HAVE_LCHMOD 1 | ||||
11538 | _ACEOF | ||||
Miss Islington (bot) | 98344a4 | 2018-09-12 23:36:05 | [diff] [blame] | 11539 | |
11540 | fi | ||||
Miss Islington (bot) | 35c94c7 | 2018-09-13 05:33:02 | [diff] [blame] | 11541 | done |
Miss Islington (bot) | 98344a4 | 2018-09-12 23:36:05 | [diff] [blame] | 11542 | |
11543 | fi | ||||
11544 | |||||
Gregory P. Smith | df300d5 | 2012-01-22 02:20:15 | [diff] [blame] | 11545 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> |
11546 | #include <dirent.h> | ||||
11547 | " | ||||
11548 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | ||||
11549 | |||||
11550 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | ||||
11551 | |||||
11552 | fi | ||||
11553 | |||||
11554 | |||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11555 | # For some functions, having a definition is not sufficient, since |
11556 | # we want to take their address. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
11558 | $as_echo_n "checking for chroot... " >&6; } | ||||
11559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11560 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11561 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11562 | int |
11563 | main () | ||||
11564 | { | ||||
11565 | void *x=chroot | ||||
11566 | ; | ||||
11567 | return 0; | ||||
11568 | } | ||||
11569 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11570 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11571 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11572 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11573 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11575 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11576 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11578 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11579 | |
11580 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
11583 | $as_echo_n "checking for link... " >&6; } | ||||
11584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11585 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11586 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11587 | int |
11588 | main () | ||||
11589 | { | ||||
11590 | void *x=link | ||||
11591 | ; | ||||
11592 | return 0; | ||||
11593 | } | ||||
11594 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11595 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11596 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11597 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11598 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11600 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11601 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11603 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11604 | |
11605 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
11608 | $as_echo_n "checking for symlink... " >&6; } | ||||
11609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11610 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11611 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11612 | int |
11613 | main () | ||||
11614 | { | ||||
11615 | void *x=symlink | ||||
11616 | ; | ||||
11617 | return 0; | ||||
11618 | } | ||||
11619 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11620 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11621 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11622 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11623 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11625 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11626 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11628 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11629 | |
11630 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
11633 | $as_echo_n "checking for fchdir... " >&6; } | ||||
11634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11635 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11636 | #include <unistd.h> |
11637 | int | ||||
11638 | main () | ||||
11639 | { | ||||
11640 | void *x=fchdir | ||||
11641 | ; | ||||
11642 | return 0; | ||||
11643 | } | ||||
11644 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11645 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11646 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11647 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11648 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11650 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11651 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11653 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11654 | |
11655 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
11658 | $as_echo_n "checking for fsync... " >&6; } | ||||
11659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11660 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11661 | #include <unistd.h> |
11662 | int | ||||
11663 | main () | ||||
11664 | { | ||||
11665 | void *x=fsync | ||||
11666 | ; | ||||
11667 | return 0; | ||||
11668 | } | ||||
11669 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11670 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11671 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11672 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11673 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11675 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11676 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11678 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11679 | |
11680 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
11683 | $as_echo_n "checking for fdatasync... " >&6; } | ||||
11684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11685 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11686 | #include <unistd.h> |
11687 | int | ||||
11688 | main () | ||||
11689 | { | ||||
11690 | void *x=fdatasync | ||||
11691 | ; | ||||
11692 | return 0; | ||||
11693 | } | ||||
11694 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11695 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11696 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11697 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11698 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11700 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11701 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11703 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 | [diff] [blame] | 11704 | |
11705 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
11708 | $as_echo_n "checking for epoll... " >&6; } | ||||
11709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11710 | /* end confdefs.h. */ |
11711 | #include <sys/epoll.h> | ||||
11712 | int | ||||
11713 | main () | ||||
11714 | { | ||||
11715 | void *x=epoll_create | ||||
11716 | ; | ||||
11717 | return 0; | ||||
11718 | } | ||||
11719 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11720 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 | [diff] [blame] | 11721 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11722 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11723 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11725 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11726 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11728 | $as_echo "no" >&6; } | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11729 | |
11730 | fi | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | 95c1662 | 2011-12-27 21:36:32 | [diff] [blame] | 11732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 |
11733 | $as_echo_n "checking for epoll_create1... " >&6; } | ||||
11734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11735 | /* end confdefs.h. */ | ||||
11736 | #include <sys/epoll.h> | ||||
11737 | int | ||||
11738 | main () | ||||
11739 | { | ||||
11740 | void *x=epoll_create1 | ||||
11741 | ; | ||||
11742 | return 0; | ||||
11743 | } | ||||
11744 | _ACEOF | ||||
11745 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11746 | |||||
11747 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h | ||||
11748 | |||||
11749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11750 | $as_echo "yes" >&6; } | ||||
11751 | else | ||||
11752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11753 | $as_echo "no" >&6; } | ||||
11754 | |||||
11755 | fi | ||||
11756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
11758 | $as_echo_n "checking for kqueue... " >&6; } | ||||
11759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11760 | /* end confdefs.h. */ |
11761 | |||||
11762 | #include <sys/types.h> | ||||
11763 | #include <sys/event.h> | ||||
11764 | |||||
11765 | int | ||||
11766 | main () | ||||
11767 | { | ||||
11768 | int x=kqueue() | ||||
11769 | ; | ||||
11770 | return 0; | ||||
11771 | } | ||||
11772 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11773 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11774 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11775 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11776 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11778 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11779 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11781 | $as_echo "no" >&6; } | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11782 | |
11783 | fi | ||||
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 | [diff] [blame] | 11784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | b7bd5df | 2013-10-22 09:21:54 | [diff] [blame] | 11785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 |
11786 | $as_echo_n "checking for prlimit... " >&6; } | ||||
11787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11788 | /* end confdefs.h. */ | ||||
11789 | |||||
11790 | #include <sys/time.h> | ||||
11791 | #include <sys/resource.h> | ||||
11792 | |||||
11793 | int | ||||
11794 | main () | ||||
11795 | { | ||||
11796 | void *x=prlimit | ||||
11797 | ; | ||||
11798 | return 0; | ||||
11799 | } | ||||
11800 | _ACEOF | ||||
11801 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11802 | |||||
11803 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h | ||||
11804 | |||||
11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11806 | $as_echo "yes" >&6; } | ||||
11807 | else | ||||
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11809 | $as_echo "no" >&6; } | ||||
11810 | |||||
11811 | fi | ||||
11812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
11813 | |||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11814 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
11815 | # functions ctermid_r, setgroups in the library, but no prototype | ||||
11816 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | ||||
11817 | # address to avoid compiler warnings and potential miscompilations | ||||
11818 | # because of the missing prototypes. | ||||
11819 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
11821 | $as_echo_n "checking for ctermid_r... " >&6; } | ||||
11822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11823 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11824 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11825 | #include <stdio.h> |
11826 | |||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11827 | int |
11828 | main () | ||||
11829 | { | ||||
11830 | void* p = ctermid_r | ||||
11831 | ; | ||||
11832 | return 0; | ||||
11833 | } | ||||
11834 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11835 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11836 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11837 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11838 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11840 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11841 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11843 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 11844 | |
11845 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11847 | |||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
11849 | $as_echo_n "checking for flock declaration... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11850 | if ${ac_cv_flock_decl+:} false; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11851 | $as_echo_n "(cached) " >&6 |
11852 | else | ||||
11853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11854 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11855 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11856 | int |
11857 | main () | ||||
11858 | { | ||||
11859 | void* p = flock | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11860 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11861 | ; |
11862 | return 0; | ||||
11863 | } | ||||
11864 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11865 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11866 | ac_cv_flock_decl=yes |
11867 | else | ||||
11868 | ac_cv_flock_decl=no | ||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11869 | |
11870 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11872 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11873 | fi |
11874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | ||||
11875 | $as_echo "$ac_cv_flock_decl" >&6; } | ||||
11876 | if test "x${ac_cv_flock_decl}" = xyes; then | ||||
11877 | for ac_func in flock | ||||
11878 | do : | ||||
11879 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11880 | if test "x$ac_cv_func_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11881 | cat >>confdefs.h <<_ACEOF |
11882 | #define HAVE_FLOCK 1 | ||||
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11883 | _ACEOF |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11884 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11885 | else |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11887 | $as_echo_n "checking for flock in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11888 | if ${ac_cv_lib_bsd_flock+:} false; then : |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11889 | $as_echo_n "(cached) " >&6 |
11890 | else | ||||
11891 | ac_check_lib_save_LIBS=$LIBS | ||||
11892 | LIBS="-lbsd $LIBS" | ||||
11893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11894 | /* end confdefs.h. */ | ||||
11895 | |||||
11896 | /* Override any GCC internal prototype to avoid an error. | ||||
11897 | Use char because int might match the return type of a GCC | ||||
11898 | builtin and then its argument prototype would still apply. */ | ||||
11899 | #ifdef __cplusplus | ||||
11900 | extern "C" | ||||
11901 | #endif | ||||
11902 | char flock (); | ||||
11903 | int | ||||
11904 | main () | ||||
11905 | { | ||||
11906 | return flock (); | ||||
11907 | ; | ||||
11908 | return 0; | ||||
11909 | } | ||||
11910 | _ACEOF | ||||
11911 | if ac_fn_c_try_link "$LINENO"; then : | ||||
11912 | ac_cv_lib_bsd_flock=yes | ||||
11913 | else | ||||
11914 | ac_cv_lib_bsd_flock=no | ||||
11915 | fi | ||||
11916 | rm -f core conftest.err conftest.$ac_objext \ | ||||
11917 | conftest$ac_exeext conftest.$ac_ext | ||||
11918 | LIBS=$ac_check_lib_save_LIBS | ||||
11919 | fi | ||||
11920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | ||||
11921 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11922 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11923 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11924 | |
11925 | |||||
11926 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | ||||
11927 | |||||
11928 | |||||
11929 | fi | ||||
11930 | |||||
11931 | |||||
11932 | fi | ||||
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 | [diff] [blame] | 11933 | done |
11934 | |||||
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 | [diff] [blame] | 11935 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11936 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
11938 | $as_echo_n "checking for getpagesize... " >&6; } | ||||
11939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 11940 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11941 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11942 | #include <unistd.h> |
11943 | |||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11944 | int |
11945 | main () | ||||
11946 | { | ||||
11947 | void* p = getpagesize | ||||
11948 | ; | ||||
11949 | return 0; | ||||
11950 | } | ||||
11951 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11952 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11953 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11954 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11955 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 11956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11957 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11958 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11960 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11961 | |
11962 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 11963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 | [diff] [blame] | 11964 | |
Victor Stinner | 984890f | 2011-11-24 12:53:38 | [diff] [blame] | 11965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 |
11966 | $as_echo_n "checking for broken unsetenv... " >&6; } | ||||
11967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
11968 | /* end confdefs.h. */ | ||||
11969 | |||||
11970 | #include <stdlib.h> | ||||
11971 | |||||
11972 | int | ||||
11973 | main () | ||||
11974 | { | ||||
11975 | int res = unsetenv("DUMMY") | ||||
11976 | ; | ||||
11977 | return 0; | ||||
11978 | } | ||||
11979 | _ACEOF | ||||
11980 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
11981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
11982 | $as_echo "no" >&6; } | ||||
11983 | else | ||||
11984 | |||||
11985 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | ||||
11986 | |||||
11987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
11988 | $as_echo "yes" >&6; } | ||||
11989 | |||||
11990 | fi | ||||
11991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
11992 | |||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 11993 | for ac_prog in true |
11994 | do | ||||
11995 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||||
11996 | set dummy $ac_prog; ac_word=$2 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 11997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11998 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 11999 | if ${ac_cv_prog_TRUE+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12000 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12001 | else |
12002 | if test -n "$TRUE"; then | ||||
12003 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | ||||
12004 | else | ||||
12005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
12006 | for as_dir in $PATH | ||||
12007 | do | ||||
12008 | IFS=$as_save_IFS | ||||
12009 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12010 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 12011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12012 | ac_cv_prog_TRUE="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12013 | $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 | [diff] [blame] | 12014 | break 2 |
12015 | fi | ||||
12016 | done | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12017 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12018 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12019 | |
12020 | fi | ||||
12021 | fi | ||||
12022 | TRUE=$ac_cv_prog_TRUE | ||||
12023 | if test -n "$TRUE"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
12025 | $as_echo "$TRUE" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12026 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12028 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12029 | fi |
12030 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12031 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12032 | test -n "$TRUE" && break |
12033 | done | ||||
12034 | test -n "$TRUE" || TRUE="/bin/true" | ||||
12035 | |||||
12036 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
12038 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12039 | if ${ac_cv_lib_c_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12040 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12041 | else |
12042 | ac_check_lib_save_LIBS=$LIBS | ||||
12043 | LIBS="-lc $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12045 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12046 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12047 | /* Override any GCC internal prototype to avoid an error. |
12048 | Use char because int might match the return type of a GCC | ||||
12049 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12050 | #ifdef __cplusplus |
12051 | extern "C" | ||||
12052 | #endif | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12053 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12054 | int |
12055 | main () | ||||
12056 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12057 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12058 | ; |
12059 | return 0; | ||||
12060 | } | ||||
12061 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12062 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12063 | ac_cv_lib_c_inet_aton=yes |
12064 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12065 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12066 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12067 | rm -f core conftest.err conftest.$ac_objext \ |
12068 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12069 | LIBS=$ac_check_lib_save_LIBS |
12070 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
12072 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12073 | if test "x$ac_cv_lib_c_inet_aton" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 | [diff] [blame] | 12074 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12075 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
12077 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12078 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12079 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12080 | else |
12081 | ac_check_lib_save_LIBS=$LIBS | ||||
12082 | LIBS="-lresolv $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12084 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12085 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12086 | /* Override any GCC internal prototype to avoid an error. |
12087 | Use char because int might match the return type of a GCC | ||||
12088 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12089 | #ifdef __cplusplus |
12090 | extern "C" | ||||
12091 | #endif | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12092 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12093 | int |
12094 | main () | ||||
12095 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12096 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12097 | ; |
12098 | return 0; | ||||
12099 | } | ||||
12100 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12101 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12102 | ac_cv_lib_resolv_inet_aton=yes |
12103 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12104 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12105 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12106 | rm -f core conftest.err conftest.$ac_objext \ |
12107 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12108 | LIBS=$ac_check_lib_save_LIBS |
12109 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
12111 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12112 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12113 | cat >>confdefs.h <<_ACEOF |
12114 | #define HAVE_LIBRESOLV 1 | ||||
12115 | _ACEOF | ||||
12116 | |||||
12117 | LIBS="-lresolv $LIBS" | ||||
12118 | |||||
12119 | fi | ||||
12120 | |||||
12121 | |||||
12122 | fi | ||||
12123 | |||||
12124 | |||||
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12125 | # On Tru64, chflags seems to be present, but calling it will |
12126 | # exit Python | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
12128 | $as_echo_n "checking for chflags... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12129 | if ${ac_cv_have_chflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12130 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12131 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12132 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12133 | ac_cv_have_chflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12134 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12136 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 07:00:28 | [diff] [blame] | 12137 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12138 | #include <sys/stat.h> |
12139 | #include <unistd.h> | ||||
12140 | int main(int argc, char*argv[]) | ||||
12141 | { | ||||
12142 | if(chflags(argv[0], 0) != 0) | ||||
12143 | return 1; | ||||
12144 | return 0; | ||||
12145 | } | ||||
Ned Deily | 3eb67d5 | 2011-06-28 07:00:28 | [diff] [blame] | 12146 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12147 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12148 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12149 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 12150 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12151 | ac_cv_have_chflags=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 12152 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12153 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12154 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 12155 | fi |
12156 | |||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 12157 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12158 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
12160 | $as_echo "$ac_cv_have_chflags" >&6; } | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12161 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12162 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12163 | if test "x$ac_cv_func_chflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12164 | ac_cv_have_chflags="yes" |
12165 | else | ||||
12166 | ac_cv_have_chflags="no" | ||||
12167 | fi | ||||
12168 | |||||
12169 | fi | ||||
12170 | if test "$ac_cv_have_chflags" = yes ; then | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12171 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12172 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12173 | |
12174 | fi | ||||
12175 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
12177 | $as_echo_n "checking for lchflags... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12178 | if ${ac_cv_have_lchflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12179 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12180 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12181 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12182 | ac_cv_have_lchflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12183 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12185 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 07:00:28 | [diff] [blame] | 12186 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12187 | #include <sys/stat.h> |
12188 | #include <unistd.h> | ||||
12189 | int main(int argc, char*argv[]) | ||||
12190 | { | ||||
12191 | if(lchflags(argv[0], 0) != 0) | ||||
12192 | return 1; | ||||
12193 | return 0; | ||||
12194 | } | ||||
Ned Deily | 3eb67d5 | 2011-06-28 07:00:28 | [diff] [blame] | 12195 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12196 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12197 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12198 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 12199 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12200 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 | [diff] [blame] | 12201 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12202 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12203 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 12204 | fi |
12205 | |||||
12206 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12207 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
12209 | $as_echo "$ac_cv_have_lchflags" >&6; } | ||||
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12210 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12211 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12212 | if test "x$ac_cv_func_lchflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 | [diff] [blame] | 12213 | ac_cv_have_lchflags="yes" |
12214 | else | ||||
12215 | ac_cv_have_lchflags="no" | ||||
12216 | fi | ||||
12217 | |||||
12218 | fi | ||||
12219 | if test "$ac_cv_have_lchflags" = yes ; then | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12220 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12221 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 12222 | |
12223 | fi | ||||
12224 | |||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12225 | case $ac_sys_system/$ac_sys_release in |
12226 | Darwin/*) | ||||
12227 | _CUR_CFLAGS="${CFLAGS}" | ||||
12228 | _CUR_LDFLAGS="${LDFLAGS}" | ||||
12229 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" | ||||
12230 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | ||||
12231 | ;; | ||||
12232 | esac | ||||
12233 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
12235 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12236 | if ${ac_cv_lib_z_inflateCopy+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12237 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12238 | else |
12239 | ac_check_lib_save_LIBS=$LIBS | ||||
12240 | LIBS="-lz $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12242 | /* end confdefs.h. */ |
12243 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12244 | /* Override any GCC internal prototype to avoid an error. |
12245 | Use char because int might match the return type of a GCC | ||||
12246 | builtin and then its argument prototype would still apply. */ | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12247 | #ifdef __cplusplus |
12248 | extern "C" | ||||
12249 | #endif | ||||
12250 | char inflateCopy (); | ||||
12251 | int | ||||
12252 | main () | ||||
12253 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12254 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12255 | ; |
12256 | return 0; | ||||
12257 | } | ||||
12258 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12259 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12260 | ac_cv_lib_z_inflateCopy=yes |
12261 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12262 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12263 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12264 | rm -f core conftest.err conftest.$ac_objext \ |
12265 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12266 | LIBS=$ac_check_lib_save_LIBS |
12267 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
12269 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12270 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12271 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12272 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 12273 | |
12274 | fi | ||||
12275 | |||||
12276 | |||||
12277 | case $ac_sys_system/$ac_sys_release in | ||||
12278 | Darwin/*) | ||||
12279 | CFLAGS="${_CUR_CFLAGS}" | ||||
12280 | LDFLAGS="${_CUR_LDFLAGS}" | ||||
12281 | ;; | ||||
12282 | esac | ||||
12283 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
12285 | $as_echo_n "checking for hstrerror... " >&6; } | ||||
12286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12287 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12288 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12289 | #include <netdb.h> |
12290 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12291 | int |
12292 | main () | ||||
12293 | { | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12294 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12295 | ; |
12296 | return 0; | ||||
12297 | } | ||||
12298 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12299 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12300 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12301 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12302 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 12303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12304 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12305 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12307 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12308 | |
12309 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12310 | rm -f core conftest.err conftest.$ac_objext \ |
12311 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12312 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
12314 | $as_echo_n "checking for inet_aton... " >&6; } | ||||
12315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12316 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12317 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 | [diff] [blame] | 12318 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12319 | #include <sys/socket.h> |
12320 | #include <netinet/in.h> | ||||
12321 | #include <arpa/inet.h> | ||||
12322 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12323 | int |
12324 | main () | ||||
12325 | { | ||||
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 | [diff] [blame] | 12326 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12327 | ; |
12328 | return 0; | ||||
12329 | } | ||||
12330 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12331 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12332 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12333 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12334 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 12335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12336 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12337 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12339 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12340 | |
12341 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12342 | rm -f core conftest.err conftest.$ac_objext \ |
12343 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12344 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
12346 | $as_echo_n "checking for inet_pton... " >&6; } | ||||
12347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12348 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12349 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 | [diff] [blame] | 12350 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12351 | #include <sys/socket.h> |
12352 | #include <netinet/in.h> | ||||
12353 | #include <arpa/inet.h> | ||||
12354 | |||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12355 | int |
12356 | main () | ||||
12357 | { | ||||
12358 | void* p = inet_pton | ||||
12359 | ; | ||||
12360 | return 0; | ||||
12361 | } | ||||
12362 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12363 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12364 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12365 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12366 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 12367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12368 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12369 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12371 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12372 | |
12373 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 | [diff] [blame] | 12375 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 | [diff] [blame] | 12376 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
12378 | $as_echo_n "checking for setgroups... " >&6; } | ||||
12379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12380 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12381 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 | [diff] [blame] | 12382 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 | [diff] [blame] | 12383 | #ifdef HAVE_GRP_H |
12384 | #include <grp.h> | ||||
12385 | #endif | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12386 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12387 | int |
12388 | main () | ||||
12389 | { | ||||
12390 | void* p = setgroups | ||||
12391 | ; | ||||
12392 | return 0; | ||||
12393 | } | ||||
12394 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12395 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12396 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12397 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12398 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 12399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12400 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12401 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12403 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12404 | |
12405 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 | [diff] [blame] | 12407 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 12408 | # check for openpty and forkpty |
12409 | |||||
12410 | for ac_func in openpty | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12411 | do : |
12412 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12413 | if test "x$ac_cv_func_openpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12414 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12415 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12416 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 12417 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 | [diff] [blame] | 12418 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
12420 | $as_echo_n "checking for openpty in -lutil... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12421 | if ${ac_cv_lib_util_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12422 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12424 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12425 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12427 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12428 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12429 | /* Override any GCC internal prototype to avoid an error. |
12430 | Use char because int might match the return type of a GCC | ||||
12431 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12432 | #ifdef __cplusplus |
12433 | extern "C" | ||||
12434 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12435 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12436 | int |
12437 | main () | ||||
12438 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12439 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12440 | ; |
12441 | return 0; | ||||
12442 | } | ||||
12443 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12444 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12445 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12446 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12447 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12448 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12449 | rm -f core conftest.err conftest.$ac_objext \ |
12450 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12451 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12452 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
12454 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12455 | if test "x$ac_cv_lib_util_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12456 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12457 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12458 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
12460 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12461 | if ${ac_cv_lib_bsd_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12462 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12463 | else |
12464 | ac_check_lib_save_LIBS=$LIBS | ||||
12465 | LIBS="-lbsd $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12467 | /* end confdefs.h. */ |
12468 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12469 | /* Override any GCC internal prototype to avoid an error. |
12470 | Use char because int might match the return type of a GCC | ||||
12471 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12472 | #ifdef __cplusplus |
12473 | extern "C" | ||||
12474 | #endif | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12475 | char openpty (); |
12476 | int | ||||
12477 | main () | ||||
12478 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12479 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12480 | ; |
12481 | return 0; | ||||
12482 | } | ||||
12483 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12484 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12485 | ac_cv_lib_bsd_openpty=yes |
12486 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12487 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12488 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12489 | rm -f core conftest.err conftest.$ac_objext \ |
12490 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12491 | LIBS=$ac_check_lib_save_LIBS |
12492 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
12494 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12495 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12496 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12497 | LIBS="$LIBS -lbsd" |
12498 | fi | ||||
12499 | |||||
12500 | |||||
12501 | fi | ||||
12502 | |||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12503 | |
12504 | fi | ||||
12505 | done | ||||
12506 | |||||
12507 | for ac_func in forkpty | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12508 | do : |
12509 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12510 | if test "x$ac_cv_func_forkpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12511 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12512 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12513 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12514 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12515 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
12517 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12518 | if ${ac_cv_lib_util_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12519 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12520 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12521 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12522 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12524 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12525 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12526 | /* Override any GCC internal prototype to avoid an error. |
12527 | Use char because int might match the return type of a GCC | ||||
12528 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12529 | #ifdef __cplusplus |
12530 | extern "C" | ||||
12531 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12532 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12533 | int |
12534 | main () | ||||
12535 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12536 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12537 | ; |
12538 | return 0; | ||||
12539 | } | ||||
12540 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12541 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12542 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12543 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12544 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12545 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12546 | rm -f core conftest.err conftest.$ac_objext \ |
12547 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12548 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12549 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
12551 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12552 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12553 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12554 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12555 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 |
12557 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12558 | if ${ac_cv_lib_bsd_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12559 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12560 | else |
12561 | ac_check_lib_save_LIBS=$LIBS | ||||
12562 | LIBS="-lbsd $LIBS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12564 | /* end confdefs.h. */ |
12565 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12566 | /* Override any GCC internal prototype to avoid an error. |
12567 | Use char because int might match the return type of a GCC | ||||
12568 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12569 | #ifdef __cplusplus |
12570 | extern "C" | ||||
12571 | #endif | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12572 | char forkpty (); |
12573 | int | ||||
12574 | main () | ||||
12575 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12576 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12577 | ; |
12578 | return 0; | ||||
12579 | } | ||||
12580 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12581 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12582 | ac_cv_lib_bsd_forkpty=yes |
12583 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12584 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12585 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12586 | rm -f core conftest.err conftest.$ac_objext \ |
12587 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12588 | LIBS=$ac_check_lib_save_LIBS |
12589 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
12591 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12592 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12593 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 | [diff] [blame] | 12594 | LIBS="$LIBS -lbsd" |
12595 | fi | ||||
12596 | |||||
12597 | |||||
12598 | fi | ||||
12599 | |||||
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12600 | |
12601 | fi | ||||
12602 | done | ||||
12603 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 12604 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 12605 | # check for long file support functions |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 | [diff] [blame] | 12606 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12607 | do : |
12608 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
12609 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12610 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12611 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12612 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12613 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 12614 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12615 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12616 | done |
12617 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 12618 | |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12619 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12620 | if test "x$ac_cv_func_dup2" = xyes; then : |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12621 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 12622 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 12623 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12624 | case " $LIBOBJS " in |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12625 | *" dup2.$ac_objext "* ) ;; |
12626 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12627 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 12628 | esac |
12629 | |||||
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 12630 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12631 | |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12632 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12633 | if test "x$ac_cv_func_strdup" = xyes; then : |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 12634 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h |
12635 | |||||
12636 | else | ||||
12637 | case " $LIBOBJS " in | ||||
12638 | *" strdup.$ac_objext "* ) ;; | ||||
12639 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | ||||
12640 | ;; | ||||
12641 | esac | ||||
12642 | |||||
12643 | fi | ||||
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 | [diff] [blame] | 12644 | |
12645 | |||||
12646 | for ac_func in getpgrp | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12647 | do : |
12648 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12649 | if test "x$ac_cv_func_getpgrp" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12650 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12651 | #define HAVE_GETPGRP 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12652 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12654 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12655 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12656 | int |
12657 | main () | ||||
12658 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12659 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12660 | ; |
12661 | return 0; | ||||
12662 | } | ||||
12663 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12664 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12665 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12666 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12667 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12668 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 12670 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12671 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 12672 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12673 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12674 | for ac_func in setpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12675 | do : |
12676 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12677 | if test "x$ac_cv_func_setpgrp" = xyes; then : |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12678 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12679 | #define HAVE_SETPGRP 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12680 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12682 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12683 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12684 | int |
12685 | main () | ||||
12686 | { | ||||
12687 | setpgrp(0,0); | ||||
12688 | ; | ||||
12689 | return 0; | ||||
12690 | } | ||||
12691 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12692 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12693 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12694 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12695 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 | [diff] [blame] | 12696 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 | [diff] [blame] | 12698 | |
12699 | fi | ||||
12700 | done | ||||
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 | [diff] [blame] | 12701 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 12702 | for ac_func in gettimeofday |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12703 | do : |
12704 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12705 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12706 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12707 | #define HAVE_GETTIMEOFDAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12708 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12710 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12711 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12712 | int |
12713 | main () | ||||
12714 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12715 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12716 | ; |
12717 | return 0; | ||||
12718 | } | ||||
12719 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12720 | if ac_fn_c_try_compile "$LINENO"; then : |
12721 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12722 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 12723 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 12724 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 12726 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 12727 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 12728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 12729 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12730 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 12731 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 12732 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 12733 | |
Miss Islington (bot) | a144fee | 2018-12-31 01:59:52 | [diff] [blame] | 12734 | # We search for both crypt and crypt_r as one or the other may be defined |
12735 | # This gets us our -lcrypt in LIBS when required on the target platform. | ||||
12736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 | ||||
12737 | $as_echo_n "checking for library containing crypt... " >&6; } | ||||
12738 | if ${ac_cv_search_crypt+:} false; then : | ||||
12739 | $as_echo_n "(cached) " >&6 | ||||
12740 | else | ||||
12741 | ac_func_search_save_LIBS=$LIBS | ||||
12742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12743 | /* end confdefs.h. */ | ||||
12744 | |||||
12745 | /* Override any GCC internal prototype to avoid an error. | ||||
12746 | Use char because int might match the return type of a GCC | ||||
12747 | builtin and then its argument prototype would still apply. */ | ||||
12748 | #ifdef __cplusplus | ||||
12749 | extern "C" | ||||
12750 | #endif | ||||
12751 | char crypt (); | ||||
12752 | int | ||||
12753 | main () | ||||
12754 | { | ||||
12755 | return crypt (); | ||||
12756 | ; | ||||
12757 | return 0; | ||||
12758 | } | ||||
12759 | _ACEOF | ||||
12760 | for ac_lib in '' crypt; do | ||||
12761 | if test -z "$ac_lib"; then | ||||
12762 | ac_res="none required" | ||||
12763 | else | ||||
12764 | ac_res=-l$ac_lib | ||||
12765 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||||
12766 | fi | ||||
12767 | if ac_fn_c_try_link "$LINENO"; then : | ||||
12768 | ac_cv_search_crypt=$ac_res | ||||
12769 | fi | ||||
12770 | rm -f core conftest.err conftest.$ac_objext \ | ||||
12771 | conftest$ac_exeext | ||||
12772 | if ${ac_cv_search_crypt+:} false; then : | ||||
12773 | break | ||||
12774 | fi | ||||
12775 | done | ||||
12776 | if ${ac_cv_search_crypt+:} false; then : | ||||
12777 | |||||
12778 | else | ||||
12779 | ac_cv_search_crypt=no | ||||
12780 | fi | ||||
12781 | rm conftest.$ac_ext | ||||
12782 | LIBS=$ac_func_search_save_LIBS | ||||
12783 | fi | ||||
12784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | ||||
12785 | $as_echo "$ac_cv_search_crypt" >&6; } | ||||
12786 | ac_res=$ac_cv_search_crypt | ||||
12787 | if test "$ac_res" != no; then : | ||||
12788 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||||
12789 | |||||
12790 | fi | ||||
12791 | |||||
12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5 | ||||
12793 | $as_echo_n "checking for library containing crypt_r... " >&6; } | ||||
12794 | if ${ac_cv_search_crypt_r+:} false; then : | ||||
12795 | $as_echo_n "(cached) " >&6 | ||||
12796 | else | ||||
12797 | ac_func_search_save_LIBS=$LIBS | ||||
12798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12799 | /* end confdefs.h. */ | ||||
12800 | |||||
12801 | /* Override any GCC internal prototype to avoid an error. | ||||
12802 | Use char because int might match the return type of a GCC | ||||
12803 | builtin and then its argument prototype would still apply. */ | ||||
12804 | #ifdef __cplusplus | ||||
12805 | extern "C" | ||||
12806 | #endif | ||||
12807 | char crypt_r (); | ||||
12808 | int | ||||
12809 | main () | ||||
12810 | { | ||||
12811 | return crypt_r (); | ||||
12812 | ; | ||||
12813 | return 0; | ||||
12814 | } | ||||
12815 | _ACEOF | ||||
12816 | for ac_lib in '' crypt; do | ||||
12817 | if test -z "$ac_lib"; then | ||||
12818 | ac_res="none required" | ||||
12819 | else | ||||
12820 | ac_res=-l$ac_lib | ||||
12821 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||||
12822 | fi | ||||
12823 | if ac_fn_c_try_link "$LINENO"; then : | ||||
12824 | ac_cv_search_crypt_r=$ac_res | ||||
12825 | fi | ||||
12826 | rm -f core conftest.err conftest.$ac_objext \ | ||||
12827 | conftest$ac_exeext | ||||
12828 | if ${ac_cv_search_crypt_r+:} false; then : | ||||
12829 | break | ||||
12830 | fi | ||||
12831 | done | ||||
12832 | if ${ac_cv_search_crypt_r+:} false; then : | ||||
12833 | |||||
12834 | else | ||||
12835 | ac_cv_search_crypt_r=no | ||||
12836 | fi | ||||
12837 | rm conftest.$ac_ext | ||||
12838 | LIBS=$ac_func_search_save_LIBS | ||||
12839 | fi | ||||
12840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5 | ||||
12841 | $as_echo "$ac_cv_search_crypt_r" >&6; } | ||||
12842 | ac_res=$ac_cv_search_crypt_r | ||||
12843 | if test "$ac_res" != no; then : | ||||
12844 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||||
12845 | |||||
12846 | fi | ||||
12847 | |||||
12848 | |||||
12849 | ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" | ||||
12850 | if test "x$ac_cv_func_crypt_r" = xyes; then : | ||||
12851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12852 | /* end confdefs.h. */ | ||||
12853 | |||||
12854 | #define _GNU_SOURCE /* Required for crypt_r()'s prototype in glibc. */ | ||||
12855 | #include <crypt.h> | ||||
12856 | |||||
12857 | int | ||||
12858 | main () | ||||
12859 | { | ||||
12860 | |||||
12861 | struct crypt_data d; | ||||
12862 | char *r = crypt_r("", "", &d); | ||||
12863 | |||||
12864 | ; | ||||
12865 | return 0; | ||||
12866 | } | ||||
12867 | _ACEOF | ||||
12868 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
12869 | |||||
12870 | $as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h | ||||
12871 | |||||
12872 | fi | ||||
12873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
12874 | |||||
12875 | fi | ||||
12876 | |||||
12877 | |||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12878 | for ac_func in clock_gettime |
12879 | do : | ||||
12880 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | ||||
12881 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | ||||
12882 | cat >>confdefs.h <<_ACEOF | ||||
12883 | #define HAVE_CLOCK_GETTIME 1 | ||||
12884 | _ACEOF | ||||
12885 | |||||
12886 | else | ||||
12887 | |||||
12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | ||||
12889 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | ||||
12890 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | ||||
12891 | $as_echo_n "(cached) " >&6 | ||||
12892 | else | ||||
12893 | ac_check_lib_save_LIBS=$LIBS | ||||
12894 | LIBS="-lrt $LIBS" | ||||
12895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12896 | /* end confdefs.h. */ | ||||
12897 | |||||
12898 | /* Override any GCC internal prototype to avoid an error. | ||||
12899 | Use char because int might match the return type of a GCC | ||||
12900 | builtin and then its argument prototype would still apply. */ | ||||
12901 | #ifdef __cplusplus | ||||
12902 | extern "C" | ||||
12903 | #endif | ||||
12904 | char clock_gettime (); | ||||
12905 | int | ||||
12906 | main () | ||||
12907 | { | ||||
12908 | return clock_gettime (); | ||||
12909 | ; | ||||
12910 | return 0; | ||||
12911 | } | ||||
12912 | _ACEOF | ||||
12913 | if ac_fn_c_try_link "$LINENO"; then : | ||||
12914 | ac_cv_lib_rt_clock_gettime=yes | ||||
12915 | else | ||||
12916 | ac_cv_lib_rt_clock_gettime=no | ||||
12917 | fi | ||||
12918 | rm -f core conftest.err conftest.$ac_objext \ | ||||
12919 | conftest$ac_exeext conftest.$ac_ext | ||||
12920 | LIBS=$ac_check_lib_save_LIBS | ||||
12921 | fi | ||||
12922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | ||||
12923 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | ||||
12924 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | ||||
12925 | |||||
Victor Stinner | 7efb833 | 2014-08-29 13:41:08 | [diff] [blame] | 12926 | LIBS="$LIBS -lrt" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 12927 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
12928 | |||||
12929 | |||||
12930 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h | ||||
12931 | |||||
12932 | |||||
12933 | fi | ||||
12934 | |||||
12935 | |||||
12936 | fi | ||||
12937 | done | ||||
12938 | |||||
12939 | |||||
12940 | for ac_func in clock_getres | ||||
12941 | do : | ||||
12942 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | ||||
12943 | if test "x$ac_cv_func_clock_getres" = xyes; then : | ||||
12944 | cat >>confdefs.h <<_ACEOF | ||||
12945 | #define HAVE_CLOCK_GETRES 1 | ||||
12946 | _ACEOF | ||||
12947 | |||||
12948 | else | ||||
12949 | |||||
12950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 | ||||
12951 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | ||||
12952 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | ||||
12953 | $as_echo_n "(cached) " >&6 | ||||
12954 | else | ||||
12955 | ac_check_lib_save_LIBS=$LIBS | ||||
12956 | LIBS="-lrt $LIBS" | ||||
12957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
12958 | /* end confdefs.h. */ | ||||
12959 | |||||
12960 | /* Override any GCC internal prototype to avoid an error. | ||||
12961 | Use char because int might match the return type of a GCC | ||||
12962 | builtin and then its argument prototype would still apply. */ | ||||
12963 | #ifdef __cplusplus | ||||
12964 | extern "C" | ||||
12965 | #endif | ||||
12966 | char clock_getres (); | ||||
12967 | int | ||||
12968 | main () | ||||
12969 | { | ||||
12970 | return clock_getres (); | ||||
12971 | ; | ||||
12972 | return 0; | ||||
12973 | } | ||||
12974 | _ACEOF | ||||
12975 | if ac_fn_c_try_link "$LINENO"; then : | ||||
12976 | ac_cv_lib_rt_clock_getres=yes | ||||
12977 | else | ||||
12978 | ac_cv_lib_rt_clock_getres=no | ||||
12979 | fi | ||||
12980 | rm -f core conftest.err conftest.$ac_objext \ | ||||
12981 | conftest$ac_exeext conftest.$ac_ext | ||||
12982 | LIBS=$ac_check_lib_save_LIBS | ||||
12983 | fi | ||||
12984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 | ||||
12985 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | ||||
12986 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | ||||
12987 | |||||
12988 | $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h | ||||
12989 | |||||
12990 | |||||
12991 | fi | ||||
12992 | |||||
12993 | |||||
12994 | fi | ||||
12995 | done | ||||
12996 | |||||
12997 | |||||
Benjamin Peterson | 37098cd | 2016-09-14 05:55:09 | [diff] [blame] | 12998 | for ac_func in clock_settime |
12999 | do : | ||||
13000 | ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" | ||||
13001 | if test "x$ac_cv_func_clock_settime" = xyes; then : | ||||
13002 | cat >>confdefs.h <<_ACEOF | ||||
13003 | #define HAVE_CLOCK_SETTIME 1 | ||||
13004 | _ACEOF | ||||
13005 | |||||
13006 | else | ||||
13007 | |||||
13008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 | ||||
13009 | $as_echo_n "checking for clock_settime in -lrt... " >&6; } | ||||
13010 | if ${ac_cv_lib_rt_clock_settime+:} false; then : | ||||
13011 | $as_echo_n "(cached) " >&6 | ||||
13012 | else | ||||
13013 | ac_check_lib_save_LIBS=$LIBS | ||||
13014 | LIBS="-lrt $LIBS" | ||||
13015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13016 | /* end confdefs.h. */ | ||||
13017 | |||||
13018 | /* Override any GCC internal prototype to avoid an error. | ||||
13019 | Use char because int might match the return type of a GCC | ||||
13020 | builtin and then its argument prototype would still apply. */ | ||||
13021 | #ifdef __cplusplus | ||||
13022 | extern "C" | ||||
13023 | #endif | ||||
13024 | char clock_settime (); | ||||
13025 | int | ||||
13026 | main () | ||||
13027 | { | ||||
13028 | return clock_settime (); | ||||
13029 | ; | ||||
13030 | return 0; | ||||
13031 | } | ||||
13032 | _ACEOF | ||||
13033 | if ac_fn_c_try_link "$LINENO"; then : | ||||
13034 | ac_cv_lib_rt_clock_settime=yes | ||||
13035 | else | ||||
13036 | ac_cv_lib_rt_clock_settime=no | ||||
13037 | fi | ||||
13038 | rm -f core conftest.err conftest.$ac_objext \ | ||||
13039 | conftest$ac_exeext conftest.$ac_ext | ||||
13040 | LIBS=$ac_check_lib_save_LIBS | ||||
13041 | fi | ||||
13042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 | ||||
13043 | $as_echo "$ac_cv_lib_rt_clock_settime" >&6; } | ||||
13044 | if test "x$ac_cv_lib_rt_clock_settime" = xyes; then : | ||||
13045 | |||||
13046 | $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h | ||||
13047 | |||||
13048 | |||||
13049 | fi | ||||
13050 | |||||
13051 | |||||
13052 | fi | ||||
13053 | done | ||||
13054 | |||||
13055 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
13057 | $as_echo_n "checking for major... " >&6; } | ||||
13058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13059 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 13060 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 | [diff] [blame] | 13061 | #if defined(MAJOR_IN_MKDEV) |
13062 | #include <sys/mkdev.h> | ||||
13063 | #elif defined(MAJOR_IN_SYSMACROS) | ||||
13064 | #include <sys/sysmacros.h> | ||||
13065 | #else | ||||
13066 | #include <sys/types.h> | ||||
13067 | #endif | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 13068 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 13069 | int |
13070 | main () | ||||
13071 | { | ||||
13072 | |||||
13073 | makedev(major(0),minor(0)); | ||||
13074 | |||||
13075 | ; | ||||
13076 | return 0; | ||||
13077 | } | ||||
13078 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13079 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 13080 | |
13081 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13082 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 13083 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13085 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 13086 | |
13087 | else | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13088 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13090 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 | [diff] [blame] | 13091 | |
13092 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13093 | rm -f core conftest.err conftest.$ac_objext \ |
13094 | conftest$ac_exeext conftest.$ac_ext | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13095 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13096 | # On OSF/1 V5.1, getaddrinfo is available, but a define |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13097 | # for [no]getaddrinfo in netdb.h. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
13099 | $as_echo_n "checking for getaddrinfo... " >&6; } | ||||
13100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13101 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13102 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 | [diff] [blame] | 13103 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13104 | #include <sys/socket.h> |
13105 | #include <netdb.h> | ||||
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 | [diff] [blame] | 13106 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13107 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13108 | int |
13109 | main () | ||||
13110 | { | ||||
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13111 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13112 | ; |
13113 | return 0; | ||||
13114 | } | ||||
13115 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13116 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13117 | have_getaddrinfo=yes |
13118 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13119 | have_getaddrinfo=no |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13120 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13121 | rm -f core conftest.err conftest.$ac_objext \ |
13122 | conftest$ac_exeext conftest.$ac_ext | ||||
13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | ||||
13124 | $as_echo "$have_getaddrinfo" >&6; } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13125 | if test $have_getaddrinfo = yes |
13126 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
13128 | $as_echo_n "checking getaddrinfo bug... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13129 | if ${ac_cv_buggy_getaddrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13130 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13131 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13132 | if test "$cross_compiling" = yes; then : |
Matthias Klose | 9635013 | 2012-03-15 19:42:23 | [diff] [blame] | 13133 | |
13134 | if test "${enable_ipv6+set}" = set; then | ||||
13135 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | ||||
13136 | else | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13137 | ac_cv_buggy_getaddrinfo=yes |
Matthias Klose | 9635013 | 2012-03-15 19:42:23 | [diff] [blame] | 13138 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13139 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13141 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13142 | |
Stefan Krah | 19c2139 | 2012-11-22 22:47:32 | [diff] [blame] | 13143 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13144 | #include <sys/types.h> |
13145 | #include <netdb.h> | ||||
13146 | #include <string.h> | ||||
13147 | #include <sys/socket.h> | ||||
13148 | #include <netinet/in.h> | ||||
13149 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13150 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13151 | { |
13152 | int passive, gaierr, inet4 = 0, inet6 = 0; | ||||
13153 | struct addrinfo hints, *ai, *aitop; | ||||
13154 | char straddr[INET6_ADDRSTRLEN], strport[16]; | ||||
13155 | |||||
13156 | for (passive = 0; passive <= 1; passive++) { | ||||
13157 | memset(&hints, 0, sizeof(hints)); | ||||
13158 | hints.ai_family = AF_UNSPEC; | ||||
13159 | hints.ai_flags = passive ? AI_PASSIVE : 0; | ||||
13160 | hints.ai_socktype = SOCK_STREAM; | ||||
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 | [diff] [blame] | 13161 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13162 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
13163 | (void)gai_strerror(gaierr); | ||||
13164 | goto bad; | ||||
13165 | } | ||||
13166 | for (ai = aitop; ai; ai = ai->ai_next) { | ||||
13167 | if (ai->ai_addr == NULL || | ||||
13168 | ai->ai_addrlen == 0 || | ||||
13169 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | ||||
13170 | straddr, sizeof(straddr), strport, sizeof(strport), | ||||
13171 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | ||||
13172 | goto bad; | ||||
13173 | } | ||||
13174 | switch (ai->ai_family) { | ||||
13175 | case AF_INET: | ||||
13176 | if (strcmp(strport, "54321") != 0) { | ||||
13177 | goto bad; | ||||
13178 | } | ||||
13179 | if (passive) { | ||||
13180 | if (strcmp(straddr, "0.0.0.0") != 0) { | ||||
13181 | goto bad; | ||||
13182 | } | ||||
13183 | } else { | ||||
13184 | if (strcmp(straddr, "127.0.0.1") != 0) { | ||||
13185 | goto bad; | ||||
13186 | } | ||||
13187 | } | ||||
13188 | inet4++; | ||||
13189 | break; | ||||
13190 | case AF_INET6: | ||||
13191 | if (strcmp(strport, "54321") != 0) { | ||||
13192 | goto bad; | ||||
13193 | } | ||||
13194 | if (passive) { | ||||
13195 | if (strcmp(straddr, "::") != 0) { | ||||
13196 | goto bad; | ||||
13197 | } | ||||
13198 | } else { | ||||
13199 | if (strcmp(straddr, "::1") != 0) { | ||||
13200 | goto bad; | ||||
13201 | } | ||||
13202 | } | ||||
13203 | inet6++; | ||||
13204 | break; | ||||
13205 | case AF_UNSPEC: | ||||
13206 | goto bad; | ||||
13207 | break; | ||||
13208 | default: | ||||
13209 | /* another family support? */ | ||||
13210 | break; | ||||
13211 | } | ||||
13212 | } | ||||
Benjamin Peterson | 01c340d | 2016-09-06 22:54:24 | [diff] [blame] | 13213 | freeaddrinfo(aitop); |
13214 | aitop = NULL; | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13215 | } |
13216 | |||||
13217 | if (!(inet4 == 0 || inet4 == 2)) | ||||
13218 | goto bad; | ||||
13219 | if (!(inet6 == 0 || inet6 == 2)) | ||||
13220 | goto bad; | ||||
13221 | |||||
13222 | if (aitop) | ||||
13223 | freeaddrinfo(aitop); | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13224 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13225 | |
13226 | bad: | ||||
13227 | if (aitop) | ||||
13228 | freeaddrinfo(aitop); | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13229 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13230 | } |
13231 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13232 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13233 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13234 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13235 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13236 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13237 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13238 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13239 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13240 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13241 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13242 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13243 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13244 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13245 | |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 | [diff] [blame] | 13246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
13247 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | ||||
13248 | |||||
doko@ubuntu.com | 9c7817e | 2012-06-30 15:05:13 | [diff] [blame] | 13249 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 13250 | then |
13251 | if test $ipv6 = yes | ||||
13252 | then | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13253 | echo 'Fatal: You must get working getaddrinfo() function.' |
13254 | echo ' or you can specify "--disable-ipv6"'. | ||||
13255 | exit 1 | ||||
13256 | fi | ||||
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13258 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13259 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 | [diff] [blame] | 13260 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13261 | fi |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 | [diff] [blame] | 13262 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 | [diff] [blame] | 13263 | for ac_func in getnameinfo |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13264 | do : |
13265 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13266 | if test "x$ac_cv_func_getnameinfo" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13267 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13268 | #define HAVE_GETNAMEINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13269 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13270 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13271 | fi |
13272 | done | ||||
13273 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13274 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13275 | # checks for structures |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
13277 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13278 | if ${ac_cv_header_time+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13279 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13280 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13282 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13283 | #include <sys/types.h> |
13284 | #include <sys/time.h> | ||||
13285 | #include <time.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13287 | int |
13288 | main () | ||||
13289 | { | ||||
13290 | if ((struct tm *) 0) | ||||
13291 | return 0; | ||||
13292 | ; | ||||
13293 | return 0; | ||||
13294 | } | ||||
13295 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13296 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13297 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13298 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13299 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13300 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13302 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
13304 | $as_echo "$ac_cv_header_time" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13305 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13306 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13307 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13308 | |
13309 | fi | ||||
13310 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
13312 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13313 | if ${ac_cv_struct_tm+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13314 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13315 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13317 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13318 | #include <sys/types.h> |
13319 | #include <time.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13321 | int |
13322 | main () | ||||
13323 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13324 | struct tm tm; |
13325 | int *p = &tm.tm_sec; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13326 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13327 | ; |
13328 | return 0; | ||||
13329 | } | ||||
13330 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13331 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13332 | ac_cv_struct_tm=time.h |
13333 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13334 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13335 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13337 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
13339 | $as_echo "$ac_cv_struct_tm" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13340 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13341 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13342 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13343 | |
13344 | fi | ||||
13345 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13346 | 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 | [diff] [blame] | 13347 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13348 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13349 | " |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13350 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13351 | |
13352 | cat >>confdefs.h <<_ACEOF | ||||
13353 | #define HAVE_STRUCT_TM_TM_ZONE 1 | ||||
13354 | _ACEOF | ||||
13355 | |||||
13356 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13357 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 | [diff] [blame] | 13358 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13359 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
13360 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13361 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13362 | |
13363 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13364 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
13365 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13366 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13367 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13368 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13369 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13370 | fi |
13371 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13372 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13373 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13374 | _ACEOF |
13375 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
13377 | $as_echo_n "checking for tzname... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13378 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13379 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13380 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13382 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13383 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13384 | #if !HAVE_DECL_TZNAME |
13385 | extern char *tzname[]; | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13386 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13388 | int |
13389 | main () | ||||
13390 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13391 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13392 | ; |
13393 | return 0; | ||||
13394 | } | ||||
13395 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13396 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13397 | ac_cv_var_tzname=yes |
13398 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13399 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13400 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13401 | rm -f core conftest.err conftest.$ac_objext \ |
13402 | conftest$ac_exeext conftest.$ac_ext | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13403 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
13405 | $as_echo "$ac_cv_var_tzname" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13406 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13407 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13408 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13409 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13410 | fi |
13411 | fi | ||||
13412 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13413 | 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 11:06:09 | [diff] [blame] | 13414 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13415 | |
13416 | cat >>confdefs.h <<_ACEOF | ||||
13417 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | ||||
13418 | _ACEOF | ||||
13419 | |||||
13420 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 | [diff] [blame] | 13421 | fi |
13422 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13423 | 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 11:06:09 | [diff] [blame] | 13424 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 13425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13426 | cat >>confdefs.h <<_ACEOF |
13427 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||||
13428 | _ACEOF | ||||
13429 | |||||
13430 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 | [diff] [blame] | 13431 | fi |
13432 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13433 | 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 11:06:09 | [diff] [blame] | 13434 | if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 | [diff] [blame] | 13435 | |
13436 | cat >>confdefs.h <<_ACEOF | ||||
13437 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | ||||
13438 | _ACEOF | ||||
13439 | |||||
13440 | |||||
13441 | fi | ||||
13442 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13443 | 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 11:06:09 | [diff] [blame] | 13444 | if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 13445 | |
13446 | cat >>confdefs.h <<_ACEOF | ||||
13447 | #define HAVE_STRUCT_STAT_ST_GEN 1 | ||||
13448 | _ACEOF | ||||
13449 | |||||
13450 | |||||
13451 | fi | ||||
13452 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13453 | 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 11:06:09 | [diff] [blame] | 13454 | if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 13455 | |
13456 | cat >>confdefs.h <<_ACEOF | ||||
13457 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | ||||
13458 | _ACEOF | ||||
13459 | |||||
13460 | |||||
13461 | fi | ||||
13462 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13463 | 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 11:06:09 | [diff] [blame] | 13464 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 13465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13466 | cat >>confdefs.h <<_ACEOF |
13467 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | ||||
13468 | _ACEOF | ||||
13469 | |||||
13470 | |||||
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 | [diff] [blame] | 13471 | fi |
13472 | |||||
Stefan Krah | 267b639 | 2016-04-25 23:09:18 | [diff] [blame] | 13473 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " |
13474 | #include <sys/types.h> | ||||
13475 | #include <pwd.h> | ||||
13476 | |||||
13477 | " | ||||
13478 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | ||||
13479 | |||||
13480 | cat >>confdefs.h <<_ACEOF | ||||
13481 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | ||||
13482 | _ACEOF | ||||
13483 | |||||
13484 | |||||
13485 | fi | ||||
13486 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " | ||||
13487 | #include <sys/types.h> | ||||
13488 | #include <pwd.h> | ||||
13489 | |||||
13490 | " | ||||
13491 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : | ||||
13492 | |||||
13493 | cat >>confdefs.h <<_ACEOF | ||||
13494 | #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 | ||||
13495 | _ACEOF | ||||
13496 | |||||
13497 | |||||
13498 | fi | ||||
13499 | |||||
Zachary Ware | 6a6967e | 2016-10-01 05:47:27 | [diff] [blame] | 13500 | # Issue #21085: In Cygwin, siginfo_t does not have si_band field. |
13501 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> | ||||
13502 | " | ||||
13503 | if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then : | ||||
13504 | |||||
13505 | cat >>confdefs.h <<_ACEOF | ||||
13506 | #define HAVE_SIGINFO_T_SI_BAND 1 | ||||
13507 | _ACEOF | ||||
13508 | |||||
13509 | |||||
13510 | fi | ||||
13511 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13512 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
13514 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13515 | if ${ac_cv_header_time_altzone+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13516 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13517 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13518 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13520 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13521 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13522 | int |
13523 | main () | ||||
13524 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13525 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13526 | ; |
13527 | return 0; | ||||
13528 | } | ||||
13529 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13530 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13531 | ac_cv_header_time_altzone=yes |
13532 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13533 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13534 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13536 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13537 | fi |
13538 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
13540 | $as_echo "$ac_cv_header_time_altzone" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13541 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13542 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13543 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13544 | |
13545 | fi | ||||
13546 | |||||
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13547 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
13549 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | ||||
13550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13551 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13552 | |
13553 | #include <sys/types.h> | ||||
13554 | #include <sys/select.h> | ||||
13555 | #include <sys/time.h> | ||||
13556 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13557 | int |
13558 | main () | ||||
13559 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13560 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13561 | ; |
13562 | return 0; | ||||
13563 | } | ||||
13564 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13565 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13566 | |
13567 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13568 | $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13569 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 13570 | was_it_defined=yes |
13571 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13572 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
13575 | $as_echo "$was_it_defined" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13576 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
13578 | $as_echo_n "checking for addrinfo... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13579 | if ${ac_cv_struct_addrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13580 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13581 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13583 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13584 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13585 | int |
13586 | main () | ||||
13587 | { | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13588 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13589 | ; |
13590 | return 0; | ||||
13591 | } | ||||
13592 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13593 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13594 | ac_cv_struct_addrinfo=yes |
13595 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13596 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13597 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13599 | fi | ||||
13600 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
13602 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13603 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13604 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13605 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13606 | |
13607 | fi | ||||
13608 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
13610 | $as_echo_n "checking for sockaddr_storage... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13611 | if ${ac_cv_struct_sockaddr_storage+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13612 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13613 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13615 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13616 | |
13617 | # include <sys/types.h> | ||||
13618 | # include <sys/socket.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13619 | int |
13620 | main () | ||||
13621 | { | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13622 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13623 | ; |
13624 | return 0; | ||||
13625 | } | ||||
13626 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13627 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13628 | ac_cv_struct_sockaddr_storage=yes |
13629 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13630 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13631 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13633 | fi | ||||
13634 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
13636 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13637 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13638 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13639 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13640 | |
13641 | fi | ||||
13642 | |||||
Christian Heimes | dffa394 | 2016-09-05 21:54:41 | [diff] [blame] | 13643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 |
13644 | $as_echo_n "checking for sockaddr_alg... " >&6; } | ||||
13645 | if ${ac_cv_struct_sockaddr_alg+:} false; then : | ||||
13646 | $as_echo_n "(cached) " >&6 | ||||
13647 | else | ||||
13648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
13649 | /* end confdefs.h. */ | ||||
13650 | |||||
13651 | # include <sys/types.h> | ||||
13652 | # include <sys/socket.h> | ||||
13653 | # include <linux/if_alg.h> | ||||
13654 | int | ||||
13655 | main () | ||||
13656 | { | ||||
13657 | struct sockaddr_alg s | ||||
13658 | ; | ||||
13659 | return 0; | ||||
13660 | } | ||||
13661 | _ACEOF | ||||
13662 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
13663 | ac_cv_struct_sockaddr_alg=yes | ||||
13664 | else | ||||
13665 | ac_cv_struct_sockaddr_alg=no | ||||
13666 | fi | ||||
13667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
13668 | fi | ||||
13669 | |||||
13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 | ||||
13671 | $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } | ||||
13672 | if test $ac_cv_struct_sockaddr_alg = yes; then | ||||
13673 | |||||
13674 | $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h | ||||
13675 | |||||
13676 | fi | ||||
13677 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13678 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13679 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
13681 | $as_echo_n "checking whether char is unsigned... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13682 | if ${ac_cv_c_char_unsigned+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13683 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 13684 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13686 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13687 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13688 | int |
13689 | main () | ||||
13690 | { | ||||
13691 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13692 | test_array [0] = 0; |
13693 | return test_array [0]; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13694 | |
13695 | ; | ||||
13696 | return 0; | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13697 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13698 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13699 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13700 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13701 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13702 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13703 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13705 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
13707 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13708 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13709 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13710 | |
13711 | fi | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13712 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
13714 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13715 | if ${ac_cv_c_const+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13716 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13717 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13719 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13720 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13721 | int |
13722 | main () | ||||
13723 | { | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13724 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13725 | #ifndef __cplusplus |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13726 | /* Ultrix mips cc rejects this sort of thing. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13727 | typedef int charset[2]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13728 | const charset cs = { 0, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13729 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13730 | char const *const *pcpcc; |
13731 | char **ppc; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13732 | /* NEC SVR4.0.2 mips cc rejects this. */ |
13733 | struct point {int x, y;}; | ||||
13734 | static struct point const zero = {0,0}; | ||||
13735 | /* AIX XL C 1.02.0.0 rejects this. | ||||
13736 | It does not let you subtract one const X* pointer from another in | ||||
13737 | an arm of an if-expression whose if-part is not a constant | ||||
13738 | expression */ | ||||
13739 | const char *g = "string"; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13740 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13741 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13742 | ++pcpcc; |
13743 | ppc = (char**) pcpcc; | ||||
13744 | pcpcc = (char const *const *) ppc; | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13745 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
13746 | char tx; | ||||
13747 | char *t = &tx; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13748 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13749 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13750 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13751 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13752 | } |
13753 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||||
13754 | int x[] = {25, 17}; | ||||
13755 | const int *foo = &x[0]; | ||||
13756 | ++foo; | ||||
13757 | } | ||||
13758 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||||
13759 | typedef const int *iptr; | ||||
13760 | iptr p = 0; | ||||
13761 | ++p; | ||||
13762 | } | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13763 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13764 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 13765 | struct s { int j; const int *ap[3]; } bx; |
13766 | struct s *b = &bx; b->j = 5; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13767 | } |
13768 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||||
13769 | const int foo = 10; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13770 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13771 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13772 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13773 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13775 | ; |
13776 | return 0; | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13777 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13778 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13779 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13780 | ac_cv_c_const=yes |
13781 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13782 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13783 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13785 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
13787 | $as_echo "$ac_cv_c_const" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13788 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13789 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13790 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13791 | |
13792 | fi | ||||
13793 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 13794 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13795 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
13797 | $as_echo_n "checking for working signed char... " >&6; } | ||||
13798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13799 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 | [diff] [blame] | 13800 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13801 | int |
13802 | main () | ||||
13803 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13804 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13805 | ; |
13806 | return 0; | ||||
13807 | } | ||||
13808 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13809 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13810 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 | [diff] [blame] | 13811 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13812 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13813 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13814 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 13815 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13816 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
13819 | $as_echo "$works" >&6; } | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13820 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13821 | have_prototypes=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
13823 | $as_echo_n "checking for prototypes... " >&6; } | ||||
13824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13825 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13826 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13827 | int |
13828 | main () | ||||
13829 | { | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13830 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13831 | ; |
13832 | return 0; | ||||
13833 | } | ||||
13834 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13835 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13836 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13837 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13838 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13839 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13840 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
13843 | $as_echo "$have_prototypes" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13844 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 | [diff] [blame] | 13845 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
13847 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | ||||
13848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13849 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13850 | |
13851 | #include <stdarg.h> | ||||
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 | [diff] [blame] | 13852 | int foo(int x, ...) { |
13853 | va_list va; | ||||
13854 | va_start(va, x); | ||||
13855 | va_arg(va, int); | ||||
13856 | va_arg(va, char *); | ||||
13857 | va_arg(va, double); | ||||
13858 | return 0; | ||||
13859 | } | ||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 13860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13861 | int |
13862 | main () | ||||
13863 | { | ||||
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 | [diff] [blame] | 13864 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13865 | ; |
13866 | return 0; | ||||
13867 | } | ||||
13868 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13869 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13870 | |
13871 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13872 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13873 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 13874 | works=yes |
13875 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 13876 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
13879 | $as_echo "$works" >&6; } | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 13880 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13881 | # check for socketpair |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
13883 | $as_echo_n "checking for socketpair... " >&6; } | ||||
13884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13885 | /* end confdefs.h. */ |
13886 | |||||
13887 | #include <sys/types.h> | ||||
13888 | #include <sys/socket.h> | ||||
13889 | |||||
13890 | int | ||||
13891 | main () | ||||
13892 | { | ||||
13893 | void *x=socketpair | ||||
13894 | ; | ||||
13895 | return 0; | ||||
13896 | } | ||||
13897 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13898 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13899 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13900 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13901 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13903 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13904 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13906 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13907 | |
13908 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 | [diff] [blame] | 13910 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13911 | # check if sockaddr has sa_len member |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
13913 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | ||||
13914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13915 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13916 | #include <sys/types.h> |
13917 | #include <sys/socket.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13918 | int |
13919 | main () | ||||
13920 | { | ||||
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13921 | struct sockaddr x; |
13922 | x.sa_len = 0; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13923 | ; |
13924 | return 0; | ||||
13925 | } | ||||
13926 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13927 | if ac_fn_c_try_compile "$LINENO"; then : |
13928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
13929 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13930 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13931 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13932 | |
13933 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13935 | $as_echo "no" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 13936 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13937 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 13938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 | [diff] [blame] | 13939 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13940 | # 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 | [diff] [blame] | 13941 | |
13942 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13943 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 13944 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13945 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13946 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 | [diff] [blame] | 13947 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
13949 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13950 | OLD_CFLAGS=$CFLAGS |
13951 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13953 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13954 | |
13955 | # include <netdb.h> | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13957 | int |
13958 | main () | ||||
13959 | { | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13960 | |
13961 | char *name; | ||||
13962 | struct hostent *he, *res; | ||||
13963 | char buffer[2048]; | ||||
13964 | int buflen = 2048; | ||||
13965 | int h_errnop; | ||||
13966 | |||||
13967 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13968 | |
13969 | ; | ||||
13970 | return 0; | ||||
13971 | } | ||||
13972 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13973 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13974 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13975 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 | [diff] [blame] | 13976 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13977 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13978 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13979 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13981 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13982 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13983 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13984 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 13985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13986 | $as_echo "no" >&6; } | ||||
13987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | ||||
13988 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | ||||
13989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 13990 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13991 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13992 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 13994 | int |
13995 | main () | ||||
13996 | { | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 13997 | |
13998 | char *name; | ||||
13999 | struct hostent *he; | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 14000 | char buffer[2048]; |
14001 | int buflen = 2048; | ||||
14002 | int h_errnop; | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14003 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 14004 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14005 | |
14006 | ; | ||||
14007 | return 0; | ||||
14008 | } | ||||
14009 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14010 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14011 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14012 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 | [diff] [blame] | 14013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14014 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 14015 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14016 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14018 | $as_echo "yes" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14019 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14020 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14021 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14023 | $as_echo "no" >&6; } | ||||
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 14024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
14025 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | ||||
14026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
14027 | /* end confdefs.h. */ | ||||
14028 | |||||
14029 | # include <netdb.h> | ||||
14030 | |||||
14031 | int | ||||
14032 | main () | ||||
14033 | { | ||||
14034 | |||||
14035 | char *name; | ||||
14036 | struct hostent *he; | ||||
14037 | struct hostent_data data; | ||||
14038 | |||||
14039 | (void) gethostbyname_r(name, he, &data); | ||||
14040 | |||||
14041 | ; | ||||
14042 | return 0; | ||||
14043 | } | ||||
14044 | _ACEOF | ||||
14045 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
14046 | |||||
14047 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | ||||
14048 | |||||
14049 | |||||
14050 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | ||||
14051 | |||||
14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
14053 | $as_echo "yes" >&6; } | ||||
14054 | |||||
14055 | else | ||||
14056 | |||||
14057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
14058 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14059 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14060 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14062 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14063 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14065 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14066 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14068 | CFLAGS=$OLD_CFLAGS |
14069 | |||||
14070 | else | ||||
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14071 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14072 | for ac_func in gethostbyname |
14073 | do : | ||||
14074 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14075 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14076 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14077 | #define HAVE_GETHOSTBYNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14078 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14079 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14080 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 | [diff] [blame] | 14081 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14082 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14083 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 | [diff] [blame] | 14084 | fi |
14085 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14086 | |
14087 | |||||
14088 | |||||
14089 | |||||
14090 | |||||
14091 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 14092 | # checks for system services |
14093 | # (none yet) | ||||
14094 | |||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 14095 | # Linux requires this for correct f.p. operations |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14096 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14097 | if test "x$ac_cv_func___fpu_control" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14098 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 | [diff] [blame] | 14099 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
14101 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14102 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14103 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 14104 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14105 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 14106 | LIBS="-lieee $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14108 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14109 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14110 | /* Override any GCC internal prototype to avoid an error. |
14111 | Use char because int might match the return type of a GCC | ||||
14112 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14113 | #ifdef __cplusplus |
14114 | extern "C" | ||||
14115 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14116 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14117 | int |
14118 | main () | ||||
14119 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14120 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14121 | ; |
14122 | return 0; | ||||
14123 | } | ||||
14124 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14125 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14126 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 14127 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14128 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 14129 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14130 | rm -f core conftest.err conftest.$ac_objext \ |
14131 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14132 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 14133 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
14135 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14136 | if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14137 | cat >>confdefs.h <<_ACEOF |
14138 | #define HAVE_LIBIEEE 1 | ||||
14139 | _ACEOF | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 14140 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 14141 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 14142 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 14143 | fi |
14144 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14145 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 | [diff] [blame] | 14146 | fi |
14147 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14148 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14149 | # check for --with-libm=... |
14150 | |||||
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 14151 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 | [diff] [blame] | 14152 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 | [diff] [blame] | 14153 | *) LIBM=-lm |
14154 | esac | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
14156 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14157 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14158 | # Check whether --with-libm was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14159 | if test "${with_libm+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14160 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14161 | if test "$withval" = no |
14162 | then LIBM= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
14164 | $as_echo "force LIBM empty" >&6; } | ||||
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14165 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14166 | then LIBM=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
14168 | $as_echo "set LIBM=\"$withval\"" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 14169 | else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14170 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14171 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
14173 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14174 | fi |
14175 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14176 | |
14177 | # check for --with-libc=... | ||||
14178 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
14180 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14181 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14182 | # Check whether --with-libc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14183 | if test "${with_libc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14184 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14185 | if test "$withval" = no |
14186 | then LIBC= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
14188 | $as_echo "force LIBC empty" >&6; } | ||||
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14189 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14190 | then LIBC=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
14192 | $as_echo "set LIBC=\"$withval\"" >&6; } | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 14193 | else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14194 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 | [diff] [blame] | 14195 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
14197 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14198 | fi |
14199 | |||||
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 14200 | |
Stefan Krah | 1919b7e | 2012-03-21 17:25:23 | [diff] [blame] | 14201 | # ************************************** |
14202 | # * Check for gcc x64 inline assembler * | ||||
14203 | # ************************************** | ||||
14204 | |||||
14205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 | ||||
14206 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | ||||
14207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
14208 | /* end confdefs.h. */ | ||||
14209 | |||||
14210 | int | ||||
14211 | main () | ||||
14212 | { | ||||
14213 | |||||
14214 | __asm__ __volatile__ ("movq %rcx, %rax"); | ||||
14215 | |||||
14216 | ; | ||||
14217 | return 0; | ||||
14218 | } | ||||
14219 | _ACEOF | ||||
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14220 | if ac_fn_c_try_link "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 17:25:23 | [diff] [blame] | 14221 | have_gcc_asm_for_x64=yes |
14222 | else | ||||
14223 | have_gcc_asm_for_x64=no | ||||
14224 | fi | ||||
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14225 | rm -f core conftest.err conftest.$ac_objext \ |
14226 | conftest$ac_exeext conftest.$ac_ext | ||||
Stefan Krah | 1919b7e | 2012-03-21 17:25:23 | [diff] [blame] | 14227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 |
14228 | $as_echo "$have_gcc_asm_for_x64" >&6; } | ||||
14229 | if test "$have_gcc_asm_for_x64" = yes | ||||
14230 | then | ||||
14231 | |||||
14232 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h | ||||
14233 | |||||
14234 | fi | ||||
14235 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14236 | # ************************************************** |
14237 | # * Check for various properties of floating point * | ||||
14238 | # ************************************************** | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14239 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
14241 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14242 | if ${ac_cv_little_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14243 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14244 | else |
14245 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14246 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14247 | ac_cv_little_endian_double=no |
14248 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14250 | /* end confdefs.h. */ |
14251 | |||||
14252 | #include <string.h> | ||||
14253 | int main() { | ||||
14254 | double x = 9006104071832581.0; | ||||
14255 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | ||||
14256 | return 0; | ||||
14257 | else | ||||
14258 | return 1; | ||||
14259 | } | ||||
14260 | |||||
14261 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14262 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14263 | ac_cv_little_endian_double=yes |
14264 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14265 | ac_cv_little_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14266 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14267 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14268 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14269 | fi |
14270 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14271 | fi |
14272 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 |
14274 | $as_echo "$ac_cv_little_endian_double" >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14275 | if test "$ac_cv_little_endian_double" = yes |
14276 | then | ||||
14277 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14278 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14279 | |
14280 | fi | ||||
14281 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
14283 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14284 | if ${ac_cv_big_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14285 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14286 | else |
14287 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14288 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14289 | ac_cv_big_endian_double=no |
14290 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14292 | /* end confdefs.h. */ |
14293 | |||||
14294 | #include <string.h> | ||||
14295 | int main() { | ||||
14296 | double x = 9006104071832581.0; | ||||
14297 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | ||||
14298 | return 0; | ||||
14299 | else | ||||
14300 | return 1; | ||||
14301 | } | ||||
14302 | |||||
14303 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14304 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14305 | ac_cv_big_endian_double=yes |
14306 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14307 | ac_cv_big_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14308 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14309 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14310 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14311 | fi |
14312 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14313 | fi |
14314 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 |
14316 | $as_echo "$ac_cv_big_endian_double" >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14317 | if test "$ac_cv_big_endian_double" = yes |
14318 | then | ||||
14319 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14320 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14321 | |
14322 | fi | ||||
14323 | |||||
14324 | # Some ARM platforms use a mixed-endian representation for doubles. | ||||
14325 | # While Python doesn't currently have full support for these platforms | ||||
14326 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | ||||
14327 | # conversions work. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
14329 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14330 | if ${ac_cv_mixed_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14331 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14332 | else |
14333 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14334 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14335 | ac_cv_mixed_endian_double=no |
14336 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14338 | /* end confdefs.h. */ |
14339 | |||||
14340 | #include <string.h> | ||||
14341 | int main() { | ||||
14342 | double x = 9006104071832581.0; | ||||
14343 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | ||||
14344 | return 0; | ||||
14345 | else | ||||
14346 | return 1; | ||||
14347 | } | ||||
14348 | |||||
14349 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14350 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14351 | ac_cv_mixed_endian_double=yes |
14352 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14353 | ac_cv_mixed_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14354 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14355 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14356 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14357 | fi |
14358 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14359 | fi |
14360 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 |
14362 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14363 | if test "$ac_cv_mixed_endian_double" = yes |
14364 | then | ||||
14365 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14366 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14367 | |
14368 | fi | ||||
14369 | |||||
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 | [diff] [blame] | 14370 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14371 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 | [diff] [blame] | 14372 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14373 | # rounding; this is a problem on x86, where the x87 FPU has a default |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 | [diff] [blame] | 14374 | # rounding precision of 64 bits. For gcc/x86, we can fix this by |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14375 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 | [diff] [blame] | 14376 | |
14377 | # This inline assembler syntax may also work for suncc and icc, | ||||
14378 | # so we try it on all platforms. | ||||
14379 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
14381 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | ||||
14382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14383 | /* end confdefs.h. */ |
14384 | |||||
14385 | int | ||||
14386 | main () | ||||
14387 | { | ||||
14388 | |||||
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 | [diff] [blame] | 14389 | unsigned short cw; |
14390 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | ||||
14391 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14392 | |
14393 | ; | ||||
14394 | return 0; | ||||
14395 | } | ||||
14396 | _ACEOF | ||||
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14397 | if ac_fn_c_try_link "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14398 | have_gcc_asm_for_x87=yes |
14399 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14400 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14401 | fi |
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14402 | rm -f core conftest.err conftest.$ac_objext \ |
14403 | conftest$ac_exeext conftest.$ac_ext | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
14405 | $as_echo "$have_gcc_asm_for_x87" >&6; } | ||||
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 | [diff] [blame] | 14406 | if test "$have_gcc_asm_for_x87" = yes |
14407 | then | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14408 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14409 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14410 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14411 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14412 | |
Benjamin Peterson | 8bdeb16 | 2014-04-17 04:00:31 | [diff] [blame] | 14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 |
14414 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } | ||||
14415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
14416 | /* end confdefs.h. */ | ||||
14417 | |||||
14418 | int | ||||
14419 | main () | ||||
14420 | { | ||||
14421 | |||||
14422 | unsigned int fpcr; | ||||
14423 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); | ||||
14424 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); | ||||
14425 | |||||
14426 | ; | ||||
14427 | return 0; | ||||
14428 | } | ||||
14429 | _ACEOF | ||||
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14430 | if ac_fn_c_try_link "$LINENO"; then : |
Benjamin Peterson | 8bdeb16 | 2014-04-17 04:00:31 | [diff] [blame] | 14431 | have_gcc_asm_for_mc68881=yes |
14432 | else | ||||
14433 | have_gcc_asm_for_mc68881=no | ||||
14434 | fi | ||||
Stefan Krah | e31db2a | 2015-07-02 18:27:56 | [diff] [blame] | 14435 | rm -f core conftest.err conftest.$ac_objext \ |
14436 | conftest$ac_exeext conftest.$ac_ext | ||||
Benjamin Peterson | 8bdeb16 | 2014-04-17 04:00:31 | [diff] [blame] | 14437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 |
14438 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } | ||||
14439 | if test "$have_gcc_asm_for_mc68881" = yes | ||||
14440 | then | ||||
14441 | |||||
14442 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h | ||||
14443 | |||||
14444 | fi | ||||
14445 | |||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14446 | # Detect whether system arithmetic is subject to x87-style double |
14447 | # rounding issues. The result of this test has little meaning on non | ||||
14448 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding | ||||
14449 | # mode is round-to-nearest and double rounding issues are present, and | ||||
14450 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
14452 | $as_echo_n "checking for x87-style double rounding... " >&6; } | ||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14453 | # $BASECFLAGS may affect the result |
14454 | ac_save_cc="$CC" | ||||
14455 | CC="$CC $BASECFLAGS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14456 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14457 | ac_cv_x87_double_rounding=no |
14458 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14460 | /* end confdefs.h. */ |
14461 | |||||
14462 | #include <stdlib.h> | ||||
14463 | #include <math.h> | ||||
14464 | int main() { | ||||
14465 | volatile double x, y, z; | ||||
14466 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | ||||
14467 | x = 0.99999999999999989; /* 1-2**-53 */ | ||||
14468 | y = 1./x; | ||||
14469 | if (y != 1.) | ||||
14470 | exit(0); | ||||
14471 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | ||||
14472 | x = 1e16; | ||||
14473 | y = 2.99999; | ||||
14474 | z = x + y; | ||||
14475 | if (z != 1e16+4.) | ||||
14476 | exit(0); | ||||
14477 | /* both tests show evidence of double rounding */ | ||||
14478 | exit(1); | ||||
14479 | } | ||||
14480 | |||||
14481 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14482 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14483 | ac_cv_x87_double_rounding=no |
14484 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14485 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14486 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14487 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14488 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14489 | fi |
14490 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14491 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
14493 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14494 | if test "$ac_cv_x87_double_rounding" = yes |
14495 | then | ||||
14496 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14497 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14498 | |
14499 | fi | ||||
14500 | |||||
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 | [diff] [blame] | 14501 | # ************************************ |
14502 | # * Check for mathematical functions * | ||||
14503 | # ************************************ | ||||
14504 | |||||
14505 | LIBS_SAVE=$LIBS | ||||
14506 | LIBS="$LIBS $LIBM" | ||||
14507 | |||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14508 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
14509 | do : | ||||
14510 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
14511 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 14512 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14513 | cat >>confdefs.h <<_ACEOF |
14514 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
14515 | _ACEOF | ||||
14516 | |||||
14517 | fi | ||||
14518 | done | ||||
14519 | |||||
Victor Stinner | 8f9f8d6 | 2011-05-09 10:45:41 | [diff] [blame] | 14520 | for ac_func in hypot lgamma log1p log2 round tgamma |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14521 | do : |
14522 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
14523 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 14524 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14525 | cat >>confdefs.h <<_ACEOF |
14526 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
14527 | _ACEOF | ||||
14528 | |||||
14529 | fi | ||||
14530 | done | ||||
14531 | |||||
14532 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | ||||
14533 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14534 | if test "x$ac_cv_have_decl_isinf" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14535 | ac_have_decl=1 |
14536 | else | ||||
14537 | ac_have_decl=0 | ||||
14538 | fi | ||||
14539 | |||||
14540 | cat >>confdefs.h <<_ACEOF | ||||
14541 | #define HAVE_DECL_ISINF $ac_have_decl | ||||
14542 | _ACEOF | ||||
14543 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | ||||
14544 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14545 | if test "x$ac_cv_have_decl_isnan" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14546 | ac_have_decl=1 |
14547 | else | ||||
14548 | ac_have_decl=0 | ||||
14549 | fi | ||||
14550 | |||||
14551 | cat >>confdefs.h <<_ACEOF | ||||
14552 | #define HAVE_DECL_ISNAN $ac_have_decl | ||||
14553 | _ACEOF | ||||
14554 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | ||||
14555 | " | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14556 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14557 | ac_have_decl=1 |
14558 | else | ||||
14559 | ac_have_decl=0 | ||||
14560 | fi | ||||
14561 | |||||
14562 | cat >>confdefs.h <<_ACEOF | ||||
14563 | #define HAVE_DECL_ISFINITE $ac_have_decl | ||||
14564 | _ACEOF | ||||
14565 | |||||
14566 | |||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14567 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
14568 | # -0. on some architectures. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 |
14570 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14571 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14572 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14573 | else |
14574 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14575 | if test "$cross_compiling" = yes; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14576 | ac_cv_tanh_preserves_zero_sign=no |
14577 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14579 | /* end confdefs.h. */ |
14580 | |||||
14581 | #include <math.h> | ||||
14582 | #include <stdlib.h> | ||||
14583 | int main() { | ||||
14584 | /* return 0 if either negative zeros don't exist | ||||
14585 | on this platform or if negative zeros exist | ||||
14586 | and tanh(-0.) == -0. */ | ||||
14587 | if (atan2(0., -1.) == atan2(-0., -1.) || | ||||
14588 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | ||||
14589 | else exit(1); | ||||
14590 | } | ||||
14591 | |||||
14592 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14593 | if ac_fn_c_try_run "$LINENO"; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14594 | ac_cv_tanh_preserves_zero_sign=yes |
14595 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14596 | ac_cv_tanh_preserves_zero_sign=no |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14597 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14598 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14599 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14600 | fi |
14601 | |||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14602 | fi |
14603 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
14605 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14606 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
14607 | then | ||||
14608 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14609 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 14610 | |
14611 | fi | ||||
14612 | |||||
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14613 | if test "$ac_cv_func_log1p" = yes |
14614 | then | ||||
14615 | # On some versions of AIX, log1p(-0.) returns 0. instead of | ||||
14616 | # -0. See issue #9920. | ||||
14617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | ||||
14618 | $as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14619 | if ${ac_cv_log1p_drops_zero_sign+:} false; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14620 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14621 | else |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14622 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14623 | if test "$cross_compiling" = yes; then : |
14624 | ac_cv_log1p_drops_zero_sign=no | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14625 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14627 | /* end confdefs.h. */ | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14628 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14629 | #include <math.h> |
14630 | #include <stdlib.h> | ||||
14631 | int main() { | ||||
14632 | /* Fail if the signs of log1p(-0.) and -0. can be | ||||
14633 | distinguished. */ | ||||
14634 | if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | ||||
14635 | return 0; | ||||
14636 | else | ||||
14637 | return 1; | ||||
14638 | } | ||||
14639 | |||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14640 | _ACEOF |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14641 | if ac_fn_c_try_run "$LINENO"; then : |
14642 | ac_cv_log1p_drops_zero_sign=no | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14643 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14644 | ac_cv_log1p_drops_zero_sign=yes |
14645 | fi | ||||
14646 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
14647 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14648 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14649 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14650 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14651 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 | [diff] [blame] | 14652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 |
14653 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | ||||
14654 | fi | ||||
14655 | if test "$ac_cv_log1p_drops_zero_sign" = yes | ||||
14656 | then | ||||
14657 | |||||
14658 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | ||||
14659 | |||||
14660 | fi | ||||
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 | [diff] [blame] | 14661 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 | [diff] [blame] | 14662 | LIBS=$LIBS_SAVE |
14663 | |||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14664 | # For multiprocessing module, check that sem_open |
14665 | # actually works. For FreeBSD versions <= 7.2, | ||||
14666 | # the kernel module that provides POSIX semaphores | ||||
14667 | # isn't loaded by default, so an attempt to call | ||||
14668 | # sem_open results in a 'Signal 12' error. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
14670 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14671 | if ${ac_cv_posix_semaphores_enabled+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14672 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14673 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14674 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14675 | ac_cv_posix_semaphores_enabled=yes |
14676 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14678 | /* end confdefs.h. */ |
14679 | |||||
14680 | #include <unistd.h> | ||||
14681 | #include <fcntl.h> | ||||
14682 | #include <stdio.h> | ||||
14683 | #include <semaphore.h> | ||||
14684 | #include <sys/stat.h> | ||||
14685 | |||||
14686 | int main(void) { | ||||
14687 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | ||||
14688 | if (a == SEM_FAILED) { | ||||
14689 | perror("sem_open"); | ||||
14690 | return 1; | ||||
14691 | } | ||||
14692 | sem_close(a); | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 | [diff] [blame] | 14693 | sem_unlink("/autoconf"); |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14694 | return 0; |
14695 | } | ||||
14696 | |||||
14697 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14698 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14699 | ac_cv_posix_semaphores_enabled=yes |
14700 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14701 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14702 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14703 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14704 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14705 | fi |
14706 | |||||
14707 | |||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14708 | fi |
14709 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
14711 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | ||||
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14712 | if test $ac_cv_posix_semaphores_enabled = no |
14713 | then | ||||
14714 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14715 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 | [diff] [blame] | 14716 | |
14717 | fi | ||||
14718 | |||||
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14719 | # Multiprocessing check for broken sem_getvalue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
14721 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14722 | if ${ac_cv_broken_sem_getvalue+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14723 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14724 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14725 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14726 | ac_cv_broken_sem_getvalue=yes |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14727 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14729 | /* end confdefs.h. */ |
14730 | |||||
14731 | #include <unistd.h> | ||||
14732 | #include <fcntl.h> | ||||
14733 | #include <stdio.h> | ||||
14734 | #include <semaphore.h> | ||||
14735 | #include <sys/stat.h> | ||||
14736 | |||||
14737 | int main(void){ | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 | [diff] [blame] | 14738 | sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14739 | int count; |
14740 | int res; | ||||
14741 | if(a==SEM_FAILED){ | ||||
14742 | perror("sem_open"); | ||||
14743 | return 1; | ||||
14744 | |||||
14745 | } | ||||
14746 | res = sem_getvalue(a, &count); | ||||
14747 | sem_close(a); | ||||
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 | [diff] [blame] | 14748 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14749 | return res==-1 ? 1 : 0; |
14750 | } | ||||
14751 | |||||
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14752 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14753 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14754 | ac_cv_broken_sem_getvalue=no |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 | [diff] [blame] | 14755 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14756 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 14757 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14758 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14759 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 14760 | fi |
14761 | |||||
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 14762 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14763 | fi |
14764 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
14766 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14767 | if test $ac_cv_broken_sem_getvalue = yes |
14768 | then | ||||
14769 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14770 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 14771 | |
14772 | fi | ||||
14773 | |||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 06:44:44 | [diff] [blame] | 14774 | ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> |
14775 | " | ||||
14776 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : | ||||
14777 | ac_have_decl=1 | ||||
14778 | else | ||||
14779 | ac_have_decl=0 | ||||
14780 | fi | ||||
14781 | |||||
14782 | cat >>confdefs.h <<_ACEOF | ||||
14783 | #define HAVE_DECL_RTLD_LAZY $ac_have_decl | ||||
14784 | _ACEOF | ||||
14785 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | ||||
14786 | " | ||||
14787 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : | ||||
14788 | ac_have_decl=1 | ||||
14789 | else | ||||
14790 | ac_have_decl=0 | ||||
14791 | fi | ||||
14792 | |||||
14793 | cat >>confdefs.h <<_ACEOF | ||||
14794 | #define HAVE_DECL_RTLD_NOW $ac_have_decl | ||||
14795 | _ACEOF | ||||
14796 | ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> | ||||
14797 | " | ||||
14798 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : | ||||
14799 | ac_have_decl=1 | ||||
14800 | else | ||||
14801 | ac_have_decl=0 | ||||
14802 | fi | ||||
14803 | |||||
14804 | cat >>confdefs.h <<_ACEOF | ||||
14805 | #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl | ||||
14806 | _ACEOF | ||||
14807 | ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> | ||||
14808 | " | ||||
14809 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : | ||||
14810 | ac_have_decl=1 | ||||
14811 | else | ||||
14812 | ac_have_decl=0 | ||||
14813 | fi | ||||
14814 | |||||
14815 | cat >>confdefs.h <<_ACEOF | ||||
14816 | #define HAVE_DECL_RTLD_LOCAL $ac_have_decl | ||||
14817 | _ACEOF | ||||
14818 | ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> | ||||
14819 | " | ||||
14820 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : | ||||
14821 | ac_have_decl=1 | ||||
14822 | else | ||||
14823 | ac_have_decl=0 | ||||
14824 | fi | ||||
14825 | |||||
14826 | cat >>confdefs.h <<_ACEOF | ||||
14827 | #define HAVE_DECL_RTLD_NODELETE $ac_have_decl | ||||
14828 | _ACEOF | ||||
14829 | ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> | ||||
14830 | " | ||||
14831 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : | ||||
14832 | ac_have_decl=1 | ||||
14833 | else | ||||
14834 | ac_have_decl=0 | ||||
14835 | fi | ||||
14836 | |||||
14837 | cat >>confdefs.h <<_ACEOF | ||||
14838 | #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl | ||||
14839 | _ACEOF | ||||
14840 | ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> | ||||
14841 | " | ||||
14842 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : | ||||
14843 | ac_have_decl=1 | ||||
14844 | else | ||||
14845 | ac_have_decl=0 | ||||
14846 | fi | ||||
14847 | |||||
14848 | cat >>confdefs.h <<_ACEOF | ||||
14849 | #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl | ||||
14850 | _ACEOF | ||||
Michael Felt | c5ae169 | 2017-12-19 12:58:49 | [diff] [blame] | 14851 | ac_fn_c_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h> |
14852 | " | ||||
14853 | if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes; then : | ||||
14854 | ac_have_decl=1 | ||||
14855 | else | ||||
14856 | ac_have_decl=0 | ||||
14857 | fi | ||||
14858 | |||||
14859 | cat >>confdefs.h <<_ACEOF | ||||
14860 | #define HAVE_DECL_RTLD_MEMBER $ac_have_decl | ||||
14861 | _ACEOF | ||||
Serhiy Storchaka | c2f7d87 | 2016-05-04 06:44:44 | [diff] [blame] | 14862 | |
14863 | |||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14864 | # determine what size digit to use for Python's longs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
14866 | $as_echo_n "checking digit size for Python's longs... " >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14867 | # Check whether --enable-big-digits was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14868 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14869 | enableval=$enable_big_digits; case $enable_big_digits in |
14870 | yes) | ||||
14871 | enable_big_digits=30 ;; | ||||
14872 | no) | ||||
14873 | enable_big_digits=15 ;; | ||||
14874 | 15|30) | ||||
14875 | ;; | ||||
14876 | *) | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14877 | 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 | [diff] [blame] | 14878 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
14880 | $as_echo "$enable_big_digits" >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14881 | |
14882 | cat >>confdefs.h <<_ACEOF | ||||
14883 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | ||||
14884 | _ACEOF | ||||
14885 | |||||
14886 | |||||
14887 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
14889 | $as_echo "no value specified" >&6; } | ||||
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 | [diff] [blame] | 14890 | fi |
14891 | |||||
14892 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14893 | # check for wchar.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14894 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14895 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14896 | |
14897 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14898 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14899 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 | [diff] [blame] | 14900 | wchar_h="yes" |
14901 | |||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14902 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14903 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 14904 | |
14905 | fi | ||||
14906 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14908 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14909 | # determine wchar_t size |
14910 | if test "$wchar_h" = yes | ||||
14911 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14912 | # The cast to long int works around a bug in the HP C Compiler |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14913 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
14914 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||||
14915 | # This bug is HP SR number 8606223364. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
14917 | $as_echo_n "checking size of wchar_t... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14918 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14919 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14920 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14921 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
14922 | "; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14924 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14925 | if test "$ac_cv_type_wchar_t" = yes; then |
14926 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||||
14927 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 14928 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14929 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14930 | else |
14931 | ac_cv_sizeof_wchar_t=0 | ||||
14932 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14933 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14934 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14935 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
14937 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14938 | |
14939 | |||||
14940 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14941 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14942 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 14943 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14944 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 14945 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 14946 | fi |
14947 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
14949 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | ||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14950 | have_ucs4_tcl=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14952 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14953 | |
14954 | #include <tcl.h> | ||||
14955 | #if TCL_UTF_MAX != 6 | ||||
14956 | # error "NOT UCS4_TCL" | ||||
14957 | #endif | ||||
14958 | int | ||||
14959 | main () | ||||
14960 | { | ||||
14961 | |||||
14962 | ; | ||||
14963 | return 0; | ||||
14964 | } | ||||
14965 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14966 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14967 | |
14968 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14969 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14970 | |
14971 | have_ucs4_tcl=yes | ||||
14972 | |||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14973 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 14974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
14976 | $as_echo "$have_ucs4_tcl" >&6; } | ||||
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 | [diff] [blame] | 14977 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14978 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14979 | if test "$wchar_h" = yes |
14980 | then | ||||
14981 | # check whether wchar_t is signed or not | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
14983 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 14984 | if ${ac_cv_wchar_t_signed+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14985 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14986 | else |
14987 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14988 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14989 | ac_cv_wchar_t_signed=yes |
14990 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 14991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 14992 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14993 | |
14994 | #include <wchar.h> | ||||
14995 | int main() | ||||
14996 | { | ||||
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 | [diff] [blame] | 14997 | /* Success: exit code 0 */ |
14998 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | ||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 14999 | } |
15000 | |||||
15001 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15002 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 15003 | ac_cv_wchar_t_signed=yes |
15004 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15005 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 15006 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15007 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15008 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 15009 | fi |
15010 | |||||
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 | [diff] [blame] | 15011 | fi |
15012 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
15014 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15015 | fi |
15016 | |||||
Miss Islington (bot) | 4973f76 | 2018-08-24 16:36:30 | [diff] [blame] | 15017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5 |
15018 | $as_echo_n "checking whether wchar_t is usable... " >&6; } | ||||
Georg Brandl | 52d168a | 2008-01-07 18:10:24 | [diff] [blame] | 15019 | # wchar_t is only usable if it maps to an unsigned type |
Martin v. Löwis | d63a3b8 | 2011-09-28 05:41:54 | [diff] [blame] | 15020 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 | [diff] [blame] | 15021 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 | [diff] [blame] | 15022 | then |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 15023 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15024 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15025 | |
Miss Islington (bot) | 4973f76 | 2018-08-24 16:36:30 | [diff] [blame] | 15026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15027 | $as_echo "yes" >&6; } | ||||
Georg Brandl | 52d168a | 2008-01-07 18:10:24 | [diff] [blame] | 15028 | else |
Miss Islington (bot) | 4973f76 | 2018-08-24 16:36:30 | [diff] [blame] | 15029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15030 | $as_echo "no" >&6; } | ||||
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 | [diff] [blame] | 15031 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15032 | |
15033 | # check for endianness | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
15035 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15036 | if ${ac_cv_c_bigendian+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15037 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15038 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15039 | ac_cv_c_bigendian=unknown |
15040 | # See if we're dealing with a universal compiler. | ||||
15041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15042 | /* end confdefs.h. */ | ||||
15043 | #ifndef __APPLE_CC__ | ||||
15044 | not a universal capable compiler | ||||
15045 | #endif | ||||
15046 | typedef int dummy; | ||||
15047 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15048 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15049 | if ac_fn_c_try_compile "$LINENO"; then : |
15050 | |||||
15051 | # Check for potential -arch flags. It is not universal unless | ||||
15052 | # there are at least two -arch flags with different values. | ||||
15053 | ac_arch= | ||||
15054 | ac_prev= | ||||
15055 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||||
15056 | if test -n "$ac_prev"; then | ||||
15057 | case $ac_word in | ||||
15058 | i?86 | x86_64 | ppc | ppc64) | ||||
15059 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||||
15060 | ac_arch=$ac_word | ||||
15061 | else | ||||
15062 | ac_cv_c_bigendian=universal | ||||
15063 | break | ||||
15064 | fi | ||||
15065 | ;; | ||||
15066 | esac | ||||
15067 | ac_prev= | ||||
15068 | elif test "x$ac_word" = "x-arch"; then | ||||
15069 | ac_prev=arch | ||||
15070 | fi | ||||
15071 | done | ||||
15072 | fi | ||||
15073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
15074 | if test $ac_cv_c_bigendian = unknown; then | ||||
15075 | # See if sys/param.h defines the BYTE_ORDER macro. | ||||
15076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15077 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15078 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15079 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15080 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15081 | int |
15082 | main () | ||||
15083 | { | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15084 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
15085 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||||
15086 | && LITTLE_ENDIAN) | ||||
15087 | bogus endian macros | ||||
15088 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15089 | |
15090 | ; | ||||
15091 | return 0; | ||||
15092 | } | ||||
15093 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15094 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15095 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15097 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15098 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15099 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15101 | int |
15102 | main () | ||||
15103 | { | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15104 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15105 | not big endian |
15106 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15107 | |
15108 | ; | ||||
15109 | return 0; | ||||
15110 | } | ||||
15111 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15112 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15113 | ac_cv_c_bigendian=yes |
15114 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15115 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15116 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15118 | fi |
15119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
15120 | fi | ||||
15121 | if test $ac_cv_c_bigendian = unknown; then | ||||
15122 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||||
15123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15124 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15125 | #include <limits.h> |
15126 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15127 | int |
15128 | main () | ||||
15129 | { | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15130 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
15131 | bogus endian macros | ||||
15132 | #endif | ||||
15133 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15134 | ; |
15135 | return 0; | ||||
15136 | } | ||||
15137 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15138 | if ac_fn_c_try_compile "$LINENO"; then : |
15139 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||||
15140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15141 | /* end confdefs.h. */ | ||||
15142 | #include <limits.h> | ||||
15143 | |||||
15144 | int | ||||
15145 | main () | ||||
15146 | { | ||||
15147 | #ifndef _BIG_ENDIAN | ||||
15148 | not big endian | ||||
15149 | #endif | ||||
15150 | |||||
15151 | ; | ||||
15152 | return 0; | ||||
15153 | } | ||||
15154 | _ACEOF | ||||
15155 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15156 | ac_cv_c_bigendian=yes |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 15157 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15158 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15159 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15161 | fi | ||||
15162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
15163 | fi | ||||
15164 | if test $ac_cv_c_bigendian = unknown; then | ||||
15165 | # Compile a test program. | ||||
15166 | if test "$cross_compiling" = yes; then : | ||||
15167 | # Try to guess by grepping values from an object file. | ||||
15168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15169 | /* end confdefs.h. */ | ||||
15170 | short int ascii_mm[] = | ||||
15171 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||||
15172 | short int ascii_ii[] = | ||||
15173 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||||
15174 | int use_ascii (int i) { | ||||
15175 | return ascii_mm[i] + ascii_ii[i]; | ||||
15176 | } | ||||
15177 | short int ebcdic_ii[] = | ||||
15178 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||||
15179 | short int ebcdic_mm[] = | ||||
15180 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||||
15181 | int use_ebcdic (int i) { | ||||
15182 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||||
15183 | } | ||||
15184 | extern int foo; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15185 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15186 | int |
15187 | main () | ||||
15188 | { | ||||
15189 | return use_ascii (foo) == use_ebcdic (foo); | ||||
15190 | ; | ||||
15191 | return 0; | ||||
15192 | } | ||||
15193 | _ACEOF | ||||
15194 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
15195 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||||
15196 | ac_cv_c_bigendian=yes | ||||
15197 | fi | ||||
15198 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||||
15199 | if test "$ac_cv_c_bigendian" = unknown; then | ||||
15200 | ac_cv_c_bigendian=no | ||||
15201 | else | ||||
15202 | # finding both strings is unlikely to happen, but who knows? | ||||
15203 | ac_cv_c_bigendian=unknown | ||||
15204 | fi | ||||
15205 | fi | ||||
15206 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15208 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15210 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15211 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15212 | int |
15213 | main () | ||||
15214 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15215 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15216 | /* Are we little or big endian? From Harbison&Steele. */ |
15217 | union | ||||
15218 | { | ||||
15219 | long int l; | ||||
15220 | char c[sizeof (long int)]; | ||||
15221 | } u; | ||||
15222 | u.l = 1; | ||||
15223 | return u.c[sizeof (long int) - 1] == 1; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15224 | |
15225 | ; | ||||
15226 | return 0; | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15227 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15228 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15229 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15230 | ac_cv_c_bigendian=no |
15231 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15232 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15233 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15234 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15235 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15236 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15237 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15238 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15239 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
15241 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||||
15242 | case $ac_cv_c_bigendian in #( | ||||
15243 | yes) | ||||
15244 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||||
15245 | ;; #( | ||||
15246 | no) | ||||
15247 | ;; #( | ||||
15248 | universal) | ||||
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 15249 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15250 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 | [diff] [blame] | 15251 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15252 | ;; #( |
15253 | *) | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 15254 | as_fn_error $? "unknown endianness |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15255 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15256 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 | [diff] [blame] | 15257 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 15258 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 15259 | # ABI version string for Python extension modules. This appears between the |
15260 | # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated | ||||
15261 | # from the following attributes which affect the ABI of this Python build (in | ||||
15262 | # this order): | ||||
15263 | # | ||||
15264 | # * The Python implementation (always 'cpython-' for us) | ||||
15265 | # * The major and minor version numbers | ||||
15266 | # * --with-pydebug (adds a 'd') | ||||
15267 | # * --with-pymalloc (adds a 'm') | ||||
15268 | # * --with-wide-unicode (adds a 'u') | ||||
15269 | # | ||||
15270 | # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, | ||||
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 | [diff] [blame] | 15271 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared |
15272 | # libraries would be named 'foo.cpython-32dmu.so'. | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 15273 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 15274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 |
15275 | $as_echo_n "checking ABIFLAGS... " >&6; } | ||||
15276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | ||||
15277 | $as_echo "$ABIFLAGS" >&6; } | ||||
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 15278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 |
15279 | $as_echo_n "checking SOABI... " >&6; } | ||||
doko@ubuntu.com | d3899c1 | 2015-04-15 18:23:14 | [diff] [blame] | 15280 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 | [diff] [blame] | 15281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 |
15282 | $as_echo "$SOABI" >&6; } | ||||
15283 | |||||
doko@ubuntu.com | d5537d0 | 2013-03-21 20:21:49 | [diff] [blame] | 15284 | |
15285 | case $ac_sys_system in | ||||
Ned Deily | 3b81248 | 2015-04-16 00:11:47 | [diff] [blame] | 15286 | Linux*|GNU*|Darwin) |
doko@ubuntu.com | d5537d0 | 2013-03-21 20:21:49 | [diff] [blame] | 15287 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; |
15288 | *) | ||||
15289 | EXT_SUFFIX=${SHLIB_SUFFIX};; | ||||
15290 | esac | ||||
15291 | |||||
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 | [diff] [blame] | 15292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 |
15293 | $as_echo_n "checking LDVERSION... " >&6; } | ||||
15294 | LDVERSION='$(VERSION)$(ABIFLAGS)' | ||||
15295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | ||||
15296 | $as_echo "$LDVERSION" >&6; } | ||||
15297 | |||||
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 15298 | |
doko@ubuntu.com | 5553231 | 2016-06-14 06:55:19 | [diff] [blame] | 15299 | if test x$PLATFORM_TRIPLET = x; then |
15300 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" | ||||
15301 | else | ||||
15302 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | ||||
15303 | fi | ||||
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 15304 | |
15305 | |||||
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15306 | # Check whether right shifting a negative integer extends the sign bit |
15307 | # or fills with zeros (like the Cray J90, according to Tim Peters). | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
15309 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15310 | if ${ac_cv_rshift_extends_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15311 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15312 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15313 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15314 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 | [diff] [blame] | 15315 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15316 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15318 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15319 | |
15320 | int main() | ||||
15321 | { | ||||
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15322 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15323 | } |
15324 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15325 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15326 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15327 | ac_cv_rshift_extends_sign=yes |
15328 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15329 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15330 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15331 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15332 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15333 | fi |
15334 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15335 | fi |
15336 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
15338 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | ||||
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 | [diff] [blame] | 15339 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15340 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15341 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15342 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15343 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15344 | fi |
15345 | |||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15346 | # check for getc_unlocked and related locking functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
15348 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15349 | if ${ac_cv_have_getc_unlocked+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15350 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15351 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15352 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15354 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15355 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15356 | int |
15357 | main () | ||||
15358 | { | ||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15359 | |
15360 | FILE *f = fopen("/dev/null", "r"); | ||||
15361 | flockfile(f); | ||||
15362 | getc_unlocked(f); | ||||
15363 | funlockfile(f); | ||||
15364 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15365 | ; |
15366 | return 0; | ||||
15367 | } | ||||
15368 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15369 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15370 | ac_cv_have_getc_unlocked=yes |
15371 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15372 | ac_cv_have_getc_unlocked=no |
15373 | fi | ||||
15374 | rm -f core conftest.err conftest.$ac_objext \ | ||||
15375 | conftest$ac_exeext conftest.$ac_ext | ||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15376 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15377 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
15379 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | ||||
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15380 | if test "$ac_cv_have_getc_unlocked" = yes |
15381 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15382 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15383 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 | [diff] [blame] | 15384 | |
15385 | fi | ||||
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 | [diff] [blame] | 15386 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15387 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 | [diff] [blame] | 15388 | # save the value of LIBS so we don't actually link Python with readline |
15389 | LIBS_no_readline=$LIBS | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15390 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15391 | # On some systems we need to link readline to a termcap compatible |
15392 | # library. NOTE: Keep the precedence of listed libraries synchronised | ||||
15393 | # with setup.py. | ||||
15394 | py_cv_lib_readline=no | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
15396 | $as_echo_n "checking how to link readline libs... " >&6; } | ||||
doko@ubuntu.com | f2967c7 | 2012-06-30 15:32:23 | [diff] [blame] | 15397 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15398 | if test -z "$py_libtermcap"; then |
15399 | READLINE_LIBS="-lreadline" | ||||
15400 | else | ||||
15401 | READLINE_LIBS="-lreadline -l$py_libtermcap" | ||||
15402 | fi | ||||
15403 | LIBS="$READLINE_LIBS $LIBS_no_readline" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15405 | /* end confdefs.h. */ |
15406 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15407 | /* Override any GCC internal prototype to avoid an error. |
15408 | Use char because int might match the return type of a GCC | ||||
15409 | builtin and then its argument prototype would still apply. */ | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15410 | #ifdef __cplusplus |
15411 | extern "C" | ||||
15412 | #endif | ||||
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15413 | char readline (); |
15414 | int | ||||
15415 | main () | ||||
15416 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15417 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15418 | ; |
15419 | return 0; | ||||
15420 | } | ||||
15421 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15422 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15423 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15424 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15425 | rm -f core conftest.err conftest.$ac_objext \ |
15426 | conftest$ac_exeext conftest.$ac_ext | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15427 | if test $py_cv_lib_readline = yes; then |
15428 | break | ||||
15429 | fi | ||||
15430 | done | ||||
15431 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | ||||
15432 | #AC_SUBST([READLINE_LIBS]) | ||||
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 | [diff] [blame] | 15433 | if test $py_cv_lib_readline = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
15435 | $as_echo "none" >&6; } | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15436 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
15438 | $as_echo "$READLINE_LIBS" >&6; } | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15439 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15440 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15441 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 | [diff] [blame] | 15442 | fi |
15443 | |||||
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15444 | # check for readline 2.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15446 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15447 | #include <readline/readline.h> |
15448 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15449 | if ac_fn_c_try_cpp "$LINENO"; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15450 | have_readline=yes |
15451 | else | ||||
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15452 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 15453 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15454 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 15455 | rm -f conftest.err conftest.i conftest.$ac_ext |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15456 | if test $have_readline = yes |
15457 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15459 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15460 | #include <readline/readline.h> |
15461 | |||||
15462 | _ACEOF | ||||
15463 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15464 | $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15465 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15466 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15467 | |
15468 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 15469 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15470 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 | [diff] [blame] | 15472 | /* end confdefs.h. */ |
15473 | #include <readline/readline.h> | ||||
15474 | |||||
15475 | _ACEOF | ||||
15476 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15477 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 | [diff] [blame] | 15478 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15479 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 | [diff] [blame] | 15480 | |
15481 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 15482 | rm -f conftest* |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 | [diff] [blame] | 15483 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 | [diff] [blame] | 15484 | fi |
15485 | |||||
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15486 | # check for readline 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 |
15488 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15489 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15490 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 | [diff] [blame] | 15491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15492 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15493 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15495 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15496 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15497 | /* Override any GCC internal prototype to avoid an error. |
15498 | Use char because int might match the return type of a GCC | ||||
15499 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15500 | #ifdef __cplusplus |
15501 | extern "C" | ||||
15502 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15503 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15504 | int |
15505 | main () | ||||
15506 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15507 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15508 | ; |
15509 | return 0; | ||||
15510 | } | ||||
15511 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15512 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15513 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15514 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15515 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15516 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15517 | rm -f core conftest.err conftest.$ac_objext \ |
15518 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15519 | LIBS=$ac_check_lib_save_LIBS |
15520 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
15522 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15523 | if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 15524 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15525 | $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15526 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15527 | fi |
15528 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 15529 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15530 | # also in 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
15532 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15533 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15534 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15535 | else |
15536 | ac_check_lib_save_LIBS=$LIBS | ||||
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15537 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15539 | /* end confdefs.h. */ |
15540 | |||||
15541 | /* Override any GCC internal prototype to avoid an error. | ||||
15542 | Use char because int might match the return type of a GCC | ||||
15543 | builtin and then its argument prototype would still apply. */ | ||||
15544 | #ifdef __cplusplus | ||||
15545 | extern "C" | ||||
15546 | #endif | ||||
15547 | char rl_completion_display_matches_hook (); | ||||
15548 | int | ||||
15549 | main () | ||||
15550 | { | ||||
15551 | return rl_completion_display_matches_hook (); | ||||
15552 | ; | ||||
15553 | return 0; | ||||
15554 | } | ||||
15555 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15556 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15557 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
15558 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15559 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15560 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15561 | rm -f core conftest.err conftest.$ac_objext \ |
15562 | conftest$ac_exeext conftest.$ac_ext | ||||
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15563 | LIBS=$ac_check_lib_save_LIBS |
15564 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
15566 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15567 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15568 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15569 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 | [diff] [blame] | 15570 | |
15571 | fi | ||||
15572 | |||||
15573 | |||||
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 | [diff] [blame] | 15574 | # also in 4.0, but not in editline |
15575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 | ||||
15576 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } | ||||
15577 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : | ||||
15578 | $as_echo_n "(cached) " >&6 | ||||
15579 | else | ||||
15580 | ac_check_lib_save_LIBS=$LIBS | ||||
15581 | LIBS="-lreadline $READLINE_LIBS $LIBS" | ||||
15582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15583 | /* end confdefs.h. */ | ||||
15584 | |||||
15585 | /* Override any GCC internal prototype to avoid an error. | ||||
15586 | Use char because int might match the return type of a GCC | ||||
15587 | builtin and then its argument prototype would still apply. */ | ||||
15588 | #ifdef __cplusplus | ||||
15589 | extern "C" | ||||
15590 | #endif | ||||
15591 | char rl_resize_terminal (); | ||||
15592 | int | ||||
15593 | main () | ||||
15594 | { | ||||
15595 | return rl_resize_terminal (); | ||||
15596 | ; | ||||
15597 | return 0; | ||||
15598 | } | ||||
15599 | _ACEOF | ||||
15600 | if ac_fn_c_try_link "$LINENO"; then : | ||||
15601 | ac_cv_lib_readline_rl_resize_terminal=yes | ||||
15602 | else | ||||
15603 | ac_cv_lib_readline_rl_resize_terminal=no | ||||
15604 | fi | ||||
15605 | rm -f core conftest.err conftest.$ac_objext \ | ||||
15606 | conftest$ac_exeext conftest.$ac_ext | ||||
15607 | LIBS=$ac_check_lib_save_LIBS | ||||
15608 | fi | ||||
15609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 | ||||
15610 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } | ||||
15611 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : | ||||
15612 | |||||
15613 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h | ||||
15614 | |||||
15615 | fi | ||||
15616 | |||||
15617 | |||||
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15618 | # check for readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 |
15620 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15621 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15622 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 | [diff] [blame] | 15623 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15624 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 | [diff] [blame] | 15625 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15627 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15628 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15629 | /* Override any GCC internal prototype to avoid an error. |
15630 | Use char because int might match the return type of a GCC | ||||
15631 | builtin and then its argument prototype would still apply. */ | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15632 | #ifdef __cplusplus |
15633 | extern "C" | ||||
15634 | #endif | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15635 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15636 | int |
15637 | main () | ||||
15638 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15639 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15640 | ; |
15641 | return 0; | ||||
15642 | } | ||||
15643 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15644 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15645 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 | [diff] [blame] | 15646 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15647 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 | [diff] [blame] | 15648 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15649 | rm -f core conftest.err conftest.$ac_objext \ |
15650 | conftest$ac_exeext conftest.$ac_ext | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15651 | LIBS=$ac_check_lib_save_LIBS |
15652 | fi | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
15654 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15655 | if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 15656 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15657 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 | [diff] [blame] | 15658 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 | [diff] [blame] | 15659 | fi |
15660 | |||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 15661 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15662 | # also in readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15664 | /* end confdefs.h. */ |
15665 | #include <readline/readline.h> | ||||
15666 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15667 | if ac_fn_c_try_cpp "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15668 | have_readline=yes |
15669 | else | ||||
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15670 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 15671 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15672 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 15673 | rm -f conftest.err conftest.i conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15674 | if test $have_readline = yes |
15675 | then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15677 | /* end confdefs.h. */ |
15678 | #include <readline/readline.h> | ||||
15679 | |||||
15680 | _ACEOF | ||||
15681 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15682 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15683 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15684 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15685 | |
15686 | fi | ||||
Matthias Klose | c80c93f | 2010-04-24 17:04:35 | [diff] [blame] | 15687 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 | [diff] [blame] | 15688 | |
15689 | fi | ||||
15690 | |||||
Benjamin Peterson | d1e22ba | 2014-11-26 20:35:12 | [diff] [blame] | 15691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 |
15692 | $as_echo_n "checking for append_history in -lreadline... " >&6; } | ||||
15693 | if ${ac_cv_lib_readline_append_history+:} false; then : | ||||
15694 | $as_echo_n "(cached) " >&6 | ||||
15695 | else | ||||
15696 | ac_check_lib_save_LIBS=$LIBS | ||||
15697 | LIBS="-lreadline $READLINE_LIBS $LIBS" | ||||
15698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
15699 | /* end confdefs.h. */ | ||||
15700 | |||||
15701 | /* Override any GCC internal prototype to avoid an error. | ||||
15702 | Use char because int might match the return type of a GCC | ||||
15703 | builtin and then its argument prototype would still apply. */ | ||||
15704 | #ifdef __cplusplus | ||||
15705 | extern "C" | ||||
15706 | #endif | ||||
15707 | char append_history (); | ||||
15708 | int | ||||
15709 | main () | ||||
15710 | { | ||||
15711 | return append_history (); | ||||
15712 | ; | ||||
15713 | return 0; | ||||
15714 | } | ||||
15715 | _ACEOF | ||||
15716 | if ac_fn_c_try_link "$LINENO"; then : | ||||
15717 | ac_cv_lib_readline_append_history=yes | ||||
15718 | else | ||||
15719 | ac_cv_lib_readline_append_history=no | ||||
15720 | fi | ||||
15721 | rm -f core conftest.err conftest.$ac_objext \ | ||||
15722 | conftest$ac_exeext conftest.$ac_ext | ||||
15723 | LIBS=$ac_check_lib_save_LIBS | ||||
15724 | fi | ||||
15725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 | ||||
15726 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } | ||||
15727 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : | ||||
15728 | |||||
15729 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h | ||||
15730 | |||||
15731 | fi | ||||
15732 | |||||
15733 | |||||
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 | [diff] [blame] | 15734 | # End of readline checks: restore LIBS |
15735 | LIBS=$LIBS_no_readline | ||||
15736 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
15738 | $as_echo_n "checking for broken nice()... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15739 | if ${ac_cv_broken_nice+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15740 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 15741 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15742 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15743 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 | [diff] [blame] | 15744 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15745 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15747 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15748 | |
Benjamin Peterson | 0395869 | 2019-02-26 05:59:37 | [diff] [blame] | 15749 | #include <stdlib.h> |
15750 | #include <unistd.h> | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15751 | int main() |
15752 | { | ||||
15753 | int val1 = nice(1); | ||||
15754 | if (val1 != -1 && val1 == nice(2)) | ||||
15755 | exit(0); | ||||
15756 | exit(1); | ||||
15757 | } | ||||
15758 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15759 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15760 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15761 | ac_cv_broken_nice=yes |
15762 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15763 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15764 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15765 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15766 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15767 | fi |
15768 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15769 | fi |
15770 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
15772 | $as_echo "$ac_cv_broken_nice" >&6; } | ||||
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15773 | if test "$ac_cv_broken_nice" = yes |
15774 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 15775 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15776 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 | [diff] [blame] | 15777 | |
15778 | fi | ||||
15779 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
15781 | $as_echo_n "checking for broken poll()... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15782 | if ${ac_cv_broken_poll+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15783 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15784 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15785 | if test "$cross_compiling" = yes; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15786 | ac_cv_broken_poll=no |
15787 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15789 | /* end confdefs.h. */ |
15790 | |||||
15791 | #include <poll.h> | ||||
15792 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15793 | int main() |
15794 | { | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15795 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15796 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15797 | |
15798 | close (42); | ||||
15799 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15800 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15801 | if (poll_test < 0) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15802 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15803 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15804 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15805 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15806 | return 1; |
15807 | } | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15808 | |
15809 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15810 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15811 | ac_cv_broken_poll=yes |
15812 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15813 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15814 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15815 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15816 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15817 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15818 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 15819 | fi |
15820 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
15822 | $as_echo "$ac_cv_broken_poll" >&6; } | ||||
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15823 | if test "$ac_cv_broken_poll" = yes |
15824 | then | ||||
15825 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15826 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 | [diff] [blame] | 15827 | |
15828 | fi | ||||
15829 | |||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 | [diff] [blame] | 15830 | # check tzset(3) exists and works like we expect it to |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
15832 | $as_echo_n "checking for working tzset()... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15833 | if ${ac_cv_working_tzset+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15834 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15835 | else |
15836 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15837 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15838 | ac_cv_working_tzset=no |
15839 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15841 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15842 | |
15843 | #include <stdlib.h> | ||||
15844 | #include <time.h> | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15845 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 | [diff] [blame] | 15846 | |
15847 | #if HAVE_TZNAME | ||||
15848 | extern char *tzname[]; | ||||
15849 | #endif | ||||
15850 | |||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15851 | int main() |
15852 | { | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15853 | /* Note that we need to ensure that not only does tzset(3) |
15854 | do 'something' with localtime, but it works as documented | ||||
15855 | in the library reference and as expected by the test suite. | ||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 | [diff] [blame] | 15856 | This includes making sure that tzname is set properly if |
15857 | tm->tm_zone does not exist since it is the alternative way | ||||
15858 | of getting timezone info. | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15859 | |
15860 | Red Hat 6.2 doesn't understand the southern hemisphere | ||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 | [diff] [blame] | 15861 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15862 | */ |
15863 | |||||
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 | [diff] [blame] | 15864 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15865 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
15866 | |||||
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 | [diff] [blame] | 15867 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15868 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15869 | if (localtime(&groundhogday)->tm_hour != 0) |
15870 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 | [diff] [blame] | 15871 | #if HAVE_TZNAME |
15872 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ | ||||
15873 | if (strcmp(tzname[0], "UTC") || | ||||
15874 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) | ||||
15875 | exit(1); | ||||
15876 | #endif | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15877 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 | [diff] [blame] | 15878 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15879 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15880 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15881 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 | [diff] [blame] | 15882 | #if HAVE_TZNAME |
15883 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | ||||
15884 | exit(1); | ||||
15885 | #endif | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15886 | |
15887 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | ||||
15888 | tzset(); | ||||
15889 | if (localtime(&groundhogday)->tm_hour != 11) | ||||
15890 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 | [diff] [blame] | 15891 | #if HAVE_TZNAME |
15892 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | ||||
15893 | exit(1); | ||||
15894 | #endif | ||||
15895 | |||||
15896 | #if HAVE_STRUCT_TM_TM_ZONE | ||||
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15897 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
15898 | exit(1); | ||||
15899 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | ||||
15900 | exit(1); | ||||
Brett Cannon | 4380242 | 2005-02-10 20:48:03 | [diff] [blame] | 15901 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 | [diff] [blame] | 15902 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15903 | exit(0); |
15904 | } | ||||
15905 | |||||
15906 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15907 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15908 | ac_cv_working_tzset=yes |
15909 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15910 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15911 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15912 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15913 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15914 | fi |
15915 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15916 | fi |
15917 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
15919 | $as_echo "$ac_cv_working_tzset" >&6; } | ||||
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15920 | if test "$ac_cv_working_tzset" = yes |
15921 | then | ||||
15922 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15923 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 | [diff] [blame] | 15924 | |
15925 | fi | ||||
15926 | |||||
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15927 | # Look for subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
15929 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15930 | if ${ac_cv_stat_tv_nsec+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15931 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15932 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 15934 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15935 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15936 | int |
15937 | main () | ||||
15938 | { | ||||
15939 | |||||
15940 | struct stat st; | ||||
15941 | st.st_mtim.tv_nsec = 1; | ||||
15942 | |||||
15943 | ; | ||||
15944 | return 0; | ||||
15945 | } | ||||
15946 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15947 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 | [diff] [blame] | 15948 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15949 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15950 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15951 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15953 | fi | ||||
15954 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
15956 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | ||||
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15957 | if test "$ac_cv_stat_tv_nsec" = yes |
15958 | then | ||||
15959 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15960 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 | [diff] [blame] | 15961 | |
15962 | fi | ||||
15963 | |||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15964 | # Look for BSD style subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
15966 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 15967 | if ${ac_cv_stat_tv_nsec2+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15968 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15969 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15971 | /* end confdefs.h. */ |
15972 | #include <sys/stat.h> | ||||
15973 | int | ||||
15974 | main () | ||||
15975 | { | ||||
15976 | |||||
15977 | struct stat st; | ||||
15978 | st.st_mtimespec.tv_nsec = 1; | ||||
15979 | |||||
15980 | ; | ||||
15981 | return 0; | ||||
15982 | } | ||||
15983 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15984 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15985 | ac_cv_stat_tv_nsec2=yes |
15986 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15987 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15988 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 15989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15990 | fi | ||||
15991 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
15993 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | ||||
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15994 | if test "$ac_cv_stat_tv_nsec2" = yes |
15995 | then | ||||
15996 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 15997 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 | [diff] [blame] | 15998 | |
15999 | fi | ||||
16000 | |||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 18:13:44 | [diff] [blame] | 16001 | # first curses header check |
doko@ubuntu.com | 9dc823d | 2012-07-07 01:06:42 | [diff] [blame] | 16002 | ac_save_cppflags="$CPPFLAGS" |
Xavier de Gaye | e13c320 | 2016-12-13 15:04:14 | [diff] [blame] | 16003 | if test "$cross_compiling" = no; then |
16004 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | ||||
16005 | fi | ||||
doko@ubuntu.com | 1a4f561 | 2014-04-17 18:13:44 | [diff] [blame] | 16006 | |
16007 | for ac_header in curses.h ncurses.h | ||||
16008 | do : | ||||
16009 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||||
16010 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||||
16011 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||||
16012 | cat >>confdefs.h <<_ACEOF | ||||
16013 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||||
16014 | _ACEOF | ||||
16015 | |||||
16016 | fi | ||||
16017 | |||||
16018 | done | ||||
16019 | |||||
16020 | |||||
16021 | # On Solaris, term.h requires curses.h | ||||
16022 | for ac_header in term.h | ||||
16023 | do : | ||||
16024 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | ||||
16025 | #ifdef HAVE_CURSES_H | ||||
16026 | #include <curses.h> | ||||
16027 | #endif | ||||
16028 | |||||
16029 | " | ||||
16030 | if test "x$ac_cv_header_term_h" = xyes; then : | ||||
16031 | cat >>confdefs.h <<_ACEOF | ||||
16032 | #define HAVE_TERM_H 1 | ||||
16033 | _ACEOF | ||||
16034 | |||||
16035 | fi | ||||
16036 | |||||
16037 | done | ||||
16038 | |||||
16039 | |||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16040 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
16042 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 16043 | if ${ac_cv_mvwdelch_is_expression+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16044 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16045 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 16047 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16048 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16049 | int |
16050 | main () | ||||
16051 | { | ||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16052 | |
16053 | int rtn; | ||||
16054 | rtn = mvwdelch(0,0,0); | ||||
16055 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16056 | ; |
16057 | return 0; | ||||
16058 | } | ||||
16059 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16060 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16061 | ac_cv_mvwdelch_is_expression=yes |
16062 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16063 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16064 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16066 | fi | ||||
16067 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
16069 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | ||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16070 | |
16071 | if test "$ac_cv_mvwdelch_is_expression" = yes | ||||
16072 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16073 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16074 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16075 | |
16076 | fi | ||||
16077 | |||||
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 12:05:26 | [diff] [blame] | 16078 | # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque |
16079 | # structs since version 5.7. If the macro is defined as zero before including | ||||
16080 | # [n]curses.h, ncurses will expose fields of the structs regardless of the | ||||
16081 | # configuration. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
16083 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 16084 | if ${ac_cv_window_has_flags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16085 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16086 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 16088 | /* end confdefs.h. */ |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 12:05:26 | [diff] [blame] | 16089 | |
16090 | #define NCURSES_OPAQUE 0 | ||||
16091 | #include <curses.h> | ||||
16092 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16093 | int |
16094 | main () | ||||
16095 | { | ||||
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16096 | |
16097 | WINDOW *w; | ||||
16098 | w->_flags = 0; | ||||
16099 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16100 | ; |
16101 | return 0; | ||||
16102 | } | ||||
16103 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16104 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16105 | ac_cv_window_has_flags=yes |
16106 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16107 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16108 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16110 | fi | ||||
16111 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
16113 | $as_echo "$ac_cv_window_has_flags" >&6; } | ||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 16114 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16115 | |
16116 | if test "$ac_cv_window_has_flags" = yes | ||||
16117 | then | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16118 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16119 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 | [diff] [blame] | 16120 | |
16121 | fi | ||||
16122 | |||||
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 12:05:26 | [diff] [blame] | 16123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 |
16124 | $as_echo_n "checking for is_pad... " >&6; } | ||||
16125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16126 | /* end confdefs.h. */ | ||||
16127 | #include <curses.h> | ||||
16128 | int | ||||
16129 | main () | ||||
16130 | { | ||||
16131 | |||||
16132 | #ifndef is_pad | ||||
16133 | void *x=is_pad | ||||
16134 | #endif | ||||
16135 | |||||
16136 | ; | ||||
16137 | return 0; | ||||
16138 | } | ||||
16139 | _ACEOF | ||||
16140 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16141 | |||||
16142 | $as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h | ||||
16143 | |||||
16144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16145 | $as_echo "yes" >&6; } | ||||
16146 | else | ||||
16147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16148 | $as_echo "no" >&6; } | ||||
16149 | |||||
16150 | fi | ||||
16151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16152 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
16154 | $as_echo_n "checking for is_term_resized... " >&6; } | ||||
16155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16156 | /* end confdefs.h. */ |
16157 | #include <curses.h> | ||||
16158 | int | ||||
16159 | main () | ||||
16160 | { | ||||
16161 | void *x=is_term_resized | ||||
16162 | ; | ||||
16163 | return 0; | ||||
16164 | } | ||||
16165 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16166 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 | [diff] [blame] | 16167 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16168 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16169 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 16170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16171 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16172 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16174 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16175 | |
16176 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16178 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
16180 | $as_echo_n "checking for resize_term... " >&6; } | ||||
16181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16182 | /* end confdefs.h. */ |
16183 | #include <curses.h> | ||||
16184 | int | ||||
16185 | main () | ||||
16186 | { | ||||
16187 | void *x=resize_term | ||||
16188 | ; | ||||
16189 | return 0; | ||||
16190 | } | ||||
16191 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16192 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16193 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16194 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16195 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 16196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16197 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16198 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16200 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16201 | |
16202 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16204 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
16206 | $as_echo_n "checking for resizeterm... " >&6; } | ||||
16207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16208 | /* end confdefs.h. */ |
16209 | #include <curses.h> | ||||
16210 | int | ||||
16211 | main () | ||||
16212 | { | ||||
16213 | void *x=resizeterm | ||||
16214 | ; | ||||
16215 | return 0; | ||||
16216 | } | ||||
16217 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16218 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16219 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16220 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16221 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 | [diff] [blame] | 16222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16223 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16224 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16226 | $as_echo "no" >&6; } | ||||
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 | [diff] [blame] | 16227 | |
16228 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 11:56:44 | [diff] [blame] | 16230 | |
16231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5 | ||||
16232 | $as_echo_n "checking for immedok... " >&6; } | ||||
16233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16234 | /* end confdefs.h. */ | ||||
16235 | #include <curses.h> | ||||
16236 | int | ||||
16237 | main () | ||||
16238 | { | ||||
16239 | |||||
16240 | #ifndef immedok | ||||
16241 | void *x=immedok | ||||
16242 | #endif | ||||
16243 | |||||
16244 | ; | ||||
16245 | return 0; | ||||
16246 | } | ||||
16247 | _ACEOF | ||||
16248 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16249 | |||||
16250 | $as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h | ||||
16251 | |||||
16252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16253 | $as_echo "yes" >&6; } | ||||
16254 | else | ||||
16255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16256 | $as_echo "no" >&6; } | ||||
16257 | |||||
16258 | fi | ||||
16259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16260 | |||||
16261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5 | ||||
16262 | $as_echo_n "checking for syncok... " >&6; } | ||||
16263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16264 | /* end confdefs.h. */ | ||||
16265 | #include <curses.h> | ||||
16266 | int | ||||
16267 | main () | ||||
16268 | { | ||||
16269 | |||||
16270 | #ifndef syncok | ||||
16271 | void *x=syncok | ||||
16272 | #endif | ||||
16273 | |||||
16274 | ; | ||||
16275 | return 0; | ||||
16276 | } | ||||
16277 | _ACEOF | ||||
16278 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16279 | |||||
16280 | $as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h | ||||
16281 | |||||
16282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16283 | $as_echo "yes" >&6; } | ||||
16284 | else | ||||
16285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16286 | $as_echo "no" >&6; } | ||||
16287 | |||||
16288 | fi | ||||
16289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16290 | |||||
Serhiy Storchaka | 894ebd0 | 2017-11-01 12:34:20 | [diff] [blame] | 16291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5 |
16292 | $as_echo_n "checking for wchgat... " >&6; } | ||||
16293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16294 | /* end confdefs.h. */ | ||||
16295 | #include <curses.h> | ||||
16296 | int | ||||
16297 | main () | ||||
16298 | { | ||||
16299 | |||||
16300 | #ifndef wchgat | ||||
16301 | void *x=wchgat | ||||
16302 | #endif | ||||
16303 | |||||
16304 | ; | ||||
16305 | return 0; | ||||
16306 | } | ||||
16307 | _ACEOF | ||||
16308 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16309 | |||||
16310 | $as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h | ||||
16311 | |||||
16312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16313 | $as_echo "yes" >&6; } | ||||
16314 | else | ||||
16315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16316 | $as_echo "no" >&6; } | ||||
16317 | |||||
16318 | fi | ||||
16319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16320 | |||||
Serhiy Storchaka | baac01e | 2017-10-31 11:56:44 | [diff] [blame] | 16321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5 |
16322 | $as_echo_n "checking for filter... " >&6; } | ||||
16323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16324 | /* end confdefs.h. */ | ||||
16325 | #include <curses.h> | ||||
16326 | int | ||||
16327 | main () | ||||
16328 | { | ||||
16329 | |||||
16330 | #ifndef filter | ||||
16331 | void *x=filter | ||||
16332 | #endif | ||||
16333 | |||||
16334 | ; | ||||
16335 | return 0; | ||||
16336 | } | ||||
16337 | _ACEOF | ||||
16338 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16339 | |||||
16340 | $as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h | ||||
16341 | |||||
16342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16343 | $as_echo "yes" >&6; } | ||||
16344 | else | ||||
16345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16346 | $as_echo "no" >&6; } | ||||
16347 | |||||
16348 | fi | ||||
16349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16350 | |||||
16351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5 | ||||
16352 | $as_echo_n "checking for has_key... " >&6; } | ||||
16353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16354 | /* end confdefs.h. */ | ||||
16355 | #include <curses.h> | ||||
16356 | int | ||||
16357 | main () | ||||
16358 | { | ||||
16359 | |||||
16360 | #ifndef has_key | ||||
16361 | void *x=has_key | ||||
16362 | #endif | ||||
16363 | |||||
16364 | ; | ||||
16365 | return 0; | ||||
16366 | } | ||||
16367 | _ACEOF | ||||
16368 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16369 | |||||
16370 | $as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h | ||||
16371 | |||||
16372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16373 | $as_echo "yes" >&6; } | ||||
16374 | else | ||||
16375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16376 | $as_echo "no" >&6; } | ||||
16377 | |||||
16378 | fi | ||||
16379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16380 | |||||
16381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5 | ||||
16382 | $as_echo_n "checking for typeahead... " >&6; } | ||||
16383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16384 | /* end confdefs.h. */ | ||||
16385 | #include <curses.h> | ||||
16386 | int | ||||
16387 | main () | ||||
16388 | { | ||||
16389 | |||||
16390 | #ifndef typeahead | ||||
16391 | void *x=typeahead | ||||
16392 | #endif | ||||
16393 | |||||
16394 | ; | ||||
16395 | return 0; | ||||
16396 | } | ||||
16397 | _ACEOF | ||||
16398 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16399 | |||||
16400 | $as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h | ||||
16401 | |||||
16402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16403 | $as_echo "yes" >&6; } | ||||
16404 | else | ||||
16405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16406 | $as_echo "no" >&6; } | ||||
16407 | |||||
16408 | fi | ||||
16409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16410 | |||||
16411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5 | ||||
16412 | $as_echo_n "checking for use_env... " >&6; } | ||||
16413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16414 | /* end confdefs.h. */ | ||||
16415 | #include <curses.h> | ||||
16416 | int | ||||
16417 | main () | ||||
16418 | { | ||||
16419 | |||||
16420 | #ifndef use_env | ||||
16421 | void *x=use_env | ||||
16422 | #endif | ||||
16423 | |||||
16424 | ; | ||||
16425 | return 0; | ||||
16426 | } | ||||
16427 | _ACEOF | ||||
16428 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16429 | |||||
16430 | $as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h | ||||
16431 | |||||
16432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
16433 | $as_echo "yes" >&6; } | ||||
16434 | else | ||||
16435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
16436 | $as_echo "no" >&6; } | ||||
16437 | |||||
16438 | fi | ||||
16439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
doko@ubuntu.com | 9dc823d | 2012-07-07 01:06:42 | [diff] [blame] | 16440 | # last curses configure check |
16441 | CPPFLAGS=$ac_save_cppflags | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 16442 | |
doko@ubuntu.com | b457b9b | 2012-06-30 17:28:16 | [diff] [blame] | 16443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 |
16444 | $as_echo "$as_me: checking for device files" >&6;} | ||||
16445 | |||||
16446 | if test "x$cross_compiling" = xyes; then | ||||
16447 | if test "${ac_cv_file__dev_ptmx+set}" != set; then | ||||
16448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | ||||
16449 | $as_echo_n "checking for /dev/ptmx... " >&6; } | ||||
16450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | ||||
16451 | $as_echo "not set" >&6; } | ||||
16452 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | ||||
16453 | fi | ||||
16454 | if test "${ac_cv_file__dev_ptc+set}" != set; then | ||||
16455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | ||||
16456 | $as_echo_n "checking for /dev/ptc... " >&6; } | ||||
16457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | ||||
16458 | $as_echo "not set" >&6; } | ||||
16459 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | ||||
16460 | fi | ||||
16461 | fi | ||||
16462 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
16464 | $as_echo_n "checking for /dev/ptmx... " >&6; } | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 17:28:16 | [diff] [blame] | 16465 | if ${ac_cv_file__dev_ptmx+:} false; then : |
16466 | $as_echo_n "(cached) " >&6 | ||||
16467 | else | ||||
16468 | test "$cross_compiling" = yes && | ||||
16469 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||||
16470 | if test -r "/dev/ptmx"; then | ||||
16471 | ac_cv_file__dev_ptmx=yes | ||||
16472 | else | ||||
16473 | ac_cv_file__dev_ptmx=no | ||||
16474 | fi | ||||
16475 | fi | ||||
16476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | ||||
16477 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | ||||
16478 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 16479 | |
doko@ubuntu.com | b457b9b | 2012-06-30 17:28:16 | [diff] [blame] | 16480 | fi |
16481 | |||||
16482 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | ||||
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 | [diff] [blame] | 16483 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16484 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 | [diff] [blame] | 16485 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 | [diff] [blame] | 16486 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
16488 | $as_echo_n "checking for /dev/ptc... " >&6; } | ||||
doko@ubuntu.com | b457b9b | 2012-06-30 17:28:16 | [diff] [blame] | 16489 | if ${ac_cv_file__dev_ptc+:} false; then : |
16490 | $as_echo_n "(cached) " >&6 | ||||
16491 | else | ||||
16492 | test "$cross_compiling" = yes && | ||||
16493 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||||
16494 | if test -r "/dev/ptc"; then | ||||
16495 | ac_cv_file__dev_ptc=yes | ||||
16496 | else | ||||
16497 | ac_cv_file__dev_ptc=no | ||||
16498 | fi | ||||
16499 | fi | ||||
16500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | ||||
16501 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | ||||
16502 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 16503 | |
doko@ubuntu.com | b457b9b | 2012-06-30 17:28:16 | [diff] [blame] | 16504 | fi |
16505 | |||||
16506 | if test "x$ac_cv_file__dev_ptc" = xyes; then | ||||
Neal Norwitz | 865400f | 2003-03-21 01:42:58 | [diff] [blame] | 16507 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16508 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 | [diff] [blame] | 16509 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 | [diff] [blame] | 16510 | fi |
16511 | |||||
Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 | [diff] [blame] | 16512 | if test $ac_sys_system = Darwin |
16513 | then | ||||
16514 | LIBS="$LIBS -framework CoreFoundation" | ||||
16515 | fi | ||||
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 | [diff] [blame] | 16516 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
16518 | $as_echo_n "checking for %zd printf() format support... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 16519 | if ${ac_cv_have_size_t_format+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16520 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16521 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16522 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 | [diff] [blame] | 16523 | ac_cv_have_size_t_format="cross -- assuming yes" |
16524 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16525 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16527 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16528 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16529 | #include <stdio.h> |
16530 | #include <stddef.h> | ||||
16531 | #include <string.h> | ||||
16532 | |||||
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 | [diff] [blame] | 16533 | #ifdef HAVE_SYS_TYPES_H |
16534 | #include <sys/types.h> | ||||
16535 | #endif | ||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 16536 | |
16537 | #ifdef HAVE_SSIZE_T | ||||
16538 | typedef ssize_t Py_ssize_t; | ||||
16539 | #elif SIZEOF_VOID_P == SIZEOF_LONG | ||||
16540 | typedef long Py_ssize_t; | ||||
16541 | #else | ||||
16542 | typedef int Py_ssize_t; | ||||
16543 | #endif | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16544 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 | [diff] [blame] | 16545 | int main() |
16546 | { | ||||
16547 | char buffer[256]; | ||||
16548 | |||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16549 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
16550 | return 1; | ||||
16551 | |||||
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 16552 | if (strcmp(buffer, "123")) |
16553 | return 1; | ||||
16554 | |||||
16555 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | ||||
16556 | return 1; | ||||
16557 | |||||
16558 | if (strcmp(buffer, "-123")) | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16559 | return 1; |
16560 | |||||
16561 | return 0; | ||||
16562 | } | ||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16563 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 16564 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16565 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16566 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 16567 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16568 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 | [diff] [blame] | 16569 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16570 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16571 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 | [diff] [blame] | 16572 | fi |
16573 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16574 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
16576 | $as_echo "$ac_cv_have_size_t_format" >&6; } | ||||
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 | [diff] [blame] | 16577 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16578 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16579 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16580 | |
16581 | fi | ||||
16582 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16583 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 | [diff] [blame] | 16584 | #ifdef HAVE_SYS_TYPES_H |
16585 | #include <sys/types.h> | ||||
16586 | #endif | ||||
16587 | #ifdef HAVE_SYS_SOCKET_H | ||||
16588 | #include <sys/socket.h> | ||||
16589 | #endif | ||||
16590 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16591 | " |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 16592 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 | [diff] [blame] | 16593 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 16594 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 | [diff] [blame] | 16595 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16596 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 | [diff] [blame] | 16597 | |
16598 | fi | ||||
16599 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 16600 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
16602 | $as_echo_n "checking for broken mbstowcs... " >&6; } | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 16603 | if ${ac_cv_broken_mbstowcs+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16604 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16605 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16606 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16607 | ac_cv_broken_mbstowcs=no |
16608 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16610 | /* end confdefs.h. */ |
16611 | |||||
Stefan Krah | 19c2139 | 2012-11-22 22:47:32 | [diff] [blame] | 16612 | #include <stdio.h> |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16613 | #include<stdlib.h> |
16614 | int main() { | ||||
16615 | size_t len = -1; | ||||
16616 | const char *str = "text"; | ||||
16617 | len = mbstowcs(NULL, str, 0); | ||||
16618 | return (len != 4); | ||||
16619 | } | ||||
16620 | |||||
16621 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16622 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16623 | ac_cv_broken_mbstowcs=no |
16624 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16625 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16626 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16627 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16628 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16629 | fi |
16630 | |||||
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 | [diff] [blame] | 16631 | fi |
16632 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
16634 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | ||||
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16635 | if test "$ac_cv_broken_mbstowcs" = yes |
16636 | then | ||||
16637 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16638 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 | [diff] [blame] | 16639 | |
16640 | fi | ||||
16641 | |||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16642 | # Check for --with-computed-gotos |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
16644 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16645 | |
16646 | # Check whether --with-computed-gotos was given. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16647 | if test "${with_computed_gotos+set}" = set; then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16648 | withval=$with_computed_gotos; |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 | [diff] [blame] | 16649 | if test "$withval" = yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16650 | then |
16651 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16652 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16653 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16655 | $as_echo "yes" >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16656 | fi |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 | [diff] [blame] | 16657 | if test "$withval" = no |
16658 | then | ||||
16659 | |||||
16660 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | ||||
16661 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16663 | $as_echo "no" >&6; } | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16664 | fi |
16665 | |||||
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 | [diff] [blame] | 16666 | else |
16667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | ||||
16668 | $as_echo "no value specified" >&6; } | ||||
16669 | fi | ||||
16670 | |||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16671 | |
Matthias Klose | b17289e | 2012-03-15 18:51:34 | [diff] [blame] | 16672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 |
16673 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | ||||
16674 | if ${ac_cv_computed_gotos+:} false; then : | ||||
16675 | $as_echo_n "(cached) " >&6 | ||||
16676 | else | ||||
16677 | if test "$cross_compiling" = yes; then : | ||||
16678 | if test "${with_computed_gotos+set}" = set; then | ||||
16679 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | ||||
16680 | else | ||||
16681 | ac_cv_computed_gotos=no | ||||
16682 | fi | ||||
16683 | else | ||||
16684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16685 | /* end confdefs.h. */ | ||||
16686 | |||||
16687 | int main(int argc, char **argv) | ||||
16688 | { | ||||
16689 | static void *targets[1] = { &&LABEL1 }; | ||||
16690 | goto LABEL2; | ||||
16691 | LABEL1: | ||||
16692 | return 0; | ||||
16693 | LABEL2: | ||||
16694 | goto *targets[0]; | ||||
16695 | return 1; | ||||
16696 | } | ||||
16697 | |||||
16698 | _ACEOF | ||||
16699 | if ac_fn_c_try_run "$LINENO"; then : | ||||
16700 | ac_cv_computed_gotos=yes | ||||
16701 | else | ||||
16702 | ac_cv_computed_gotos=no | ||||
16703 | fi | ||||
16704 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
16705 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
16706 | fi | ||||
16707 | |||||
16708 | fi | ||||
16709 | |||||
16710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | ||||
16711 | $as_echo "$ac_cv_computed_gotos" >&6; } | ||||
16712 | case "$ac_cv_computed_gotos" in yes*) | ||||
16713 | |||||
16714 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | ||||
16715 | |||||
16716 | esac | ||||
16717 | |||||
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 | [diff] [blame] | 16718 | case $ac_sys_system in |
16719 | AIX*) | ||||
16720 | |||||
16721 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | ||||
16722 | ;; | ||||
16723 | esac | ||||
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 | [diff] [blame] | 16724 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 16725 | |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 | [diff] [blame] | 16726 | |
16727 | |||||
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 | [diff] [blame] | 16728 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
16729 | do | ||||
16730 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | ||||
16731 | done | ||||
16732 | |||||
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 16733 | |
Victor Stinner | 5403006 | 2019-04-13 00:50:31 | [diff] [blame] | 16734 | SRCDIRS="Parser Objects Python Modules Modules/_io Programs" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
16736 | $as_echo_n "checking for build directories... " >&6; } | ||||
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 | [diff] [blame] | 16737 | for dir in $SRCDIRS; do |
16738 | if test ! -d $dir; then | ||||
16739 | mkdir $dir | ||||
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 | [diff] [blame] | 16740 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 | [diff] [blame] | 16741 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 16742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
16743 | $as_echo "done" >&6; } | ||||
Fred Drake | 036144d | 2000-10-26 17:09:35 | [diff] [blame] | 16744 | |
Stefan Krah | 1919b7e | 2012-03-21 17:25:23 | [diff] [blame] | 16745 | # Availability of -O2: |
16746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 | ||||
16747 | $as_echo_n "checking for -O2... " >&6; } | ||||
16748 | saved_cflags="$CFLAGS" | ||||
16749 | CFLAGS="-O2" | ||||
16750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16751 | /* end confdefs.h. */ | ||||
16752 | |||||
16753 | int | ||||
16754 | main () | ||||
16755 | { | ||||
16756 | |||||
16757 | |||||
16758 | ; | ||||
16759 | return 0; | ||||
16760 | } | ||||
16761 | _ACEOF | ||||
16762 | if ac_fn_c_try_compile "$LINENO"; then : | ||||
16763 | have_O2=yes | ||||
16764 | else | ||||
16765 | have_O2=no | ||||
16766 | fi | ||||
16767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
16768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | ||||
16769 | $as_echo "$have_O2" >&6; } | ||||
16770 | CFLAGS="$saved_cflags" | ||||
16771 | |||||
16772 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | ||||
16773 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | ||||
16774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 | ||||
16775 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | ||||
16776 | saved_cflags="$CFLAGS" | ||||
16777 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | ||||
16778 | if test "$have_O2" = no; then | ||||
16779 | CFLAGS="" | ||||
16780 | fi | ||||
16781 | if test "$cross_compiling" = yes; then : | ||||
16782 | have_glibc_memmove_bug=undefined | ||||
16783 | else | ||||
16784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16785 | /* end confdefs.h. */ | ||||
16786 | |||||
16787 | #include <stdio.h> | ||||
16788 | #include <stdlib.h> | ||||
16789 | #include <string.h> | ||||
16790 | void foo(void *p, void *q) { memmove(p, q, 19); } | ||||
16791 | int main() { | ||||
16792 | char a[32] = "123456789000000000"; | ||||
16793 | foo(&a[9], a); | ||||
16794 | if (strcmp(a, "123456789123456789000000000") != 0) | ||||
16795 | return 1; | ||||
16796 | foo(a, &a[9]); | ||||
16797 | if (strcmp(a, "123456789000000000") != 0) | ||||
16798 | return 1; | ||||
16799 | return 0; | ||||
16800 | } | ||||
16801 | |||||
16802 | _ACEOF | ||||
16803 | if ac_fn_c_try_run "$LINENO"; then : | ||||
16804 | have_glibc_memmove_bug=no | ||||
16805 | else | ||||
16806 | have_glibc_memmove_bug=yes | ||||
16807 | fi | ||||
16808 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
16809 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
16810 | fi | ||||
16811 | |||||
16812 | CFLAGS="$saved_cflags" | ||||
16813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 | ||||
16814 | $as_echo "$have_glibc_memmove_bug" >&6; } | ||||
16815 | if test "$have_glibc_memmove_bug" = yes; then | ||||
16816 | |||||
16817 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h | ||||
16818 | |||||
16819 | fi | ||||
16820 | |||||
16821 | if test "$have_gcc_asm_for_x87" = yes; then | ||||
16822 | # Some versions of gcc miscompile inline asm: | ||||
16823 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | ||||
16824 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | ||||
16825 | case $CC in | ||||
16826 | *gcc*) | ||||
16827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 | ||||
16828 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | ||||
16829 | saved_cflags="$CFLAGS" | ||||
16830 | CFLAGS="-O2" | ||||
16831 | if test "$cross_compiling" = yes; then : | ||||
16832 | have_ipa_pure_const_bug=undefined | ||||
16833 | else | ||||
16834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16835 | /* end confdefs.h. */ | ||||
16836 | |||||
16837 | __attribute__((noinline)) int | ||||
16838 | foo(int *p) { | ||||
16839 | int r; | ||||
16840 | asm ( "movl \$6, (%1)\n\t" | ||||
16841 | "xorl %0, %0\n\t" | ||||
16842 | : "=r" (r) : "r" (p) : "memory" | ||||
16843 | ); | ||||
16844 | return r; | ||||
16845 | } | ||||
16846 | int main() { | ||||
16847 | int p = 8; | ||||
16848 | if ((foo(&p) ? : p) != 6) | ||||
16849 | return 1; | ||||
16850 | return 0; | ||||
16851 | } | ||||
16852 | |||||
16853 | _ACEOF | ||||
16854 | if ac_fn_c_try_run "$LINENO"; then : | ||||
16855 | have_ipa_pure_const_bug=no | ||||
16856 | else | ||||
16857 | have_ipa_pure_const_bug=yes | ||||
16858 | fi | ||||
16859 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
16860 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
16861 | fi | ||||
16862 | |||||
16863 | CFLAGS="$saved_cflags" | ||||
16864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 | ||||
16865 | $as_echo "$have_ipa_pure_const_bug" >&6; } | ||||
16866 | if test "$have_ipa_pure_const_bug" = yes; then | ||||
16867 | |||||
16868 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h | ||||
16869 | |||||
16870 | fi | ||||
16871 | ;; | ||||
16872 | esac | ||||
16873 | fi | ||||
16874 | |||||
Victor Stinner | 4f5366e | 2015-01-09 01:13:19 | [diff] [blame] | 16875 | # Check for stdatomic.h |
16876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 | ||||
16877 | $as_echo_n "checking for stdatomic.h... " >&6; } | ||||
16878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16879 | /* end confdefs.h. */ | ||||
16880 | |||||
16881 | |||||
16882 | #include <stdatomic.h> | ||||
Miss Skeleton (bot) | b102e4f | 2019-10-22 20:17:21 | [diff] [blame] | 16883 | atomic_int int_var; |
16884 | atomic_uintptr_t uintptr_var; | ||||
Victor Stinner | 4f5366e | 2015-01-09 01:13:19 | [diff] [blame] | 16885 | int main() { |
Miss Skeleton (bot) | b102e4f | 2019-10-22 20:17:21 | [diff] [blame] | 16886 | atomic_store_explicit(&int_var, 5, memory_order_relaxed); |
16887 | atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed); | ||||
16888 | int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst); | ||||
Victor Stinner | 4f5366e | 2015-01-09 01:13:19 | [diff] [blame] | 16889 | return 0; |
16890 | } | ||||
16891 | |||||
16892 | |||||
16893 | _ACEOF | ||||
16894 | if ac_fn_c_try_link "$LINENO"; then : | ||||
16895 | have_stdatomic_h=yes | ||||
16896 | else | ||||
16897 | have_stdatomic_h=no | ||||
16898 | fi | ||||
16899 | rm -f core conftest.err conftest.$ac_objext \ | ||||
16900 | conftest$ac_exeext conftest.$ac_ext | ||||
16901 | |||||
16902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 | ||||
16903 | $as_echo "$have_stdatomic_h" >&6; } | ||||
16904 | |||||
16905 | if test "$have_stdatomic_h" = yes; then | ||||
16906 | |||||
16907 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h | ||||
16908 | |||||
16909 | fi | ||||
16910 | |||||
16911 | # Check for GCC >= 4.7 __atomic builtins | ||||
16912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 | ||||
16913 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } | ||||
16914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16915 | /* end confdefs.h. */ | ||||
16916 | |||||
16917 | |||||
16918 | volatile int val = 1; | ||||
16919 | int main() { | ||||
16920 | __atomic_load_n(&val, __ATOMIC_SEQ_CST); | ||||
16921 | return 0; | ||||
16922 | } | ||||
16923 | |||||
16924 | |||||
16925 | _ACEOF | ||||
16926 | if ac_fn_c_try_link "$LINENO"; then : | ||||
16927 | have_builtin_atomic=yes | ||||
16928 | else | ||||
16929 | have_builtin_atomic=no | ||||
16930 | fi | ||||
16931 | rm -f core conftest.err conftest.$ac_objext \ | ||||
16932 | conftest$ac_exeext conftest.$ac_ext | ||||
16933 | |||||
16934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 | ||||
16935 | $as_echo "$have_builtin_atomic" >&6; } | ||||
16936 | |||||
16937 | if test "$have_builtin_atomic" = yes; then | ||||
16938 | |||||
16939 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h | ||||
16940 | |||||
16941 | fi | ||||
16942 | |||||
Ned Deily | 322f5ba | 2013-11-22 07:01:59 | [diff] [blame] | 16943 | # ensurepip option |
16944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | ||||
16945 | $as_echo_n "checking for ensurepip... " >&6; } | ||||
16946 | |||||
16947 | # Check whether --with-ensurepip was given. | ||||
16948 | if test "${with_ensurepip+set}" = set; then : | ||||
16949 | withval=$with_ensurepip; | ||||
16950 | else | ||||
16951 | with_ensurepip=upgrade | ||||
16952 | fi | ||||
16953 | |||||
16954 | case $with_ensurepip in #( | ||||
16955 | yes|upgrade) : | ||||
16956 | ENSUREPIP=upgrade ;; #( | ||||
16957 | install) : | ||||
16958 | ENSUREPIP=install ;; #( | ||||
16959 | no) : | ||||
16960 | ENSUREPIP=no ;; #( | ||||
16961 | *) : | ||||
16962 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | ||||
16963 | esac | ||||
16964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | ||||
16965 | $as_echo "$ENSUREPIP" >&6; } | ||||
16966 | |||||
16967 | |||||
Victor Stinner | 35a97c0 | 2015-03-08 01:59:09 | [diff] [blame] | 16968 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined |
16969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 | ||||
16970 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } | ||||
16971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
16972 | /* end confdefs.h. */ | ||||
16973 | |||||
16974 | |||||
16975 | #include <dirent.h> | ||||
16976 | |||||
16977 | int main() { | ||||
16978 | struct dirent entry; | ||||
16979 | return entry.d_type == DT_UNKNOWN; | ||||
16980 | } | ||||
16981 | |||||
16982 | |||||
16983 | _ACEOF | ||||
16984 | if ac_fn_c_try_link "$LINENO"; then : | ||||
16985 | have_dirent_d_type=yes | ||||
16986 | else | ||||
16987 | have_dirent_d_type=no | ||||
16988 | fi | ||||
16989 | rm -f core conftest.err conftest.$ac_objext \ | ||||
16990 | conftest$ac_exeext conftest.$ac_ext | ||||
16991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 | ||||
16992 | $as_echo "$have_dirent_d_type" >&6; } | ||||
16993 | |||||
16994 | if test "$have_dirent_d_type" = yes; then | ||||
16995 | |||||
16996 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h | ||||
16997 | |||||
16998 | fi | ||||
16999 | |||||
Victor Stinner | 9eb57c5 | 2015-03-19 21:21:49 | [diff] [blame] | 17000 | # check if the Linux getrandom() syscall is available |
17001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 | ||||
17002 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } | ||||
17003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17004 | /* end confdefs.h. */ | ||||
17005 | |||||
17006 | |||||
Victor Stinner | 1b80b24 | 2016-04-12 20:34:58 | [diff] [blame] | 17007 | #include <unistd.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 21:21:49 | [diff] [blame] | 17008 | #include <sys/syscall.h> |
Victor Stinner | dddf484 | 2016-06-07 09:21:42 | [diff] [blame] | 17009 | #include <linux/random.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 21:21:49 | [diff] [blame] | 17010 | |
17011 | int main() { | ||||
Victor Stinner | 9eb57c5 | 2015-03-19 21:21:49 | [diff] [blame] | 17012 | char buffer[1]; |
Victor Stinner | 3abf44e | 2015-09-18 13:38:37 | [diff] [blame] | 17013 | const size_t buflen = sizeof(buffer); |
Victor Stinner | dddf484 | 2016-06-07 09:21:42 | [diff] [blame] | 17014 | const int flags = GRND_NONBLOCK; |
17015 | /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ | ||||
Victor Stinner | 3abf44e | 2015-09-18 13:38:37 | [diff] [blame] | 17016 | (void)syscall(SYS_getrandom, buffer, buflen, flags); |
Victor Stinner | 9eb57c5 | 2015-03-19 21:21:49 | [diff] [blame] | 17017 | return 0; |
17018 | } | ||||
17019 | |||||
17020 | |||||
17021 | _ACEOF | ||||
17022 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17023 | have_getrandom_syscall=yes | ||||
17024 | else | ||||
17025 | have_getrandom_syscall=no | ||||
17026 | fi | ||||
17027 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17028 | conftest$ac_exeext conftest.$ac_ext | ||||
17029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 | ||||
17030 | $as_echo "$have_getrandom_syscall" >&6; } | ||||
17031 | |||||
17032 | if test "$have_getrandom_syscall" = yes; then | ||||
17033 | |||||
17034 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h | ||||
17035 | |||||
17036 | fi | ||||
17037 | |||||
Victor Stinner | 3abf44e | 2015-09-18 13:38:37 | [diff] [blame] | 17038 | # check if the getrandom() function is available |
17039 | # the test was written for the Solaris function of <sys/random.h> | ||||
17040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 | ||||
17041 | $as_echo_n "checking for the getrandom() function... " >&6; } | ||||
17042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17043 | /* end confdefs.h. */ | ||||
17044 | |||||
17045 | |||||
17046 | #include <sys/random.h> | ||||
17047 | |||||
17048 | int main() { | ||||
17049 | char buffer[1]; | ||||
17050 | const size_t buflen = sizeof(buffer); | ||||
17051 | const int flags = 0; | ||||
17052 | /* ignore the result, Python checks for ENOSYS at runtime */ | ||||
17053 | (void)getrandom(buffer, buflen, flags); | ||||
17054 | return 0; | ||||
17055 | } | ||||
17056 | |||||
17057 | |||||
17058 | _ACEOF | ||||
17059 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17060 | have_getrandom=yes | ||||
17061 | else | ||||
17062 | have_getrandom=no | ||||
17063 | fi | ||||
17064 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17065 | conftest$ac_exeext conftest.$ac_ext | ||||
17066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 | ||||
17067 | $as_echo "$have_getrandom" >&6; } | ||||
17068 | |||||
17069 | if test "$have_getrandom" = yes; then | ||||
17070 | |||||
17071 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h | ||||
17072 | |||||
17073 | fi | ||||
17074 | |||||
Christian Heimes | ff5be6e | 2018-01-20 12:19:21 | [diff] [blame] | 17075 | # Check for usable OpenSSL |
17076 | |||||
17077 | found=false | ||||
17078 | |||||
17079 | # Check whether --with-openssl was given. | ||||
17080 | if test "${with_openssl+set}" = set; then : | ||||
17081 | withval=$with_openssl; | ||||
17082 | case "$withval" in | ||||
17083 | "" | y | ye | yes | n | no) | ||||
17084 | as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 | ||||
17085 | ;; | ||||
17086 | *) ssldirs="$withval" | ||||
17087 | ;; | ||||
17088 | esac | ||||
17089 | |||||
17090 | else | ||||
17091 | |||||
17092 | # if pkg-config is installed and openssl has installed a .pc file, | ||||
17093 | # then use that information and don't search ssldirs | ||||
17094 | if test -n "$ac_tool_prefix"; then | ||||
17095 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||||
17096 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||||
17097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
17098 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
17099 | if ${ac_cv_prog_PKG_CONFIG+:} false; then : | ||||
17100 | $as_echo_n "(cached) " >&6 | ||||
17101 | else | ||||
17102 | if test -n "$PKG_CONFIG"; then | ||||
17103 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. | ||||
17104 | else | ||||
17105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
17106 | for as_dir in $PATH | ||||
17107 | do | ||||
17108 | IFS=$as_save_IFS | ||||
17109 | test -z "$as_dir" && as_dir=. | ||||
17110 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
17111 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
17112 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" | ||||
17113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
17114 | break 2 | ||||
17115 | fi | ||||
17116 | done | ||||
17117 | done | ||||
17118 | IFS=$as_save_IFS | ||||
17119 | |||||
17120 | fi | ||||
17121 | fi | ||||
17122 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG | ||||
17123 | if test -n "$PKG_CONFIG"; then | ||||
17124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||||
17125 | $as_echo "$PKG_CONFIG" >&6; } | ||||
17126 | else | ||||
17127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17128 | $as_echo "no" >&6; } | ||||
17129 | fi | ||||
17130 | |||||
17131 | |||||
17132 | fi | ||||
17133 | if test -z "$ac_cv_prog_PKG_CONFIG"; then | ||||
17134 | ac_ct_PKG_CONFIG=$PKG_CONFIG | ||||
17135 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||||
17136 | set dummy pkg-config; ac_word=$2 | ||||
17137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||||
17138 | $as_echo_n "checking for $ac_word... " >&6; } | ||||
17139 | if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then : | ||||
17140 | $as_echo_n "(cached) " >&6 | ||||
17141 | else | ||||
17142 | if test -n "$ac_ct_PKG_CONFIG"; then | ||||
17143 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. | ||||
17144 | else | ||||
17145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
17146 | for as_dir in $PATH | ||||
17147 | do | ||||
17148 | IFS=$as_save_IFS | ||||
17149 | test -z "$as_dir" && as_dir=. | ||||
17150 | for ac_exec_ext in '' $ac_executable_extensions; do | ||||
17151 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||||
17152 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" | ||||
17153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||||
17154 | break 2 | ||||
17155 | fi | ||||
17156 | done | ||||
17157 | done | ||||
17158 | IFS=$as_save_IFS | ||||
17159 | |||||
17160 | fi | ||||
17161 | fi | ||||
17162 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG | ||||
17163 | if test -n "$ac_ct_PKG_CONFIG"; then | ||||
17164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 | ||||
17165 | $as_echo "$ac_ct_PKG_CONFIG" >&6; } | ||||
17166 | else | ||||
17167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17168 | $as_echo "no" >&6; } | ||||
17169 | fi | ||||
17170 | |||||
17171 | if test "x$ac_ct_PKG_CONFIG" = x; then | ||||
17172 | PKG_CONFIG="" | ||||
17173 | else | ||||
17174 | case $cross_compiling:$ac_tool_warned in | ||||
17175 | yes:) | ||||
17176 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||||
17177 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||||
17178 | ac_tool_warned=yes ;; | ||||
17179 | esac | ||||
17180 | PKG_CONFIG=$ac_ct_PKG_CONFIG | ||||
17181 | fi | ||||
17182 | else | ||||
17183 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" | ||||
17184 | fi | ||||
17185 | |||||
17186 | if test x"$PKG_CONFIG" != x""; then | ||||
17187 | OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` | ||||
17188 | if test $? = 0; then | ||||
17189 | OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` | ||||
17190 | OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` | ||||
17191 | found=true | ||||
17192 | fi | ||||
17193 | fi | ||||
17194 | |||||
17195 | # no such luck; use some default ssldirs | ||||
17196 | if ! $found; then | ||||
17197 | ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" | ||||
17198 | fi | ||||
17199 | |||||
17200 | |||||
17201 | fi | ||||
17202 | |||||
17203 | |||||
17204 | |||||
17205 | # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in | ||||
17206 | # an 'openssl' subdirectory | ||||
17207 | |||||
17208 | if ! $found; then | ||||
17209 | OPENSSL_INCLUDES= | ||||
17210 | for ssldir in $ssldirs; do | ||||
17211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 | ||||
17212 | $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } | ||||
17213 | if test -f "$ssldir/include/openssl/ssl.h"; then | ||||
17214 | OPENSSL_INCLUDES="-I$ssldir/include" | ||||
17215 | OPENSSL_LDFLAGS="-L$ssldir/lib" | ||||
17216 | OPENSSL_LIBS="-lssl -lcrypto" | ||||
17217 | found=true | ||||
17218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
17219 | $as_echo "yes" >&6; } | ||||
17220 | break | ||||
17221 | else | ||||
17222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17223 | $as_echo "no" >&6; } | ||||
17224 | fi | ||||
17225 | done | ||||
17226 | |||||
17227 | # if the file wasn't found, well, go ahead and try the link anyway -- maybe | ||||
17228 | # it will just work! | ||||
17229 | fi | ||||
17230 | |||||
17231 | # try the preprocessor and linker with our new flags, | ||||
17232 | # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS | ||||
17233 | |||||
17234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 | ||||
17235 | $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } | ||||
17236 | echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ | ||||
17237 | "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 | ||||
17238 | |||||
17239 | save_LIBS="$LIBS" | ||||
17240 | save_LDFLAGS="$LDFLAGS" | ||||
17241 | save_CPPFLAGS="$CPPFLAGS" | ||||
17242 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" | ||||
17243 | LIBS="$OPENSSL_LIBS $LIBS" | ||||
17244 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" | ||||
17245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17246 | /* end confdefs.h. */ | ||||
17247 | #include <openssl/ssl.h> | ||||
17248 | int | ||||
17249 | main () | ||||
17250 | { | ||||
17251 | SSL_new(NULL) | ||||
17252 | ; | ||||
17253 | return 0; | ||||
17254 | } | ||||
17255 | _ACEOF | ||||
17256 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17257 | |||||
17258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
17259 | $as_echo "yes" >&6; } | ||||
17260 | have_openssl=yes | ||||
17261 | |||||
17262 | else | ||||
17263 | |||||
17264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
17265 | $as_echo "no" >&6; } | ||||
17266 | have_openssl=no | ||||
17267 | |||||
17268 | fi | ||||
17269 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17270 | conftest$ac_exeext conftest.$ac_ext | ||||
17271 | CPPFLAGS="$save_CPPFLAGS" | ||||
17272 | LDFLAGS="$save_LDFLAGS" | ||||
17273 | LIBS="$save_LIBS" | ||||
17274 | |||||
17275 | |||||
17276 | |||||
17277 | |||||
17278 | |||||
17279 | |||||
17280 | if test "$have_openssl" = yes; then | ||||
17281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host in libssl" >&5 | ||||
17282 | $as_echo_n "checking for X509_VERIFY_PARAM_set1_host in libssl... " >&6; } | ||||
17283 | |||||
17284 | save_LIBS="$LIBS" | ||||
17285 | save_LDFLAGS="$LDFLAGS" | ||||
17286 | save_CPPFLAGS="$CPPFLAGS" | ||||
17287 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" | ||||
17288 | LIBS="$OPENSSL_LIBS $LIBS" | ||||
17289 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" | ||||
17290 | |||||
17291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
17292 | /* end confdefs.h. */ | ||||
17293 | |||||
17294 | #include <openssl/x509_vfy.h> | ||||
17295 | |||||
17296 | int | ||||
17297 | main () | ||||
17298 | { | ||||
17299 | |||||
17300 | X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new(); | ||||
17301 | X509_VERIFY_PARAM_set1_host(p, "localhost", 0); | ||||
17302 | X509_VERIFY_PARAM_set1_ip_asc(p, "127.0.0.1"); | ||||
17303 | X509_VERIFY_PARAM_set_hostflags(p, 0); | ||||
17304 | |||||
17305 | ; | ||||
17306 | return 0; | ||||
17307 | } | ||||
17308 | |||||
17309 | _ACEOF | ||||
17310 | if ac_fn_c_try_link "$LINENO"; then : | ||||
17311 | |||||
17312 | ac_cv_has_x509_verify_param_set1_host=yes | ||||
17313 | |||||
17314 | else | ||||
17315 | |||||
17316 | ac_cv_has_x509_verify_param_set1_host=no | ||||
17317 | |||||
17318 | fi | ||||
17319 | rm -f core conftest.err conftest.$ac_objext \ | ||||
17320 | conftest$ac_exeext conftest.$ac_ext | ||||
17321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_x509_verify_param_set1_host" >&5 | ||||
17322 | $as_echo "$ac_cv_has_x509_verify_param_set1_host" >&6; } | ||||
17323 | if test "$ac_cv_has_x509_verify_param_set1_host" = "yes"; then | ||||
17324 | |||||
17325 | $as_echo "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h | ||||
17326 | |||||
17327 | fi | ||||
17328 | |||||
17329 | CPPFLAGS="$save_CPPFLAGS" | ||||
17330 | LDFLAGS="$save_LDFLAGS" | ||||
17331 | LIBS="$save_LIBS" | ||||
17332 | fi | ||||
17333 | |||||
Christian Heimes | 892d66e | 2018-01-29 13:10:18 | [diff] [blame] | 17334 | # ssl module default cipher suite string |
17335 | |||||
17336 | |||||
17337 | |||||
17338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5 | ||||
17339 | $as_echo_n "checking for --with-ssl-default-suites... " >&6; } | ||||
17340 | |||||
17341 | # Check whether --with-ssl-default-suites was given. | ||||
17342 | if test "${with_ssl_default_suites+set}" = set; then : | ||||
17343 | withval=$with_ssl_default_suites; | ||||
17344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||||
17345 | $as_echo "$withval" >&6; } | ||||
17346 | case "$withval" in | ||||
17347 | python) | ||||
17348 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h | ||||
17349 | |||||
17350 | ;; | ||||
17351 | openssl) | ||||
17352 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h | ||||
17353 | |||||
17354 | ;; | ||||
17355 | *) | ||||
17356 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h | ||||
17357 | |||||
17358 | cat >>confdefs.h <<_ACEOF | ||||
17359 | #define PY_SSL_DEFAULT_CIPHER_STRING "$withval" | ||||
17360 | _ACEOF | ||||
17361 | |||||
17362 | ;; | ||||
17363 | esac | ||||
17364 | |||||
17365 | else | ||||
17366 | |||||
17367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: python" >&5 | ||||
17368 | $as_echo "python" >&6; } | ||||
17369 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h | ||||
17370 | |||||
17371 | |||||
17372 | fi | ||||
17373 | |||||
17374 | |||||
17375 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 17376 | # generate output files |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 17377 | ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-config.sh" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 | [diff] [blame] | 17378 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 | [diff] [blame] | 17379 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
17380 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17381 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17382 | # This file is a shell script that caches the results of configure |
17383 | # tests run on this system so they can be shared between configure | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17384 | # scripts and configure runs, see configure's option --config-cache. |
17385 | # It is not useful on other systems. If it contains results you don't | ||||
17386 | # want to keep, you may remove or edit it. | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17387 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17388 | # config.status only pays attention to the cache file if you give it |
17389 | # the --recheck option to rerun configure. | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17390 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17391 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17392 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
17393 | # following values. | ||||
17394 | |||||
17395 | _ACEOF | ||||
17396 | |||||
Guido van Rossum | f78abae | 1997-01-21 22:02:36 | [diff] [blame] | 17397 | # The following way of writing the cache mishandles newlines in values, |
17398 | # but we know of no workaround that is simple, portable, and efficient. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17399 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 17400 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17401 | # and sets the high bit in the cache file unless we assign to the vars. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17402 | ( |
17403 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||||
17404 | eval ac_val=\$$ac_var | ||||
17405 | case $ac_val in #( | ||||
17406 | *${as_nl}*) | ||||
17407 | case $ac_var in #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17408 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
17409 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17410 | esac |
17411 | case $ac_var in #( | ||||
17412 | _ | IFS | as_nl) ;; #( | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17413 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
17414 | *) { eval $ac_var=; unset $ac_var;} ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17415 | esac ;; |
17416 | esac | ||||
17417 | done | ||||
17418 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17419 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17420 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17421 | *${as_nl}ac_space=\ *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17422 | # `set' does not quote correctly, so add quotes: double-quote |
17423 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17424 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 17425 | "s/'/'\\\\''/g; |
17426 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17427 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17428 | *) |
17429 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17430 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17431 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17432 | esac | |
17433 | sort | ||||
17434 | ) | | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17435 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17436 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17437 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17438 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17439 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17440 | t end | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17441 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17442 | :end' >>confcache | ||||
17443 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||||
17444 | if test -w "$cache_file"; then | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17445 | if test "x$cache_file" != "x/dev/null"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17446 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17447 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17448 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17449 | cat confcache >"$cache_file" | ||||
17450 | else | ||||
17451 | case $cache_file in #( | ||||
17452 | */* | ?:*) | ||||
17453 | mv -f confcache "$cache_file"$$ && | ||||
17454 | mv -f "$cache_file"$$ "$cache_file" ;; #( | ||||
17455 | *) | ||||
17456 | mv -f confcache "$cache_file" ;; | ||||
17457 | esac | ||||
17458 | fi | ||||
17459 | fi | ||||
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 17460 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17461 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17462 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||||
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 17463 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17464 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 | [diff] [blame] | 17465 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 17466 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17467 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17468 | # Let make expand exec_prefix. | ||||
17469 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||||
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 | [diff] [blame] | 17470 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17471 | DEFS=-DHAVE_CONFIG_H |
17472 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17473 | ac_libobjs= |
17474 | ac_ltlibobjs= | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17475 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17476 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17477 | # 1. Remove the extension, and $U if already installed. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17478 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17479 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17480 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
17481 | # will be set to the directory where LIBOBJS objects are built. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17482 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
17483 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17484 | done |
17485 | LIBOBJS=$ac_libobjs | ||||
17486 | |||||
17487 | LTLIBOBJS=$ac_ltlibobjs | ||||
17488 | |||||
17489 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17490 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17491 | |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17492 | : "${CONFIG_STATUS=./config.status}" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17493 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17494 | ac_clean_files_save=$ac_clean_files |
17495 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17496 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17497 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||||
17498 | as_write_fail=0 | ||||
17499 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17500 | #! $SHELL |
17501 | # Generated by $as_me. | ||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 17502 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 17503 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17504 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 17505 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17506 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17507 | ac_cs_recheck=false |
17508 | ac_cs_silent=false | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 17509 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17510 | SHELL=\${CONFIG_SHELL-$SHELL} |
17511 | export SHELL | ||||
17512 | _ASEOF | ||||
17513 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||||
17514 | ## -------------------- ## | ||||
17515 | ## M4sh Initialization. ## | ||||
17516 | ## -------------------- ## | ||||
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 | [diff] [blame] | 17517 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17518 | # Be more Bourne compatible |
17519 | DUALCASE=1; export DUALCASE # for MKS sh | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17520 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17521 | emulate sh |
17522 | NULLCMD=: | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17523 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17524 | # is contrary to our usage. Disable this feature. |
17525 | alias -g '${1+"$@"}'='"$@"' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17526 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 17527 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17528 | case `(set -o) 2>/dev/null` in #( |
17529 | *posix*) : | ||||
17530 | set -o posix ;; #( | ||||
17531 | *) : | ||||
17532 | ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17533 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 | [diff] [blame] | 17534 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 | [diff] [blame] | 17535 | |
17536 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17537 | as_nl=' |
17538 | ' | ||||
17539 | export as_nl | ||||
17540 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||||
17541 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||||
17542 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
17543 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||||
17544 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||||
17545 | # but without wasting forks for bash or zsh. | ||||
17546 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||||
17547 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
17548 | as_echo='print -r --' | ||||
17549 | as_echo_n='print -rn --' | ||||
17550 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||||
17551 | as_echo='printf %s\n' | ||||
17552 | as_echo_n='printf %s' | ||||
17553 | else | ||||
17554 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||||
17555 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||||
17556 | as_echo_n='/usr/ucb/echo -n' | ||||
17557 | else | ||||
17558 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||||
17559 | as_echo_n_body='eval | ||||
17560 | arg=$1; | ||||
17561 | case $arg in #( | ||||
17562 | *"$as_nl"*) | ||||
17563 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||||
17564 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||||
17565 | esac; | ||||
17566 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||||
17567 | ' | ||||
17568 | export as_echo_n_body | ||||
17569 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||||
17570 | fi | ||||
17571 | export as_echo_body | ||||
17572 | as_echo='sh -c $as_echo_body as_echo' | ||||
17573 | fi | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17574 | |
17575 | # The user is always right. | ||||
17576 | if test "${PATH_SEPARATOR+set}" != set; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17577 | PATH_SEPARATOR=: |
17578 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||||
17579 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||||
17580 | PATH_SEPARATOR=';' | ||||
17581 | } | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17582 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17583 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17584 | |
17585 | # IFS | ||||
17586 | # We need space, tab and new line, in precisely that order. Quoting is | ||||
17587 | # there to prevent editors from complaining about space-tab. | ||||
17588 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||||
17589 | # splitting by setting IFS to empty value.) | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17590 | IFS=" "" $as_nl" |
17591 | |||||
17592 | # Find who we are. Look in the path if we contain no directory separator. | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 17593 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17594 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17595 | *[\\/]* ) as_myself=$0 ;; |
17596 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17597 | for as_dir in $PATH |
17598 | do | ||||
17599 | IFS=$as_save_IFS | ||||
17600 | test -z "$as_dir" && as_dir=. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17601 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
17602 | done | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17603 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17604 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17605 | ;; |
17606 | esac | ||||
17607 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||||
17608 | # in which case we are not to be found in the path. | ||||
17609 | if test "x$as_myself" = x; then | ||||
17610 | as_myself=$0 | ||||
17611 | fi | ||||
17612 | if test ! -f "$as_myself"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17613 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
17614 | exit 1 | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17615 | fi |
17616 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17617 | # Unset variables that we do not need and which cause bugs (e.g. in |
17618 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||||
17619 | # suppresses any "Segmentation fault" message there. '((' could | ||||
17620 | # trigger a bug in pdksh 5.2.14. | ||||
17621 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||||
17622 | do eval test x\${$as_var+set} = xset \ | ||||
17623 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17624 | done |
17625 | PS1='$ ' | ||||
17626 | PS2='> ' | ||||
17627 | PS4='+ ' | ||||
17628 | |||||
17629 | # NLS nuisances. | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17630 | LC_ALL=C |
17631 | export LC_ALL | ||||
17632 | LANGUAGE=C | ||||
17633 | export LANGUAGE | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17634 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17635 | # CDPATH. |
17636 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||||
17637 | |||||
17638 | |||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17639 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
17640 | # ---------------------------------------- | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17641 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
17642 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17643 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17644 | as_fn_error () |
17645 | { | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17646 | as_status=$1; test $as_status -eq 0 && as_status=1 |
17647 | if test "$4"; then | ||||
17648 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||||
17649 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17650 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17651 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17652 | as_fn_exit $as_status |
17653 | } # as_fn_error | ||||
17654 | |||||
17655 | |||||
17656 | # as_fn_set_status STATUS | ||||
17657 | # ----------------------- | ||||
17658 | # Set $? to STATUS, without forking. | ||||
17659 | as_fn_set_status () | ||||
17660 | { | ||||
17661 | return $1 | ||||
17662 | } # as_fn_set_status | ||||
17663 | |||||
17664 | # as_fn_exit STATUS | ||||
17665 | # ----------------- | ||||
17666 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||||
17667 | as_fn_exit () | ||||
17668 | { | ||||
17669 | set +e | ||||
17670 | as_fn_set_status $1 | ||||
17671 | exit $1 | ||||
17672 | } # as_fn_exit | ||||
17673 | |||||
17674 | # as_fn_unset VAR | ||||
17675 | # --------------- | ||||
17676 | # Portably unset VAR. | ||||
17677 | as_fn_unset () | ||||
17678 | { | ||||
17679 | { eval $1=; unset $1;} | ||||
17680 | } | ||||
17681 | as_unset=as_fn_unset | ||||
17682 | # as_fn_append VAR VALUE | ||||
17683 | # ---------------------- | ||||
17684 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||||
17685 | # advantage of any shell optimizations that allow amortized linear growth over | ||||
17686 | # repeated appends, instead of the typical quadratic growth present in naive | ||||
17687 | # implementations. | ||||
17688 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||||
17689 | eval 'as_fn_append () | ||||
17690 | { | ||||
17691 | eval $1+=\$2 | ||||
17692 | }' | ||||
17693 | else | ||||
17694 | as_fn_append () | ||||
17695 | { | ||||
17696 | eval $1=\$$1\$2 | ||||
17697 | } | ||||
17698 | fi # as_fn_append | ||||
17699 | |||||
17700 | # as_fn_arith ARG... | ||||
17701 | # ------------------ | ||||
17702 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||||
17703 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||||
17704 | # must be portable across $(()) and expr. | ||||
17705 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||||
17706 | eval 'as_fn_arith () | ||||
17707 | { | ||||
17708 | as_val=$(( $* )) | ||||
17709 | }' | ||||
17710 | else | ||||
17711 | as_fn_arith () | ||||
17712 | { | ||||
17713 | as_val=`expr "$@" || test $? -eq 1` | ||||
17714 | } | ||||
17715 | fi # as_fn_arith | ||||
17716 | |||||
17717 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17718 | if expr a : '\(a\)' >/dev/null 2>&1 && |
17719 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||||
17720 | as_expr=expr | ||||
17721 | else | ||||
17722 | as_expr=false | ||||
17723 | fi | ||||
17724 | |||||
17725 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||||
17726 | as_basename=basename | ||||
17727 | else | ||||
17728 | as_basename=false | ||||
17729 | fi | ||||
17730 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17731 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
17732 | as_dirname=dirname | ||||
17733 | else | ||||
17734 | as_dirname=false | ||||
17735 | fi | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17736 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17737 | as_me=`$as_basename -- "$0" || |
17738 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||||
17739 | X"$0" : 'X\(//\)$' \| \ | ||||
17740 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17741 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17742 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
17743 | s//\1/ | ||||
17744 | q | ||||
17745 | } | ||||
17746 | /^X\/\(\/\/\)$/{ | ||||
17747 | s//\1/ | ||||
17748 | q | ||||
17749 | } | ||||
17750 | /^X\/\(\/\).*/{ | ||||
17751 | s//\1/ | ||||
17752 | q | ||||
17753 | } | ||||
17754 | s/.*/./; q'` | ||||
17755 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17756 | # Avoid depending upon Character Ranges. |
17757 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||||
17758 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||||
17759 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||||
17760 | as_cr_digits='0123456789' | ||||
17761 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17762 | |
17763 | ECHO_C= ECHO_N= ECHO_T= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17764 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17765 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17766 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17767 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17768 | xy) ECHO_C='\c';; |
17769 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||||
17770 | ECHO_T=' ';; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17771 | esac;; |
17772 | *) | ||||
17773 | ECHO_N='-n';; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17774 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 17775 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17776 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17777 | if test -d conf$$.dir; then |
17778 | rm -f conf$$.dir/conf$$.file | ||||
17779 | else | ||||
17780 | rm -f conf$$.dir | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17781 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17782 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17783 | if (echo >conf$$.file) 2>/dev/null; then |
17784 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||||
17785 | as_ln_s='ln -s' | ||||
17786 | # ... but there are two gotchas: | ||||
17787 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||||
17788 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17789 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17790 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17791 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17792 | elif ln conf$$.file conf$$ 2>/dev/null; then |
17793 | as_ln_s=ln | ||||
17794 | else | ||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17795 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17796 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17797 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17798 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17799 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17800 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
17801 | rmdir conf$$.dir 2>/dev/null | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17802 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17803 | |
17804 | # as_fn_mkdir_p | ||||
17805 | # ------------- | ||||
17806 | # Create "$as_dir" as a directory, including parents if necessary. | ||||
17807 | as_fn_mkdir_p () | ||||
17808 | { | ||||
17809 | |||||
17810 | case $as_dir in #( | ||||
17811 | -*) as_dir=./$as_dir;; | ||||
17812 | esac | ||||
17813 | test -d "$as_dir" || eval $as_mkdir_p || { | ||||
17814 | as_dirs= | ||||
17815 | while :; do | ||||
17816 | case $as_dir in #( | ||||
17817 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||||
17818 | *) as_qdir=$as_dir;; | ||||
17819 | esac | ||||
17820 | as_dirs="'$as_qdir' $as_dirs" | ||||
17821 | as_dir=`$as_dirname -- "$as_dir" || | ||||
17822 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||||
17823 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||||
17824 | X"$as_dir" : 'X\(//\)$' \| \ | ||||
17825 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||||
17826 | $as_echo X"$as_dir" | | ||||
17827 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||||
17828 | s//\1/ | ||||
17829 | q | ||||
17830 | } | ||||
17831 | /^X\(\/\/\)[^/].*/{ | ||||
17832 | s//\1/ | ||||
17833 | q | ||||
17834 | } | ||||
17835 | /^X\(\/\/\)$/{ | ||||
17836 | s//\1/ | ||||
17837 | q | ||||
17838 | } | ||||
17839 | /^X\(\/\).*/{ | ||||
17840 | s//\1/ | ||||
17841 | q | ||||
17842 | } | ||||
17843 | s/.*/./; q'` | ||||
17844 | test -d "$as_dir" && break | ||||
17845 | done | ||||
17846 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17847 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17848 | |
17849 | |||||
17850 | } # as_fn_mkdir_p | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17851 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17852 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17853 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 17854 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17855 | as_mkdir_p=false |
17856 | fi | ||||
17857 | |||||
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17858 | |
17859 | # as_fn_executable_p FILE | ||||
17860 | # ----------------------- | ||||
17861 | # Test if FILE is an executable regular file. | ||||
17862 | as_fn_executable_p () | ||||
17863 | { | ||||
17864 | test -f "$1" && test -x "$1" | ||||
17865 | } # as_fn_executable_p | ||||
17866 | as_test_x='test -x' | ||||
17867 | as_executable_p=as_fn_executable_p | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17868 | |
17869 | # Sed expression to map a string onto a valid CPP name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 17870 | 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 | [diff] [blame] | 17871 | |
17872 | # Sed expression to map a string onto a valid variable name. | ||||
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 17873 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17874 | |
17875 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17876 | exec 6>&1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17877 | ## ----------------------------------- ## |
17878 | ## Main body of $CONFIG_STATUS script. ## | ||||
17879 | ## ----------------------------------- ## | ||||
17880 | _ASEOF | ||||
17881 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17882 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17883 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17884 | # Save the log message, to keep $0 and so on meaningful, and to | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17885 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17886 | # values after options handling. |
17887 | ac_log=" | ||||
Ned Deily | 4829bc6 | 2016-09-12 21:29:04 | [diff] [blame] | 17888 | This file was extended by python $as_me 3.7, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17889 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17890 | |
17891 | CONFIG_FILES = $CONFIG_FILES | ||||
17892 | CONFIG_HEADERS = $CONFIG_HEADERS | ||||
17893 | CONFIG_LINKS = $CONFIG_LINKS | ||||
17894 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||||
17895 | $ $0 $@ | ||||
17896 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17897 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
17898 | " | ||||
17899 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17900 | _ACEOF |
17901 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17902 | case $ac_config_files in *" |
17903 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||||
17904 | esac | ||||
17905 | |||||
17906 | case $ac_config_headers in *" | ||||
17907 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||||
17908 | esac | ||||
17909 | |||||
17910 | |||||
17911 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17912 | # Files that config.status was made for. |
Charles-François Natali | 6613c18 | 2011-11-27 11:41:06 | [diff] [blame] | 17913 | config_files="$ac_config_files" |
17914 | config_headers="$ac_config_headers" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17915 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17916 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17917 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17918 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17919 | ac_cs_usage="\ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17920 | \`$as_me' instantiates files and other configuration actions |
17921 | from templates according to the current configuration. Unless the files | ||||
17922 | and actions are specified as TAGs, all are instantiated by default. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17923 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17924 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17925 | |
17926 | -h, --help print this help, then exit | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17927 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17928 | --config print configuration, then exit |
17929 | -q, --quiet, --silent | ||||
17930 | do not print progress messages | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17931 | -d, --debug don't remove temporary files |
17932 | --recheck update $as_me by reconfiguring in the same conditions | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17933 | --file=FILE[:TEMPLATE] |
17934 | instantiate the configuration file FILE | ||||
17935 | --header=FILE[:TEMPLATE] | ||||
17936 | instantiate the configuration header FILE | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17937 | |
17938 | Configuration files: | ||||
17939 | $config_files | ||||
17940 | |||||
17941 | Configuration headers: | ||||
17942 | $config_headers | ||||
17943 | |||||
Ned Deily | 61e371a | 2022-09-06 06:57:17 | [diff] [blame] | 17944 | Report bugs to <https://github.com/python/cpython/issues/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 | [diff] [blame] | 17945 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17946 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17947 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17948 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17949 | ac_cs_version="\\ |
Ned Deily | 4829bc6 | 2016-09-12 21:29:04 | [diff] [blame] | 17950 | python config.status 3.7 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17951 | configured by $0, generated by GNU Autoconf 2.69, |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17952 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17953 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 17954 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17955 | This config.status script is free software; the Free Software Foundation |
17956 | gives unlimited permission to copy, distribute and modify it." | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17957 | |
17958 | ac_pwd='$ac_pwd' | ||||
17959 | srcdir='$srcdir' | ||||
17960 | INSTALL='$INSTALL' | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 17961 | MKDIR_P='$MKDIR_P' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17962 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17963 | _ACEOF |
17964 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17965 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17966 | # The default lists apply if the user does not specify any file. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17967 | ac_need_defaults=: |
17968 | while test $# != 0 | ||||
17969 | do | ||||
17970 | case $1 in | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17971 | --*=?*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17972 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
17973 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17974 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17975 | ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 17976 | --*=) |
17977 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||||
17978 | ac_optarg= | ||||
17979 | ac_shift=: | ||||
17980 | ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17981 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17982 | ac_option=$1 |
17983 | ac_optarg=$2 | ||||
17984 | ac_shift=shift | ||||
17985 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17986 | esac |
17987 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17988 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17989 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17990 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
17991 | ac_cs_recheck=: ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17992 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 17993 | $as_echo "$ac_cs_version"; exit ;; |
17994 | --config | --confi | --conf | --con | --co | --c ) | ||||
17995 | $as_echo "$ac_cs_config"; exit ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 17996 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 17997 | debug=: ;; |
17998 | --file | --fil | --fi | --f ) | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 17999 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18000 | case $ac_optarg in |
18001 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18002 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18003 | esac |
18004 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18005 | ac_need_defaults=false;; |
18006 | --header | --heade | --head | --hea ) | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18007 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18008 | case $ac_optarg in |
18009 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||||
18010 | esac | ||||
18011 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18012 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18013 | --he | --h) |
18014 | # Conflict between --help and --header | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18015 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18016 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18017 | --help | --hel | -h ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18018 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18019 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18020 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||||
18021 | ac_cs_silent=: ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18022 | |
18023 | # This is an error. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18024 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18025 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18026 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18027 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18028 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18029 | |
18030 | esac | ||||
18031 | shift | ||||
18032 | done | ||||
18033 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18034 | ac_configure_extra_args= |
18035 | |||||
18036 | if $ac_cs_silent; then | ||||
18037 | exec 6>/dev/null | ||||
18038 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||||
18039 | fi | ||||
18040 | |||||
18041 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18042 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18043 | if \$ac_cs_recheck; then |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 | [diff] [blame] | 18044 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18045 | shift |
18046 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||||
18047 | CONFIG_SHELL='$SHELL' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18048 | export CONFIG_SHELL |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18049 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18050 | fi |
18051 | |||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18052 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18053 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18054 | exec 5>>config.log |
18055 | { | ||||
18056 | echo | ||||
18057 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||||
18058 | ## Running $as_me. ## | ||||
18059 | _ASBOX | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18060 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18061 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18062 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18063 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18064 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18065 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18066 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18067 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18068 | |
18069 | # Handling of arguments. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18070 | for ac_config_target in $ac_config_targets |
18071 | do | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18072 | case $ac_config_target in |
18073 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | ||||
18074 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | ||||
18075 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | ||||
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 | [diff] [blame] | 18076 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
18077 | "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18078 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 | [diff] [blame] | 18079 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
doko@python.org | 8742119 | 2013-01-26 10:39:31 | [diff] [blame] | 18080 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 | [diff] [blame] | 18081 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18082 | |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18083 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18084 | esac |
18085 | done | ||||
18086 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18088 | # If the user did not use the arguments to specify the items to instantiate, |
18089 | # then the envvar interface is used. Set only those that are not. | ||||
18090 | # We use the long form for the default assignment because of an extremely | ||||
18091 | # bizarre bug on SunOS 4.1.3. | ||||
18092 | if $ac_need_defaults; then | ||||
18093 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||||
18094 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||||
18095 | fi | ||||
18096 | |||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18097 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18098 | # simply because there is no reason against having it here, and in addition, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18099 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18100 | # Hook for its removal unless debugging. |
18101 | # Note that there is a small window in which the directory will not be cleaned: | ||||
18102 | # after its creation but before its name has been assigned to `$tmp'. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18103 | $debug || |
18104 | { | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18105 | tmp= ac_tmp= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18106 | trap 'exit_status=$? |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18107 | : "${ac_tmp:=$tmp}" |
18108 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18109 | ' 0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18110 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18111 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18112 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18114 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18115 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18116 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18117 | } || |
18118 | { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18119 | tmp=./conf$$-$RANDOM |
18120 | (umask 077 && mkdir "$tmp") | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18121 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18122 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18123 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18124 | # Set up the scripts for CONFIG_FILES section. |
18125 | # No need to generate them if there are no CONFIG_FILES. | ||||
18126 | # This happens for instance with `./config.status config.h'. | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18127 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18128 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18129 | |
18130 | ac_cr=`echo X | tr X '\015'` | ||||
18131 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||||
18132 | # But we know of no other shell where ac_cr would be empty at this | ||||
18133 | # point, so we can use a bashism as a fallback. | ||||
18134 | if test "x$ac_cr" = x; then | ||||
18135 | eval ac_cr=\$\'\\r\' | ||||
18136 | fi | ||||
18137 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||||
18138 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18139 | ac_cs_awk_cr='\\r' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18140 | else |
18141 | ac_cs_awk_cr=$ac_cr | ||||
18142 | fi | ||||
18143 | |||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18144 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18145 | _ACEOF |
18146 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18147 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18148 | { |
18149 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||||
18150 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||||
18151 | echo "_ACEOF" | ||||
18152 | } >conf$$subs.sh || | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18153 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18154 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18155 | ac_delim='%!_!# ' |
18156 | for ac_last_try in false false false false false :; do | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18157 | . ./conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18158 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18159 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18160 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
18161 | if test $ac_delim_n = $ac_delim_num; then | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18162 | break |
18163 | elif $ac_last_try; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18164 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18165 | else |
18166 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18167 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18168 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18169 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18170 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18171 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18172 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18173 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18174 | sed -n ' |
18175 | h | ||||
18176 | s/^/S["/; s/!.*/"]=/ | ||||
18177 | p | ||||
18178 | g | ||||
18179 | s/^[^!]*!// | ||||
18180 | :repl | ||||
18181 | t repl | ||||
18182 | s/'"$ac_delim"'$// | ||||
18183 | t delim | ||||
18184 | :nl | ||||
18185 | h | ||||
18186 | s/\(.\{148\}\)..*/\1/ | ||||
18187 | t more1 | ||||
18188 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||||
18189 | p | ||||
18190 | n | ||||
18191 | b repl | ||||
18192 | :more1 | ||||
18193 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||||
18194 | p | ||||
18195 | g | ||||
18196 | s/.\{148\}// | ||||
18197 | t nl | ||||
18198 | :delim | ||||
18199 | h | ||||
18200 | s/\(.\{148\}\)..*/\1/ | ||||
18201 | t more2 | ||||
18202 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||||
18203 | p | ||||
18204 | b | ||||
18205 | :more2 | ||||
18206 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||||
18207 | p | ||||
18208 | g | ||||
18209 | s/.\{148\}// | ||||
18210 | t delim | ||||
18211 | ' <conf$$subs.awk | sed ' | ||||
18212 | /^[^""]/{ | ||||
18213 | N | ||||
18214 | s/\n// | ||||
18215 | } | ||||
18216 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||||
18217 | rm -f conf$$subs.awk | ||||
18218 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
18219 | _ACAWK | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18220 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18221 | for (key in S) S_is_set[key] = 1 |
18222 | FS = "" | ||||
18223 | |||||
18224 | } | ||||
18225 | { | ||||
18226 | line = $ 0 | ||||
18227 | nfields = split(line, field, "@") | ||||
18228 | substed = 0 | ||||
18229 | len = length(field[1]) | ||||
18230 | for (i = 2; i < nfields; i++) { | ||||
18231 | key = field[i] | ||||
18232 | keylen = length(key) | ||||
18233 | if (S_is_set[key]) { | ||||
18234 | value = S[key] | ||||
18235 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||||
18236 | len += length(value) + length(field[++i]) | ||||
18237 | substed = 1 | ||||
18238 | } else | ||||
18239 | len += 1 + keylen | ||||
18240 | } | ||||
18241 | |||||
18242 | print line | ||||
18243 | } | ||||
18244 | |||||
18245 | _ACAWK | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18246 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18247 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18248 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||||
18249 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||||
18250 | else | ||||
18251 | cat | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18252 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18253 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 | [diff] [blame] | 18254 | _ACEOF |
18255 | |||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18256 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
18257 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18258 | # trailing colons and then remove the whole line if VPATH becomes empty |
18259 | # (actually we leave an empty line to preserve line numbers). | ||||
18260 | if test "x$srcdir" = x.; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18261 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
18262 | h | ||||
18263 | s/// | ||||
18264 | s/^/:/ | ||||
18265 | s/[ ]*$/:/ | ||||
18266 | s/:\$(srcdir):/:/g | ||||
18267 | s/:\${srcdir}:/:/g | ||||
18268 | s/:@srcdir@:/:/g | ||||
18269 | s/^:*// | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18270 | s/:*$// |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18271 | x |
18272 | s/\(=[ ]*\).*/\1/ | ||||
18273 | G | ||||
18274 | s/\n// | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18275 | s/^[^=]*=[ ]*$// |
18276 | }' | ||||
18277 | fi | ||||
18278 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18279 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18280 | fi # test -n "$CONFIG_FILES" |
18281 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18282 | # Set up the scripts for CONFIG_HEADERS section. |
18283 | # No need to generate them if there are no CONFIG_HEADERS. | ||||
18284 | # This happens for instance with `./config.status Makefile'. | ||||
18285 | if test -n "$CONFIG_HEADERS"; then | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18286 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18287 | BEGIN { |
18288 | _ACEOF | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18289 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18290 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
18291 | # here-document in config.status, that substitutes the proper values into | ||||
18292 | # config.h.in to produce config.h. | ||||
18293 | |||||
18294 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||||
18295 | # handling of long lines. | ||||
18296 | ac_delim='%!_!# ' | ||||
18297 | for ac_last_try in false false :; do | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18298 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
18299 | if test -z "$ac_tt"; then | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18300 | break |
18301 | elif $ac_last_try; then | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18302 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18303 | else |
18304 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||||
18305 | fi | ||||
18306 | done | ||||
18307 | |||||
18308 | # For the awk script, D is an array of macro values keyed by name, | ||||
18309 | # likewise P contains macro parameters if any. Preserve backslash | ||||
18310 | # newline sequences. | ||||
18311 | |||||
18312 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||||
18313 | sed -n ' | ||||
18314 | s/.\{148\}/&'"$ac_delim"'/g | ||||
18315 | t rset | ||||
18316 | :rset | ||||
18317 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||||
18318 | t def | ||||
18319 | d | ||||
18320 | :def | ||||
18321 | s/\\$// | ||||
18322 | t bsnl | ||||
18323 | s/["\\]/\\&/g | ||||
18324 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||||
18325 | D["\1"]=" \3"/p | ||||
18326 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||||
18327 | d | ||||
18328 | :bsnl | ||||
18329 | s/["\\]/\\&/g | ||||
18330 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||||
18331 | D["\1"]=" \3\\\\\\n"\\/p | ||||
18332 | t cont | ||||
18333 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||||
18334 | t cont | ||||
18335 | d | ||||
18336 | :cont | ||||
18337 | n | ||||
18338 | s/.\{148\}/&'"$ac_delim"'/g | ||||
18339 | t clear | ||||
18340 | :clear | ||||
18341 | s/\\$// | ||||
18342 | t bsnlc | ||||
18343 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||||
18344 | d | ||||
18345 | :bsnlc | ||||
18346 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||||
18347 | b cont | ||||
18348 | ' <confdefs.h | sed ' | ||||
18349 | s/'"$ac_delim"'/"\\\ | ||||
18350 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||||
18351 | |||||
18352 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||||
18353 | for (key in D) D_is_set[key] = 1 | ||||
18354 | FS = "" | ||||
18355 | } | ||||
18356 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||||
18357 | line = \$ 0 | ||||
18358 | split(line, arg, " ") | ||||
18359 | if (arg[1] == "#") { | ||||
18360 | defundef = arg[2] | ||||
18361 | mac1 = arg[3] | ||||
18362 | } else { | ||||
18363 | defundef = substr(arg[1], 2) | ||||
18364 | mac1 = arg[2] | ||||
18365 | } | ||||
18366 | split(mac1, mac2, "(") #) | ||||
18367 | macro = mac2[1] | ||||
18368 | prefix = substr(line, 1, index(line, defundef) - 1) | ||||
18369 | if (D_is_set[macro]) { | ||||
18370 | # Preserve the white space surrounding the "#". | ||||
18371 | print prefix "define", macro P[macro] D[macro] | ||||
18372 | next | ||||
18373 | } else { | ||||
18374 | # Replace #undef with comments. This is necessary, for example, | ||||
18375 | # in the case of _POSIX_SOURCE, which is predefined and required | ||||
18376 | # on some systems where configure will not decide to define it. | ||||
18377 | if (defundef == "undef") { | ||||
18378 | print "/*", prefix defundef, macro, "*/" | ||||
18379 | next | ||||
18380 | } | ||||
18381 | } | ||||
18382 | } | ||||
18383 | { print } | ||||
18384 | _ACAWK | ||||
18385 | _ACEOF | ||||
18386 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18387 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18388 | fi # test -n "$CONFIG_HEADERS" |
18389 | |||||
18390 | |||||
18391 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | ||||
18392 | shift | ||||
18393 | for ac_tag | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18394 | do |
18395 | case $ac_tag in | ||||
18396 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||||
18397 | esac | ||||
18398 | case $ac_mode$ac_tag in | ||||
18399 | :[FHL]*:*);; | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18400 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18401 | :[FH]-) ac_tag=-:-;; |
18402 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||||
18403 | esac | ||||
18404 | ac_save_IFS=$IFS | ||||
18405 | IFS=: | ||||
18406 | set x $ac_tag | ||||
18407 | IFS=$ac_save_IFS | ||||
18408 | shift | ||||
18409 | ac_file=$1 | ||||
18410 | shift | ||||
18411 | |||||
18412 | case $ac_mode in | ||||
18413 | :L) ac_source=$1;; | ||||
18414 | :[FH]) | ||||
18415 | ac_file_inputs= | ||||
18416 | for ac_f | ||||
18417 | do | ||||
18418 | case $ac_f in | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18419 | -) ac_f="$ac_tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18420 | *) # Look for the file first in the build tree, then in the source tree |
18421 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||||
18422 | # because $ac_f cannot contain `:'. | ||||
18423 | test -f "$ac_f" || | ||||
18424 | case $ac_f in | ||||
18425 | [\\/$]*) false;; | ||||
18426 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||||
18427 | esac || | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18428 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18429 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18430 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
18431 | as_fn_append ac_file_inputs " '$ac_f'" | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18432 | done |
18433 | |||||
18434 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||||
18435 | # use $as_me), people would be surprised to read: | ||||
18436 | # /* config.h. Generated by config.status. */ | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18437 | configure_input='Generated from '` |
18438 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||||
18439 | `' by configure.' | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18440 | if test x"$ac_file" != x-; then |
18441 | configure_input="$ac_file. $configure_input" | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18442 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
18443 | $as_echo "$as_me: creating $ac_file" >&6;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18444 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18445 | # Neutralize special characters interpreted by sed in replacement strings. |
18446 | case $configure_input in #( | ||||
18447 | *\&* | *\|* | *\\* ) | ||||
18448 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||||
18449 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||||
18450 | *) ac_sed_conf_input=$configure_input;; | ||||
18451 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18452 | |
18453 | case $ac_tag in | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18454 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
18455 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18456 | esac |
18457 | ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18458 | esac |
18459 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18460 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18461 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 18462 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
18463 | X"$ac_file" : 'X\(//\)$' \| \ | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18464 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18465 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18466 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
18467 | s//\1/ | ||||
18468 | q | ||||
18469 | } | ||||
18470 | /^X\(\/\/\)[^/].*/{ | ||||
18471 | s//\1/ | ||||
18472 | q | ||||
18473 | } | ||||
18474 | /^X\(\/\/\)$/{ | ||||
18475 | s//\1/ | ||||
18476 | q | ||||
18477 | } | ||||
18478 | /^X\(\/\).*/{ | ||||
18479 | s//\1/ | ||||
18480 | q | ||||
18481 | } | ||||
18482 | s/.*/./; q'` | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18483 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18484 | ac_builddir=. |
18485 | |||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18486 | case "$ac_dir" in |
18487 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
18488 | *) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18489 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18490 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18491 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18492 | case $ac_top_builddir_sub in |
18493 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||||
18494 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||||
18495 | esac ;; | ||||
18496 | esac | ||||
18497 | ac_abs_top_builddir=$ac_pwd | ||||
18498 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||||
18499 | # for backward compatibility: | ||||
18500 | ac_top_builddir=$ac_top_build_prefix | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18501 | |
18502 | case $srcdir in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18503 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18504 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18505 | ac_top_srcdir=$ac_top_builddir_sub |
18506 | ac_abs_top_srcdir=$ac_pwd ;; | ||||
18507 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18508 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18509 | ac_top_srcdir=$srcdir |
18510 | ac_abs_top_srcdir=$srcdir ;; | ||||
18511 | *) # Relative name. | ||||
18512 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||||
18513 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||||
18514 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18515 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18516 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 | [diff] [blame] | 18517 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18518 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18519 | case $ac_mode in |
18520 | :F) | ||||
18521 | # | ||||
18522 | # CONFIG_FILE | ||||
18523 | # | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18524 | |
18525 | case $INSTALL in | ||||
18526 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18527 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18528 | esac |
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 18529 | ac_MKDIR_P=$MKDIR_P |
18530 | case $MKDIR_P in | ||||
18531 | [\\/$]* | ?:[\\/]* ) ;; | ||||
18532 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||||
18533 | esac | ||||
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 | [diff] [blame] | 18534 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18535 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18536 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18537 | # If the template does not know about datarootdir, expand it. |
18538 | # FIXME: This hack should be removed a few years after 2.60. | ||||
18539 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18540 | ac_sed_dataroot=' |
18541 | /datarootdir/ { | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18542 | p |
18543 | q | ||||
18544 | } | ||||
18545 | /@datadir@/p | ||||
18546 | /@docdir@/p | ||||
18547 | /@infodir@/p | ||||
18548 | /@localedir@/p | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18549 | /@mandir@/p' |
18550 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18551 | *datarootdir*) ac_datarootdir_seen=yes;; |
18552 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18553 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
18554 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18555 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18556 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18557 | ac_datarootdir_hack=' |
18558 | s&@datadir@&$datadir&g | ||||
18559 | s&@docdir@&$docdir&g | ||||
18560 | s&@infodir@&$infodir&g | ||||
18561 | s&@localedir@&$localedir&g | ||||
18562 | s&@mandir@&$mandir&g | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18563 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18564 | esac |
18565 | _ACEOF | ||||
18566 | |||||
18567 | # Neutralize VPATH when `$srcdir' = `.'. | ||||
18568 | # Shell code in configure.ac might set extrasub. | ||||
18569 | # FIXME: do we really want to maintain this feature? | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18570 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18571 | ac_sed_extra="$ac_vpsub | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18572 | $extrasub |
18573 | _ACEOF | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18574 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18575 | :t |
18576 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18577 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18578 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18579 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18580 | s&@srcdir@&$ac_srcdir&;t t |
18581 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||||
18582 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||||
18583 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||||
18584 | s&@builddir@&$ac_builddir&;t t | ||||
18585 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||||
18586 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||||
18587 | s&@INSTALL@&$ac_INSTALL&;t t | ||||
Matthias Klose | 93a0ef1 | 2012-03-15 17:08:34 | [diff] [blame] | 18588 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18589 | $ac_datarootdir_hack |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18590 | " |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18591 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
18592 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||||
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 | [diff] [blame] | 18593 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18594 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18595 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
18596 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | ||||
18597 | "$ac_tmp/out"`; test -z "$ac_out"; } && | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18598 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18599 | which seems to be undefined. Please make sure it is defined" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18600 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18601 | which seems to be undefined. Please make sure it is defined" >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 | [diff] [blame] | 18602 | |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18603 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18604 | case $ac_file in |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18605 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
18606 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18607 | esac \ |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18608 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18609 | ;; |
18610 | :H) | ||||
18611 | # | ||||
18612 | # CONFIG_HEADER | ||||
18613 | # | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18614 | if test x"$ac_file" != x-; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18615 | { |
18616 | $as_echo "/* $configure_input */" \ | ||||
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18617 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
18618 | } >"$ac_tmp/config.h" \ | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18619 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18620 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18621 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
18622 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18623 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18624 | rm -f "$ac_file" |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18625 | mv "$ac_tmp/config.h" "$ac_file" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18626 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18627 | fi |
18628 | else | ||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18629 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 11:06:09 | [diff] [blame] | 18630 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18631 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18632 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18633 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 | [diff] [blame] | 18634 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18635 | |
18636 | esac | ||||
18637 | |||||
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 | [diff] [blame] | 18638 | |
18639 | case $ac_file$ac_mode in | ||||
18640 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | ||||
18641 | |||||
18642 | esac | ||||
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 | [diff] [blame] | 18643 | done # for ac_tag |
18644 | |||||
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 18645 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18646 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18647 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18648 | ac_clean_files=$ac_clean_files_save |
18649 | |||||
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18650 | test $ac_write_fail = 0 || |
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18651 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18653 | |
18654 | # configure is writing to config.log, and then calls config.status. | ||||
18655 | # config.status does its own redirection, appending to config.log. | ||||
18656 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||||
18657 | # by configure, so config.status won't be able to write to it; its | ||||
18658 | # output is simply discarded. So we exec the FD to /dev/null, | ||||
18659 | # effectively closing config.log, so it can be properly (re)opened and | ||||
18660 | # appended to by config.status. When coming back to configure, we | ||||
18661 | # need to make the FD available again. | ||||
18662 | if test "$no_create" != yes; then | ||||
18663 | ac_cs_success=: | ||||
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18664 | ac_config_status_args= |
18665 | test "$silent" = yes && | ||||
18666 | ac_config_status_args="$ac_config_status_args --quiet" | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18667 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 | [diff] [blame] | 18668 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18669 | exec 5>>config.log |
18670 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||||
18671 | # would make configure fail if this is the last instruction. | ||||
Ross Lagerwall | b0ae53d | 2011-06-10 05:30:30 | [diff] [blame] | 18672 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 | [diff] [blame] | 18673 | fi |
18674 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||||
18675 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||||
18676 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||||
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 | [diff] [blame] | 18677 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 | [diff] [blame] | 18678 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 18679 | |
Christian Heimes | 75ed890 | 2013-11-20 00:11:18 | [diff] [blame] | 18680 | echo "creating Modules/Setup" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 18681 | if test ! -f Modules/Setup |
18682 | then | ||||
18683 | cp $srcdir/Modules/Setup.dist Modules/Setup | ||||
18684 | fi | ||||
18685 | |||||
Christian Heimes | 75ed890 | 2013-11-20 00:11:18 | [diff] [blame] | 18686 | echo "creating Modules/Setup.local" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 18687 | if test ! -f Modules/Setup.local |
18688 | then | ||||
18689 | echo "# Edit this file for local setup changes" >Modules/Setup.local | ||||
18690 | fi | ||||
18691 | |||||
Christian Heimes | 75ed890 | 2013-11-20 00:11:18 | [diff] [blame] | 18692 | echo "creating Makefile" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 | [diff] [blame] | 18693 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
Antoine Pitrou | a6a4dc8 | 2017-09-07 16:56:24 | [diff] [blame] | 18694 | -s Modules \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 | [diff] [blame] | 18695 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 | [diff] [blame] | 18696 | mv config.c Modules |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 18697 | |
18698 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then | ||||
18699 | echo "" >&6 | ||||
18700 | echo "" >&6 | ||||
Brett Cannon | b4e5fee | 2017-06-09 20:56:57 | [diff] [blame] | 18701 | 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 | [diff] [blame] | 18702 | echo "please run ./configure --enable-optimizations" >&6 |
Brett Cannon | 63d98bc | 2016-09-07 00:12:40 | [diff] [blame] | 18703 | echo "" >&6 |
18704 | echo "" >&6 | ||||
18705 | fi | ||||
18706 |