| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for python 3.6. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | # | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 5 | # Report bugs to <https://bugs.python.org/>. | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6 | # | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7 | # | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9 | # | 
|  | 10 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation | 
|  | 12 | # gives unlimited permission to copy, distribute and modify it. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13 | ## -------------------- ## | 
|  | 14 | ## M4sh Initialization. ## | 
|  | 15 | ## -------------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17 | # Be more Bourne compatible | 
|  | 18 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20 | emulate sh | 
|  | 21 | NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23 | # is contrary to our usage.  Disable this feature. | 
|  | 24 | alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 26 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( | 
|  | 28 | *posix*) : | 
|  | 29 | set -o posix ;; #( | 
|  | 30 | *) : | 
|  | 31 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 32 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 34 |  | 
|  | 35 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 36 | as_nl=' | 
|  | 37 | ' | 
|  | 38 | export as_nl | 
|  | 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 44 | # but without wasting forks for bash or zsh. | 
|  | 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 47 | as_echo='print -r --' | 
|  | 48 | as_echo_n='print -rn --' | 
|  | 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 50 | as_echo='printf %s\n' | 
|  | 51 | as_echo_n='printf %s' | 
|  | 52 | else | 
|  | 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 55 | as_echo_n='/usr/ucb/echo -n' | 
|  | 56 | else | 
|  | 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 58 | as_echo_n_body='eval | 
|  | 59 | arg=$1; | 
|  | 60 | case $arg in #( | 
|  | 61 | *"$as_nl"*) | 
|  | 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 64 | esac; | 
|  | 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 66 | ' | 
|  | 67 | export as_echo_n_body | 
|  | 68 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 69 | fi | 
|  | 70 | export as_echo_body | 
|  | 71 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 72 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 73 |  | 
|  | 74 | # The user is always right. | 
|  | 75 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 76 | PATH_SEPARATOR=: | 
|  | 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 79 | PATH_SEPARATOR=';' | 
|  | 80 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 81 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 82 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 83 |  | 
|  | 84 | # IFS | 
|  | 85 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 86 | # there to prevent editors from complaining about space-tab. | 
|  | 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 88 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 89 | IFS=" ""	$as_nl" | 
|  | 90 |  | 
|  | 91 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 92 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 93 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 94 | *[\\/]* ) as_myself=$0 ;; | 
|  | 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 96 | for as_dir in $PATH | 
|  | 97 | do | 
|  | 98 | IFS=$as_save_IFS | 
|  | 99 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 101 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 102 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 103 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 104 | ;; | 
|  | 105 | esac | 
|  | 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 107 | # in which case we are not to be found in the path. | 
|  | 108 | if test "x$as_myself" = x; then | 
|  | 109 | as_myself=$0 | 
|  | 110 | fi | 
|  | 111 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 113 | exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 114 | fi | 
|  | 115 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 116 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 117 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 118 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 119 | # trigger a bug in pdksh 5.2.14. | 
|  | 120 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 121 | do eval test x\${$as_var+set} = xset \ | 
|  | 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 123 | done | 
|  | 124 | PS1='$ ' | 
|  | 125 | PS2='> ' | 
|  | 126 | PS4='+ ' | 
|  | 127 |  | 
|  | 128 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 129 | LC_ALL=C | 
|  | 130 | export LC_ALL | 
|  | 131 | LANGUAGE=C | 
|  | 132 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 133 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 134 | # CDPATH. | 
|  | 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 136 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 137 | # Use a proper internal environment variable to ensure we don't fall | 
|  | 138 | # into an infinite loop, continuously re-executing ourselves. | 
|  | 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | 
|  | 140 | _as_can_reexec=no; export _as_can_reexec; | 
|  | 141 | # We cannot yet assume a decent shell, so we have to provide a | 
|  | 142 | # neutralization value for shells without unset; and this also | 
|  | 143 | # works around shells that cannot unset nonexistent variables. | 
|  | 144 | # Preserve -v and -x to the replacement shell. | 
|  | 145 | BASH_ENV=/dev/null | 
|  | 146 | ENV=/dev/null | 
|  | 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
|  | 148 | case $- in # (((( | 
|  | 149 | *v*x* | *x*v* ) as_opts=-vx ;; | 
|  | 150 | *v* ) as_opts=-v ;; | 
|  | 151 | *x* ) as_opts=-x ;; | 
|  | 152 | * ) as_opts= ;; | 
|  | 153 | esac | 
|  | 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | 
|  | 155 | # Admittedly, this is quite paranoid, since all the known shells bail | 
|  | 156 | # out after a failed `exec'. | 
|  | 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | 
|  | 158 | as_fn_exit 255 | 
|  | 159 | fi | 
|  | 160 | # We don't want this to propagate to other subprocesses. | 
|  | 161 | { _as_can_reexec=; unset _as_can_reexec;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 162 | if test "x$CONFIG_SHELL" = x; then | 
|  | 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | 
|  | 164 | emulate sh | 
|  | 165 | NULLCMD=: | 
|  | 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | 
|  | 167 | # is contrary to our usage.  Disable this feature. | 
|  | 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | 
|  | 169 | setopt NO_GLOB_SUBST | 
|  | 170 | else | 
|  | 171 | case \`(set -o) 2>/dev/null\` in #( | 
|  | 172 | *posix*) : | 
|  | 173 | set -o posix ;; #( | 
|  | 174 | *) : | 
|  | 175 | ;; | 
|  | 176 | esac | 
|  | 177 | fi | 
|  | 178 | " | 
|  | 179 | as_required="as_fn_return () { (exit \$1); } | 
|  | 180 | as_fn_success () { as_fn_return 0; } | 
|  | 181 | as_fn_failure () { as_fn_return 1; } | 
|  | 182 | as_fn_ret_success () { return 0; } | 
|  | 183 | as_fn_ret_failure () { return 1; } | 
|  | 184 |  | 
|  | 185 | exitcode=0 | 
|  | 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | 
|  | 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | 
|  | 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | 
|  | 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | 
|  | 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | 
|  | 191 |  | 
|  | 192 | else | 
|  | 193 | exitcode=1; echo positional parameters were not saved. | 
|  | 194 | fi | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 195 | test x\$exitcode = x0 || exit 1 | 
|  | 196 | test -x / || exit 1" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 197 | as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 
|  | 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 
|  | 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 
|  | 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | 
|  | 201 | test \$(( 1 + 1 )) = 2 || exit 1" | 
|  | 202 | if (eval "$as_required") 2>/dev/null; then : | 
|  | 203 | as_have_required=yes | 
|  | 204 | else | 
|  | 205 | as_have_required=no | 
|  | 206 | fi | 
|  | 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | 
|  | 208 |  | 
|  | 209 | else | 
|  | 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 211 | as_found=false | 
|  | 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
|  | 213 | do | 
|  | 214 | IFS=$as_save_IFS | 
|  | 215 | test -z "$as_dir" && as_dir=. | 
|  | 216 | as_found=: | 
|  | 217 | case $as_dir in #( | 
|  | 218 | /*) | 
|  | 219 | for as_base in sh bash ksh sh5; do | 
|  | 220 | # Try only shells that exist, to save several forks. | 
|  | 221 | as_shell=$as_dir/$as_base | 
|  | 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
|  | 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
|  | 224 | CONFIG_SHELL=$as_shell as_have_required=yes | 
|  | 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
|  | 226 | break 2 | 
|  | 227 | fi | 
|  | 228 | fi | 
|  | 229 | done;; | 
|  | 230 | esac | 
|  | 231 | as_found=false | 
|  | 232 | done | 
|  | 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | 
|  | 234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | 
|  | 235 | CONFIG_SHELL=$SHELL as_have_required=yes | 
|  | 236 | fi; } | 
|  | 237 | IFS=$as_save_IFS | 
|  | 238 |  | 
|  | 239 |  | 
|  | 240 | if test "x$CONFIG_SHELL" != x; then : | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 241 | export CONFIG_SHELL | 
|  | 242 | # We cannot yet assume a decent shell, so we have to provide a | 
|  | 243 | # neutralization value for shells without unset; and this also | 
|  | 244 | # works around shells that cannot unset nonexistent variables. | 
|  | 245 | # Preserve -v and -x to the replacement shell. | 
|  | 246 | BASH_ENV=/dev/null | 
|  | 247 | ENV=/dev/null | 
|  | 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
|  | 249 | case $- in # (((( | 
|  | 250 | *v*x* | *x*v* ) as_opts=-vx ;; | 
|  | 251 | *v* ) as_opts=-v ;; | 
|  | 252 | *x* ) as_opts=-x ;; | 
|  | 253 | * ) as_opts= ;; | 
|  | 254 | esac | 
|  | 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | 
|  | 256 | # Admittedly, this is quite paranoid, since all the known shells bail | 
|  | 257 | # out after a failed `exec'. | 
|  | 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | 
|  | 259 | exit 255 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 260 | fi | 
|  | 261 |  | 
|  | 262 | if test x$as_have_required = xno; then : | 
|  | 263 | $as_echo "$0: This script requires a shell more modern than all" | 
|  | 264 | $as_echo "$0: the shells that I found on your system." | 
|  | 265 | if test x${ZSH_VERSION+set} = xset ; then | 
|  | 266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | 
|  | 267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | 
|  | 268 | else | 
|  | 269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 270 | $0: https://bugs.python.org/ about your system, including | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 271 | $0: any error possibly output before this message. Then | 
|  | 272 | $0: install a modern shell, or manually run the script | 
|  | 273 | $0: under such a shell if you do have one." | 
|  | 274 | fi | 
|  | 275 | exit 1 | 
|  | 276 | fi | 
|  | 277 | fi | 
|  | 278 | fi | 
|  | 279 | SHELL=${CONFIG_SHELL-/bin/sh} | 
|  | 280 | export SHELL | 
|  | 281 | # Unset more variables known to interfere with behavior of common tools. | 
|  | 282 | CLICOLOR_FORCE= GREP_OPTIONS= | 
|  | 283 | unset CLICOLOR_FORCE GREP_OPTIONS | 
|  | 284 |  | 
|  | 285 | ## --------------------- ## | 
|  | 286 | ## M4sh Shell Functions. ## | 
|  | 287 | ## --------------------- ## | 
|  | 288 | # as_fn_unset VAR | 
|  | 289 | # --------------- | 
|  | 290 | # Portably unset VAR. | 
|  | 291 | as_fn_unset () | 
|  | 292 | { | 
|  | 293 | { eval $1=; unset $1;} | 
|  | 294 | } | 
|  | 295 | as_unset=as_fn_unset | 
|  | 296 |  | 
|  | 297 | # as_fn_set_status STATUS | 
|  | 298 | # ----------------------- | 
|  | 299 | # Set $? to STATUS, without forking. | 
|  | 300 | as_fn_set_status () | 
|  | 301 | { | 
|  | 302 | return $1 | 
|  | 303 | } # as_fn_set_status | 
|  | 304 |  | 
|  | 305 | # as_fn_exit STATUS | 
|  | 306 | # ----------------- | 
|  | 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 308 | as_fn_exit () | 
|  | 309 | { | 
|  | 310 | set +e | 
|  | 311 | as_fn_set_status $1 | 
|  | 312 | exit $1 | 
|  | 313 | } # as_fn_exit | 
|  | 314 |  | 
|  | 315 | # as_fn_mkdir_p | 
|  | 316 | # ------------- | 
|  | 317 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 318 | as_fn_mkdir_p () | 
|  | 319 | { | 
|  | 320 |  | 
|  | 321 | case $as_dir in #( | 
|  | 322 | -*) as_dir=./$as_dir;; | 
|  | 323 | esac | 
|  | 324 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 325 | as_dirs= | 
|  | 326 | while :; do | 
|  | 327 | case $as_dir in #( | 
|  | 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 329 | *) as_qdir=$as_dir;; | 
|  | 330 | esac | 
|  | 331 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 332 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 334 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 335 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 337 | $as_echo X"$as_dir" | | 
|  | 338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 339 | s//\1/ | 
|  | 340 | q | 
|  | 341 | } | 
|  | 342 | /^X\(\/\/\)[^/].*/{ | 
|  | 343 | s//\1/ | 
|  | 344 | q | 
|  | 345 | } | 
|  | 346 | /^X\(\/\/\)$/{ | 
|  | 347 | s//\1/ | 
|  | 348 | q | 
|  | 349 | } | 
|  | 350 | /^X\(\/\).*/{ | 
|  | 351 | s//\1/ | 
|  | 352 | q | 
|  | 353 | } | 
|  | 354 | s/.*/./; q'` | 
|  | 355 | test -d "$as_dir" && break | 
|  | 356 | done | 
|  | 357 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 359 |  | 
|  | 360 |  | 
|  | 361 | } # as_fn_mkdir_p | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 362 |  | 
|  | 363 | # as_fn_executable_p FILE | 
|  | 364 | # ----------------------- | 
|  | 365 | # Test if FILE is an executable regular file. | 
|  | 366 | as_fn_executable_p () | 
|  | 367 | { | 
|  | 368 | test -f "$1" && test -x "$1" | 
|  | 369 | } # as_fn_executable_p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 370 | # as_fn_append VAR VALUE | 
|  | 371 | # ---------------------- | 
|  | 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 373 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 374 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 375 | # implementations. | 
|  | 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 377 | eval 'as_fn_append () | 
|  | 378 | { | 
|  | 379 | eval $1+=\$2 | 
|  | 380 | }' | 
|  | 381 | else | 
|  | 382 | as_fn_append () | 
|  | 383 | { | 
|  | 384 | eval $1=\$$1\$2 | 
|  | 385 | } | 
|  | 386 | fi # as_fn_append | 
|  | 387 |  | 
|  | 388 | # as_fn_arith ARG... | 
|  | 389 | # ------------------ | 
|  | 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 392 | # must be portable across $(()) and expr. | 
|  | 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 394 | eval 'as_fn_arith () | 
|  | 395 | { | 
|  | 396 | as_val=$(( $* )) | 
|  | 397 | }' | 
|  | 398 | else | 
|  | 399 | as_fn_arith () | 
|  | 400 | { | 
|  | 401 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 402 | } | 
|  | 403 | fi # as_fn_arith | 
|  | 404 |  | 
|  | 405 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
|  | 407 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 410 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 411 | as_fn_error () | 
|  | 412 | { | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 413 | as_status=$1; test $as_status -eq 0 && as_status=1 | 
|  | 414 | if test "$4"; then | 
|  | 415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 417 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 418 | $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 419 | as_fn_exit $as_status | 
|  | 420 | } # as_fn_error | 
|  | 421 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 422 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 424 | as_expr=expr | 
|  | 425 | else | 
|  | 426 | as_expr=false | 
|  | 427 | fi | 
|  | 428 |  | 
|  | 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 430 | as_basename=basename | 
|  | 431 | else | 
|  | 432 | as_basename=false | 
|  | 433 | fi | 
|  | 434 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 436 | as_dirname=dirname | 
|  | 437 | else | 
|  | 438 | as_dirname=false | 
|  | 439 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 440 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 441 | as_me=`$as_basename -- "$0" || | 
|  | 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 443 | X"$0" : 'X\(//\)$' \| \ | 
|  | 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 445 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 447 | s//\1/ | 
|  | 448 | q | 
|  | 449 | } | 
|  | 450 | /^X\/\(\/\/\)$/{ | 
|  | 451 | s//\1/ | 
|  | 452 | q | 
|  | 453 | } | 
|  | 454 | /^X\/\(\/\).*/{ | 
|  | 455 | s//\1/ | 
|  | 456 | q | 
|  | 457 | } | 
|  | 458 | s/.*/./; q'` | 
|  | 459 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 460 | # Avoid depending upon Character Ranges. | 
|  | 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 464 | as_cr_digits='0123456789' | 
|  | 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 466 |  | 
|  | 467 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | 
|  | 469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | 
|  | 470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | 
|  | 471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | 
|  | 472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 473 | sed -n ' | 
|  | 474 | p | 
|  | 475 | /[$]LINENO/= | 
|  | 476 | ' <$as_myself | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 477 | sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 478 | s/[$]LINENO.*/&-/ | 
|  | 479 | t lineno | 
|  | 480 | b | 
|  | 481 | :lineno | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 482 | N | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 483 | :loop | 
|  | 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 485 | t loop | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 486 | s/-\n.*// | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 487 | ' >$as_me.lineno && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 488 | chmod +x "$as_me.lineno" || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 490 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | 
|  | 492 | # already done that, so ensure we don't try to do so again and fall | 
|  | 493 | # in an infinite loop.  This has already happened in practice. | 
|  | 494 | _as_can_reexec=no; export _as_can_reexec | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 495 | # Don't try to exec as it changes $[0], causing all sort of problems | 
|  | 496 | # (the dirname of $[0] is not the place where we might find the | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 497 | # original and so on.  Autoconf is especially sensitive to this). | 
|  | 498 | . "./$as_me.lineno" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 499 | # Exit status is that of the last command. | 
|  | 500 | exit | 
|  | 501 | } | 
|  | 502 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 503 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 504 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 505 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 506 | case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 507 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 508 | xy)  ECHO_C='\c';; | 
|  | 509 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 510 | ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 511 | esac;; | 
|  | 512 | *) | 
|  | 513 | ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 514 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 515 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 517 | if test -d conf$$.dir; then | 
|  | 518 | rm -f conf$$.dir/conf$$.file | 
|  | 519 | else | 
|  | 520 | rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 521 | mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 522 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 523 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 524 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 525 | as_ln_s='ln -s' | 
|  | 526 | # ... but there are two gotchas: | 
|  | 527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 529 | # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 531 | as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 532 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 533 | as_ln_s=ln | 
|  | 534 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 535 | as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 536 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 537 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 538 | as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 539 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 541 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 542 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 543 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 544 | as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 545 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 546 | test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 547 | as_mkdir_p=false | 
|  | 548 | fi | 
|  | 549 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 550 | as_test_x='test -x' | 
|  | 551 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 |  | 
|  | 553 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 555 |  | 
|  | 556 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 558 |  | 
|  | 559 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 560 | test -n "$DJDIR" || exec 7<&0 </dev/null | 
|  | 561 | exec 6>&1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 |  | 
|  | 563 | # Name of the host. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 565 | # so uname gets run too. | 
|  | 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 567 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 568 | # | 
|  | 569 | # Initializations. | 
|  | 570 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 571 | ac_default_prefix=/usr/local | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 572 | ac_clean_files= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 573 | ac_config_libobj_dir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 574 | LIBOBJS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | cross_compiling=no | 
|  | 576 | subdirs= | 
|  | 577 | MFLAGS= | 
|  | 578 | MAKEFLAGS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 579 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 | # Identity of this package. | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 581 | PACKAGE_NAME='python' | 
|  | 582 | PACKAGE_TARNAME='python' | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 583 | PACKAGE_VERSION='3.6' | 
|  | 584 | PACKAGE_STRING='python 3.6' | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='https://bugs.python.org/' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 586 | PACKAGE_URL='' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 |  | 
|  | 588 | ac_unique_file="Include/object.h" | 
|  | 589 | # Factoring default headers for most tests. | 
|  | 590 | ac_includes_default="\ | 
|  | 591 | #include <stdio.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 592 | #ifdef HAVE_SYS_TYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <sys/types.h> | 
|  | 594 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 595 | #ifdef HAVE_SYS_STAT_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 596 | # include <sys/stat.h> | 
|  | 597 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 598 | #ifdef STDC_HEADERS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 599 | # include <stdlib.h> | 
|  | 600 | # include <stddef.h> | 
|  | 601 | #else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 602 | # ifdef HAVE_STDLIB_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | #  include <stdlib.h> | 
|  | 604 | # endif | 
|  | 605 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRING_H | 
|  | 607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 608 | #  include <memory.h> | 
|  | 609 | # endif | 
|  | 610 | # include <string.h> | 
|  | 611 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STRINGS_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 613 | # include <strings.h> | 
|  | 614 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 615 | #ifdef HAVE_INTTYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <inttypes.h> | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 617 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 618 | #ifdef HAVE_STDINT_H | 
|  | 619 | # include <stdint.h> | 
|  | 620 | #endif | 
|  | 621 | #ifdef HAVE_UNISTD_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 622 | # include <unistd.h> | 
|  | 623 | #endif" | 
|  | 624 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 625 | ac_subst_vars='LTLIBOBJS | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 626 | ENSUREPIP | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 627 | SRCDIRS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 628 | THREADHEADERS | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 629 | LIBPL | 
|  | 630 | PY_ENABLE_SHARED | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 631 | EXT_SUFFIX | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 632 | SOABI | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 633 | LIBC | 
|  | 634 | LIBM | 
|  | 635 | HAVE_GETHOSTBYNAME | 
|  | 636 | HAVE_GETHOSTBYNAME_R | 
|  | 637 | HAVE_GETHOSTBYNAME_R_3_ARG | 
|  | 638 | HAVE_GETHOSTBYNAME_R_5_ARG | 
|  | 639 | HAVE_GETHOSTBYNAME_R_6_ARG | 
|  | 640 | LIBOBJS | 
|  | 641 | TRUE | 
|  | 642 | MACHDEP_OBJS | 
|  | 643 | DYNLOADFILE | 
|  | 644 | DLINCLDIR | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 645 | DTRACE_OBJS | 
|  | 646 | DTRACE_HEADERS | 
|  | 647 | DFLAGS | 
|  | 648 | DTRACE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 649 | THREADOBJ | 
|  | 650 | LDLAST | 
|  | 651 | USE_THREAD_MODULE | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 652 | TCLTK_LIBS | 
|  | 653 | TCLTK_INCLUDES | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 654 | LIBFFI_INCLUDEDIR | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 655 | PKG_CONFIG_LIBDIR | 
|  | 656 | PKG_CONFIG_PATH | 
|  | 657 | PKG_CONFIG | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 658 | SHLIBS | 
|  | 659 | CFLAGSFORSHARED | 
|  | 660 | LINKFORSHARED | 
|  | 661 | CCSHARED | 
|  | 662 | BLDSHARED | 
|  | 663 | LDCXXSHARED | 
|  | 664 | LDSHARED | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 665 | SHLIB_SUFFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 666 | LIBTOOL_CRUFT | 
|  | 667 | OTHER_LIBTOOL_OPT | 
|  | 668 | UNIVERSAL_ARCH_FLAGS | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 669 | CFLAGS_NODIST | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 670 | BASECFLAGS | 
|  | 671 | OPT | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 672 | LLVM_PROF_FOUND | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 673 | target_os | 
|  | 674 | target_vendor | 
|  | 675 | target_cpu | 
|  | 676 | target | 
|  | 677 | LLVM_PROFDATA | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 678 | LLVM_PROF_ERR | 
|  | 679 | LLVM_PROF_FILE | 
|  | 680 | LLVM_PROF_MERGER | 
|  | 681 | PGO_PROF_USE_FLAG | 
|  | 682 | PGO_PROF_GEN_FLAG | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 683 | LTOFLAGS | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 684 | DEF_MAKE_RULE | 
|  | 685 | DEF_MAKE_ALL_RULE | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 686 | ABIFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 687 | LN | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 688 | MKDIR_P | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 689 | INSTALL_DATA | 
|  | 690 | INSTALL_SCRIPT | 
|  | 691 | INSTALL_PROGRAM | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 692 | ac_ct_READELF | 
|  | 693 | READELF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 694 | ARFLAGS | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 695 | ac_ct_AR | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 696 | AR | 
|  | 697 | RANLIB | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 698 | USE_INLINE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 699 | GNULD | 
|  | 700 | LINKCC | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 701 | LDVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 702 | RUNSHARED | 
|  | 703 | INSTSONAME | 
|  | 704 | LDLIBRARYDIR | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 705 | PY3LIBRARY | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 706 | BLDLIBRARY | 
|  | 707 | DLLLIBRARY | 
|  | 708 | LDLIBRARY | 
|  | 709 | LIBRARY | 
|  | 710 | BUILDEXEEXT | 
|  | 711 | EGREP | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 712 | NO_AS_NEEDED | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 713 | MULTIARCH_CPPFLAGS | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 714 | PLATFORM_TRIPLET | 
|  | 715 | MULTIARCH | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 716 | ac_ct_CXX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 717 | MAINCC | 
|  | 718 | CXX | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 719 | SED | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 720 | GREP | 
|  | 721 | CPP | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 722 | OBJEXT | 
|  | 723 | EXEEXT | 
|  | 724 | ac_ct_CC | 
|  | 725 | CPPFLAGS | 
|  | 726 | LDFLAGS | 
|  | 727 | CFLAGS | 
|  | 728 | CC | 
|  | 729 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
|  | 730 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
|  | 731 | SGI_ABI | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 732 | _PYTHON_HOST_PLATFORM | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 733 | MACHDEP | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 734 | FRAMEWORKINSTALLAPPSPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 735 | FRAMEWORKUNIXTOOLSPREFIX | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 736 | FRAMEWORKPYTHONW | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 737 | FRAMEWORKALTINSTALLLAST | 
|  | 738 | FRAMEWORKALTINSTALLFIRST | 
|  | 739 | FRAMEWORKINSTALLLAST | 
|  | 740 | FRAMEWORKINSTALLFIRST | 
|  | 741 | PYTHONFRAMEWORKINSTALLDIR | 
|  | 742 | PYTHONFRAMEWORKPREFIX | 
|  | 743 | PYTHONFRAMEWORKDIR | 
|  | 744 | PYTHONFRAMEWORKIDENTIFIER | 
|  | 745 | PYTHONFRAMEWORK | 
|  | 746 | LIPO_32BIT_FLAGS | 
|  | 747 | ARCH_RUN_32BIT | 
|  | 748 | UNIVERSALSDK | 
|  | 749 | CONFIG_ARGS | 
|  | 750 | SOVERSION | 
|  | 751 | VERSION | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 752 | GENERATED_COMMENT | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 753 | PYTHON_FOR_BUILD | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 754 | PYTHON_FOR_GEN | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 755 | host_os | 
|  | 756 | host_vendor | 
|  | 757 | host_cpu | 
|  | 758 | host | 
|  | 759 | build_os | 
|  | 760 | build_vendor | 
|  | 761 | build_cpu | 
|  | 762 | build | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 763 | HAS_HG | 
|  | 764 | HGBRANCH | 
|  | 765 | HGTAG | 
|  | 766 | HGVERSION | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 767 | BASECPPFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 768 | target_alias | 
|  | 769 | host_alias | 
|  | 770 | build_alias | 
|  | 771 | LIBS | 
|  | 772 | ECHO_T | 
|  | 773 | ECHO_N | 
|  | 774 | ECHO_C | 
|  | 775 | DEFS | 
|  | 776 | mandir | 
|  | 777 | localedir | 
|  | 778 | libdir | 
|  | 779 | psdir | 
|  | 780 | pdfdir | 
|  | 781 | dvidir | 
|  | 782 | htmldir | 
|  | 783 | infodir | 
|  | 784 | docdir | 
|  | 785 | oldincludedir | 
|  | 786 | includedir | 
|  | 787 | localstatedir | 
|  | 788 | sharedstatedir | 
|  | 789 | sysconfdir | 
|  | 790 | datadir | 
|  | 791 | datarootdir | 
|  | 792 | libexecdir | 
|  | 793 | sbindir | 
|  | 794 | bindir | 
|  | 795 | program_transform_name | 
|  | 796 | prefix | 
|  | 797 | exec_prefix | 
|  | 798 | PACKAGE_URL | 
|  | 799 | PACKAGE_BUGREPORT | 
|  | 800 | PACKAGE_STRING | 
|  | 801 | PACKAGE_VERSION | 
|  | 802 | PACKAGE_TARNAME | 
|  | 803 | PACKAGE_NAME | 
|  | 804 | PATH_SEPARATOR | 
|  | 805 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 806 | ac_subst_files='' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 807 | ac_user_opts=' | 
|  | 808 | enable_option_checking | 
|  | 809 | enable_universalsdk | 
|  | 810 | with_universal_archs | 
|  | 811 | with_framework_name | 
|  | 812 | enable_framework | 
|  | 813 | with_gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 814 | with_icc | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 815 | with_cxx_main | 
|  | 816 | with_suffix | 
|  | 817 | enable_shared | 
|  | 818 | enable_profiling | 
|  | 819 | with_pydebug | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 820 | with_optimizations | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 821 | with_lto | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 822 | with_hash_algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 823 | with_address_sanitizer | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 824 | with_libs | 
|  | 825 | with_system_expat | 
|  | 826 | with_system_ffi | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 827 | with_system_libmpdec | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 828 | enable_loadable_sqlite_extensions | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 829 | with_tcltk_includes | 
|  | 830 | with_tcltk_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 831 | with_dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 832 | with_threads | 
|  | 833 | with_thread | 
|  | 834 | enable_ipv6 | 
|  | 835 | with_doc_strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 836 | with_pymalloc | 
|  | 837 | with_valgrind | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 838 | with_dtrace | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 839 | with_fpectl | 
|  | 840 | with_libm | 
|  | 841 | with_libc | 
|  | 842 | enable_big_digits | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 843 | with_computed_gotos | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 844 | with_ensurepip | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 845 | ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 846 | ac_precious_vars='build_alias | 
|  | 847 | host_alias | 
|  | 848 | target_alias | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 849 | MACHDEP | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 850 | CC | 
|  | 851 | CFLAGS | 
|  | 852 | LDFLAGS | 
|  | 853 | LIBS | 
|  | 854 | CPPFLAGS | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 855 | CPP | 
|  | 856 | PKG_CONFIG | 
|  | 857 | PKG_CONFIG_PATH | 
|  | 858 | PKG_CONFIG_LIBDIR' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 859 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 860 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 861 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 862 | ac_init_help= | 
|  | 863 | ac_init_version=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 864 | ac_unrecognized_opts= | 
|  | 865 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [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 +0000 | [diff] [blame] | 868 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 869 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 870 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [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 +0000 | [diff] [blame] | 876 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 877 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 878 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 879 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 880 | x_includes=NONE | 
|  | 881 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [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 +0000 | [diff] [blame] | 888 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [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 +0000 | [diff] [blame] | 892 | datarootdir='${prefix}/share' | 
|  | 893 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 894 | sysconfdir='${prefix}/etc' | 
|  | 895 | sharedstatedir='${prefix}/com' | 
|  | 896 | localstatedir='${prefix}/var' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 897 | includedir='${prefix}/include' | 
|  | 898 | oldincludedir='/usr/include' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 +0000 | [diff] [blame] | 908 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 909 | ac_prev= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 910 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 911 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 912 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [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 +0000 | [diff] [blame] | 915 | eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 916 | ac_prev= | 
|  | 917 | continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 918 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 919 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 920 | case $ac_option in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [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 +0000 | [diff] [blame] | 924 | esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 925 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 926 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 927 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 928 | case $ac_dashdash$ac_option in | 
|  | 929 | --) | 
|  | 930 | ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 931 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [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 +0000 | [diff] [blame] | 935 | bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 936 |  | 
|  | 937 | -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 938 | ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 939 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 940 | build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 941 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [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 +0000 | [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 +0000 | [diff] [blame] | 951 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 952 | -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 953 | ac_prev=datadir ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 954 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 955 | datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 956 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 +0000 | [diff] [blame] | 964 | -disable-* | --disable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 965 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 966 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 967 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 968 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [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 +0000 | [diff] [blame] | 989 |  | 
|  | 990 | -enable-* | --enable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 991 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 992 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 993 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 994 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [diff] [blame] | 1005 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [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 +0000 | [diff] [blame] | 1013 | exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1014 |  | 
|  | 1015 | -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1016 | # Obsolete; use --with-gas. | 
|  | 1017 | with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1018 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [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 +0000 | [diff] [blame] | 1025 |  | 
|  | 1026 | -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1027 | ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1028 | -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1029 | host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1030 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 +0000 | [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 +0000 | [diff] [blame] | 1042 | includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [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 +0000 | [diff] [blame] | 1047 | infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [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 +0000 | [diff] [blame] | 1052 | libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [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 +0000 | [diff] [blame] | 1059 | libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1060 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 +0000 | [diff] [blame] | 1066 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1067 | | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1068 | ac_prev=localstatedir ;; | 
|  | 1069 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1070 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1071 | localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [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 +0000 | [diff] [blame] | 1076 | mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1077 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1078 | -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1079 | # Obsolete; use --without-fp. | 
|  | 1080 | with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [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 +0000 | [diff] [blame] | 1083 | | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1084 | no_create=yes ;; | 
|  | 1085 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [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 +0000 | [diff] [blame] | 1089 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [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 +0000 | [diff] [blame] | 1097 | oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1098 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [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 +0000 | [diff] [blame] | 1102 | prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [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 +0000 | [diff] [blame] | 1109 | program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [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 +0000 | [diff] [blame] | 1116 | program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [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 +0000 | [diff] [blame] | 1133 | program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1134 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 +0000 | [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 +0000 | [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 +0000 | [diff] [blame] | 1153 | sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [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 +0000 | [diff] [blame] | 1164 | sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1165 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [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 +0000 | [diff] [blame] | 1169 | site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1170 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [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 +0000 | [diff] [blame] | 1174 | srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1175 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [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 +0000 | [diff] [blame] | 1181 | sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1182 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1183 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1184 | ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1185 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1186 | target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [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 +0000 | [diff] [blame] | 1191 | -version | --version | --versio | --versi | --vers | -V) | 
|  | 1192 | ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1193 |  | 
|  | 1194 | -with-* | --with-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1195 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1196 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1197 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1198 | as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [diff] [blame] | 1209 |  | 
|  | 1210 | -without-* | --without-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1211 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1212 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1213 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1214 | as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [diff] [blame] | 1225 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1226 | --x) | 
|  | 1227 | # Obsolete; use --with-x. | 
|  | 1228 | with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [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 +0000 | [diff] [blame] | 1235 | x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [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 +0000 | [diff] [blame] | 1242 | x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1243 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [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 +0000 | [diff] [blame] | 1246 | ;; | 
|  | 1247 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [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 +0000 | [diff] [blame] | 1251 | case $ac_envvar in #( | 
|  | 1252 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1253 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1254 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1255 | eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1256 | export $ac_envvar ;; | 
|  | 1257 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1258 | *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1259 | # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [diff] [blame] | 1261 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1262 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [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 +0000 | [diff] [blame] | 1264 | ;; | 
|  | 1265 |  | 
|  | 1266 | esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1267 | done | 
|  | 1268 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1269 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1270 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1271 | as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1272 | fi | 
|  | 1273 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1274 | if test -n "$ac_unrecognized_opts"; then | 
|  | 1275 | case $enable_option_checking in | 
|  | 1276 | no) ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1277 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [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 \ | 
| Xavier de Gaye | 92dec54 | 2016-09-11 22:22:24 +0200 | [diff] [blame^] | 1286 | libdir localedir mandir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1287 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1288 | eval ac_val=\$$ac_var | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [diff] [blame] | 1296 | case $ac_val in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1297 | [\\/$]* | ?:[\\/]* )  continue;; | 
|  | 1298 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1299 | esac | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [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 +0000 | [diff] [blame] | 1301 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1302 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [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 +0000 | [diff] [blame] | 1309 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [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 +0000 | [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 +0000 | [diff] [blame] | 1324 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 07:30:30 +0200 | [diff] [blame] | 1328 | as_fn_error $? "working directory cannot be determined" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1329 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1330 | as_fn_error $? "pwd does not report name of working directory" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1331 |  | 
|  | 1332 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [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 +0000 | [diff] [blame] | 1335 | ac_srcdir_defaulted=yes | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1336 | # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [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 +0000 | [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 +0000 | [diff] [blame] | 1360 | srcdir=$ac_confdir | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1361 | if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1362 | srcdir=.. | 
|  | 1363 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1364 | else | 
|  | 1365 | ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1366 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 07:30:30 +0200 | [diff] [blame] | 1369 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1370 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 07:30:30 +0200 | [diff] [blame] | 1373 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [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 +0000 | [diff] [blame] | 1391 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [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 | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 1399 | \`configure' configures python 3.6 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [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 07:30:30 +0200 | [diff] [blame] | 1413 | -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [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 +0000 | [diff] [blame] | 1419 | Installation directories: | 
|  | 1420 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1421 | [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1422 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1423 | [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [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 +0000 | [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 +0000 | [diff] [blame] | 1452 | _ACEOF | 
|  | 1453 |  | 
|  | 1454 | cat <<\_ACEOF | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [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] | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 1459 | --target=TARGET   configure for building compilers for TARGET [HOST] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1460 | _ACEOF | 
|  | 1461 | fi | 
|  | 1462 |  | 
|  | 1463 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1464 | case $ac_init_help in | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 1465 | short | recursive ) echo "Configuration of python 3.6:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1466 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1467 | cat <<\_ACEOF | 
|  | 1468 |  | 
|  | 1469 | Optional Features: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1470 | --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1471 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 1472 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1473 | --enable-universalsdk[=SDKDIR] | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 1474 | Build fat binary against Mac OS X SDK | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1475 | --enable-framework[=INSTALLDIR] | 
|  | 1476 | Build (MacOSX|Darwin) framework | 
|  | 1477 | --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1478 | --enable-profiling      enable C-level code profiling | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1479 | --enable-loadable-sqlite-extensions | 
|  | 1480 | support loadable extensions in _sqlite module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1481 | --enable-ipv6           Enable ipv6 (with ipv4) support | 
|  | 1482 | --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1483 | --enable-big-digits[=BITS] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1484 | use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1485 |  | 
|  | 1486 | Optional Packages: | 
|  | 1487 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1488 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1489 | --with-universal-archs=ARCH | 
|  | 1490 | select architectures for universal build ("32-bit", | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 1491 | "64-bit", "3-way", "intel", "intel-32", or "all") | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1492 | --with-framework-name=FRAMEWORK | 
|  | 1493 | specify an alternate name of the framework built | 
|  | 1494 | with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1495 | --without-gcc           never use gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 1496 | --with-icc              build with icc | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1497 | --with-cxx-main=<compiler> | 
|  | 1498 | compile main() and link python executable with C++ | 
|  | 1499 | compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1500 | --with-suffix=.exe      set executable suffix | 
|  | 1501 | --with-pydebug          build with Py_DEBUG defined | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 1502 | --with-optimizations    Enable expensive optimizations (PGO, maybe LTO, | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 1503 | etc). Disabled by default. | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 1504 | --with-lto              Enable Link Time Optimization in PGO builds. | 
|  | 1505 | Disabled by default. | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1506 | --with-hash-algorithm=[fnv|siphash24] | 
|  | 1507 | select hash algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1508 | --with-address-sanitizer | 
|  | 1509 | enable AddressSanitizer | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1510 | --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1511 | --with-system-expat     build pyexpat module using an installed expat | 
|  | 1512 | library | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1513 | --with-system-ffi       build _ctypes module using an installed ffi library | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1514 | --with-system-libmpdec  build _decimal module using an installed libmpdec | 
|  | 1515 | library | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1516 | --with-tcltk-includes='-I...' | 
|  | 1517 | override search for Tcl and Tk include files | 
|  | 1518 | --with-tcltk-libs='-L...' | 
|  | 1519 | override search for Tcl and Tk libs | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1520 | --with-dbmliborder=db1:db2:... | 
|  | 1521 | order to check db backends for dbm. Valid value is a | 
|  | 1522 | colon separated string with the backend names | 
|  | 1523 | `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1524 | --with(out)-threads[=DIRECTORY] | 
|  | 1525 | disable/enable thread support | 
|  | 1526 | --with(out)-thread[=DIRECTORY] | 
|  | 1527 | deprecated; use --with(out)-threads | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1528 | --with(out)-doc-strings disable/enable documentation strings | 
|  | 1529 | --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1530 | --with-valgrind         Enable Valgrind support | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 1531 | --with(out)-dtrace      disable/enable DTrace support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1532 | --with-fpectl           enable SIGFPE catching | 
|  | 1533 | --with-libm=STRING      math library | 
|  | 1534 | --with-libc=STRING      C library | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1535 | --with(out)-computed-gotos | 
|  | 1536 | Use computed gotos in evaluation loop (enabled by | 
|  | 1537 | default on supported compilers) | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 1538 | --with(out)-ensurepip=[=upgrade] | 
|  | 1539 | "install" or "upgrade" using bundled pip | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1540 |  | 
|  | 1541 | Some influential environment variables: | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1542 | MACHDEP     name for machine-dependent library files | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1543 | CC          C compiler command | 
|  | 1544 | CFLAGS      C compiler flags | 
|  | 1545 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1546 | nonstandard directory <lib dir> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1547 | LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1548 | CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1549 | you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1550 | CPP         C preprocessor | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 1551 | PKG_CONFIG  path to pkg-config utility | 
|  | 1552 | PKG_CONFIG_PATH | 
|  | 1553 | directories to add to pkg-config's search path | 
|  | 1554 | PKG_CONFIG_LIBDIR | 
|  | 1555 | path overriding pkg-config's built-in search path | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1556 |  | 
|  | 1557 | Use these variables to override the choices made by `configure' or to help | 
|  | 1558 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1559 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1560 | Report bugs to <https://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1561 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1562 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1563 | fi | 
|  | 1564 |  | 
|  | 1565 | if test "$ac_init_help" = "recursive"; then | 
|  | 1566 | # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1567 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1568 | test -d "$ac_dir" || | 
|  | 1569 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
|  | 1570 | continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1571 | ac_builddir=. | 
|  | 1572 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1573 | case "$ac_dir" in | 
|  | 1574 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1575 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1576 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1577 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1578 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1579 | case $ac_top_builddir_sub in | 
|  | 1580 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1581 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 1582 | esac ;; | 
|  | 1583 | esac | 
|  | 1584 | ac_abs_top_builddir=$ac_pwd | 
|  | 1585 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 1586 | # for backward compatibility: | 
|  | 1587 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1588 |  | 
|  | 1589 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1590 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1591 | ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1592 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 1593 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 1594 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1595 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1596 | ac_top_srcdir=$srcdir | 
|  | 1597 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 1598 | *) # Relative name. | 
|  | 1599 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 1600 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 1601 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1602 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1603 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1604 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1605 | cd "$ac_dir" || { ac_status=$?; continue; } | 
|  | 1606 | # Check for guested configure. | 
|  | 1607 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 1608 | echo && | 
|  | 1609 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
|  | 1610 | elif test -f "$ac_srcdir/configure"; then | 
|  | 1611 | echo && | 
|  | 1612 | $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1613 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1614 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1615 | fi || ac_status=$? | 
|  | 1616 | cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1617 | done | 
|  | 1618 | fi | 
|  | 1619 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1620 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1621 | if $ac_init_version; then | 
|  | 1622 | cat <<\_ACEOF | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 1623 | python configure 3.6 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1624 | generated by GNU Autoconf 2.69 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1625 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1626 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1627 | This configure script is free software; the Free Software Foundation | 
|  | 1628 | gives unlimited permission to copy, distribute and modify it. | 
|  | 1629 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1630 | exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1631 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1632 |  | 
|  | 1633 | ## ------------------------ ## | 
|  | 1634 | ## Autoconf initialization. ## | 
|  | 1635 | ## ------------------------ ## | 
|  | 1636 |  | 
|  | 1637 | # ac_fn_c_try_compile LINENO | 
|  | 1638 | # -------------------------- | 
|  | 1639 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
|  | 1640 | ac_fn_c_try_compile () | 
|  | 1641 | { | 
|  | 1642 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1643 | rm -f conftest.$ac_objext | 
|  | 1644 | if { { ac_try="$ac_compile" | 
|  | 1645 | case "(($ac_try" in | 
|  | 1646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1647 | *) ac_try_echo=$ac_try;; | 
|  | 1648 | esac | 
|  | 1649 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1650 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1651 | (eval "$ac_compile") 2>conftest.err | 
|  | 1652 | ac_status=$? | 
|  | 1653 | if test -s conftest.err; then | 
|  | 1654 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1655 | cat conftest.er1 >&5 | 
|  | 1656 | mv -f conftest.er1 conftest.err | 
|  | 1657 | fi | 
|  | 1658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1659 | test $ac_status = 0; } && { | 
|  | 1660 | test -z "$ac_c_werror_flag" || | 
|  | 1661 | test ! -s conftest.err | 
|  | 1662 | } && test -s conftest.$ac_objext; then : | 
|  | 1663 | ac_retval=0 | 
|  | 1664 | else | 
|  | 1665 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1666 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1667 |  | 
|  | 1668 | ac_retval=1 | 
|  | 1669 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1670 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1671 | as_fn_set_status $ac_retval | 
|  | 1672 |  | 
|  | 1673 | } # ac_fn_c_try_compile | 
|  | 1674 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1675 | # ac_fn_c_try_cpp LINENO | 
|  | 1676 | # ---------------------- | 
|  | 1677 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
|  | 1678 | ac_fn_c_try_cpp () | 
|  | 1679 | { | 
|  | 1680 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1681 | if { { ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 1682 | case "(($ac_try" in | 
|  | 1683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1684 | *) ac_try_echo=$ac_try;; | 
|  | 1685 | esac | 
|  | 1686 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1687 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1688 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
|  | 1689 | ac_status=$? | 
|  | 1690 | if test -s conftest.err; then | 
|  | 1691 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1692 | cat conftest.er1 >&5 | 
|  | 1693 | mv -f conftest.er1 conftest.err | 
|  | 1694 | fi | 
|  | 1695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1696 | test $ac_status = 0; } > conftest.i && { | 
|  | 1697 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
|  | 1698 | test ! -s conftest.err | 
|  | 1699 | }; then : | 
|  | 1700 | ac_retval=0 | 
|  | 1701 | else | 
|  | 1702 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1703 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1704 |  | 
|  | 1705 | ac_retval=1 | 
|  | 1706 | fi | 
|  | 1707 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
|  | 1708 | as_fn_set_status $ac_retval | 
|  | 1709 |  | 
|  | 1710 | } # ac_fn_c_try_cpp | 
|  | 1711 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1712 | # ac_fn_c_try_link LINENO | 
|  | 1713 | # ----------------------- | 
|  | 1714 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
|  | 1715 | ac_fn_c_try_link () | 
|  | 1716 | { | 
|  | 1717 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1718 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 1719 | if { { ac_try="$ac_link" | 
|  | 1720 | case "(($ac_try" in | 
|  | 1721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1722 | *) ac_try_echo=$ac_try;; | 
|  | 1723 | esac | 
|  | 1724 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1725 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1726 | (eval "$ac_link") 2>conftest.err | 
|  | 1727 | ac_status=$? | 
|  | 1728 | if test -s conftest.err; then | 
|  | 1729 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1730 | cat conftest.er1 >&5 | 
|  | 1731 | mv -f conftest.er1 conftest.err | 
|  | 1732 | fi | 
|  | 1733 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1734 | test $ac_status = 0; } && { | 
|  | 1735 | test -z "$ac_c_werror_flag" || | 
|  | 1736 | test ! -s conftest.err | 
|  | 1737 | } && test -s conftest$ac_exeext && { | 
|  | 1738 | test "$cross_compiling" = yes || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1739 | test -x conftest$ac_exeext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1740 | }; then : | 
|  | 1741 | ac_retval=0 | 
|  | 1742 | else | 
|  | 1743 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1744 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1745 |  | 
|  | 1746 | ac_retval=1 | 
|  | 1747 | fi | 
|  | 1748 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
|  | 1749 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
|  | 1750 | # interfere with the next link command; also delete a directory that is | 
|  | 1751 | # left behind by Apple's compiler.  We do this before executing the actions. | 
|  | 1752 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1753 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1754 | as_fn_set_status $ac_retval | 
|  | 1755 |  | 
|  | 1756 | } # ac_fn_c_try_link | 
|  | 1757 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1758 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
|  | 1759 | # ------------------------------------------------------- | 
|  | 1760 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
|  | 1761 | # the include files in INCLUDES and setting the cache variable VAR | 
|  | 1762 | # accordingly. | 
|  | 1763 | ac_fn_c_check_header_mongrel () | 
|  | 1764 | { | 
|  | 1765 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1766 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1768 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1769 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1770 | $as_echo_n "(cached) " >&6 | 
|  | 1771 | fi | 
|  | 1772 | eval ac_res=\$$3 | 
|  | 1773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1774 | $as_echo "$ac_res" >&6; } | 
|  | 1775 | else | 
|  | 1776 | # Is the header compilable? | 
|  | 1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
|  | 1778 | $as_echo_n "checking $2 usability... " >&6; } | 
|  | 1779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1780 | /* end confdefs.h.  */ | 
|  | 1781 | $4 | 
|  | 1782 | #include <$2> | 
|  | 1783 | _ACEOF | 
|  | 1784 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1785 | ac_header_compiler=yes | 
|  | 1786 | else | 
|  | 1787 | ac_header_compiler=no | 
|  | 1788 | fi | 
|  | 1789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
|  | 1791 | $as_echo "$ac_header_compiler" >&6; } | 
|  | 1792 |  | 
|  | 1793 | # Is the header present? | 
|  | 1794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
|  | 1795 | $as_echo_n "checking $2 presence... " >&6; } | 
|  | 1796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1797 | /* end confdefs.h.  */ | 
|  | 1798 | #include <$2> | 
|  | 1799 | _ACEOF | 
|  | 1800 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 1801 | ac_header_preproc=yes | 
|  | 1802 | else | 
|  | 1803 | ac_header_preproc=no | 
|  | 1804 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1805 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
|  | 1807 | $as_echo "$ac_header_preproc" >&6; } | 
|  | 1808 |  | 
|  | 1809 | # So?  What about this header? | 
|  | 1810 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
|  | 1811 | yes:no: ) | 
|  | 1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 1813 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 1814 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1815 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
|  | 1816 | ;; | 
|  | 1817 | no:yes:* ) | 
|  | 1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
|  | 1819 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
|  | 1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
|  | 1821 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
|  | 1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
|  | 1823 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
|  | 1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 1825 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1827 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1828 | ( $as_echo "## --------------------------------------- ## | 
|  | 1829 | ## Report this to https://bugs.python.org/ ## | 
|  | 1830 | ## --------------------------------------- ##" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1831 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 1832 | ;; | 
|  | 1833 | esac | 
|  | 1834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1835 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1836 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1837 | $as_echo_n "(cached) " >&6 | 
|  | 1838 | else | 
|  | 1839 | eval "$3=\$ac_header_compiler" | 
|  | 1840 | fi | 
|  | 1841 | eval ac_res=\$$3 | 
|  | 1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1843 | $as_echo "$ac_res" >&6; } | 
|  | 1844 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1845 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1846 |  | 
|  | 1847 | } # ac_fn_c_check_header_mongrel | 
|  | 1848 |  | 
|  | 1849 | # ac_fn_c_try_run LINENO | 
|  | 1850 | # ---------------------- | 
|  | 1851 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
|  | 1852 | # that executables *can* be run. | 
|  | 1853 | ac_fn_c_try_run () | 
|  | 1854 | { | 
|  | 1855 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1856 | if { { ac_try="$ac_link" | 
|  | 1857 | case "(($ac_try" in | 
|  | 1858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1859 | *) ac_try_echo=$ac_try;; | 
|  | 1860 | esac | 
|  | 1861 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1862 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1863 | (eval "$ac_link") 2>&5 | 
|  | 1864 | ac_status=$? | 
|  | 1865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1866 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
|  | 1867 | { { case "(($ac_try" in | 
|  | 1868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1869 | *) ac_try_echo=$ac_try;; | 
|  | 1870 | esac | 
|  | 1871 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1872 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1873 | (eval "$ac_try") 2>&5 | 
|  | 1874 | ac_status=$? | 
|  | 1875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1876 | test $ac_status = 0; }; }; then : | 
|  | 1877 | ac_retval=0 | 
|  | 1878 | else | 
|  | 1879 | $as_echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 1880 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1881 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1882 |  | 
|  | 1883 | ac_retval=$ac_status | 
|  | 1884 | fi | 
|  | 1885 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1886 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1887 | as_fn_set_status $ac_retval | 
|  | 1888 |  | 
|  | 1889 | } # ac_fn_c_try_run | 
|  | 1890 |  | 
|  | 1891 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
|  | 1892 | # ------------------------------------------------------- | 
|  | 1893 | # Tests whether HEADER exists and can be compiled using the include files in | 
|  | 1894 | # INCLUDES, setting the cache variable VAR accordingly. | 
|  | 1895 | ac_fn_c_check_header_compile () | 
|  | 1896 | { | 
|  | 1897 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1899 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1900 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1901 | $as_echo_n "(cached) " >&6 | 
|  | 1902 | else | 
|  | 1903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1904 | /* end confdefs.h.  */ | 
|  | 1905 | $4 | 
|  | 1906 | #include <$2> | 
|  | 1907 | _ACEOF | 
|  | 1908 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1909 | eval "$3=yes" | 
|  | 1910 | else | 
|  | 1911 | eval "$3=no" | 
|  | 1912 | fi | 
|  | 1913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1914 | fi | 
|  | 1915 | eval ac_res=\$$3 | 
|  | 1916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1917 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1918 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1919 |  | 
|  | 1920 | } # ac_fn_c_check_header_compile | 
|  | 1921 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1922 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
|  | 1923 | # ------------------------------------------- | 
|  | 1924 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
|  | 1925 | # variable VAR accordingly. | 
|  | 1926 | ac_fn_c_check_type () | 
|  | 1927 | { | 
|  | 1928 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1930 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1931 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1932 | $as_echo_n "(cached) " >&6 | 
|  | 1933 | else | 
|  | 1934 | eval "$3=no" | 
|  | 1935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1936 | /* end confdefs.h.  */ | 
|  | 1937 | $4 | 
|  | 1938 | int | 
|  | 1939 | main () | 
|  | 1940 | { | 
|  | 1941 | if (sizeof ($2)) | 
|  | 1942 | return 0; | 
|  | 1943 | ; | 
|  | 1944 | return 0; | 
|  | 1945 | } | 
|  | 1946 | _ACEOF | 
|  | 1947 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1949 | /* end confdefs.h.  */ | 
|  | 1950 | $4 | 
|  | 1951 | int | 
|  | 1952 | main () | 
|  | 1953 | { | 
|  | 1954 | if (sizeof (($2))) | 
|  | 1955 | return 0; | 
|  | 1956 | ; | 
|  | 1957 | return 0; | 
|  | 1958 | } | 
|  | 1959 | _ACEOF | 
|  | 1960 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1961 |  | 
|  | 1962 | else | 
|  | 1963 | eval "$3=yes" | 
|  | 1964 | fi | 
|  | 1965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1966 | fi | 
|  | 1967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1968 | fi | 
|  | 1969 | eval ac_res=\$$3 | 
|  | 1970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1971 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1972 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1973 |  | 
|  | 1974 | } # ac_fn_c_check_type | 
|  | 1975 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1976 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
|  | 1977 | # -------------------------------------------- | 
|  | 1978 | # Tries to find the compile-time value of EXPR in a program that includes | 
|  | 1979 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
|  | 1980 | # computed | 
|  | 1981 | ac_fn_c_compute_int () | 
|  | 1982 | { | 
|  | 1983 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1984 | if test "$cross_compiling" = yes; then | 
|  | 1985 | # Depending upon the size, compute the lo and hi bounds. | 
|  | 1986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1987 | /* end confdefs.h.  */ | 
|  | 1988 | $4 | 
|  | 1989 | int | 
|  | 1990 | main () | 
|  | 1991 | { | 
|  | 1992 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1993 | test_array [0] = 0; | 
|  | 1994 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1995 |  | 
|  | 1996 | ; | 
|  | 1997 | return 0; | 
|  | 1998 | } | 
|  | 1999 | _ACEOF | 
|  | 2000 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2001 | ac_lo=0 ac_mid=0 | 
|  | 2002 | while :; do | 
|  | 2003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2004 | /* end confdefs.h.  */ | 
|  | 2005 | $4 | 
|  | 2006 | int | 
|  | 2007 | main () | 
|  | 2008 | { | 
|  | 2009 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2010 | test_array [0] = 0; | 
|  | 2011 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2012 |  | 
|  | 2013 | ; | 
|  | 2014 | return 0; | 
|  | 2015 | } | 
|  | 2016 | _ACEOF | 
|  | 2017 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2018 | ac_hi=$ac_mid; break | 
|  | 2019 | else | 
|  | 2020 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
|  | 2021 | if test $ac_lo -le $ac_mid; then | 
|  | 2022 | ac_lo= ac_hi= | 
|  | 2023 | break | 
|  | 2024 | fi | 
|  | 2025 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
|  | 2026 | fi | 
|  | 2027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2028 | done | 
|  | 2029 | else | 
|  | 2030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2031 | /* end confdefs.h.  */ | 
|  | 2032 | $4 | 
|  | 2033 | int | 
|  | 2034 | main () | 
|  | 2035 | { | 
|  | 2036 | static int test_array [1 - 2 * !(($2) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2037 | test_array [0] = 0; | 
|  | 2038 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2039 |  | 
|  | 2040 | ; | 
|  | 2041 | return 0; | 
|  | 2042 | } | 
|  | 2043 | _ACEOF | 
|  | 2044 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2045 | ac_hi=-1 ac_mid=-1 | 
|  | 2046 | while :; do | 
|  | 2047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2048 | /* end confdefs.h.  */ | 
|  | 2049 | $4 | 
|  | 2050 | int | 
|  | 2051 | main () | 
|  | 2052 | { | 
|  | 2053 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2054 | test_array [0] = 0; | 
|  | 2055 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2056 |  | 
|  | 2057 | ; | 
|  | 2058 | return 0; | 
|  | 2059 | } | 
|  | 2060 | _ACEOF | 
|  | 2061 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2062 | ac_lo=$ac_mid; break | 
|  | 2063 | else | 
|  | 2064 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
|  | 2065 | if test $ac_mid -le $ac_hi; then | 
|  | 2066 | ac_lo= ac_hi= | 
|  | 2067 | break | 
|  | 2068 | fi | 
|  | 2069 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
|  | 2070 | fi | 
|  | 2071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2072 | done | 
|  | 2073 | else | 
|  | 2074 | ac_lo= ac_hi= | 
|  | 2075 | fi | 
|  | 2076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2077 | fi | 
|  | 2078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2079 | # Binary search between lo and hi bounds. | 
|  | 2080 | while test "x$ac_lo" != "x$ac_hi"; do | 
|  | 2081 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
|  | 2082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2083 | /* end confdefs.h.  */ | 
|  | 2084 | $4 | 
|  | 2085 | int | 
|  | 2086 | main () | 
|  | 2087 | { | 
|  | 2088 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2089 | test_array [0] = 0; | 
|  | 2090 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2091 |  | 
|  | 2092 | ; | 
|  | 2093 | return 0; | 
|  | 2094 | } | 
|  | 2095 | _ACEOF | 
|  | 2096 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2097 | ac_hi=$ac_mid | 
|  | 2098 | else | 
|  | 2099 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
|  | 2100 | fi | 
|  | 2101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2102 | done | 
|  | 2103 | case $ac_lo in #(( | 
|  | 2104 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
|  | 2105 | '') ac_retval=1 ;; | 
|  | 2106 | esac | 
|  | 2107 | else | 
|  | 2108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2109 | /* end confdefs.h.  */ | 
|  | 2110 | $4 | 
|  | 2111 | static long int longval () { return $2; } | 
|  | 2112 | static unsigned long int ulongval () { return $2; } | 
|  | 2113 | #include <stdio.h> | 
|  | 2114 | #include <stdlib.h> | 
|  | 2115 | int | 
|  | 2116 | main () | 
|  | 2117 | { | 
|  | 2118 |  | 
|  | 2119 | FILE *f = fopen ("conftest.val", "w"); | 
|  | 2120 | if (! f) | 
|  | 2121 | return 1; | 
|  | 2122 | if (($2) < 0) | 
|  | 2123 | { | 
|  | 2124 | long int i = longval (); | 
|  | 2125 | if (i != ($2)) | 
|  | 2126 | return 1; | 
|  | 2127 | fprintf (f, "%ld", i); | 
|  | 2128 | } | 
|  | 2129 | else | 
|  | 2130 | { | 
|  | 2131 | unsigned long int i = ulongval (); | 
|  | 2132 | if (i != ($2)) | 
|  | 2133 | return 1; | 
|  | 2134 | fprintf (f, "%lu", i); | 
|  | 2135 | } | 
|  | 2136 | /* Do not output a trailing newline, as this causes \r\n confusion | 
|  | 2137 | on some platforms.  */ | 
|  | 2138 | return ferror (f) || fclose (f) != 0; | 
|  | 2139 |  | 
|  | 2140 | ; | 
|  | 2141 | return 0; | 
|  | 2142 | } | 
|  | 2143 | _ACEOF | 
|  | 2144 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 2145 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
|  | 2146 | else | 
|  | 2147 | ac_retval=1 | 
|  | 2148 | fi | 
|  | 2149 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 2150 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 2151 | rm -f conftest.val | 
|  | 2152 |  | 
|  | 2153 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2154 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2155 | as_fn_set_status $ac_retval | 
|  | 2156 |  | 
|  | 2157 | } # ac_fn_c_compute_int | 
|  | 2158 |  | 
|  | 2159 | # ac_fn_c_check_func LINENO FUNC VAR | 
|  | 2160 | # ---------------------------------- | 
|  | 2161 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
|  | 2162 | ac_fn_c_check_func () | 
|  | 2163 | { | 
|  | 2164 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2166 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2167 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2168 | $as_echo_n "(cached) " >&6 | 
|  | 2169 | else | 
|  | 2170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2171 | /* end confdefs.h.  */ | 
|  | 2172 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
|  | 2173 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 2174 | #define $2 innocuous_$2 | 
|  | 2175 |  | 
|  | 2176 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 2177 | which can conflict with char $2 (); below. | 
|  | 2178 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 2179 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 2180 |  | 
|  | 2181 | #ifdef __STDC__ | 
|  | 2182 | # include <limits.h> | 
|  | 2183 | #else | 
|  | 2184 | # include <assert.h> | 
|  | 2185 | #endif | 
|  | 2186 |  | 
|  | 2187 | #undef $2 | 
|  | 2188 |  | 
|  | 2189 | /* Override any GCC internal prototype to avoid an error. | 
|  | 2190 | Use char because int might match the return type of a GCC | 
|  | 2191 | builtin and then its argument prototype would still apply.  */ | 
|  | 2192 | #ifdef __cplusplus | 
|  | 2193 | extern "C" | 
|  | 2194 | #endif | 
|  | 2195 | char $2 (); | 
|  | 2196 | /* The GNU C library defines this for functions which it implements | 
|  | 2197 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 2198 | something starting with __ and the normal name is an alias.  */ | 
|  | 2199 | #if defined __stub_$2 || defined __stub___$2 | 
|  | 2200 | choke me | 
|  | 2201 | #endif | 
|  | 2202 |  | 
|  | 2203 | int | 
|  | 2204 | main () | 
|  | 2205 | { | 
|  | 2206 | return $2 (); | 
|  | 2207 | ; | 
|  | 2208 | return 0; | 
|  | 2209 | } | 
|  | 2210 | _ACEOF | 
|  | 2211 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 2212 | eval "$3=yes" | 
|  | 2213 | else | 
|  | 2214 | eval "$3=no" | 
|  | 2215 | fi | 
|  | 2216 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 2217 | conftest$ac_exeext conftest.$ac_ext | 
|  | 2218 | fi | 
|  | 2219 | eval ac_res=\$$3 | 
|  | 2220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2221 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2222 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2223 |  | 
|  | 2224 | } # ac_fn_c_check_func | 
|  | 2225 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2226 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
|  | 2227 | # --------------------------------------------- | 
|  | 2228 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
|  | 2229 | # accordingly. | 
|  | 2230 | ac_fn_c_check_decl () | 
|  | 2231 | { | 
|  | 2232 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2233 | as_decl_name=`echo $2|sed 's/ *(.*//'` | 
|  | 2234 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
|  | 2235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
|  | 2236 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
|  | 2237 | if eval \${$3+:} false; then : | 
|  | 2238 | $as_echo_n "(cached) " >&6 | 
|  | 2239 | else | 
|  | 2240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2241 | /* end confdefs.h.  */ | 
|  | 2242 | $4 | 
|  | 2243 | int | 
|  | 2244 | main () | 
|  | 2245 | { | 
|  | 2246 | #ifndef $as_decl_name | 
|  | 2247 | #ifdef __cplusplus | 
|  | 2248 | (void) $as_decl_use; | 
|  | 2249 | #else | 
|  | 2250 | (void) $as_decl_name; | 
|  | 2251 | #endif | 
|  | 2252 | #endif | 
|  | 2253 |  | 
|  | 2254 | ; | 
|  | 2255 | return 0; | 
|  | 2256 | } | 
|  | 2257 | _ACEOF | 
|  | 2258 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2259 | eval "$3=yes" | 
|  | 2260 | else | 
|  | 2261 | eval "$3=no" | 
|  | 2262 | fi | 
|  | 2263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2264 | fi | 
|  | 2265 | eval ac_res=\$$3 | 
|  | 2266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2267 | $as_echo "$ac_res" >&6; } | 
|  | 2268 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
|  | 2269 |  | 
|  | 2270 | } # ac_fn_c_check_decl | 
|  | 2271 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2272 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
|  | 2273 | # ---------------------------------------------------- | 
|  | 2274 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
|  | 2275 | # INCLUDES, setting cache variable VAR accordingly. | 
|  | 2276 | ac_fn_c_check_member () | 
|  | 2277 | { | 
|  | 2278 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
|  | 2280 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2281 | if eval \${$4+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2282 | $as_echo_n "(cached) " >&6 | 
|  | 2283 | else | 
|  | 2284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2285 | /* end confdefs.h.  */ | 
|  | 2286 | $5 | 
|  | 2287 | int | 
|  | 2288 | main () | 
|  | 2289 | { | 
|  | 2290 | static $2 ac_aggr; | 
|  | 2291 | if (ac_aggr.$3) | 
|  | 2292 | return 0; | 
|  | 2293 | ; | 
|  | 2294 | return 0; | 
|  | 2295 | } | 
|  | 2296 | _ACEOF | 
|  | 2297 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2298 | eval "$4=yes" | 
|  | 2299 | else | 
|  | 2300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2301 | /* end confdefs.h.  */ | 
|  | 2302 | $5 | 
|  | 2303 | int | 
|  | 2304 | main () | 
|  | 2305 | { | 
|  | 2306 | static $2 ac_aggr; | 
|  | 2307 | if (sizeof ac_aggr.$3) | 
|  | 2308 | return 0; | 
|  | 2309 | ; | 
|  | 2310 | return 0; | 
|  | 2311 | } | 
|  | 2312 | _ACEOF | 
|  | 2313 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2314 | eval "$4=yes" | 
|  | 2315 | else | 
|  | 2316 | eval "$4=no" | 
|  | 2317 | fi | 
|  | 2318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2319 | fi | 
|  | 2320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2321 | fi | 
|  | 2322 | eval ac_res=\$$4 | 
|  | 2323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2324 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2325 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2326 |  | 
|  | 2327 | } # ac_fn_c_check_member | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2328 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2329 | This file contains any messages produced by compilers while | 
|  | 2330 | running configure, to aid debugging if configure makes a mistake. | 
|  | 2331 |  | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 2332 | It was created by python $as_me 3.6, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2333 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2334 |  | 
|  | 2335 | $ $0 $@ | 
|  | 2336 |  | 
|  | 2337 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2338 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2339 | { | 
|  | 2340 | cat <<_ASUNAME | 
|  | 2341 | ## --------- ## | 
|  | 2342 | ## Platform. ## | 
|  | 2343 | ## --------- ## | 
|  | 2344 |  | 
|  | 2345 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 2346 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 2347 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 2348 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 2349 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 2350 |  | 
|  | 2351 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 2352 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 2353 |  | 
|  | 2354 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 2355 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 2356 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2357 | /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown` | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2358 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 2359 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 2360 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 2361 |  | 
|  | 2362 | _ASUNAME | 
|  | 2363 |  | 
|  | 2364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2365 | for as_dir in $PATH | 
|  | 2366 | do | 
|  | 2367 | IFS=$as_save_IFS | 
|  | 2368 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2369 | $as_echo "PATH: $as_dir" | 
|  | 2370 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2371 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2372 |  | 
|  | 2373 | } >&5 | 
|  | 2374 |  | 
|  | 2375 | cat >&5 <<_ACEOF | 
|  | 2376 |  | 
|  | 2377 |  | 
|  | 2378 | ## ----------- ## | 
|  | 2379 | ## Core tests. ## | 
|  | 2380 | ## ----------- ## | 
|  | 2381 |  | 
|  | 2382 | _ACEOF | 
|  | 2383 |  | 
|  | 2384 |  | 
|  | 2385 | # Keep a trace of the command line. | 
|  | 2386 | # Strip out --no-create and --no-recursion so they do not pile up. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2387 | # Strip out --silent because we don't want to record it for future runs. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2388 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2389 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2390 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2391 | ac_configure_args0= | 
|  | 2392 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2393 | ac_must_keep_next=false | 
|  | 2394 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2395 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2396 | for ac_arg | 
|  | 2397 | do | 
|  | 2398 | case $ac_arg in | 
|  | 2399 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 2400 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 2401 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 2402 | continue ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2403 | *\'*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2404 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2405 | esac | 
|  | 2406 | case $ac_pass in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2407 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2408 | 2) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2409 | as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2410 | if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2411 | ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2412 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2413 | case $ac_arg in | 
|  | 2414 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 2415 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 2416 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 2417 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 2418 | case "$ac_configure_args0 " in | 
|  | 2419 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 2420 | esac | 
|  | 2421 | ;; | 
|  | 2422 | -* ) ac_must_keep_next=true ;; | 
|  | 2423 | esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2424 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2425 | as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2426 | ;; | 
|  | 2427 | esac | 
|  | 2428 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2429 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2430 | { ac_configure_args0=; unset ac_configure_args0;} | 
|  | 2431 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2432 |  | 
|  | 2433 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 2434 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 2435 | # would cause problems or look ugly. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2436 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
|  | 2437 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2438 | trap 'exit_status=$? | 
|  | 2439 | # Save into config.log some information that might help in debugging. | 
|  | 2440 | { | 
|  | 2441 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2442 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2443 | $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2444 | ## Cache variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2445 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2446 | echo | 
|  | 2447 | # The following way of writing the cache mishandles newlines in values, | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2448 | ( | 
|  | 2449 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
|  | 2450 | eval ac_val=\$$ac_var | 
|  | 2451 | case $ac_val in #( | 
|  | 2452 | *${as_nl}*) | 
|  | 2453 | case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2454 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 2455 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2456 | esac | 
|  | 2457 | case $ac_var in #( | 
|  | 2458 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2459 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 2460 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2461 | esac ;; | 
|  | 2462 | esac | 
|  | 2463 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2464 | (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2465 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
|  | 2466 | *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2467 | sed -n \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2468 | "s/'\''/'\''\\\\'\'''\''/g; | 
|  | 2469 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
|  | 2470 | ;; #( | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2471 | *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2472 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2473 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2474 | esac | | 
|  | 2475 | sort | 
|  | 2476 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2477 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2478 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2479 | $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2480 | ## Output variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2481 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2482 | echo | 
|  | 2483 | for ac_var in $ac_subst_vars | 
|  | 2484 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2485 | eval ac_val=\$$ac_var | 
|  | 2486 | case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2487 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2488 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2489 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2490 | done | sort | 
|  | 2491 | echo | 
|  | 2492 |  | 
|  | 2493 | if test -n "$ac_subst_files"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2494 | $as_echo "## ------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2495 | ## File substitutions. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2496 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2497 | echo | 
|  | 2498 | for ac_var in $ac_subst_files | 
|  | 2499 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2500 | eval ac_val=\$$ac_var | 
|  | 2501 | case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2502 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2503 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2504 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2505 | done | sort | 
|  | 2506 | echo | 
|  | 2507 | fi | 
|  | 2508 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2509 | if test -s confdefs.h; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2510 | $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2511 | ## confdefs.h. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2512 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2513 | echo | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2514 | cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2515 | echo | 
|  | 2516 | fi | 
|  | 2517 | test "$ac_signal" != 0 && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2518 | $as_echo "$as_me: caught signal $ac_signal" | 
|  | 2519 | $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2520 | } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2521 | rm -f core *.core core.conftest.* && | 
|  | 2522 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2523 | exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2524 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2525 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2526 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2527 | done | 
|  | 2528 | ac_signal=0 | 
|  | 2529 |  | 
|  | 2530 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2531 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2533 | $as_echo "/* confdefs.h */" > confdefs.h | 
|  | 2534 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | # Predefined preprocessor variables. | 
|  | 2536 |  | 
|  | 2537 | cat >>confdefs.h <<_ACEOF | 
|  | 2538 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 2539 | _ACEOF | 
|  | 2540 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2541 | cat >>confdefs.h <<_ACEOF | 
|  | 2542 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 2543 | _ACEOF | 
|  | 2544 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2545 | cat >>confdefs.h <<_ACEOF | 
|  | 2546 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 2547 | _ACEOF | 
|  | 2548 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2549 | cat >>confdefs.h <<_ACEOF | 
|  | 2550 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 2551 | _ACEOF | 
|  | 2552 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2553 | cat >>confdefs.h <<_ACEOF | 
|  | 2554 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 2555 | _ACEOF | 
|  | 2556 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2557 | cat >>confdefs.h <<_ACEOF | 
|  | 2558 | #define PACKAGE_URL "$PACKAGE_URL" | 
|  | 2559 | _ACEOF | 
|  | 2560 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2561 |  | 
|  | 2562 | # Let the site file select an alternate cache file if it wants to. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2563 | # Prefer an explicitly selected file to automatically selected ones. | 
|  | 2564 | ac_site_file1=NONE | 
|  | 2565 | ac_site_file2=NONE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2566 | if test -n "$CONFIG_SITE"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2567 | # We do not want a PATH search for config.site. | 
|  | 2568 | case $CONFIG_SITE in #(( | 
|  | 2569 | -*)  ac_site_file1=./$CONFIG_SITE;; | 
|  | 2570 | */*) ac_site_file1=$CONFIG_SITE;; | 
|  | 2571 | *)   ac_site_file1=./$CONFIG_SITE;; | 
|  | 2572 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2573 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2574 | ac_site_file1=$prefix/share/config.site | 
|  | 2575 | ac_site_file2=$prefix/etc/config.site | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2576 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2577 | ac_site_file1=$ac_default_prefix/share/config.site | 
|  | 2578 | ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2579 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2580 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2581 | do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2582 | test "x$ac_site_file" = xNONE && continue | 
|  | 2583 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
|  | 2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
|  | 2585 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2586 | sed 's/^/| /' "$ac_site_file" >&5 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2587 | . "$ac_site_file" \ | 
|  | 2588 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2589 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2590 | as_fn_error $? "failed to load site script $ac_site_file | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2591 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2592 | fi | 
|  | 2593 | done | 
|  | 2594 |  | 
|  | 2595 | if test -r "$cache_file"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2596 | # Some versions of bash will fail to source /dev/null (special files | 
|  | 2597 | # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
|  | 2598 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
|  | 2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
|  | 2600 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2601 | case $cache_file in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2602 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
|  | 2603 | *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2604 | esac | 
|  | 2605 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2606 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
|  | 2608 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2609 | >$cache_file | 
|  | 2610 | fi | 
|  | 2611 |  | 
|  | 2612 | # Check that the precious variables saved in the cache have kept the same | 
|  | 2613 | # value. | 
|  | 2614 | ac_cache_corrupted=false | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2615 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2616 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 2617 | eval ac_new_set=\$ac_env_${ac_var}_set | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2618 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
|  | 2619 | eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2620 | case $ac_old_set,$ac_new_set in | 
|  | 2621 | set,) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
|  | 2623 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | ac_cache_corrupted=: ;; | 
|  | 2625 | ,set) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
|  | 2627 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2628 | ac_cache_corrupted=: ;; | 
|  | 2629 | ,);; | 
|  | 2630 | *) | 
|  | 2631 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2632 | # differences in whitespace do not lead to failure. | 
|  | 2633 | ac_old_val_w=`echo x $ac_old_val` | 
|  | 2634 | ac_new_val_w=`echo x $ac_new_val` | 
|  | 2635 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
|  | 2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
|  | 2637 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
|  | 2638 | ac_cache_corrupted=: | 
|  | 2639 | else | 
|  | 2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
|  | 2641 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
|  | 2642 | eval $ac_var=\$ac_old_val | 
|  | 2643 | fi | 
|  | 2644 | { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
|  | 2645 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
|  | 2646 | { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
|  | 2647 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2648 | fi;; | 
|  | 2649 | esac | 
|  | 2650 | # Pass precious variables to config.status. | 
|  | 2651 | if test "$ac_new_set" = set; then | 
|  | 2652 | case $ac_new_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2653 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2654 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 2655 | esac | 
|  | 2656 | case " $ac_configure_args " in | 
|  | 2657 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2658 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2659 | esac | 
|  | 2660 | fi | 
|  | 2661 | done | 
|  | 2662 | if $ac_cache_corrupted; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2664 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
|  | 2666 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2667 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2668 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2669 | ## -------------------- ## | 
|  | 2670 | ## Main body of script. ## | 
|  | 2671 | ## -------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2672 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2673 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2674 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2678 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2679 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2680 |  | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2681 |  | 
| Trent Nelson | 5595ab5 | 2012-10-17 04:47:31 -0400 | [diff] [blame] | 2682 | if test "$abs_srcdir" != "$abs_builddir"; then | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2683 | # If we're building out-of-tree, we need to make sure the following | 
|  | 2684 | # resources get picked up before their $srcdir counterparts. | 
|  | 2685 | #   Objects/ -> typeslots.inc | 
|  | 2686 | #   Include/ -> Python-ast.h, graminit.h | 
|  | 2687 | #   Python/  -> importlib.h | 
|  | 2688 | # (A side effect of this is that these resources will automatically be | 
|  | 2689 | #  regenerated when building out-of-tree, regardless of whether or not | 
|  | 2690 | #  the $srcdir counterpart is up-to-date.  This is an acceptable trade | 
|  | 2691 | #  off.) | 
|  | 2692 | BASECPPFLAGS="-IObjects -IInclude -IPython" | 
|  | 2693 | else | 
|  | 2694 | BASECPPFLAGS="" | 
|  | 2695 | fi | 
|  | 2696 |  | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2697 |  | 
|  | 2698 |  | 
|  | 2699 |  | 
|  | 2700 |  | 
| Antoine Pitrou | d3b2aef | 2011-07-27 01:22:41 +0200 | [diff] [blame] | 2701 | if test -e $srcdir/.hg/dirstate | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2702 | then | 
|  | 2703 | # Extract the first word of "hg", so it can be a program name with args. | 
|  | 2704 | set dummy hg; ac_word=$2 | 
|  | 2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 2706 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2707 | if ${ac_cv_prog_HAS_HG+:} false; then : | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2708 | $as_echo_n "(cached) " >&6 | 
|  | 2709 | else | 
|  | 2710 | if test -n "$HAS_HG"; then | 
|  | 2711 | ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
|  | 2712 | else | 
|  | 2713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2714 | for as_dir in $PATH | 
|  | 2715 | do | 
|  | 2716 | IFS=$as_save_IFS | 
|  | 2717 | test -z "$as_dir" && as_dir=. | 
|  | 2718 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 2719 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2720 | ac_cv_prog_HAS_HG="found" | 
|  | 2721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2722 | break 2 | 
|  | 2723 | fi | 
|  | 2724 | done | 
|  | 2725 | done | 
|  | 2726 | IFS=$as_save_IFS | 
|  | 2727 |  | 
|  | 2728 | test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
|  | 2729 | fi | 
|  | 2730 | fi | 
|  | 2731 | HAS_HG=$ac_cv_prog_HAS_HG | 
|  | 2732 | if test -n "$HAS_HG"; then | 
|  | 2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
|  | 2734 | $as_echo "$HAS_HG" >&6; } | 
|  | 2735 | else | 
|  | 2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 2737 | $as_echo "no" >&6; } | 
|  | 2738 | fi | 
|  | 2739 |  | 
|  | 2740 |  | 
|  | 2741 | else | 
|  | 2742 | HAS_HG=no-repository | 
|  | 2743 | fi | 
|  | 2744 | if test $HAS_HG = found | 
|  | 2745 | then | 
|  | 2746 | HGVERSION="hg id -i \$(srcdir)" | 
|  | 2747 | HGTAG="hg id -t \$(srcdir)" | 
|  | 2748 | HGBRANCH="hg id -b \$(srcdir)" | 
|  | 2749 | else | 
|  | 2750 | HGVERSION="" | 
|  | 2751 | HGTAG="" | 
|  | 2752 | HGBRANCH="" | 
|  | 2753 | fi | 
|  | 2754 |  | 
|  | 2755 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2756 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2757 |  | 
|  | 2758 |  | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2759 | ac_aux_dir= | 
|  | 2760 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
|  | 2761 | if test -f "$ac_dir/install-sh"; then | 
|  | 2762 | ac_aux_dir=$ac_dir | 
|  | 2763 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|  | 2764 | break | 
|  | 2765 | elif test -f "$ac_dir/install.sh"; then | 
|  | 2766 | ac_aux_dir=$ac_dir | 
|  | 2767 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|  | 2768 | break | 
|  | 2769 | elif test -f "$ac_dir/shtool"; then | 
|  | 2770 | ac_aux_dir=$ac_dir | 
|  | 2771 | ac_install_sh="$ac_aux_dir/shtool install -c" | 
|  | 2772 | break | 
|  | 2773 | fi | 
|  | 2774 | done | 
|  | 2775 | if test -z "$ac_aux_dir"; then | 
|  | 2776 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
|  | 2777 | fi | 
|  | 2778 |  | 
|  | 2779 | # These three variables are undocumented and unsupported, | 
|  | 2780 | # and are intended to be withdrawn in a future Autoconf release. | 
|  | 2781 | # They can cause serious problems if a builder's source tree is in a directory | 
|  | 2782 | # whose full name contains unusual characters. | 
|  | 2783 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
|  | 2784 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
|  | 2785 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
|  | 2786 |  | 
|  | 2787 |  | 
|  | 2788 | # Make sure we can run config.sub. | 
|  | 2789 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
|  | 2790 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
|  | 2791 |  | 
|  | 2792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
|  | 2793 | $as_echo_n "checking build system type... " >&6; } | 
|  | 2794 | if ${ac_cv_build+:} false; then : | 
|  | 2795 | $as_echo_n "(cached) " >&6 | 
|  | 2796 | else | 
|  | 2797 | ac_build_alias=$build_alias | 
|  | 2798 | test "x$ac_build_alias" = x && | 
|  | 2799 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
|  | 2800 | test "x$ac_build_alias" = x && | 
|  | 2801 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
|  | 2802 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
|  | 2803 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 
|  | 2804 |  | 
|  | 2805 | fi | 
|  | 2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
|  | 2807 | $as_echo "$ac_cv_build" >&6; } | 
|  | 2808 | case $ac_cv_build in | 
|  | 2809 | *-*-*) ;; | 
|  | 2810 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
|  | 2811 | esac | 
|  | 2812 | build=$ac_cv_build | 
|  | 2813 | ac_save_IFS=$IFS; IFS='-' | 
|  | 2814 | set x $ac_cv_build | 
|  | 2815 | shift | 
|  | 2816 | build_cpu=$1 | 
|  | 2817 | build_vendor=$2 | 
|  | 2818 | shift; shift | 
|  | 2819 | # Remember, the first character of IFS is used to create $*, | 
|  | 2820 | # except with old shells: | 
|  | 2821 | build_os=$* | 
|  | 2822 | IFS=$ac_save_IFS | 
|  | 2823 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
|  | 2824 |  | 
|  | 2825 |  | 
|  | 2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
|  | 2827 | $as_echo_n "checking host system type... " >&6; } | 
|  | 2828 | if ${ac_cv_host+:} false; then : | 
|  | 2829 | $as_echo_n "(cached) " >&6 | 
|  | 2830 | else | 
|  | 2831 | if test "x$host_alias" = x; then | 
|  | 2832 | ac_cv_host=$ac_cv_build | 
|  | 2833 | else | 
|  | 2834 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
|  | 2835 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 
|  | 2836 | fi | 
|  | 2837 |  | 
|  | 2838 | fi | 
|  | 2839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
|  | 2840 | $as_echo "$ac_cv_host" >&6; } | 
|  | 2841 | case $ac_cv_host in | 
|  | 2842 | *-*-*) ;; | 
|  | 2843 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
|  | 2844 | esac | 
|  | 2845 | host=$ac_cv_host | 
|  | 2846 | ac_save_IFS=$IFS; IFS='-' | 
|  | 2847 | set x $ac_cv_host | 
|  | 2848 | shift | 
|  | 2849 | host_cpu=$1 | 
|  | 2850 | host_vendor=$2 | 
|  | 2851 | shift; shift | 
|  | 2852 | # Remember, the first character of IFS is used to create $*, | 
|  | 2853 | # except with old shells: | 
|  | 2854 | host_os=$* | 
|  | 2855 | IFS=$ac_save_IFS | 
|  | 2856 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
|  | 2857 |  | 
|  | 2858 |  | 
|  | 2859 |  | 
| doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 2860 |  | 
|  | 2861 |  | 
| Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 2862 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile | 
|  | 2863 | rm -f pybuilddir.txt | 
|  | 2864 |  | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2865 | for ac_prog in python$PACKAGE_VERSION python3 python | 
|  | 2866 | do | 
|  | 2867 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 2868 | set dummy $ac_prog; ac_word=$2 | 
|  | 2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 2870 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 2871 | if ${ac_cv_prog_PYTHON_FOR_GEN+:} false; then : | 
|  | 2872 | $as_echo_n "(cached) " >&6 | 
|  | 2873 | else | 
|  | 2874 | if test -n "$PYTHON_FOR_GEN"; then | 
|  | 2875 | ac_cv_prog_PYTHON_FOR_GEN="$PYTHON_FOR_GEN" # Let the user override the test. | 
|  | 2876 | else | 
|  | 2877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2878 | for as_dir in $PATH | 
|  | 2879 | do | 
|  | 2880 | IFS=$as_save_IFS | 
|  | 2881 | test -z "$as_dir" && as_dir=. | 
|  | 2882 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2883 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 2884 | ac_cv_prog_PYTHON_FOR_GEN="$ac_prog" | 
|  | 2885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2886 | break 2 | 
|  | 2887 | fi | 
|  | 2888 | done | 
|  | 2889 | done | 
|  | 2890 | IFS=$as_save_IFS | 
|  | 2891 |  | 
|  | 2892 | fi | 
|  | 2893 | fi | 
|  | 2894 | PYTHON_FOR_GEN=$ac_cv_prog_PYTHON_FOR_GEN | 
|  | 2895 | if test -n "$PYTHON_FOR_GEN"; then | 
|  | 2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_GEN" >&5 | 
|  | 2897 | $as_echo "$PYTHON_FOR_GEN" >&6; } | 
|  | 2898 | else | 
|  | 2899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 2900 | $as_echo "no" >&6; } | 
|  | 2901 | fi | 
|  | 2902 |  | 
|  | 2903 |  | 
|  | 2904 | test -n "$PYTHON_FOR_GEN" && break | 
|  | 2905 | done | 
|  | 2906 | test -n "$PYTHON_FOR_GEN" || PYTHON_FOR_GEN="not-found" | 
|  | 2907 |  | 
|  | 2908 | if test "$PYTHON_FOR_GEN" = not-found; then | 
|  | 2909 | PYTHON_FOR_GEN='@echo "Cannot generate $@, python not found !" && \ | 
|  | 2910 | echo "To skip re-generation of $@ run <make touch> or <make -t $@>." && \ | 
|  | 2911 | echo "Otherwise, set python in PATH and run configure or run <make PYTHON_FOR_GEN=python>." && false &&' | 
|  | 2912 | fi | 
|  | 2913 |  | 
|  | 2914 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2915 | if test "$cross_compiling" = yes; then | 
|  | 2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | 
|  | 2917 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | 
|  | 2918 | if test -z "$PYTHON_FOR_BUILD"; then | 
|  | 2919 | for interp in python$PACKAGE_VERSION python3 python; do | 
|  | 2920 | which $interp >/dev/null 2>&1 || continue | 
| Xavier de Gaye | 4afd143 | 2016-07-07 18:00:22 +0200 | [diff] [blame] | 2921 | if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info[:2]) == '$PACKAGE_VERSION')"; then | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2922 | break | 
|  | 2923 | fi | 
|  | 2924 | interp= | 
|  | 2925 | done | 
|  | 2926 | if test x$interp = x; then | 
|  | 2927 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | 
|  | 2928 | fi | 
|  | 2929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | 
|  | 2930 | $as_echo "$interp" >&6; } | 
| Xavier de Gaye | 92dec54 | 2016-09-11 22:22:24 +0200 | [diff] [blame^] | 2931 | PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2932 | fi | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 2933 | # Used to comment out stuff for rebuilding generated files | 
|  | 2934 | GENERATED_COMMENT='#' | 
| Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 2935 | elif test "$cross_compiling" = maybe; then | 
|  | 2936 | as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2937 | else | 
|  | 2938 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 2939 | GENERATED_COMMENT='' | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2940 | fi | 
|  | 2941 |  | 
|  | 2942 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2943 |  | 
| Martin Panter | eac67be | 2016-07-28 01:28:27 +0000 | [diff] [blame] | 2944 |  | 
| Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2945 | if test "$prefix" != "/"; then | 
|  | 2946 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
|  | 2947 | fi | 
|  | 2948 |  | 
|  | 2949 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2950 |  | 
|  | 2951 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2952 | # We don't use PACKAGE_ variables, and they cause conflicts | 
|  | 2953 | # with other autoconf-based packages that include Python.h | 
|  | 2954 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
|  | 2955 | rm confdefs.h | 
|  | 2956 | mv confdefs.h.new confdefs.h | 
|  | 2957 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2958 |  | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 2959 | VERSION=3.6 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2960 |  | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 2961 | # Version number of Python's own shared library file. | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2962 |  | 
|  | 2963 | SOVERSION=1.0 | 
|  | 2964 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2965 | # The later defininition of _XOPEN_SOURCE disables certain features | 
|  | 2966 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
|  | 2967 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2968 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2969 |  | 
|  | 2970 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2971 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2972 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
|  | 2973 | # them. | 
|  | 2974 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2975 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2976 |  | 
|  | 2977 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2978 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2979 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
|  | 2980 | # them. | 
|  | 2981 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2982 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2983 |  | 
|  | 2984 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2985 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2986 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
|  | 2987 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2988 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2989 |  | 
|  | 2990 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2991 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2992 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
|  | 2993 | # them. | 
|  | 2994 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2995 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2996 |  | 
|  | 2997 |  | 
|  | 2998 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2999 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3000 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 3001 | # Arguments passed to configure. | 
|  | 3002 |  | 
|  | 3003 | CONFIG_ARGS="$ac_configure_args" | 
|  | 3004 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
|  | 3006 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3007 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3008 | if test "${enable_universalsdk+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3009 | enableval=$enable_universalsdk; | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3010 | case $enableval in | 
|  | 3011 | yes) | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3012 | # Locate the best usable SDK, see Mac/README.txt for more | 
|  | 3013 | # information | 
|  | 3014 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3015 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3016 | then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3017 | enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
|  | 3018 | if test ! -d "${enableval}" | 
|  | 3019 | then | 
|  | 3020 | enableval=/ | 
|  | 3021 | fi | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3022 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3023 | ;; | 
|  | 3024 | esac | 
|  | 3025 | case $enableval in | 
|  | 3026 | no) | 
|  | 3027 | UNIVERSALSDK= | 
|  | 3028 | enable_universalsdk= | 
|  | 3029 | ;; | 
|  | 3030 | *) | 
|  | 3031 | UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3032 | if test ! -d "${UNIVERSALSDK}" | 
|  | 3033 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3034 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3035 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3036 | ;; | 
|  | 3037 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3038 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3039 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3040 | else | 
|  | 3041 |  | 
|  | 3042 | UNIVERSALSDK= | 
|  | 3043 | enable_universalsdk= | 
|  | 3044 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3045 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3046 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3047 | if test -n "${UNIVERSALSDK}" | 
|  | 3048 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
|  | 3050 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3051 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3053 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3054 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3055 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3056 |  | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3057 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3058 | ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3059 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3060 | # For backward compatibility reasons we prefer to select '32-bit' if available, | 
|  | 3061 | # otherwise use 'intel' | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3062 | UNIVERSAL_ARCHS="32-bit" | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3063 | if test "`uname -s`" = "Darwin" | 
|  | 3064 | then | 
|  | 3065 | if test -n "${UNIVERSALSDK}" | 
|  | 3066 | then | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3067 | if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`" | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3068 | then | 
|  | 3069 | UNIVERSAL_ARCHS="intel" | 
|  | 3070 | fi | 
|  | 3071 | fi | 
|  | 3072 | fi | 
|  | 3073 |  | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3074 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
|  | 3076 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3077 |  | 
|  | 3078 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3079 | if test "${with_universal_archs+set}" = set; then : | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3080 | withval=$with_universal_archs; | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3081 | UNIVERSAL_ARCHS="$withval" | 
|  | 3082 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3083 | fi | 
|  | 3084 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3085 | if test -n "${UNIVERSALSDK}" | 
|  | 3086 | then | 
|  | 3087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 | 
|  | 3088 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | 
|  | 3089 | else | 
|  | 3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3091 | $as_echo "no" >&6; } | 
|  | 3092 | fi | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3093 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3094 |  | 
|  | 3095 | # Check whether --with-framework-name was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3096 | if test "${with_framework_name+set}" = set; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3097 | withval=$with_framework_name; | 
|  | 3098 | PYTHONFRAMEWORK=${withval} | 
|  | 3099 | PYTHONFRAMEWORKDIR=${withval}.framework | 
|  | 3100 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
|  | 3101 |  | 
|  | 3102 | else | 
|  | 3103 |  | 
|  | 3104 | PYTHONFRAMEWORK=Python | 
|  | 3105 | PYTHONFRAMEWORKDIR=Python.framework | 
|  | 3106 | PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
|  | 3107 |  | 
|  | 3108 | fi | 
|  | 3109 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3110 | # Check whether --enable-framework was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3111 | if test "${enable_framework+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3112 | enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3113 | case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3114 | yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3115 | enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3116 | esac | 
|  | 3117 | case $enableval in | 
|  | 3118 | no) | 
|  | 3119 | PYTHONFRAMEWORK= | 
|  | 3120 | PYTHONFRAMEWORKDIR=no-framework | 
|  | 3121 | PYTHONFRAMEWORKPREFIX= | 
|  | 3122 | PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3123 | FRAMEWORKINSTALLFIRST= | 
|  | 3124 | FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3125 | FRAMEWORKALTINSTALLFIRST= | 
|  | 3126 | FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3127 | FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3128 | if test "x${prefix}" = "xNONE"; then | 
|  | 3129 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 3130 | else | 
|  | 3131 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3132 | fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3133 | enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3134 | ;; | 
|  | 3135 | *) | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3136 | PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3137 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3138 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3139 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3140 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
|  | 3141 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3142 | FRAMEWORKPYTHONW="frameworkpythonw" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3143 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3144 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3145 | if test "x${prefix}" = "xNONE" ; then | 
|  | 3146 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3147 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3148 | else | 
|  | 3149 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3150 | fi | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3151 |  | 
|  | 3152 | case "${enableval}" in | 
|  | 3153 | /System*) | 
|  | 3154 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3155 | if test "${prefix}" = "NONE" ; then | 
|  | 3156 | # See below | 
|  | 3157 | FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
|  | 3158 | fi | 
|  | 3159 | ;; | 
|  | 3160 |  | 
|  | 3161 | /Library*) | 
|  | 3162 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3163 | ;; | 
|  | 3164 |  | 
|  | 3165 | */Library/Frameworks) | 
|  | 3166 | MDIR="`dirname "${enableval}"`" | 
|  | 3167 | MDIR="`dirname "${MDIR}"`" | 
|  | 3168 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
|  | 3169 |  | 
|  | 3170 | if test "${prefix}" = "NONE"; then | 
|  | 3171 | # User hasn't specified the | 
|  | 3172 | # --prefix option, but wants to install | 
|  | 3173 | # the framework in a non-default location, | 
|  | 3174 | # ensure that the compatibility links get | 
|  | 3175 | # installed relative to that prefix as well | 
|  | 3176 | # instead of in /usr/local. | 
|  | 3177 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
|  | 3178 | fi | 
|  | 3179 | ;; | 
|  | 3180 |  | 
|  | 3181 | *) | 
|  | 3182 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3183 | ;; | 
|  | 3184 | esac | 
|  | 3185 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3186 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3187 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3188 | # Add files for Mac specific code to the list of output | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3189 | # files: | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3190 | ac_config_files="$ac_config_files Mac/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3191 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3192 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3193 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3194 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
|  | 3195 |  | 
|  | 3196 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
|  | 3197 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3198 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3199 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3200 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3201 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3202 | PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3203 | PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3204 | PYTHONFRAMEWORKPREFIX= | 
|  | 3205 | PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3206 | FRAMEWORKINSTALLFIRST= | 
|  | 3207 | FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3208 | FRAMEWORKALTINSTALLFIRST= | 
|  | 3209 | FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3210 | FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3211 | if test "x${prefix}" = "xNONE" ; then | 
|  | 3212 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 3213 | else | 
|  | 3214 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3215 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3216 | enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3217 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3218 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3219 | fi | 
|  | 3220 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3221 |  | 
|  | 3222 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3223 |  | 
|  | 3224 |  | 
|  | 3225 |  | 
|  | 3226 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3227 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3228 |  | 
|  | 3229 |  | 
|  | 3230 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3231 |  | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3232 |  | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3233 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3234 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3235 | ##            AS_HELP_STRING([--with-dyld], | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3236 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3237 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3238 | # Set name for machine-dependent library files | 
|  | 3239 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
|  | 3241 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3242 | if test -z "$MACHDEP" | 
|  | 3243 | then | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3244 | # avoid using uname for cross builds | 
|  | 3245 | if test "$cross_compiling" = yes; then | 
| doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3246 | # ac_sys_system and ac_sys_release are used for setting | 
|  | 3247 | # a lot of different things including 'define_xopen_source' | 
|  | 3248 | # in the case statement below. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3249 | case "$host" in | 
|  | 3250 | *-*-linux*) | 
|  | 3251 | ac_sys_system=Linux | 
|  | 3252 | ;; | 
|  | 3253 | *-*-cygwin*) | 
|  | 3254 | ac_sys_system=Cygwin | 
|  | 3255 | ;; | 
|  | 3256 | *) | 
|  | 3257 | # for now, limit cross builds to known configurations | 
|  | 3258 | MACHDEP="unknown" | 
|  | 3259 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
|  | 3260 | esac | 
|  | 3261 | ac_sys_release= | 
|  | 3262 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3263 | ac_sys_system=`uname -s` | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3264 | if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3265 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3266 | ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3267 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3268 | ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3269 | fi | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3270 | fi | 
|  | 3271 | ac_md_system=`echo $ac_sys_system | | 
|  | 3272 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
|  | 3273 | ac_md_release=`echo $ac_sys_release | | 
|  | 3274 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
|  | 3275 | MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3276 |  | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3277 | case $MACHDEP in | 
| Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3278 | linux*) MACHDEP="linux";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3279 | cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3280 | darwin*) MACHDEP="darwin";; | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 3281 | irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3282 | '')	MACHDEP="unknown";; | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3283 | esac | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3284 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3285 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3286 |  | 
|  | 3287 | if test "$cross_compiling" = yes; then | 
|  | 3288 | case "$host" in | 
|  | 3289 | *-*-linux*) | 
|  | 3290 | case "$host_cpu" in | 
|  | 3291 | arm*) | 
|  | 3292 | _host_cpu=arm | 
|  | 3293 | ;; | 
|  | 3294 | *) | 
|  | 3295 | _host_cpu=$host_cpu | 
|  | 3296 | esac | 
|  | 3297 | ;; | 
|  | 3298 | *-*-cygwin*) | 
|  | 3299 | _host_cpu= | 
|  | 3300 | ;; | 
|  | 3301 | *) | 
|  | 3302 | # for now, limit cross builds to known configurations | 
|  | 3303 | MACHDEP="unknown" | 
|  | 3304 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
|  | 3305 | esac | 
|  | 3306 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | 
|  | 3307 | fi | 
|  | 3308 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3309 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
|  | 3310 | # disable features if it is defined, without any means to access these | 
|  | 3311 | # features as extensions. For these systems, we skip the definition of | 
|  | 3312 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
|  | 3313 | # some feature, make sure there is no alternative way to access this | 
|  | 3314 | # feature. Also, when using wildcards, make sure you have verified the | 
|  | 3315 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
|  | 3316 | # wildcard, and that the wildcard does not include future systems | 
|  | 3317 | # (which may remove their limitations). | 
|  | 3318 | case $ac_sys_system/$ac_sys_release in | 
|  | 3319 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
|  | 3320 | # even though select is a POSIX function. Reported by J. Ribbens. | 
| Martin v. Löwis | 76bafc6 | 2003-10-03 13:47:44 +0000 | [diff] [blame] | 3321 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. | 
| Martin v. Löwis | 19ed3c8 | 2010-02-15 21:45:06 +0000 | [diff] [blame] | 3322 | # In addition, Stefan Krah confirms that issue #1244610 exists through | 
|  | 3323 | # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3324 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3325 | define_xopen_source=no | 
|  | 3326 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3327 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3328 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3329 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3330 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3331 |  | 
|  | 3332 | ;; | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3333 | OpenBSD/*) | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3334 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3335 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3336 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3337 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3338 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3339 |  | 
|  | 3340 | ;; | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3341 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
|  | 3342 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
|  | 3343 | # Marc Recht | 
| Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3344 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3345 | define_xopen_source=no;; | 
| Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3346 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
|  | 3347 | # request to enable features supported by the standard as a request | 
|  | 3348 | # to disable features not supported by the standard.  The best way | 
|  | 3349 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
|  | 3350 | # entirely and define __EXTENSIONS__ instead. | 
|  | 3351 | SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3352 | define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3353 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
|  | 3354 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3355 | # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3356 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3357 | define_xopen_source=no;; | 
|  | 3358 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3359 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3360 | SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3361 | define_xopen_source=no;; | 
| Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3362 | # On FreeBSD 4, the math functions C89 does not cover are never defined | 
|  | 3363 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
|  | 3364 | FreeBSD/4.*) | 
|  | 3365 | define_xopen_source=no;; | 
|  | 3366 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
|  | 3367 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
|  | 3368 | # identifies itself as Darwin/7.* | 
|  | 3369 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3370 | # disables platform specific features beyond repair. | 
|  | 3371 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3372 | # has no effect, don't bother defining them | 
|  | 3373 | Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3374 | define_xopen_source=no;; | 
| Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3375 | Darwin/1[0-9].*) | 
| Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3376 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3377 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
|  | 3378 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
|  | 3379 | # 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 +0000 | [diff] [blame] | 3380 | AIX/4) | 
|  | 3381 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3382 | AIX/5) | 
|  | 3383 | if test `uname -r` -eq 1; then | 
|  | 3384 | define_xopen_source=no | 
|  | 3385 | fi | 
|  | 3386 | ;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3387 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
|  | 3388 | # defining NI_NUMERICHOST. | 
|  | 3389 | QNX/6.3.2) | 
|  | 3390 | define_xopen_source=no | 
|  | 3391 | ;; | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3392 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3393 | esac | 
|  | 3394 |  | 
|  | 3395 | if test $define_xopen_source = yes | 
|  | 3396 | then | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3397 | # X/Open 7, incorporating POSIX.1-2008 | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3398 |  | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3399 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3400 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3401 |  | 
|  | 3402 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
|  | 3403 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
|  | 3404 | # several APIs are not declared. Since this is also needed in some | 
|  | 3405 | # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3406 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3407 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3408 |  | 
|  | 3409 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3410 |  | 
| Victor Stinner | d169fdc | 2011-09-08 00:56:17 +0200 | [diff] [blame] | 3411 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3412 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3413 | fi | 
|  | 3414 |  | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3415 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE | 
|  | 3416 | case $ac_sys_system in | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3417 | hp*|HP*) | 
|  | 3418 | define_stdc_a1=yes;; | 
|  | 3419 | *) | 
|  | 3420 | define_stdc_a1=no;; | 
|  | 3421 | esac | 
|  | 3422 |  | 
|  | 3423 | if test $define_stdc_a1 = yes | 
|  | 3424 | then | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3425 |  | 
|  | 3426 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h | 
|  | 3427 |  | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3428 | fi | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3429 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3430 | # | 
|  | 3431 | # SGI compilers allow the specification of the both the ABI and the | 
|  | 3432 | # ISA on the command line.  Depending on the values of these switches, | 
| Martin Panter | 46f5072 | 2016-05-26 05:35:26 +0000 | [diff] [blame] | 3433 | # different and often incompatible code will be generated. | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3434 | # | 
|  | 3435 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
|  | 3436 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
|  | 3437 | # variable is also adjusted. | 
|  | 3438 | # | 
|  | 3439 |  | 
|  | 3440 | if test ! -z "$SGI_ABI" | 
|  | 3441 | then | 
|  | 3442 | CC="cc $SGI_ABI" | 
|  | 3443 | LDFLAGS="$SGI_ABI $LDFLAGS" | 
|  | 3444 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
|  | 3445 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
|  | 3447 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3448 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3449 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
|  | 3450 | # it may influence the way we can build extensions, so distutils | 
|  | 3451 | # needs to check it | 
|  | 3452 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3453 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3454 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3455 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3456 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3457 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3458 |  | 
|  | 3459 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
|  | 3460 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
|  | 3461 | # just to get things to compile and link.  Users are free to override OPT | 
|  | 3462 | # when running configure or make.  The build should not break if they do. | 
|  | 3463 | # BASECFLAGS should generally not be messed with, however. | 
|  | 3464 |  | 
|  | 3465 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
|  | 3466 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
|  | 3468 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3469 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3470 | # Check whether --with-gcc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3471 | if test "${with_gcc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3472 | withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3473 | case $withval in | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3474 | no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3475 | without_gcc=yes;; | 
|  | 3476 | yes)	CC=gcc | 
|  | 3477 | without_gcc=no;; | 
|  | 3478 | *)	CC=$withval | 
|  | 3479 | without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3480 | esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3481 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3482 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3483 | case $ac_sys_system in | 
| Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3484 | AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3485 | without_gcc=;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3486 | *)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3487 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3488 | fi | 
|  | 3489 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
|  | 3491 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3492 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 3493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 | 
|  | 3494 | $as_echo_n "checking for --with-icc... " >&6; } | 
|  | 3495 |  | 
|  | 3496 | # Check whether --with-icc was given. | 
|  | 3497 | if test "${with_icc+set}" = set; then : | 
|  | 3498 | withval=$with_icc; | 
|  | 3499 | case $withval in | 
|  | 3500 | no)	CC=${CC:-cc} | 
|  | 3501 | with_icc=no;; | 
|  | 3502 | yes)	CC=icc | 
|  | 3503 | CXX=icpc | 
|  | 3504 | with_icc=yes;; | 
|  | 3505 | *)	CC=$withval | 
|  | 3506 | with_icc=$withval;; | 
|  | 3507 | esac | 
|  | 3508 | else | 
|  | 3509 |  | 
|  | 3510 | with_icc=no | 
|  | 3511 | fi | 
|  | 3512 |  | 
|  | 3513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 | 
|  | 3514 | $as_echo "$with_icc" >&6; } | 
|  | 3515 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3516 | # If the user switches compilers, we can't believe the cache | 
|  | 3517 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
|  | 3518 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3519 | as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3520 | (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3521 | fi | 
|  | 3522 |  | 
| Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3523 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 | 
|  | 3524 | # when the compiler supports them, but we don't always want -O2, and | 
|  | 3525 | # we set -g later. | 
|  | 3526 | if test -z "$CFLAGS"; then | 
|  | 3527 | CFLAGS= | 
|  | 3528 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3529 |  | 
|  | 3530 | if test "$ac_sys_system" = "Darwin" | 
|  | 3531 | then | 
|  | 3532 | # Compiler selection on MacOSX is more complicated than | 
|  | 3533 | # AC_PROG_CC can handle, see Mac/README.txt for more | 
|  | 3534 | # information | 
|  | 3535 | if test -z "${CC}" | 
|  | 3536 | then | 
|  | 3537 | found_gcc= | 
|  | 3538 | found_clang= | 
|  | 3539 | as_save_IFS=$IFS; IFS=: | 
|  | 3540 | for as_dir in $PATH | 
|  | 3541 | do | 
|  | 3542 | IFS=$as_save_IFS | 
|  | 3543 | if test -x $as_dir/gcc; then | 
|  | 3544 | if test -z "${found_gcc}"; then | 
|  | 3545 | found_gcc=$as_dir/gcc | 
|  | 3546 | fi | 
|  | 3547 | fi | 
|  | 3548 | if test -x $as_dir/clang; then | 
|  | 3549 | if test -z "${found_clang}"; then | 
|  | 3550 | found_clang=$as_dir/clang | 
|  | 3551 | fi | 
|  | 3552 | fi | 
|  | 3553 | done | 
|  | 3554 | IFS=$as_save_IFS | 
|  | 3555 |  | 
|  | 3556 | if test -n "$found_gcc" -a -n "$found_clang" | 
|  | 3557 | then | 
|  | 3558 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" | 
|  | 3559 | then | 
|  | 3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 | 
|  | 3561 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | 
|  | 3562 | CC="$found_clang" | 
|  | 3563 | CXX="$found_clang++" | 
|  | 3564 | fi | 
|  | 3565 |  | 
|  | 3566 |  | 
|  | 3567 | elif test -z "$found_gcc" -a -n "$found_clang" | 
|  | 3568 | then | 
|  | 3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 | 
|  | 3570 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | 
|  | 3571 | CC="$found_clang" | 
|  | 3572 | CXX="$found_clang++" | 
|  | 3573 |  | 
|  | 3574 | elif test -z "$found_gcc" -a -z "$found_clang" | 
|  | 3575 | then | 
|  | 3576 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | 
|  | 3577 | if test -n "${found_clang}" | 
|  | 3578 | then | 
|  | 3579 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 | 
|  | 3580 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | 
|  | 3581 | CC="${found_clang}" | 
|  | 3582 | CXX="`/usr/bin/xcrun -find clang++`" | 
|  | 3583 |  | 
|  | 3584 | # else: use default behaviour | 
|  | 3585 | fi | 
|  | 3586 | fi | 
|  | 3587 | fi | 
|  | 3588 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3589 | ac_ext=c | 
|  | 3590 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3591 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3592 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3593 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3594 | if test -n "$ac_tool_prefix"; then | 
|  | 3595 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
|  | 3596 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3598 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3599 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3600 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3601 | else | 
|  | 3602 | if test -n "$CC"; then | 
|  | 3603 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3604 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3606 | for as_dir in $PATH | 
|  | 3607 | do | 
|  | 3608 | IFS=$as_save_IFS | 
|  | 3609 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3610 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3611 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3612 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3614 | break 2 | 
|  | 3615 | fi | 
|  | 3616 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3617 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3618 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3619 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3620 | fi | 
|  | 3621 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3622 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3623 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3625 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3626 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3628 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3629 | fi | 
|  | 3630 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3631 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3632 | fi | 
|  | 3633 | if test -z "$ac_cv_prog_CC"; then | 
|  | 3634 | ac_ct_CC=$CC | 
|  | 3635 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 3636 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3638 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3639 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3640 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3641 | else | 
|  | 3642 | if test -n "$ac_ct_CC"; then | 
|  | 3643 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3644 | else | 
|  | 3645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3646 | for as_dir in $PATH | 
|  | 3647 | do | 
|  | 3648 | IFS=$as_save_IFS | 
|  | 3649 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3650 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3651 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3652 | ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3654 | break 2 | 
|  | 3655 | fi | 
|  | 3656 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3657 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3658 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3659 |  | 
|  | 3660 | fi | 
|  | 3661 | fi | 
|  | 3662 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3663 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3665 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3666 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3668 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3669 | fi | 
|  | 3670 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3671 | if test "x$ac_ct_CC" = x; then | 
|  | 3672 | CC="" | 
|  | 3673 | else | 
|  | 3674 | case $cross_compiling:$ac_tool_warned in | 
|  | 3675 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3677 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3678 | ac_tool_warned=yes ;; | 
|  | 3679 | esac | 
|  | 3680 | CC=$ac_ct_CC | 
|  | 3681 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3682 | else | 
|  | 3683 | CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3684 | fi | 
|  | 3685 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3686 | if test -z "$CC"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3687 | if test -n "$ac_tool_prefix"; then | 
|  | 3688 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3689 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3691 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3692 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3693 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3694 | else | 
|  | 3695 | if test -n "$CC"; then | 
|  | 3696 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3697 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3699 | for as_dir in $PATH | 
|  | 3700 | do | 
|  | 3701 | IFS=$as_save_IFS | 
|  | 3702 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3703 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3704 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3705 | ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3707 | break 2 | 
|  | 3708 | fi | 
|  | 3709 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3710 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3711 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3712 |  | 
|  | 3713 | fi | 
|  | 3714 | fi | 
|  | 3715 | CC=$ac_cv_prog_CC | 
|  | 3716 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3718 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3719 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3721 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3722 | fi | 
|  | 3723 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3724 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3725 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3726 | fi | 
|  | 3727 | if test -z "$CC"; then | 
|  | 3728 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 3729 | set dummy cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3731 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3732 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3733 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3734 | else | 
|  | 3735 | if test -n "$CC"; then | 
|  | 3736 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3737 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3738 | ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3740 | for as_dir in $PATH | 
|  | 3741 | do | 
|  | 3742 | IFS=$as_save_IFS | 
|  | 3743 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3744 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3745 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3746 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 3747 | ac_prog_rejected=yes | 
|  | 3748 | continue | 
|  | 3749 | fi | 
|  | 3750 | ac_cv_prog_CC="cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3751 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3752 | break 2 | 
|  | 3753 | fi | 
|  | 3754 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3755 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3756 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3757 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3758 | if test $ac_prog_rejected = yes; then | 
|  | 3759 | # We found a bogon in the path, so make sure we never use it. | 
|  | 3760 | set dummy $ac_cv_prog_CC | 
|  | 3761 | shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3762 | if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3763 | # We chose a different compiler from the bogus one. | 
|  | 3764 | # However, it has the same basename, so the bogon will be chosen | 
|  | 3765 | # first if we set CC to just the basename; use the full file name. | 
|  | 3766 | shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3767 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3768 | fi | 
|  | 3769 | fi | 
|  | 3770 | fi | 
|  | 3771 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3772 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3773 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3775 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3776 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3778 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3779 | fi | 
|  | 3780 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3781 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3782 | fi | 
|  | 3783 | if test -z "$CC"; then | 
|  | 3784 | if test -n "$ac_tool_prefix"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3785 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3786 | do | 
|  | 3787 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 3788 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3790 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3791 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3792 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3793 | else | 
|  | 3794 | if test -n "$CC"; then | 
|  | 3795 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3796 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3798 | for as_dir in $PATH | 
|  | 3799 | do | 
|  | 3800 | IFS=$as_save_IFS | 
|  | 3801 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3802 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3803 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3804 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3806 | break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3807 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3808 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3809 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3810 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3811 |  | 
|  | 3812 | fi | 
|  | 3813 | fi | 
|  | 3814 | CC=$ac_cv_prog_CC | 
|  | 3815 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3817 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3818 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3820 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3821 | fi | 
|  | 3822 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3823 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3824 | test -n "$CC" && break | 
|  | 3825 | done | 
|  | 3826 | fi | 
|  | 3827 | if test -z "$CC"; then | 
|  | 3828 | ac_ct_CC=$CC | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3829 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3830 | do | 
|  | 3831 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3832 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3834 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3835 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3836 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3837 | else | 
|  | 3838 | if test -n "$ac_ct_CC"; then | 
|  | 3839 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3840 | else | 
|  | 3841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3842 | for as_dir in $PATH | 
|  | 3843 | do | 
|  | 3844 | IFS=$as_save_IFS | 
|  | 3845 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3846 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3848 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3850 | break 2 | 
|  | 3851 | fi | 
|  | 3852 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3853 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3854 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3855 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3856 | fi | 
|  | 3857 | fi | 
|  | 3858 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3859 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3861 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3862 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3864 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3865 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3866 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3867 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3868 | test -n "$ac_ct_CC" && break | 
|  | 3869 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3870 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3871 | if test "x$ac_ct_CC" = x; then | 
|  | 3872 | CC="" | 
|  | 3873 | else | 
|  | 3874 | case $cross_compiling:$ac_tool_warned in | 
|  | 3875 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3877 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3878 | ac_tool_warned=yes ;; | 
|  | 3879 | esac | 
|  | 3880 | CC=$ac_ct_CC | 
|  | 3881 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3882 | fi | 
|  | 3883 |  | 
|  | 3884 | fi | 
|  | 3885 |  | 
|  | 3886 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3887 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3888 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3889 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3890 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3891 |  | 
|  | 3892 | # Provide some information about the compiler. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3893 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
|  | 3894 | set X $ac_compile | 
|  | 3895 | ac_compiler=$2 | 
|  | 3896 | for ac_option in --version -v -V -qversion; do | 
|  | 3897 | { { ac_try="$ac_compiler $ac_option >&5" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3898 | case "(($ac_try" in | 
|  | 3899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3900 | *) ac_try_echo=$ac_try;; | 
|  | 3901 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3902 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3903 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 3904 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3905 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3906 | if test -s conftest.err; then | 
|  | 3907 | sed '10a\ | 
|  | 3908 | ... rest of stderr output deleted ... | 
|  | 3909 | 10q' conftest.err >conftest.er1 | 
|  | 3910 | cat conftest.er1 >&5 | 
|  | 3911 | fi | 
|  | 3912 | rm -f conftest.er1 conftest.err | 
|  | 3913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3914 | test $ac_status = 0; } | 
|  | 3915 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3916 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3918 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3919 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3920 | int | 
|  | 3921 | main () | 
|  | 3922 | { | 
|  | 3923 |  | 
|  | 3924 | ; | 
|  | 3925 | return 0; | 
|  | 3926 | } | 
|  | 3927 | _ACEOF | 
|  | 3928 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3929 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3930 | # Try to create an executable without -o first, disregard a.out. | 
|  | 3931 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 3932 | # of exeext. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
|  | 3934 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
|  | 3935 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 3936 |  | 
|  | 3937 | # The possible output files: | 
|  | 3938 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
|  | 3939 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3940 | ac_rmfiles= | 
|  | 3941 | for ac_file in $ac_files | 
|  | 3942 | do | 
|  | 3943 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3944 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3945 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
|  | 3946 | esac | 
|  | 3947 | done | 
|  | 3948 | rm -f $ac_rmfiles | 
|  | 3949 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3950 | if { { ac_try="$ac_link_default" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3951 | case "(($ac_try" in | 
|  | 3952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3953 | *) ac_try_echo=$ac_try;; | 
|  | 3954 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3955 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3956 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3957 | (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3958 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3959 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3960 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3961 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
|  | 3962 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
|  | 3963 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
|  | 3964 | # so that the user can short-circuit this test for compilers unknown to | 
|  | 3965 | # Autoconf. | 
|  | 3966 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3967 | do | 
|  | 3968 | test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3969 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3970 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3971 | ;; | 
|  | 3972 | [ab].out ) | 
|  | 3973 | # We found the default executable, but exeext='' is most | 
|  | 3974 | # certainly right. | 
|  | 3975 | break;; | 
|  | 3976 | *.* ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3977 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3978 | then :; else | 
|  | 3979 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 3980 | fi | 
|  | 3981 | # We set ac_cv_exeext here because the later test for it is not | 
|  | 3982 | # safe: cross compilers may not add the suffix if given an `-o' | 
|  | 3983 | # argument, so we may need to know it at that point already. | 
|  | 3984 | # Even if this section looks crufty: it has the advantage of | 
|  | 3985 | # actually working. | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3986 | break;; | 
|  | 3987 | * ) | 
|  | 3988 | break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3989 | esac | 
|  | 3990 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3991 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
|  | 3992 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3993 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3994 | ac_file='' | 
|  | 3995 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3996 | if test -z "$ac_file"; then : | 
|  | 3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3998 | $as_echo "no" >&6; } | 
|  | 3999 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4000 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4001 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4002 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4003 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4004 | as_fn_error 77 "C compiler cannot create executables | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4005 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4006 | else | 
|  | 4007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 4008 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4009 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
|  | 4011 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
|  | 4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
|  | 4013 | $as_echo "$ac_file" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4014 | ac_exeext=$ac_cv_exeext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4015 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4016 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4017 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
|  | 4019 | $as_echo_n "checking for suffix of executables... " >&6; } | 
|  | 4020 | if { { ac_try="$ac_link" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4021 | case "(($ac_try" in | 
|  | 4022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4023 | *) ac_try_echo=$ac_try;; | 
|  | 4024 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4025 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4026 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4027 | (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4028 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4029 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4030 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4031 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 4032 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 4033 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 4034 | # `rm'. | 
|  | 4035 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 4036 | test -f "$ac_file" || continue | 
|  | 4037 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4038 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4039 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 4040 | break;; | 
|  | 4041 | * ) break;; | 
|  | 4042 | esac | 
|  | 4043 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4044 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4045 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4046 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4047 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4048 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4049 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4050 | rm -f conftest conftest$ac_cv_exeext | 
|  | 4051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
|  | 4052 | $as_echo "$ac_cv_exeext" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4053 |  | 
|  | 4054 | rm -f conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4055 | EXEEXT=$ac_cv_exeext | 
|  | 4056 | ac_exeext=$EXEEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4058 | /* end confdefs.h.  */ | 
|  | 4059 | #include <stdio.h> | 
|  | 4060 | int | 
|  | 4061 | main () | 
|  | 4062 | { | 
|  | 4063 | FILE *f = fopen ("conftest.out", "w"); | 
|  | 4064 | return ferror (f) || fclose (f) != 0; | 
|  | 4065 |  | 
|  | 4066 | ; | 
|  | 4067 | return 0; | 
|  | 4068 | } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4069 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4070 | ac_clean_files="$ac_clean_files conftest.out" | 
|  | 4071 | # Check that the compiler produces executables we can run.  If not, either | 
|  | 4072 | # the compiler is broken, or we cross compile. | 
|  | 4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
|  | 4074 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
|  | 4075 | if test "$cross_compiling" != yes; then | 
|  | 4076 | { { ac_try="$ac_link" | 
|  | 4077 | case "(($ac_try" in | 
|  | 4078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4079 | *) ac_try_echo=$ac_try;; | 
|  | 4080 | esac | 
|  | 4081 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4082 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4083 | (eval "$ac_link") 2>&5 | 
|  | 4084 | ac_status=$? | 
|  | 4085 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4086 | test $ac_status = 0; } | 
|  | 4087 | if { ac_try='./conftest$ac_cv_exeext' | 
|  | 4088 | { { case "(($ac_try" in | 
|  | 4089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4090 | *) ac_try_echo=$ac_try;; | 
|  | 4091 | esac | 
|  | 4092 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4093 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4094 | (eval "$ac_try") 2>&5 | 
|  | 4095 | ac_status=$? | 
|  | 4096 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4097 | test $ac_status = 0; }; }; then | 
|  | 4098 | cross_compiling=no | 
|  | 4099 | else | 
|  | 4100 | if test "$cross_compiling" = maybe; then | 
|  | 4101 | cross_compiling=yes | 
|  | 4102 | else | 
|  | 4103 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4104 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4105 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4106 | If you meant to cross compile, use \`--host'. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4107 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4108 | fi | 
|  | 4109 | fi | 
|  | 4110 | fi | 
|  | 4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
|  | 4112 | $as_echo "$cross_compiling" >&6; } | 
|  | 4113 |  | 
|  | 4114 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
|  | 4115 | ac_clean_files=$ac_clean_files_save | 
|  | 4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
|  | 4117 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4118 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4119 | $as_echo_n "(cached) " >&6 | 
|  | 4120 | else | 
|  | 4121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4122 | /* end confdefs.h.  */ | 
|  | 4123 |  | 
|  | 4124 | int | 
|  | 4125 | main () | 
|  | 4126 | { | 
|  | 4127 |  | 
|  | 4128 | ; | 
|  | 4129 | return 0; | 
|  | 4130 | } | 
|  | 4131 | _ACEOF | 
|  | 4132 | rm -f conftest.o conftest.obj | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4133 | if { { ac_try="$ac_compile" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4134 | case "(($ac_try" in | 
|  | 4135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4136 | *) ac_try_echo=$ac_try;; | 
|  | 4137 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4138 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4139 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4140 | (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4141 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4142 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4143 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4144 | for ac_file in conftest.o conftest.obj conftest.*; do | 
|  | 4145 | test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4146 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4147 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4148 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 4149 | break;; | 
|  | 4150 | esac | 
|  | 4151 | done | 
|  | 4152 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4153 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4154 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4155 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4156 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4157 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4158 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4159 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4160 | fi | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4161 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4162 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
|  | 4164 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4165 | OBJEXT=$ac_cv_objext | 
|  | 4166 | ac_objext=$OBJEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
|  | 4168 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4169 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4170 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4171 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4173 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4174 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4175 | int | 
|  | 4176 | main () | 
|  | 4177 | { | 
|  | 4178 | #ifndef __GNUC__ | 
|  | 4179 | choke me | 
|  | 4180 | #endif | 
|  | 4181 |  | 
|  | 4182 | ; | 
|  | 4183 | return 0; | 
|  | 4184 | } | 
|  | 4185 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4186 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4187 | ac_compiler_gnu=yes | 
|  | 4188 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4189 | ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4190 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4192 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 4193 |  | 
|  | 4194 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 4196 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
|  | 4197 | if test $ac_compiler_gnu = yes; then | 
|  | 4198 | GCC=yes | 
|  | 4199 | else | 
|  | 4200 | GCC= | 
|  | 4201 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4202 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 4203 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
|  | 4205 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4206 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4207 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4208 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4209 | ac_save_c_werror_flag=$ac_c_werror_flag | 
|  | 4210 | ac_c_werror_flag=yes | 
|  | 4211 | ac_cv_prog_cc_g=no | 
|  | 4212 | CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4214 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4215 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4216 | int | 
|  | 4217 | main () | 
|  | 4218 | { | 
|  | 4219 |  | 
|  | 4220 | ; | 
|  | 4221 | return 0; | 
|  | 4222 | } | 
|  | 4223 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4224 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4225 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4226 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4227 | CFLAGS="" | 
|  | 4228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4229 | /* end confdefs.h.  */ | 
|  | 4230 |  | 
|  | 4231 | int | 
|  | 4232 | main () | 
|  | 4233 | { | 
|  | 4234 |  | 
|  | 4235 | ; | 
|  | 4236 | return 0; | 
|  | 4237 | } | 
|  | 4238 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4239 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4240 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4241 | else | 
|  | 4242 | ac_c_werror_flag=$ac_save_c_werror_flag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4243 | CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4245 | /* end confdefs.h.  */ | 
|  | 4246 |  | 
|  | 4247 | int | 
|  | 4248 | main () | 
|  | 4249 | { | 
|  | 4250 |  | 
|  | 4251 | ; | 
|  | 4252 | return 0; | 
|  | 4253 | } | 
|  | 4254 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4255 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4256 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4257 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4259 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4261 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4263 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 4264 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
|  | 4266 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4267 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4268 | CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4269 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 4270 | if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4271 | CFLAGS="-g -O2" | 
|  | 4272 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4273 | CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4274 | fi | 
|  | 4275 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4276 | if test "$GCC" = yes; then | 
|  | 4277 | CFLAGS="-O2" | 
|  | 4278 | else | 
|  | 4279 | CFLAGS= | 
|  | 4280 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4281 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
|  | 4283 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4284 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4285 | $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4286 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4287 | ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4288 | ac_save_CC=$CC | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4290 | /* end confdefs.h.  */ | 
|  | 4291 | #include <stdarg.h> | 
|  | 4292 | #include <stdio.h> | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4293 | struct stat; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4294 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 4295 | struct buf { int x; }; | 
|  | 4296 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 4297 | static char *e (p, i) | 
|  | 4298 | char **p; | 
|  | 4299 | int i; | 
|  | 4300 | { | 
|  | 4301 | return p[i]; | 
|  | 4302 | } | 
|  | 4303 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 4304 | { | 
|  | 4305 | char *s; | 
|  | 4306 | va_list v; | 
|  | 4307 | va_start (v,p); | 
|  | 4308 | s = g (p, va_arg (v,int)); | 
|  | 4309 | va_end (v); | 
|  | 4310 | return s; | 
|  | 4311 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4312 |  | 
|  | 4313 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 4314 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 4315 | These don't provoke an error unfortunately, instead are silently treated | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4316 | as 'x'.  The following induces an error, until -std is added to get | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4317 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 4318 | array size at least.  It's necessary to write '\x00'==0 to get something | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4319 | that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4320 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 4321 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4322 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 4323 | inside strings and character constants.  */ | 
|  | 4324 | #define FOO(x) 'x' | 
|  | 4325 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 4326 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4327 | int test (int i, double x); | 
|  | 4328 | struct s1 {int (*f) (int a);}; | 
|  | 4329 | struct s2 {int (*f) (double a);}; | 
|  | 4330 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 4331 | int argc; | 
|  | 4332 | char **argv; | 
|  | 4333 | int | 
|  | 4334 | main () | 
|  | 4335 | { | 
|  | 4336 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 4337 | ; | 
|  | 4338 | return 0; | 
|  | 4339 | } | 
|  | 4340 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4341 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 4342 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4343 | do | 
|  | 4344 | CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4345 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4346 | ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4347 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4348 | rm -f core conftest.err conftest.$ac_objext | 
|  | 4349 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4350 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4351 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4352 | CC=$ac_save_CC | 
|  | 4353 |  | 
|  | 4354 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4355 | # AC_CACHE_VAL | 
|  | 4356 | case "x$ac_cv_prog_cc_c89" in | 
|  | 4357 | x) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
|  | 4359 | $as_echo "none needed" >&6; } ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4360 | xno) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
|  | 4362 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4363 | *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4364 | CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
|  | 4366 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4367 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4368 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4369 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4370 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4371 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4372 | ac_ext=c | 
|  | 4373 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4377 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4378 | ac_ext=c | 
|  | 4379 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4380 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4381 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4382 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
|  | 4384 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
|  | 4385 | # On Suns, sometimes $CPP names a directory. | 
|  | 4386 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 4387 | CPP= | 
|  | 4388 | fi | 
|  | 4389 | if test -z "$CPP"; then | 
|  | 4390 | if ${ac_cv_prog_CPP+:} false; then : | 
|  | 4391 | $as_echo_n "(cached) " >&6 | 
|  | 4392 | else | 
|  | 4393 | # Double quotes because CPP needs to be expanded | 
|  | 4394 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 4395 | do | 
|  | 4396 | ac_preproc_ok=false | 
|  | 4397 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4398 | do | 
|  | 4399 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4400 | # with a fresh cross-compiler works. | 
|  | 4401 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4402 | # <limits.h> exists even on freestanding compilers. | 
|  | 4403 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4404 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 4405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4406 | /* end confdefs.h.  */ | 
|  | 4407 | #ifdef __STDC__ | 
|  | 4408 | # include <limits.h> | 
|  | 4409 | #else | 
|  | 4410 | # include <assert.h> | 
|  | 4411 | #endif | 
|  | 4412 | Syntax error | 
|  | 4413 | _ACEOF | 
|  | 4414 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4415 |  | 
|  | 4416 | else | 
|  | 4417 | # Broken: fails on valid input. | 
|  | 4418 | continue | 
|  | 4419 | fi | 
|  | 4420 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4421 |  | 
|  | 4422 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 4423 | # can be detected and how. | 
|  | 4424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4425 | /* end confdefs.h.  */ | 
|  | 4426 | #include <ac_nonexistent.h> | 
|  | 4427 | _ACEOF | 
|  | 4428 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4429 | # Broken: success on invalid input. | 
|  | 4430 | continue | 
|  | 4431 | else | 
|  | 4432 | # Passes both tests. | 
|  | 4433 | ac_preproc_ok=: | 
|  | 4434 | break | 
|  | 4435 | fi | 
|  | 4436 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4437 |  | 
|  | 4438 | done | 
|  | 4439 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 4440 | rm -f conftest.i conftest.err conftest.$ac_ext | 
|  | 4441 | if $ac_preproc_ok; then : | 
|  | 4442 | break | 
|  | 4443 | fi | 
|  | 4444 |  | 
|  | 4445 | done | 
|  | 4446 | ac_cv_prog_CPP=$CPP | 
|  | 4447 |  | 
|  | 4448 | fi | 
|  | 4449 | CPP=$ac_cv_prog_CPP | 
|  | 4450 | else | 
|  | 4451 | ac_cv_prog_CPP=$CPP | 
|  | 4452 | fi | 
|  | 4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
|  | 4454 | $as_echo "$CPP" >&6; } | 
|  | 4455 | ac_preproc_ok=false | 
|  | 4456 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4457 | do | 
|  | 4458 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4459 | # with a fresh cross-compiler works. | 
|  | 4460 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4461 | # <limits.h> exists even on freestanding compilers. | 
|  | 4462 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4463 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 4464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4465 | /* end confdefs.h.  */ | 
|  | 4466 | #ifdef __STDC__ | 
|  | 4467 | # include <limits.h> | 
|  | 4468 | #else | 
|  | 4469 | # include <assert.h> | 
|  | 4470 | #endif | 
|  | 4471 | Syntax error | 
|  | 4472 | _ACEOF | 
|  | 4473 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4474 |  | 
|  | 4475 | else | 
|  | 4476 | # Broken: fails on valid input. | 
|  | 4477 | continue | 
|  | 4478 | fi | 
|  | 4479 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4480 |  | 
|  | 4481 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 4482 | # can be detected and how. | 
|  | 4483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4484 | /* end confdefs.h.  */ | 
|  | 4485 | #include <ac_nonexistent.h> | 
|  | 4486 | _ACEOF | 
|  | 4487 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4488 | # Broken: success on invalid input. | 
|  | 4489 | continue | 
|  | 4490 | else | 
|  | 4491 | # Passes both tests. | 
|  | 4492 | ac_preproc_ok=: | 
|  | 4493 | break | 
|  | 4494 | fi | 
|  | 4495 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4496 |  | 
|  | 4497 | done | 
|  | 4498 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 4499 | rm -f conftest.i conftest.err conftest.$ac_ext | 
|  | 4500 | if $ac_preproc_ok; then : | 
|  | 4501 |  | 
|  | 4502 | else | 
|  | 4503 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4504 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 4505 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
|  | 4506 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 4507 | fi | 
|  | 4508 |  | 
|  | 4509 | ac_ext=c | 
|  | 4510 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4514 |  | 
|  | 4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
|  | 4516 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
|  | 4517 | if ${ac_cv_path_GREP+:} false; then : | 
|  | 4518 | $as_echo_n "(cached) " >&6 | 
|  | 4519 | else | 
|  | 4520 | if test -z "$GREP"; then | 
|  | 4521 | ac_path_GREP_found=false | 
|  | 4522 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4524 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 4525 | do | 
|  | 4526 | IFS=$as_save_IFS | 
|  | 4527 | test -z "$as_dir" && as_dir=. | 
|  | 4528 | for ac_prog in grep ggrep; do | 
|  | 4529 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4530 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4531 | as_fn_executable_p "$ac_path_GREP" || continue | 
|  | 4532 | # Check for GNU ac_path_GREP and select it if it is found. | 
|  | 4533 | # Check for GNU $ac_path_GREP | 
|  | 4534 | case `"$ac_path_GREP" --version 2>&1` in | 
|  | 4535 | *GNU*) | 
|  | 4536 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
|  | 4537 | *) | 
|  | 4538 | ac_count=0 | 
|  | 4539 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 4540 | while : | 
|  | 4541 | do | 
|  | 4542 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4543 | mv "conftest.tmp" "conftest.in" | 
|  | 4544 | cp "conftest.in" "conftest.nl" | 
|  | 4545 | $as_echo 'GREP' >> "conftest.nl" | 
|  | 4546 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4547 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
|  | 4548 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
|  | 4549 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
|  | 4550 | # Best one so far, save it but keep looking for a better one | 
|  | 4551 | ac_cv_path_GREP="$ac_path_GREP" | 
|  | 4552 | ac_path_GREP_max=$ac_count | 
|  | 4553 | fi | 
|  | 4554 | # 10*(2^10) chars as input seems more than enough | 
|  | 4555 | test $ac_count -gt 10 && break | 
|  | 4556 | done | 
|  | 4557 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4558 | esac | 
|  | 4559 |  | 
|  | 4560 | $ac_path_GREP_found && break 3 | 
|  | 4561 | done | 
|  | 4562 | done | 
|  | 4563 | done | 
|  | 4564 | IFS=$as_save_IFS | 
|  | 4565 | if test -z "$ac_cv_path_GREP"; then | 
|  | 4566 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
|  | 4567 | fi | 
|  | 4568 | else | 
|  | 4569 | ac_cv_path_GREP=$GREP | 
|  | 4570 | fi | 
|  | 4571 |  | 
|  | 4572 | fi | 
|  | 4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
|  | 4574 | $as_echo "$ac_cv_path_GREP" >&6; } | 
|  | 4575 | GREP="$ac_cv_path_GREP" | 
|  | 4576 |  | 
|  | 4577 |  | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | 
|  | 4579 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | 
|  | 4580 | if ${ac_cv_path_SED+:} false; then : | 
|  | 4581 | $as_echo_n "(cached) " >&6 | 
|  | 4582 | else | 
|  | 4583 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | 
|  | 4584 | for ac_i in 1 2 3 4 5 6 7; do | 
|  | 4585 | ac_script="$ac_script$as_nl$ac_script" | 
|  | 4586 | done | 
|  | 4587 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | 
|  | 4588 | { ac_script=; unset ac_script;} | 
|  | 4589 | if test -z "$SED"; then | 
|  | 4590 | ac_path_SED_found=false | 
|  | 4591 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4593 | for as_dir in $PATH | 
|  | 4594 | do | 
|  | 4595 | IFS=$as_save_IFS | 
|  | 4596 | test -z "$as_dir" && as_dir=. | 
|  | 4597 | for ac_prog in sed gsed; do | 
|  | 4598 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4599 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4600 | as_fn_executable_p "$ac_path_SED" || continue | 
|  | 4601 | # Check for GNU ac_path_SED and select it if it is found. | 
|  | 4602 | # Check for GNU $ac_path_SED | 
|  | 4603 | case `"$ac_path_SED" --version 2>&1` in | 
|  | 4604 | *GNU*) | 
|  | 4605 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | 
|  | 4606 | *) | 
|  | 4607 | ac_count=0 | 
|  | 4608 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 4609 | while : | 
|  | 4610 | do | 
|  | 4611 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4612 | mv "conftest.tmp" "conftest.in" | 
|  | 4613 | cp "conftest.in" "conftest.nl" | 
|  | 4614 | $as_echo '' >> "conftest.nl" | 
|  | 4615 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4616 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
|  | 4617 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
|  | 4618 | if test $ac_count -gt ${ac_path_SED_max-0}; then | 
|  | 4619 | # Best one so far, save it but keep looking for a better one | 
|  | 4620 | ac_cv_path_SED="$ac_path_SED" | 
|  | 4621 | ac_path_SED_max=$ac_count | 
|  | 4622 | fi | 
|  | 4623 | # 10*(2^10) chars as input seems more than enough | 
|  | 4624 | test $ac_count -gt 10 && break | 
|  | 4625 | done | 
|  | 4626 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4627 | esac | 
|  | 4628 |  | 
|  | 4629 | $ac_path_SED_found && break 3 | 
|  | 4630 | done | 
|  | 4631 | done | 
|  | 4632 | done | 
|  | 4633 | IFS=$as_save_IFS | 
|  | 4634 | if test -z "$ac_cv_path_SED"; then | 
|  | 4635 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | 
|  | 4636 | fi | 
|  | 4637 | else | 
|  | 4638 | ac_cv_path_SED=$SED | 
|  | 4639 | fi | 
|  | 4640 |  | 
|  | 4641 | fi | 
|  | 4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | 
|  | 4643 | $as_echo "$ac_cv_path_SED" >&6; } | 
|  | 4644 | SED="$ac_cv_path_SED" | 
|  | 4645 | rm -f conftest.sed | 
|  | 4646 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4647 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4648 |  | 
|  | 4649 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
|  | 4651 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4652 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4653 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4654 | if test "${with_cxx_main+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4655 | withval=$with_cxx_main; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4656 |  | 
|  | 4657 | case $withval in | 
|  | 4658 | no)	with_cxx_main=no | 
|  | 4659 | MAINCC='$(CC)';; | 
|  | 4660 | yes)	with_cxx_main=yes | 
|  | 4661 | MAINCC='$(CXX)';; | 
|  | 4662 | *)	with_cxx_main=yes | 
|  | 4663 | MAINCC=$withval | 
|  | 4664 | if test -z "$CXX" | 
|  | 4665 | then | 
|  | 4666 | CXX=$withval | 
|  | 4667 | fi;; | 
|  | 4668 | esac | 
|  | 4669 | else | 
|  | 4670 |  | 
|  | 4671 | with_cxx_main=no | 
|  | 4672 | MAINCC='$(CC)' | 
|  | 4673 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4674 | fi | 
|  | 4675 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
|  | 4677 | $as_echo "$with_cxx_main" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4678 |  | 
|  | 4679 | preset_cxx="$CXX" | 
|  | 4680 | if test -z "$CXX" | 
|  | 4681 | then | 
|  | 4682 | case "$CC" in | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4683 | gcc)    if test -n "$ac_tool_prefix"; then | 
|  | 4684 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | 
|  | 4685 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | 
|  | 4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4687 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4688 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 4689 | $as_echo_n "(cached) " >&6 | 
|  | 4690 | else | 
|  | 4691 | case $CXX in | 
|  | 4692 | [\\/]* | ?:[\\/]*) | 
|  | 4693 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4694 | ;; | 
|  | 4695 | *) | 
|  | 4696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4697 | for as_dir in notfound | 
|  | 4698 | do | 
|  | 4699 | IFS=$as_save_IFS | 
|  | 4700 | test -z "$as_dir" && as_dir=. | 
|  | 4701 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4703 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4705 | break 2 | 
|  | 4706 | fi | 
|  | 4707 | done | 
|  | 4708 | done | 
|  | 4709 | IFS=$as_save_IFS | 
|  | 4710 |  | 
|  | 4711 | ;; | 
|  | 4712 | esac | 
|  | 4713 | fi | 
|  | 4714 | CXX=$ac_cv_path_CXX | 
|  | 4715 | if test -n "$CXX"; then | 
|  | 4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4717 | $as_echo "$CXX" >&6; } | 
|  | 4718 | else | 
|  | 4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4720 | $as_echo "no" >&6; } | 
|  | 4721 | fi | 
|  | 4722 |  | 
|  | 4723 |  | 
|  | 4724 | fi | 
|  | 4725 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4726 | ac_pt_CXX=$CXX | 
|  | 4727 | # Extract the first word of "g++", so it can be a program name with args. | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4728 | set dummy g++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4730 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4731 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 4732 | $as_echo_n "(cached) " >&6 | 
|  | 4733 | else | 
|  | 4734 | case $ac_pt_CXX in | 
|  | 4735 | [\\/]* | ?:[\\/]*) | 
|  | 4736 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 4737 | ;; | 
|  | 4738 | *) | 
|  | 4739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4740 | for as_dir in notfound | 
|  | 4741 | do | 
|  | 4742 | IFS=$as_save_IFS | 
|  | 4743 | test -z "$as_dir" && as_dir=. | 
|  | 4744 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4745 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4746 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4748 | break 2 | 
|  | 4749 | fi | 
|  | 4750 | done | 
|  | 4751 | done | 
|  | 4752 | IFS=$as_save_IFS | 
|  | 4753 |  | 
|  | 4754 | ;; | 
|  | 4755 | esac | 
|  | 4756 | fi | 
|  | 4757 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4758 | if test -n "$ac_pt_CXX"; then | 
|  | 4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4760 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 4761 | else | 
|  | 4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4763 | $as_echo "no" >&6; } | 
|  | 4764 | fi | 
|  | 4765 |  | 
|  | 4766 | if test "x$ac_pt_CXX" = x; then | 
|  | 4767 | CXX="g++" | 
|  | 4768 | else | 
|  | 4769 | case $cross_compiling:$ac_tool_warned in | 
|  | 4770 | yes:) | 
|  | 4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4772 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4773 | ac_tool_warned=yes ;; | 
|  | 4774 | esac | 
|  | 4775 | CXX=$ac_pt_CXX | 
|  | 4776 | fi | 
|  | 4777 | else | 
|  | 4778 | CXX="$ac_cv_path_CXX" | 
|  | 4779 | fi | 
|  | 4780 | ;; | 
|  | 4781 | cc)     if test -n "$ac_tool_prefix"; then | 
|  | 4782 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | 
|  | 4783 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | 
|  | 4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4785 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4786 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4787 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4788 | else | 
|  | 4789 | case $CXX in | 
|  | 4790 | [\\/]* | ?:[\\/]*) | 
|  | 4791 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4792 | ;; | 
|  | 4793 | *) | 
|  | 4794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4795 | for as_dir in notfound | 
|  | 4796 | do | 
|  | 4797 | IFS=$as_save_IFS | 
|  | 4798 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4799 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4800 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4801 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4803 | break 2 | 
|  | 4804 | fi | 
|  | 4805 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4806 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4807 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4808 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4809 | ;; | 
|  | 4810 | esac | 
|  | 4811 | fi | 
|  | 4812 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4813 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4815 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4816 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4818 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4819 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4820 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4821 |  | 
|  | 4822 | fi | 
|  | 4823 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4824 | ac_pt_CXX=$CXX | 
|  | 4825 | # Extract the first word of "c++", so it can be a program name with args. | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4826 | set dummy c++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4828 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4829 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4830 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4831 | else | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4832 | case $ac_pt_CXX in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4833 | [\\/]* | ?:[\\/]*) | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4834 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4835 | ;; | 
|  | 4836 | *) | 
|  | 4837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4838 | for as_dir in notfound | 
|  | 4839 | do | 
|  | 4840 | IFS=$as_save_IFS | 
|  | 4841 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4842 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4843 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4844 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4846 | break 2 | 
|  | 4847 | fi | 
|  | 4848 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4849 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4850 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4851 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4852 | ;; | 
|  | 4853 | esac | 
|  | 4854 | fi | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4855 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4856 | if test -n "$ac_pt_CXX"; then | 
|  | 4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4858 | $as_echo "$ac_pt_CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4859 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4861 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4862 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4863 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4864 | if test "x$ac_pt_CXX" = x; then | 
|  | 4865 | CXX="c++" | 
|  | 4866 | else | 
|  | 4867 | case $cross_compiling:$ac_tool_warned in | 
|  | 4868 | yes:) | 
|  | 4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4870 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4871 | ac_tool_warned=yes ;; | 
|  | 4872 | esac | 
|  | 4873 | CXX=$ac_pt_CXX | 
|  | 4874 | fi | 
|  | 4875 | else | 
|  | 4876 | CXX="$ac_cv_path_CXX" | 
|  | 4877 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4878 | ;; | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4879 | clang|*/clang)     if test -n "$ac_tool_prefix"; then | 
|  | 4880 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | 
|  | 4881 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4883 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4884 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 4885 | $as_echo_n "(cached) " >&6 | 
|  | 4886 | else | 
|  | 4887 | case $CXX in | 
|  | 4888 | [\\/]* | ?:[\\/]*) | 
|  | 4889 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4890 | ;; | 
|  | 4891 | *) | 
|  | 4892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4893 | for as_dir in notfound | 
|  | 4894 | do | 
|  | 4895 | IFS=$as_save_IFS | 
|  | 4896 | test -z "$as_dir" && as_dir=. | 
|  | 4897 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4898 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4899 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4901 | break 2 | 
|  | 4902 | fi | 
|  | 4903 | done | 
|  | 4904 | done | 
|  | 4905 | IFS=$as_save_IFS | 
|  | 4906 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4907 | ;; | 
|  | 4908 | esac | 
|  | 4909 | fi | 
|  | 4910 | CXX=$ac_cv_path_CXX | 
|  | 4911 | if test -n "$CXX"; then | 
|  | 4912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4913 | $as_echo "$CXX" >&6; } | 
|  | 4914 | else | 
|  | 4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4916 | $as_echo "no" >&6; } | 
|  | 4917 | fi | 
|  | 4918 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4919 |  | 
|  | 4920 | fi | 
|  | 4921 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4922 | ac_pt_CXX=$CXX | 
|  | 4923 | # Extract the first word of "clang++", so it can be a program name with args. | 
|  | 4924 | set dummy clang++; ac_word=$2 | 
|  | 4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4926 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4927 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 4928 | $as_echo_n "(cached) " >&6 | 
|  | 4929 | else | 
|  | 4930 | case $ac_pt_CXX in | 
|  | 4931 | [\\/]* | ?:[\\/]*) | 
|  | 4932 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 4933 | ;; | 
|  | 4934 | *) | 
|  | 4935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4936 | for as_dir in notfound | 
|  | 4937 | do | 
|  | 4938 | IFS=$as_save_IFS | 
|  | 4939 | test -z "$as_dir" && as_dir=. | 
|  | 4940 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4941 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4942 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4944 | break 2 | 
|  | 4945 | fi | 
|  | 4946 | done | 
|  | 4947 | done | 
|  | 4948 | IFS=$as_save_IFS | 
|  | 4949 |  | 
|  | 4950 | ;; | 
|  | 4951 | esac | 
|  | 4952 | fi | 
|  | 4953 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4954 | if test -n "$ac_pt_CXX"; then | 
|  | 4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4956 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 4957 | else | 
|  | 4958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4959 | $as_echo "no" >&6; } | 
|  | 4960 | fi | 
|  | 4961 |  | 
|  | 4962 | if test "x$ac_pt_CXX" = x; then | 
|  | 4963 | CXX="clang++" | 
|  | 4964 | else | 
|  | 4965 | case $cross_compiling:$ac_tool_warned in | 
|  | 4966 | yes:) | 
|  | 4967 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4968 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4969 | ac_tool_warned=yes ;; | 
|  | 4970 | esac | 
|  | 4971 | CXX=$ac_pt_CXX | 
|  | 4972 | fi | 
|  | 4973 | else | 
|  | 4974 | CXX="$ac_cv_path_CXX" | 
|  | 4975 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4976 | ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 4977 | icc|*/icc)         if test -n "$ac_tool_prefix"; then | 
|  | 4978 | # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. | 
|  | 4979 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 | 
|  | 4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4981 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4982 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 4983 | $as_echo_n "(cached) " >&6 | 
|  | 4984 | else | 
|  | 4985 | case $CXX in | 
|  | 4986 | [\\/]* | ?:[\\/]*) | 
|  | 4987 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4988 | ;; | 
|  | 4989 | *) | 
|  | 4990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4991 | for as_dir in notfound | 
|  | 4992 | do | 
|  | 4993 | IFS=$as_save_IFS | 
|  | 4994 | test -z "$as_dir" && as_dir=. | 
|  | 4995 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4996 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4997 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4998 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4999 | break 2 | 
|  | 5000 | fi | 
|  | 5001 | done | 
|  | 5002 | done | 
|  | 5003 | IFS=$as_save_IFS | 
|  | 5004 |  | 
|  | 5005 | ;; | 
|  | 5006 | esac | 
|  | 5007 | fi | 
|  | 5008 | CXX=$ac_cv_path_CXX | 
|  | 5009 | if test -n "$CXX"; then | 
|  | 5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 5011 | $as_echo "$CXX" >&6; } | 
|  | 5012 | else | 
|  | 5013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5014 | $as_echo "no" >&6; } | 
|  | 5015 | fi | 
|  | 5016 |  | 
|  | 5017 |  | 
|  | 5018 | fi | 
|  | 5019 | if test -z "$ac_cv_path_CXX"; then | 
|  | 5020 | ac_pt_CXX=$CXX | 
|  | 5021 | # Extract the first word of "icpc", so it can be a program name with args. | 
|  | 5022 | set dummy icpc; ac_word=$2 | 
|  | 5023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5024 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5025 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 5026 | $as_echo_n "(cached) " >&6 | 
|  | 5027 | else | 
|  | 5028 | case $ac_pt_CXX in | 
|  | 5029 | [\\/]* | ?:[\\/]*) | 
|  | 5030 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 5031 | ;; | 
|  | 5032 | *) | 
|  | 5033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5034 | for as_dir in notfound | 
|  | 5035 | do | 
|  | 5036 | IFS=$as_save_IFS | 
|  | 5037 | test -z "$as_dir" && as_dir=. | 
|  | 5038 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5039 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5040 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5042 | break 2 | 
|  | 5043 | fi | 
|  | 5044 | done | 
|  | 5045 | done | 
|  | 5046 | IFS=$as_save_IFS | 
|  | 5047 |  | 
|  | 5048 | ;; | 
|  | 5049 | esac | 
|  | 5050 | fi | 
|  | 5051 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 5052 | if test -n "$ac_pt_CXX"; then | 
|  | 5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 5054 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 5055 | else | 
|  | 5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5057 | $as_echo "no" >&6; } | 
|  | 5058 | fi | 
|  | 5059 |  | 
|  | 5060 | if test "x$ac_pt_CXX" = x; then | 
|  | 5061 | CXX="icpc" | 
|  | 5062 | else | 
|  | 5063 | case $cross_compiling:$ac_tool_warned in | 
|  | 5064 | yes:) | 
|  | 5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5066 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 5067 | ac_tool_warned=yes ;; | 
|  | 5068 | esac | 
|  | 5069 | CXX=$ac_pt_CXX | 
|  | 5070 | fi | 
|  | 5071 | else | 
|  | 5072 | CXX="$ac_cv_path_CXX" | 
|  | 5073 | fi | 
|  | 5074 | ;; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5075 | esac | 
|  | 5076 | if test "$CXX" = "notfound" | 
|  | 5077 | then | 
|  | 5078 | CXX="" | 
|  | 5079 | fi | 
|  | 5080 | fi | 
|  | 5081 | if test -z "$CXX" | 
|  | 5082 | then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5083 | if test -n "$ac_tool_prefix"; then | 
|  | 5084 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 5085 | do | 
|  | 5086 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 5087 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5089 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5090 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5091 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5092 | else | 
|  | 5093 | if test -n "$CXX"; then | 
|  | 5094 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 5095 | else | 
|  | 5096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5097 | for as_dir in $PATH | 
|  | 5098 | do | 
|  | 5099 | IFS=$as_save_IFS | 
|  | 5100 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5101 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5103 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5105 | break 2 | 
|  | 5106 | fi | 
|  | 5107 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5108 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5109 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5110 |  | 
|  | 5111 | fi | 
|  | 5112 | fi | 
|  | 5113 | CXX=$ac_cv_prog_CXX | 
|  | 5114 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 5116 | $as_echo "$CXX" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5117 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5119 | $as_echo "no" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5120 | fi | 
|  | 5121 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5122 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5123 | test -n "$CXX" && break | 
|  | 5124 | done | 
|  | 5125 | fi | 
|  | 5126 | if test -z "$CXX"; then | 
|  | 5127 | ac_ct_CXX=$CXX | 
|  | 5128 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 5129 | do | 
|  | 5130 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 5131 | set dummy $ac_prog; ac_word=$2 | 
|  | 5132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5133 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5134 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
|  | 5135 | $as_echo_n "(cached) " >&6 | 
|  | 5136 | else | 
|  | 5137 | if test -n "$ac_ct_CXX"; then | 
|  | 5138 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
|  | 5139 | else | 
|  | 5140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5141 | for as_dir in $PATH | 
|  | 5142 | do | 
|  | 5143 | IFS=$as_save_IFS | 
|  | 5144 | test -z "$as_dir" && as_dir=. | 
|  | 5145 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5146 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5147 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
|  | 5148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5149 | break 2 | 
|  | 5150 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5151 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5152 | done | 
|  | 5153 | IFS=$as_save_IFS | 
|  | 5154 |  | 
|  | 5155 | fi | 
|  | 5156 | fi | 
|  | 5157 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
|  | 5158 | if test -n "$ac_ct_CXX"; then | 
|  | 5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
|  | 5160 | $as_echo "$ac_ct_CXX" >&6; } | 
|  | 5161 | else | 
|  | 5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5163 | $as_echo "no" >&6; } | 
|  | 5164 | fi | 
|  | 5165 |  | 
|  | 5166 |  | 
|  | 5167 | test -n "$ac_ct_CXX" && break | 
|  | 5168 | done | 
|  | 5169 |  | 
|  | 5170 | if test "x$ac_ct_CXX" = x; then | 
|  | 5171 | CXX="notfound" | 
|  | 5172 | else | 
|  | 5173 | case $cross_compiling:$ac_tool_warned in | 
|  | 5174 | yes:) | 
|  | 5175 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5176 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 5177 | ac_tool_warned=yes ;; | 
|  | 5178 | esac | 
|  | 5179 | CXX=$ac_ct_CXX | 
|  | 5180 | fi | 
|  | 5181 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5182 |  | 
|  | 5183 | if test "$CXX" = "notfound" | 
|  | 5184 | then | 
|  | 5185 | CXX="" | 
|  | 5186 | fi | 
|  | 5187 | fi | 
|  | 5188 | if test "$preset_cxx" != "$CXX" | 
|  | 5189 | then | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5190 | { $as_echo "$as_me:${as_lineno-$LINENO}: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5191 |  | 
|  | 5192 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 5193 | If this is not intended, then set CXX on the configure command line. | 
|  | 5194 | " >&5 | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5195 | $as_echo "$as_me: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5196 |  | 
|  | 5197 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 5198 | If this is not intended, then set CXX on the configure command line. | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5199 | " >&6;} | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5200 | fi | 
|  | 5201 |  | 
|  | 5202 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5203 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | 
|  | 5204 |  | 
|  | 5205 |  | 
|  | 5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 | 
|  | 5207 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } | 
|  | 5208 | cat >> conftest.c <<EOF | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5209 | #undef bfin | 
|  | 5210 | #undef cris | 
|  | 5211 | #undef fr30 | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5212 | #undef linux | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5213 | #undef hppa | 
|  | 5214 | #undef hpux | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5215 | #undef i386 | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5216 | #undef mips | 
| doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5217 | #undef powerpc | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5218 | #undef sparc | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5219 | #undef unix | 
| doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5220 | #if defined(__ANDROID__) | 
|  | 5221 | # if defined(__x86_64__) && defined(__LP64__) | 
|  | 5222 | x86_64-linux-android | 
|  | 5223 | # elif defined(__i386__) | 
|  | 5224 | i686-linux-android | 
|  | 5225 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | 
|  | 5226 | #  if defined(__ILP32__) | 
|  | 5227 | aarch64_ilp32-linux-android | 
|  | 5228 | #  else | 
|  | 5229 | aarch64-linux-android | 
|  | 5230 | #  endif | 
|  | 5231 | # elif defined(__ARM_EABI__) && defined(__ARMEL__) | 
|  | 5232 | arm-linux-androideabi | 
|  | 5233 | # elif defined(__mips_hard_float) && defined(_MIPSEL) | 
|  | 5234 | #  if _MIPS_SIM == _ABIO32 | 
|  | 5235 | mipsel-linux-android | 
|  | 5236 | #  elif _MIPS_SIM == _ABI64 | 
|  | 5237 | mips64el-linux-android | 
|  | 5238 | #  else | 
|  | 5239 | #   error unknown platform triplet | 
|  | 5240 | #  endif | 
|  | 5241 | # else | 
|  | 5242 | #   error unknown platform triplet | 
|  | 5243 | # endif | 
|  | 5244 | #elif defined(__linux__) | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5245 | # if defined(__x86_64__) && defined(__LP64__) | 
|  | 5246 | x86_64-linux-gnu | 
|  | 5247 | # elif defined(__x86_64__) && defined(__ILP32__) | 
|  | 5248 | x86_64-linux-gnux32 | 
|  | 5249 | # elif defined(__i386__) | 
|  | 5250 | i386-linux-gnu | 
|  | 5251 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | 
|  | 5252 | #  if defined(__ILP32__) | 
|  | 5253 | aarch64_ilp32-linux-gnu | 
|  | 5254 | #  else | 
|  | 5255 | aarch64-linux-gnu | 
|  | 5256 | #  endif | 
|  | 5257 | # elif defined(__aarch64__) && defined(__AARCH64EB__) | 
|  | 5258 | #  if defined(__ILP32__) | 
|  | 5259 | aarch64_be_ilp32-linux-gnu | 
|  | 5260 | #  else | 
|  | 5261 | aarch64_be-linux-gnu | 
|  | 5262 | #  endif | 
|  | 5263 | # elif defined(__alpha__) | 
|  | 5264 | alpha-linux-gnu | 
|  | 5265 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) | 
|  | 5266 | #  if defined(__ARMEL__) | 
|  | 5267 | arm-linux-gnueabihf | 
|  | 5268 | #  else | 
|  | 5269 | armeb-linux-gnueabihf | 
|  | 5270 | #  endif | 
|  | 5271 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) | 
|  | 5272 | #  if defined(__ARMEL__) | 
|  | 5273 | arm-linux-gnueabi | 
|  | 5274 | #  else | 
|  | 5275 | armeb-linux-gnueabi | 
|  | 5276 | #  endif | 
|  | 5277 | # elif defined(__hppa__) | 
|  | 5278 | hppa-linux-gnu | 
|  | 5279 | # elif defined(__ia64__) | 
|  | 5280 | ia64-linux-gnu | 
|  | 5281 | # elif defined(__m68k__) && !defined(__mcoldfire__) | 
|  | 5282 | m68k-linux-gnu | 
|  | 5283 | # elif defined(__mips_hard_float) && defined(_MIPSEL) | 
|  | 5284 | #  if _MIPS_SIM == _ABIO32 | 
|  | 5285 | mipsel-linux-gnu | 
|  | 5286 | #  elif _MIPS_SIM == _ABIN32 | 
|  | 5287 | mips64el-linux-gnuabin32 | 
|  | 5288 | #  elif _MIPS_SIM == _ABI64 | 
|  | 5289 | mips64el-linux-gnuabi64 | 
|  | 5290 | #  else | 
|  | 5291 | #   error unknown platform triplet | 
|  | 5292 | #  endif | 
|  | 5293 | # elif defined(__mips_hard_float) | 
|  | 5294 | #  if _MIPS_SIM == _ABIO32 | 
|  | 5295 | mips-linux-gnu | 
|  | 5296 | #  elif _MIPS_SIM == _ABIN32 | 
|  | 5297 | mips64-linux-gnuabin32 | 
|  | 5298 | #  elif _MIPS_SIM == _ABI64 | 
|  | 5299 | mips64-linux-gnuabi64 | 
|  | 5300 | #  else | 
|  | 5301 | #   error unknown platform triplet | 
|  | 5302 | #  endif | 
|  | 5303 | # elif defined(__or1k__) | 
|  | 5304 | or1k-linux-gnu | 
|  | 5305 | # elif defined(__powerpc__) && defined(__SPE__) | 
|  | 5306 | powerpc-linux-gnuspe | 
|  | 5307 | # elif defined(__powerpc64__) | 
|  | 5308 | #  if defined(__LITTLE_ENDIAN__) | 
|  | 5309 | powerpc64le-linux-gnu | 
|  | 5310 | #  else | 
|  | 5311 | powerpc64-linux-gnu | 
|  | 5312 | #  endif | 
|  | 5313 | # elif defined(__powerpc__) | 
|  | 5314 | powerpc-linux-gnu | 
|  | 5315 | # elif defined(__s390x__) | 
|  | 5316 | s390x-linux-gnu | 
|  | 5317 | # elif defined(__s390__) | 
|  | 5318 | s390-linux-gnu | 
|  | 5319 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) | 
|  | 5320 | sh4-linux-gnu | 
|  | 5321 | # elif defined(__sparc__) && defined(__arch64__) | 
|  | 5322 | sparc64-linux-gnu | 
|  | 5323 | # elif defined(__sparc__) | 
|  | 5324 | sparc-linux-gnu | 
|  | 5325 | # else | 
|  | 5326 | #   error unknown platform triplet | 
|  | 5327 | # endif | 
|  | 5328 | #elif defined(__FreeBSD_kernel__) | 
|  | 5329 | # if defined(__LP64__) | 
|  | 5330 | x86_64-kfreebsd-gnu | 
|  | 5331 | # elif defined(__i386__) | 
|  | 5332 | i386-kfreebsd-gnu | 
|  | 5333 | # else | 
|  | 5334 | #   error unknown platform triplet | 
|  | 5335 | # endif | 
|  | 5336 | #elif defined(__gnu_hurd__) | 
|  | 5337 | i386-gnu | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5338 | #elif defined(__APPLE__) | 
|  | 5339 | darwin | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5340 | #else | 
|  | 5341 | # error unknown platform triplet | 
|  | 5342 | #endif | 
|  | 5343 |  | 
|  | 5344 | EOF | 
|  | 5345 |  | 
| Xavier de Gaye | 3a32bdf | 2016-07-30 11:28:35 +0200 | [diff] [blame] | 5346 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5347 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' 	'` | 
|  | 5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 | 
|  | 5349 | $as_echo "$PLATFORM_TRIPLET" >&6; } | 
|  | 5350 | else | 
|  | 5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 5352 | $as_echo "none" >&6; } | 
|  | 5353 | fi | 
|  | 5354 | rm -f conftest.c conftest.out | 
|  | 5355 |  | 
|  | 5356 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then | 
|  | 5357 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then | 
|  | 5358 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 | 
|  | 5359 | fi | 
| doko@ubuntu.com | 75b1cb1 | 2016-08-29 20:03:25 +0200 | [diff] [blame] | 5360 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then | 
|  | 5361 | MULTIARCH=$PLATFORM_TRIPLET | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5362 | fi | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5363 |  | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 5364 | if test x$MULTIARCH != x; then | 
|  | 5365 | MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" | 
|  | 5366 | fi | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5367 |  | 
|  | 5368 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 | 
|  | 5370 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | 
|  | 5371 | save_LDFLAGS="$LDFLAGS" | 
|  | 5372 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5373 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5375 | /* end confdefs.h.  */ | 
|  | 5376 |  | 
|  | 5377 | int | 
|  | 5378 | main () | 
|  | 5379 | { | 
|  | 5380 |  | 
|  | 5381 | ; | 
|  | 5382 | return 0; | 
|  | 5383 | } | 
|  | 5384 | _ACEOF | 
|  | 5385 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 5386 | NO_AS_NEEDED="-Wl,--no-as-needed" | 
|  | 5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 5388 | $as_echo "yes" >&6; } | 
|  | 5389 | else | 
|  | 5390 | NO_AS_NEEDED="" | 
|  | 5391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5392 | $as_echo "no" >&6; } | 
|  | 5393 | fi | 
|  | 5394 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 5395 | conftest$ac_exeext conftest.$ac_ext | 
|  | 5396 | LDFLAGS="$save_LDFLAGS" | 
|  | 5397 |  | 
|  | 5398 |  | 
|  | 5399 |  | 
|  | 5400 | # checks for UNIX variants that set C preprocessor variables | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5401 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
|  | 5403 | $as_echo_n "checking for egrep... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5404 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5405 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5406 | else | 
|  | 5407 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
|  | 5408 | then ac_cv_path_EGREP="$GREP -E" | 
|  | 5409 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5410 | if test -z "$EGREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5411 | ac_path_EGREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5412 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 5413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5414 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 5415 | do | 
|  | 5416 | IFS=$as_save_IFS | 
|  | 5417 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5418 | for ac_prog in egrep; do | 
|  | 5419 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5420 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5421 | as_fn_executable_p "$ac_path_EGREP" || continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5422 | # Check for GNU ac_path_EGREP and select it if it is found. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5423 | # Check for GNU $ac_path_EGREP | 
|  | 5424 | case `"$ac_path_EGREP" --version 2>&1` in | 
|  | 5425 | *GNU*) | 
|  | 5426 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
|  | 5427 | *) | 
|  | 5428 | ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5429 | $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5430 | while : | 
|  | 5431 | do | 
|  | 5432 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 5433 | mv "conftest.tmp" "conftest.in" | 
|  | 5434 | cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5435 | $as_echo 'EGREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5436 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 5437 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5438 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5439 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
|  | 5440 | # Best one so far, save it but keep looking for a better one | 
|  | 5441 | ac_cv_path_EGREP="$ac_path_EGREP" | 
|  | 5442 | ac_path_EGREP_max=$ac_count | 
|  | 5443 | fi | 
|  | 5444 | # 10*(2^10) chars as input seems more than enough | 
|  | 5445 | test $ac_count -gt 10 && break | 
|  | 5446 | done | 
|  | 5447 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 5448 | esac | 
|  | 5449 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5450 | $ac_path_EGREP_found && break 3 | 
|  | 5451 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5452 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5453 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5454 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5455 | if test -z "$ac_cv_path_EGREP"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5456 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5457 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5458 | else | 
|  | 5459 | ac_cv_path_EGREP=$EGREP | 
|  | 5460 | fi | 
|  | 5461 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5462 | fi | 
|  | 5463 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
|  | 5465 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5466 | EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5467 |  | 
|  | 5468 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 5470 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5471 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5472 | $as_echo_n "(cached) " >&6 | 
|  | 5473 | else | 
|  | 5474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5475 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5476 | #include <stdlib.h> | 
|  | 5477 | #include <stdarg.h> | 
|  | 5478 | #include <string.h> | 
|  | 5479 | #include <float.h> | 
|  | 5480 |  | 
|  | 5481 | int | 
|  | 5482 | main () | 
|  | 5483 | { | 
|  | 5484 |  | 
|  | 5485 | ; | 
|  | 5486 | return 0; | 
|  | 5487 | } | 
|  | 5488 | _ACEOF | 
|  | 5489 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5490 | ac_cv_header_stdc=yes | 
|  | 5491 | else | 
|  | 5492 | ac_cv_header_stdc=no | 
|  | 5493 | fi | 
|  | 5494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5495 |  | 
|  | 5496 | if test $ac_cv_header_stdc = yes; then | 
|  | 5497 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 5498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5499 | /* end confdefs.h.  */ | 
|  | 5500 | #include <string.h> | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5501 |  | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5502 | _ACEOF | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5503 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5504 | $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5505 |  | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5506 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5507 | ac_cv_header_stdc=no | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5508 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5509 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5510 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5511 | fi | 
|  | 5512 |  | 
|  | 5513 | if test $ac_cv_header_stdc = yes; then | 
|  | 5514 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 5515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5516 | /* end confdefs.h.  */ | 
|  | 5517 | #include <stdlib.h> | 
|  | 5518 |  | 
|  | 5519 | _ACEOF | 
|  | 5520 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 5521 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 5522 |  | 
|  | 5523 | else | 
|  | 5524 | ac_cv_header_stdc=no | 
|  | 5525 | fi | 
|  | 5526 | rm -f conftest* | 
|  | 5527 |  | 
|  | 5528 | fi | 
|  | 5529 |  | 
|  | 5530 | if test $ac_cv_header_stdc = yes; then | 
|  | 5531 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 5532 | if test "$cross_compiling" = yes; then : | 
|  | 5533 | : | 
|  | 5534 | else | 
|  | 5535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5536 | /* end confdefs.h.  */ | 
|  | 5537 | #include <ctype.h> | 
|  | 5538 | #include <stdlib.h> | 
|  | 5539 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 5540 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 5541 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 5542 | #else | 
|  | 5543 | # define ISLOWER(c) \ | 
|  | 5544 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 5545 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 5546 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 5547 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 5548 | #endif | 
|  | 5549 |  | 
|  | 5550 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 5551 | int | 
|  | 5552 | main () | 
|  | 5553 | { | 
|  | 5554 | int i; | 
|  | 5555 | for (i = 0; i < 256; i++) | 
|  | 5556 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 5557 | || toupper (i) != TOUPPER (i)) | 
|  | 5558 | return 2; | 
|  | 5559 | return 0; | 
|  | 5560 | } | 
|  | 5561 | _ACEOF | 
|  | 5562 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 5563 |  | 
|  | 5564 | else | 
|  | 5565 | ac_cv_header_stdc=no | 
|  | 5566 | fi | 
|  | 5567 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5568 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 5569 | fi | 
|  | 5570 |  | 
|  | 5571 | fi | 
|  | 5572 | fi | 
|  | 5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 5574 | $as_echo "$ac_cv_header_stdc" >&6; } | 
|  | 5575 | if test $ac_cv_header_stdc = yes; then | 
|  | 5576 |  | 
|  | 5577 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
|  | 5578 |  | 
|  | 5579 | fi | 
|  | 5580 |  | 
|  | 5581 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
|  | 5582 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
|  | 5583 | inttypes.h stdint.h unistd.h | 
|  | 5584 | do : | 
|  | 5585 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 5586 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
|  | 5587 | " | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5588 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5589 | cat >>confdefs.h <<_ACEOF | 
|  | 5590 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 5591 | _ACEOF | 
|  | 5592 |  | 
|  | 5593 | fi | 
|  | 5594 |  | 
|  | 5595 | done | 
|  | 5596 |  | 
|  | 5597 |  | 
|  | 5598 |  | 
|  | 5599 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5600 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5601 | MINIX=yes | 
|  | 5602 | else | 
|  | 5603 | MINIX= | 
|  | 5604 | fi | 
|  | 5605 |  | 
|  | 5606 |  | 
|  | 5607 | if test "$MINIX" = yes; then | 
|  | 5608 |  | 
|  | 5609 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
|  | 5610 |  | 
|  | 5611 |  | 
|  | 5612 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
|  | 5613 |  | 
|  | 5614 |  | 
|  | 5615 | $as_echo "#define _MINIX 1" >>confdefs.h | 
|  | 5616 |  | 
|  | 5617 | fi | 
|  | 5618 |  | 
|  | 5619 |  | 
|  | 5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
|  | 5621 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5622 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5623 | $as_echo_n "(cached) " >&6 | 
|  | 5624 | else | 
|  | 5625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5626 | /* end confdefs.h.  */ | 
|  | 5627 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5628 | #         define __EXTENSIONS__ 1 | 
|  | 5629 | $ac_includes_default | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5630 | int | 
|  | 5631 | main () | 
|  | 5632 | { | 
|  | 5633 |  | 
|  | 5634 | ; | 
|  | 5635 | return 0; | 
|  | 5636 | } | 
|  | 5637 | _ACEOF | 
|  | 5638 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5639 | ac_cv_safe_to_define___extensions__=yes | 
|  | 5640 | else | 
|  | 5641 | ac_cv_safe_to_define___extensions__=no | 
|  | 5642 | fi | 
|  | 5643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5644 | fi | 
|  | 5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
|  | 5646 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
|  | 5647 | test $ac_cv_safe_to_define___extensions__ = yes && | 
|  | 5648 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
|  | 5649 |  | 
|  | 5650 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
|  | 5651 |  | 
|  | 5652 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
|  | 5653 |  | 
|  | 5654 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
|  | 5655 |  | 
|  | 5656 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
|  | 5657 |  | 
|  | 5658 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5659 |  | 
| Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 | 
|  | 5661 | $as_echo_n "checking for the Android API level... " >&6; } | 
|  | 5662 | cat >> conftest.c <<EOF | 
|  | 5663 | #ifdef __ANDROID__ | 
|  | 5664 | #include <android/api-level.h> | 
|  | 5665 | __ANDROID_API__ | 
|  | 5666 | #else | 
|  | 5667 | #error not Android | 
|  | 5668 | #endif | 
|  | 5669 | EOF | 
|  | 5670 |  | 
|  | 5671 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
|  | 5672 | ANDROID_API_LEVEL=`grep -v '^#' conftest.out | grep -v '^ *$'` | 
|  | 5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 | 
|  | 5674 | $as_echo "$ANDROID_API_LEVEL" >&6; } | 
|  | 5675 |  | 
|  | 5676 | cat >>confdefs.h <<_ACEOF | 
|  | 5677 | #define ANDROID_API_LEVEL $ANDROID_API_LEVEL | 
|  | 5678 | _ACEOF | 
|  | 5679 |  | 
|  | 5680 | else | 
|  | 5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 | 
|  | 5682 | $as_echo "not Android" >&6; } | 
|  | 5683 | fi | 
|  | 5684 | rm -f conftest.c conftest.out | 
|  | 5685 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5686 | # Check for unsupported systems | 
|  | 5687 | case $ac_sys_system/$ac_sys_release in | 
|  | 5688 | atheos*|Linux*/1*) | 
|  | 5689 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
|  | 5690 | echo See README for details. | 
|  | 5691 | exit 1;; | 
|  | 5692 | esac | 
|  | 5693 |  | 
|  | 5694 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
|  | 5696 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5697 |  | 
|  | 5698 | # Check whether --with-suffix was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5699 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5700 | withval=$with_suffix; | 
|  | 5701 | case $withval in | 
|  | 5702 | no)	EXEEXT=;; | 
|  | 5703 | yes)	EXEEXT=.exe;; | 
|  | 5704 | *)	EXEEXT=$withval;; | 
|  | 5705 | esac | 
|  | 5706 | fi | 
|  | 5707 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
|  | 5709 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5710 |  | 
|  | 5711 | # Test whether we're running on a non-case-sensitive system, in which | 
|  | 5712 | # case we give a warning if no ext is given | 
|  | 5713 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
|  | 5715 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5716 | if test ! -d CaseSensitiveTestDir; then | 
|  | 5717 | mkdir CaseSensitiveTestDir | 
|  | 5718 | fi | 
|  | 5719 |  | 
|  | 5720 | if test -d casesensitivetestdir | 
|  | 5721 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 5723 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5724 | BUILDEXEEXT=.exe | 
|  | 5725 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5727 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5728 | BUILDEXEEXT=$EXEEXT | 
|  | 5729 | fi | 
|  | 5730 | rmdir CaseSensitiveTestDir | 
|  | 5731 |  | 
|  | 5732 | case $MACHDEP in | 
|  | 5733 | bsdos*) | 
|  | 5734 | case $CC in | 
|  | 5735 | gcc) CC="$CC -D_HAVE_BSDI";; | 
|  | 5736 | esac;; | 
|  | 5737 | esac | 
|  | 5738 |  | 
|  | 5739 | case $ac_sys_system in | 
|  | 5740 | hp*|HP*) | 
|  | 5741 | case $CC in | 
|  | 5742 | cc|*/cc) CC="$CC -Ae";; | 
|  | 5743 | esac;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5744 | esac | 
|  | 5745 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5746 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
|  | 5748 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5749 | if test -z "$LIBRARY" | 
|  | 5750 | then | 
| Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5751 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5752 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
|  | 5754 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5755 |  | 
|  | 5756 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
|  | 5757 | # name of the library into which to insert object files). BLDLIBRARY is also | 
|  | 5758 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
|  | 5759 | # is blank as the main program is not linked directly against LDLIBRARY. | 
|  | 5760 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
|  | 5761 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
|  | 5762 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
|  | 5763 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
|  | 5764 | # | 
|  | 5765 | # RUNSHARED is used to run shared python without installed libraries | 
|  | 5766 | # | 
|  | 5767 | # INSTSONAME is the name of the shared library that will be use to install | 
|  | 5768 | # on the system - some systems like version suffix, others don't | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5769 | # | 
|  | 5770 | # LDVERSION is the shared library version number, normally the Python version | 
|  | 5771 | # with the ABI build flags appended. | 
|  | 5772 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5773 |  | 
|  | 5774 |  | 
|  | 5775 |  | 
|  | 5776 |  | 
|  | 5777 |  | 
|  | 5778 |  | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5779 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5780 | LDLIBRARY="$LIBRARY" | 
|  | 5781 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 5782 | INSTSONAME='$(LDLIBRARY)' | 
|  | 5783 | DLLLIBRARY='' | 
|  | 5784 | LDLIBRARYDIR='' | 
|  | 5785 | RUNSHARED='' | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5786 | LDVERSION="$VERSION" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5787 |  | 
|  | 5788 | # LINKCC is the command that links the python executable -- default is $(CC). | 
|  | 5789 | # If CXX is set, and if it is needed to link a main function that was | 
|  | 5790 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
|  | 5791 | # python might then depend on the C++ runtime | 
|  | 5792 | # This is altered for AIX in order to build the export list before | 
|  | 5793 | # linking. | 
|  | 5794 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
|  | 5796 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5797 | if test -z "$LINKCC" | 
|  | 5798 | then | 
|  | 5799 | LINKCC='$(PURIFY) $(MAINCC)' | 
|  | 5800 | case $ac_sys_system in | 
|  | 5801 | AIX*) | 
|  | 5802 | exp_extra="\"\"" | 
|  | 5803 | if test $ac_sys_release -ge 5 -o \ | 
|  | 5804 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
|  | 5805 | exp_extra="." | 
|  | 5806 | fi | 
|  | 5807 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5808 | QNX*) | 
|  | 5809 | # qcc must be used because the other compilers do not | 
|  | 5810 | # support -N. | 
|  | 5811 | LINKCC=qcc;; | 
|  | 5812 | esac | 
|  | 5813 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
|  | 5815 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5816 |  | 
|  | 5817 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
|  | 5818 | # make sure we default having it set to "no": this is used by | 
|  | 5819 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
|  | 5820 | # to linker command lines, and failing to detect GNU ld simply results | 
|  | 5821 | # in the same bahaviour as before. | 
|  | 5822 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
|  | 5824 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5825 | ac_prog=ld | 
|  | 5826 | if test "$GCC" = yes; then | 
|  | 5827 | ac_prog=`$CC -print-prog-name=ld` | 
|  | 5828 | fi | 
|  | 5829 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
|  | 5830 | *GNU*) | 
|  | 5831 | GNULD=yes;; | 
|  | 5832 | *) | 
|  | 5833 | GNULD=no;; | 
|  | 5834 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
|  | 5836 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5837 |  | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 
|  | 5839 | $as_echo_n "checking for inline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5840 | if ${ac_cv_c_inline+:} false; then : | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5841 | $as_echo_n "(cached) " >&6 | 
|  | 5842 | else | 
|  | 5843 | ac_cv_c_inline=no | 
|  | 5844 | for ac_kw in inline __inline__ __inline; do | 
|  | 5845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5846 | /* end confdefs.h.  */ | 
|  | 5847 | #ifndef __cplusplus | 
|  | 5848 | typedef int foo_t; | 
|  | 5849 | static $ac_kw foo_t static_foo () {return 0; } | 
|  | 5850 | $ac_kw foo_t foo () {return 0; } | 
|  | 5851 | #endif | 
|  | 5852 |  | 
|  | 5853 | _ACEOF | 
|  | 5854 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5855 | ac_cv_c_inline=$ac_kw | 
|  | 5856 | fi | 
|  | 5857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5858 | test "$ac_cv_c_inline" != no && break | 
|  | 5859 | done | 
|  | 5860 |  | 
|  | 5861 | fi | 
|  | 5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 
|  | 5863 | $as_echo "$ac_cv_c_inline" >&6; } | 
|  | 5864 |  | 
|  | 5865 | case $ac_cv_c_inline in | 
|  | 5866 | inline | yes) ;; | 
|  | 5867 | *) | 
|  | 5868 | case $ac_cv_c_inline in | 
|  | 5869 | no) ac_val=;; | 
|  | 5870 | *) ac_val=$ac_cv_c_inline;; | 
|  | 5871 | esac | 
|  | 5872 | cat >>confdefs.h <<_ACEOF | 
|  | 5873 | #ifndef __cplusplus | 
|  | 5874 | #define inline $ac_val | 
|  | 5875 | #endif | 
|  | 5876 | _ACEOF | 
|  | 5877 | ;; | 
|  | 5878 | esac | 
|  | 5879 |  | 
|  | 5880 | if test "$ac_cv_c_inline" != no ; then | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 5881 |  | 
|  | 5882 | $as_echo "#define USE_INLINE 1" >>confdefs.h | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5883 |  | 
|  | 5884 |  | 
|  | 5885 | fi | 
|  | 5886 |  | 
|  | 5887 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
|  | 5889 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5890 | # Check whether --enable-shared was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5891 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5892 | enableval=$enable_shared; | 
|  | 5893 | fi | 
|  | 5894 |  | 
|  | 5895 |  | 
|  | 5896 | if test -z "$enable_shared" | 
|  | 5897 | then | 
|  | 5898 | case $ac_sys_system in | 
| Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5899 | CYGWIN*) | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5900 | enable_shared="yes";; | 
|  | 5901 | *) | 
|  | 5902 | enable_shared="no";; | 
|  | 5903 | esac | 
|  | 5904 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
|  | 5906 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5907 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
|  | 5909 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5910 | # Check whether --enable-profiling was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5911 | if test "${enable_profiling+set}" = set; then : | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5912 | enableval=$enable_profiling; | 
|  | 5913 | fi | 
|  | 5914 |  | 
|  | 5915 | if test "x$enable_profiling" = xyes; then | 
|  | 5916 | ac_save_cc="$CC" | 
| Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5917 | CC="$CC -pg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5919 | /* end confdefs.h.  */ | 
|  | 5920 | int main() { return 0; } | 
|  | 5921 | _ACEOF | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5922 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 5923 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5924 | else | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5925 | enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5926 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5927 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 5928 | conftest$ac_exeext conftest.$ac_ext | 
|  | 5929 | CC="$ac_save_cc" | 
|  | 5930 | else | 
|  | 5931 | enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5932 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 | 
|  | 5934 | $as_echo "$enable_profiling" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5935 |  | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5936 | if test "x$enable_profiling" = xyes; then | 
|  | 5937 | BASECFLAGS="-pg $BASECFLAGS" | 
|  | 5938 | LDFLAGS="-pg $LDFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5939 | fi | 
|  | 5940 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
|  | 5942 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5943 |  | 
|  | 5944 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
|  | 5945 | # library that we build, but we do not want to link against it (we | 
|  | 5946 | # will find it with a -framework option). For this reason there is an | 
|  | 5947 | # extra variable BLDLIBRARY against which Python and the extension | 
|  | 5948 | # modules are linked, BLDLIBRARY. This is normally the same as | 
|  | 5949 | # LDLIBRARY, but empty for MacOSX framework builds. | 
|  | 5950 | if test "$enable_framework" | 
|  | 5951 | then | 
|  | 5952 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5953 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5954 | BLDLIBRARY='' | 
|  | 5955 | else | 
|  | 5956 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 5957 | fi | 
|  | 5958 |  | 
|  | 5959 | # Other platforms follow | 
|  | 5960 | if test $enable_shared = "yes"; then | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5961 | PY_ENABLE_SHARED=1 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5962 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5963 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5964 |  | 
|  | 5965 | case $ac_sys_system in | 
|  | 5966 | CYGWIN*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5967 | LDLIBRARY='libpython$(LDVERSION).dll.a' | 
|  | 5968 | DLLLIBRARY='libpython$(LDVERSION).dll' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5969 | ;; | 
|  | 5970 | SunOS*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5971 | LDLIBRARY='libpython$(LDVERSION).so' | 
|  | 5972 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5973 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5974 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5975 | if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5976 | then | 
|  | 5977 | PY3LIBRARY=libpython3.so | 
|  | 5978 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5979 | ;; | 
| Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 5980 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5981 | LDLIBRARY='libpython$(LDVERSION).so' | 
|  | 5982 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5983 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5984 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5985 | if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5986 | then | 
|  | 5987 | PY3LIBRARY=libpython3.so | 
|  | 5988 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5989 | ;; | 
|  | 5990 | hp*|HP*) | 
|  | 5991 | case `uname -m` in | 
|  | 5992 | ia64) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5993 | LDLIBRARY='libpython$(LDVERSION).so' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5994 | ;; | 
|  | 5995 | *) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5996 | LDLIBRARY='libpython$(LDVERSION).sl' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5997 | ;; | 
|  | 5998 | esac | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5999 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6000 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6001 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6002 | Darwin*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6003 | LDLIBRARY='libpython$(LDVERSION).dylib' | 
|  | 6004 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6005 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6006 | ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 6007 | AIX*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6008 | LDLIBRARY='libpython$(LDVERSION).so' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 6009 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 6010 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6011 |  | 
|  | 6012 | esac | 
|  | 6013 | else # shared is disabled | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 6014 | PY_ENABLE_SHARED=0 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6015 | case $ac_sys_system in | 
|  | 6016 | CYGWIN*) | 
|  | 6017 | BLDLIBRARY='$(LIBRARY)' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6018 | LDLIBRARY='libpython$(LDVERSION).dll.a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6019 | ;; | 
|  | 6020 | esac | 
|  | 6021 | fi | 
|  | 6022 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 6023 | if test "$cross_compiling" = yes; then | 
|  | 6024 | RUNSHARED= | 
|  | 6025 | fi | 
|  | 6026 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
|  | 6028 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6029 |  | 
|  | 6030 | if test -n "$ac_tool_prefix"; then | 
|  | 6031 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 6032 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6034 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6035 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6036 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6037 | else | 
|  | 6038 | if test -n "$RANLIB"; then | 
|  | 6039 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 6040 | else | 
|  | 6041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6042 | for as_dir in $PATH | 
|  | 6043 | do | 
|  | 6044 | IFS=$as_save_IFS | 
|  | 6045 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6046 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6047 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6048 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6050 | break 2 | 
|  | 6051 | fi | 
|  | 6052 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6053 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6054 | IFS=$as_save_IFS | 
|  | 6055 |  | 
|  | 6056 | fi | 
|  | 6057 | fi | 
|  | 6058 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 6059 | if test -n "$RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
|  | 6061 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6062 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6064 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6065 | fi | 
|  | 6066 |  | 
|  | 6067 |  | 
|  | 6068 | fi | 
|  | 6069 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 6070 | ac_ct_RANLIB=$RANLIB | 
|  | 6071 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 6072 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6074 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6075 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6076 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6077 | else | 
|  | 6078 | if test -n "$ac_ct_RANLIB"; then | 
|  | 6079 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 6080 | else | 
|  | 6081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6082 | for as_dir in $PATH | 
|  | 6083 | do | 
|  | 6084 | IFS=$as_save_IFS | 
|  | 6085 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6086 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6088 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6090 | break 2 | 
|  | 6091 | fi | 
|  | 6092 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6093 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6094 | IFS=$as_save_IFS | 
|  | 6095 |  | 
|  | 6096 | fi | 
|  | 6097 | fi | 
|  | 6098 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 6099 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
|  | 6101 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6102 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6104 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6105 | fi | 
|  | 6106 |  | 
|  | 6107 | if test "x$ac_ct_RANLIB" = x; then | 
|  | 6108 | RANLIB=":" | 
|  | 6109 | else | 
|  | 6110 | case $cross_compiling:$ac_tool_warned in | 
|  | 6111 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6112 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6113 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6114 | ac_tool_warned=yes ;; | 
|  | 6115 | esac | 
|  | 6116 | RANLIB=$ac_ct_RANLIB | 
|  | 6117 | fi | 
|  | 6118 | else | 
|  | 6119 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 6120 | fi | 
|  | 6121 |  | 
|  | 6122 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6123 | if test -n "$ac_tool_prefix"; then | 
|  | 6124 | for ac_prog in ar aal | 
|  | 6125 | do | 
|  | 6126 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 6127 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6129 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6130 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6131 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6132 | else | 
|  | 6133 | if test -n "$AR"; then | 
|  | 6134 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 6135 | else | 
|  | 6136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6137 | for as_dir in $PATH | 
|  | 6138 | do | 
|  | 6139 | IFS=$as_save_IFS | 
|  | 6140 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6141 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6143 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6145 | break 2 | 
|  | 6146 | fi | 
|  | 6147 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6148 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6149 | IFS=$as_save_IFS | 
|  | 6150 |  | 
|  | 6151 | fi | 
|  | 6152 | fi | 
|  | 6153 | AR=$ac_cv_prog_AR | 
|  | 6154 | if test -n "$AR"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
|  | 6156 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6157 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6159 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6160 | fi | 
|  | 6161 |  | 
|  | 6162 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6163 | test -n "$AR" && break | 
|  | 6164 | done | 
|  | 6165 | fi | 
|  | 6166 | if test -z "$AR"; then | 
|  | 6167 | ac_ct_AR=$AR | 
|  | 6168 | for ac_prog in ar aal | 
|  | 6169 | do | 
|  | 6170 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 6171 | set dummy $ac_prog; ac_word=$2 | 
|  | 6172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6173 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6174 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
|  | 6175 | $as_echo_n "(cached) " >&6 | 
|  | 6176 | else | 
|  | 6177 | if test -n "$ac_ct_AR"; then | 
|  | 6178 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
|  | 6179 | else | 
|  | 6180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6181 | for as_dir in $PATH | 
|  | 6182 | do | 
|  | 6183 | IFS=$as_save_IFS | 
|  | 6184 | test -z "$as_dir" && as_dir=. | 
|  | 6185 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 6186 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6187 | ac_cv_prog_ac_ct_AR="$ac_prog" | 
|  | 6188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6189 | break 2 | 
|  | 6190 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6191 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6192 | done | 
|  | 6193 | IFS=$as_save_IFS | 
|  | 6194 |  | 
|  | 6195 | fi | 
|  | 6196 | fi | 
|  | 6197 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
|  | 6198 | if test -n "$ac_ct_AR"; then | 
|  | 6199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
|  | 6200 | $as_echo "$ac_ct_AR" >&6; } | 
|  | 6201 | else | 
|  | 6202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6203 | $as_echo "no" >&6; } | 
|  | 6204 | fi | 
|  | 6205 |  | 
|  | 6206 |  | 
|  | 6207 | test -n "$ac_ct_AR" && break | 
|  | 6208 | done | 
|  | 6209 |  | 
|  | 6210 | if test "x$ac_ct_AR" = x; then | 
|  | 6211 | AR="ar" | 
|  | 6212 | else | 
|  | 6213 | case $cross_compiling:$ac_tool_warned in | 
|  | 6214 | yes:) | 
|  | 6215 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6216 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 6217 | ac_tool_warned=yes ;; | 
|  | 6218 | esac | 
|  | 6219 | AR=$ac_ct_AR | 
|  | 6220 | fi | 
|  | 6221 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6222 |  | 
|  | 6223 |  | 
|  | 6224 | # tweak ARFLAGS only if the user didn't set it on the command line | 
|  | 6225 |  | 
|  | 6226 | if test -z "$ARFLAGS" | 
|  | 6227 | then | 
|  | 6228 | ARFLAGS="rc" | 
|  | 6229 | fi | 
|  | 6230 |  | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6231 | if test -n "$ac_tool_prefix"; then | 
|  | 6232 | for ac_prog in readelf | 
|  | 6233 | do | 
|  | 6234 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 6235 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 6236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6237 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6238 | if ${ac_cv_prog_READELF+:} false; then : | 
|  | 6239 | $as_echo_n "(cached) " >&6 | 
|  | 6240 | else | 
|  | 6241 | if test -n "$READELF"; then | 
|  | 6242 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | 
|  | 6243 | else | 
|  | 6244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6245 | for as_dir in $PATH | 
|  | 6246 | do | 
|  | 6247 | IFS=$as_save_IFS | 
|  | 6248 | test -z "$as_dir" && as_dir=. | 
|  | 6249 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6250 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6251 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" | 
|  | 6252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6253 | break 2 | 
|  | 6254 | fi | 
|  | 6255 | done | 
|  | 6256 | done | 
|  | 6257 | IFS=$as_save_IFS | 
|  | 6258 |  | 
|  | 6259 | fi | 
|  | 6260 | fi | 
|  | 6261 | READELF=$ac_cv_prog_READELF | 
|  | 6262 | if test -n "$READELF"; then | 
|  | 6263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | 
|  | 6264 | $as_echo "$READELF" >&6; } | 
|  | 6265 | else | 
|  | 6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6267 | $as_echo "no" >&6; } | 
|  | 6268 | fi | 
|  | 6269 |  | 
|  | 6270 |  | 
|  | 6271 | test -n "$READELF" && break | 
|  | 6272 | done | 
|  | 6273 | fi | 
|  | 6274 | if test -z "$READELF"; then | 
|  | 6275 | ac_ct_READELF=$READELF | 
|  | 6276 | for ac_prog in readelf | 
|  | 6277 | do | 
|  | 6278 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 6279 | set dummy $ac_prog; ac_word=$2 | 
|  | 6280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6281 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6282 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | 
|  | 6283 | $as_echo_n "(cached) " >&6 | 
|  | 6284 | else | 
|  | 6285 | if test -n "$ac_ct_READELF"; then | 
|  | 6286 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | 
|  | 6287 | else | 
|  | 6288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6289 | for as_dir in $PATH | 
|  | 6290 | do | 
|  | 6291 | IFS=$as_save_IFS | 
|  | 6292 | test -z "$as_dir" && as_dir=. | 
|  | 6293 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6294 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6295 | ac_cv_prog_ac_ct_READELF="$ac_prog" | 
|  | 6296 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6297 | break 2 | 
|  | 6298 | fi | 
|  | 6299 | done | 
|  | 6300 | done | 
|  | 6301 | IFS=$as_save_IFS | 
|  | 6302 |  | 
|  | 6303 | fi | 
|  | 6304 | fi | 
|  | 6305 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | 
|  | 6306 | if test -n "$ac_ct_READELF"; then | 
|  | 6307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | 
|  | 6308 | $as_echo "$ac_ct_READELF" >&6; } | 
|  | 6309 | else | 
|  | 6310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6311 | $as_echo "no" >&6; } | 
|  | 6312 | fi | 
|  | 6313 |  | 
|  | 6314 |  | 
|  | 6315 | test -n "$ac_ct_READELF" && break | 
|  | 6316 | done | 
|  | 6317 |  | 
|  | 6318 | if test "x$ac_ct_READELF" = x; then | 
|  | 6319 | READELF=":" | 
|  | 6320 | else | 
|  | 6321 | case $cross_compiling:$ac_tool_warned in | 
|  | 6322 | yes:) | 
|  | 6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6324 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 6325 | ac_tool_warned=yes ;; | 
|  | 6326 | esac | 
|  | 6327 | READELF=$ac_ct_READELF | 
|  | 6328 | fi | 
|  | 6329 | fi | 
|  | 6330 |  | 
|  | 6331 | if test "$cross_compiling" = yes; then | 
|  | 6332 | case "$READELF" in | 
|  | 6333 | readelf|:) | 
|  | 6334 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | 
|  | 6335 | ;; | 
|  | 6336 | esac | 
|  | 6337 | fi | 
|  | 6338 |  | 
|  | 6339 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6340 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6341 | case $MACHDEP in | 
|  | 6342 | bsdos*|hp*|HP*) | 
|  | 6343 | # install -d does not work on BSDI or HP-UX | 
|  | 6344 | if test -z "$INSTALL" | 
|  | 6345 | then | 
|  | 6346 | INSTALL="${srcdir}/install-sh -c" | 
|  | 6347 | fi | 
|  | 6348 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6349 | # Find a good install program.  We prefer a C program (faster), | 
|  | 6350 | # so one script is as good as another.  But avoid the broken or | 
|  | 6351 | # incompatible versions: | 
|  | 6352 | # SysV /etc/install, /usr/sbin/install | 
|  | 6353 | # SunOS /usr/etc/install | 
|  | 6354 | # IRIX /sbin/install | 
|  | 6355 | # AIX /bin/install | 
|  | 6356 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 6357 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 6358 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 6359 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 6360 | # OS/2's system install, which has a completely different semantic | 
|  | 6361 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6362 | # Reject install programs that cannot install multiple files. | 
|  | 6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
|  | 6364 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6365 | if test -z "$INSTALL"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6366 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6367 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6368 | else | 
|  | 6369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6370 | for as_dir in $PATH | 
|  | 6371 | do | 
|  | 6372 | IFS=$as_save_IFS | 
|  | 6373 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6374 | # Account for people who put trailing slashes in PATH elements. | 
|  | 6375 | case $as_dir/ in #(( | 
|  | 6376 | ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6377 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6378 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6379 | /usr/ucb/* ) ;; | 
|  | 6380 | *) | 
|  | 6381 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 6382 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 6383 | # by default. | 
|  | 6384 | for ac_prog in ginstall scoinst install; do | 
|  | 6385 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6386 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6387 | if test $ac_prog = install && | 
|  | 6388 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 6389 | # AIX install.  It has an incompatible calling convention. | 
|  | 6390 | : | 
|  | 6391 | elif test $ac_prog = install && | 
|  | 6392 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 6393 | # program-specific install script used by HP pwplus--don't use. | 
|  | 6394 | : | 
|  | 6395 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6396 | rm -rf conftest.one conftest.two conftest.dir | 
|  | 6397 | echo one > conftest.one | 
|  | 6398 | echo two > conftest.two | 
|  | 6399 | mkdir conftest.dir | 
|  | 6400 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
|  | 6401 | test -s conftest.one && test -s conftest.two && | 
|  | 6402 | test -s conftest.dir/conftest.one && | 
|  | 6403 | test -s conftest.dir/conftest.two | 
|  | 6404 | then | 
|  | 6405 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 6406 | break 3 | 
|  | 6407 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6408 | fi | 
|  | 6409 | fi | 
|  | 6410 | done | 
|  | 6411 | done | 
|  | 6412 | ;; | 
|  | 6413 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6414 |  | 
|  | 6415 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6416 | IFS=$as_save_IFS | 
|  | 6417 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6418 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6419 |  | 
|  | 6420 | fi | 
|  | 6421 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 6422 | INSTALL=$ac_cv_path_install | 
|  | 6423 | else | 
|  | 6424 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 6425 | # value for INSTALL within a source directory, because that will | 
|  | 6426 | # break other packages using the cache if that directory is | 
|  | 6427 | # removed, or if the value is a relative name. | 
|  | 6428 | INSTALL=$ac_install_sh | 
|  | 6429 | fi | 
|  | 6430 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
|  | 6432 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6433 |  | 
|  | 6434 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 6435 | # It thinks the first close brace ends the variable substitution. | 
|  | 6436 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 6437 |  | 
|  | 6438 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 6439 |  | 
|  | 6440 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 6441 |  | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
|  | 6443 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
|  | 6444 | if test -z "$MKDIR_P"; then | 
|  | 6445 | if ${ac_cv_path_mkdir+:} false; then : | 
|  | 6446 | $as_echo_n "(cached) " >&6 | 
|  | 6447 | else | 
|  | 6448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6449 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
|  | 6450 | do | 
|  | 6451 | IFS=$as_save_IFS | 
|  | 6452 | test -z "$as_dir" && as_dir=. | 
|  | 6453 | for ac_prog in mkdir gmkdir; do | 
|  | 6454 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6455 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6456 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
|  | 6457 | 'mkdir (GNU coreutils) '* | \ | 
|  | 6458 | 'mkdir (coreutils) '* | \ | 
|  | 6459 | 'mkdir (fileutils) '4.1*) | 
|  | 6460 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
|  | 6461 | break 3;; | 
|  | 6462 | esac | 
|  | 6463 | done | 
|  | 6464 | done | 
|  | 6465 | done | 
|  | 6466 | IFS=$as_save_IFS | 
|  | 6467 |  | 
|  | 6468 | fi | 
|  | 6469 |  | 
|  | 6470 | test -d ./--version && rmdir ./--version | 
|  | 6471 | if test "${ac_cv_path_mkdir+set}" = set; then | 
|  | 6472 | MKDIR_P="$ac_cv_path_mkdir -p" | 
|  | 6473 | else | 
|  | 6474 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 6475 | # value for MKDIR_P within a source directory, because that will | 
|  | 6476 | # break other packages using the cache if that directory is | 
|  | 6477 | # removed, or if the value is a relative name. | 
|  | 6478 | MKDIR_P="$ac_install_sh -d" | 
|  | 6479 | fi | 
|  | 6480 | fi | 
|  | 6481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
|  | 6482 | $as_echo "$MKDIR_P" >&6; } | 
|  | 6483 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6484 |  | 
|  | 6485 | # Not every filesystem supports hard links | 
|  | 6486 |  | 
|  | 6487 | if test -z "$LN" ; then | 
|  | 6488 | case $ac_sys_system in | 
|  | 6489 | CYGWIN*) LN="ln -s";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6490 | *) LN=ln;; | 
|  | 6491 | esac | 
|  | 6492 | fi | 
|  | 6493 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6494 | # For calculating the .so ABI tag. | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6495 |  | 
|  | 6496 | ABIFLAGS="" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6497 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6498 | # Check for --with-pydebug | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
|  | 6500 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6501 |  | 
|  | 6502 | # Check whether --with-pydebug was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6503 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6504 | withval=$with_pydebug; | 
|  | 6505 | if test "$withval" != no | 
|  | 6506 | then | 
|  | 6507 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6508 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6509 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 6511 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6512 | Py_DEBUG='true' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6513 | ABIFLAGS="${ABIFLAGS}d" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6514 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6515 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6516 | fi | 
|  | 6517 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6519 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6520 | fi | 
|  | 6521 |  | 
|  | 6522 |  | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6523 | # Enable optimization flags | 
|  | 6524 |  | 
|  | 6525 |  | 
|  | 6526 | Py_OPT='false' | 
|  | 6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-optimizations" >&5 | 
|  | 6528 | $as_echo_n "checking for --with-optimizations... " >&6; } | 
|  | 6529 |  | 
|  | 6530 | # Check whether --with-optimizations was given. | 
|  | 6531 | if test "${with_optimizations+set}" = set; then : | 
|  | 6532 | withval=$with_optimizations; | 
|  | 6533 | if test "$withval" != no | 
|  | 6534 | then | 
|  | 6535 | Py_OPT='true' | 
|  | 6536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 6537 | $as_echo "yes" >&6; }; | 
|  | 6538 | else | 
|  | 6539 | Py_OPT='false' | 
|  | 6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6541 | $as_echo "no" >&6; }; | 
|  | 6542 | fi | 
|  | 6543 | else | 
|  | 6544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6545 | $as_echo "no" >&6; } | 
|  | 6546 | fi | 
|  | 6547 |  | 
|  | 6548 | if test "$Py_OPT" = 'true' ; then | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 6549 | # Intentionally not forcing Py_LTO='true' here.  Too many toolchains do not | 
|  | 6550 | # compile working code using it and both test_distutils and test_gdb are | 
|  | 6551 | # broken when you do managed to get a toolchain that works with it.  People | 
|  | 6552 | # who want LTO need to use --with-lto themselves. | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6553 | DEF_MAKE_ALL_RULE="profile-opt" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6554 | REQUIRE_PGO="yes" | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6555 | DEF_MAKE_RULE="build_all" | 
|  | 6556 | else | 
|  | 6557 | DEF_MAKE_ALL_RULE="build_all" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6558 | REQUIRE_PGO="no" | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6559 | DEF_MAKE_RULE="all" | 
|  | 6560 | fi | 
|  | 6561 |  | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6562 | # Enable LTO flags | 
|  | 6563 |  | 
|  | 6564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 | 
|  | 6565 | $as_echo_n "checking for --with-lto... " >&6; } | 
|  | 6566 |  | 
|  | 6567 | # Check whether --with-lto was given. | 
|  | 6568 | if test "${with_lto+set}" = set; then : | 
|  | 6569 | withval=$with_lto; | 
|  | 6570 | if test "$withval" != no | 
|  | 6571 | then | 
|  | 6572 | Py_LTO='true' | 
|  | 6573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 6574 | $as_echo "yes" >&6; }; | 
|  | 6575 | else | 
|  | 6576 | Py_LTO='false' | 
|  | 6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6578 | $as_echo "no" >&6; }; | 
|  | 6579 | fi | 
|  | 6580 | else | 
|  | 6581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6582 | $as_echo "no" >&6; } | 
|  | 6583 | fi | 
|  | 6584 |  | 
|  | 6585 | if test "$Py_LTO" = 'true' ; then | 
|  | 6586 | case $CC in | 
|  | 6587 | *clang*) | 
| Ned Deily | 8482ce4 | 2016-09-06 15:09:20 -0700 | [diff] [blame] | 6588 | case $ac_sys_system in | 
|  | 6589 | Darwin*) | 
|  | 6590 | # Any changes made here should be reflected in the GCC+Darwin case below | 
|  | 6591 | LTOFLAGS="-flto -Wl,-export_dynamic" | 
|  | 6592 | ;; | 
|  | 6593 | *) | 
|  | 6594 | LTOFLAGS="-flto" | 
|  | 6595 | ;; | 
|  | 6596 | esac | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6597 | ;; | 
|  | 6598 | *gcc*) | 
|  | 6599 | case $ac_sys_system in | 
|  | 6600 | Darwin*) | 
| Ned Deily | 8482ce4 | 2016-09-06 15:09:20 -0700 | [diff] [blame] | 6601 | LTOFLAGS="-flto -Wl,-export_dynamic" | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6602 | ;; | 
|  | 6603 | *) | 
|  | 6604 | LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" | 
|  | 6605 | ;; | 
|  | 6606 | esac | 
|  | 6607 | ;; | 
|  | 6608 | esac | 
|  | 6609 | fi | 
|  | 6610 |  | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6611 | # Enable PGO flags. | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6612 |  | 
|  | 6613 |  | 
|  | 6614 |  | 
|  | 6615 |  | 
|  | 6616 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6617 | # Make this work on systems where llvm tools are not installed with their | 
|  | 6618 | # normal names in the default $PATH (ie: Ubuntu).  They exist under the | 
|  | 6619 | # non-suffixed name in their versioned llvm directory. | 
|  | 6620 | llvm_bin_dir='' | 
|  | 6621 | llvm_path="${PATH}" | 
|  | 6622 | if test "${CC}" = "clang" | 
|  | 6623 | then | 
|  | 6624 | clang_bin=`which clang` | 
|  | 6625 | # Some systems install clang elsewhere as a symlink to the real path | 
|  | 6626 | # which is where the related llvm tools are located. | 
|  | 6627 | if test -L "${clang_bin}" | 
|  | 6628 | then | 
|  | 6629 | clang_dir=`dirname "${clang_bin}"` | 
|  | 6630 | clang_bin=`readlink "${clang_bin}"` | 
|  | 6631 | llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` | 
|  | 6632 | llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" | 
|  | 6633 | fi | 
|  | 6634 | fi | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6635 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | 
|  | 6637 | $as_echo_n "checking target system type... " >&6; } | 
|  | 6638 | if ${ac_cv_target+:} false; then : | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6639 | $as_echo_n "(cached) " >&6 | 
|  | 6640 | else | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6641 | if test "x$target_alias" = x; then | 
|  | 6642 | ac_cv_target=$ac_cv_host | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6643 | else | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6644 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | 
|  | 6645 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | 
|  | 6646 | fi | 
|  | 6647 |  | 
|  | 6648 | fi | 
|  | 6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | 
|  | 6650 | $as_echo "$ac_cv_target" >&6; } | 
|  | 6651 | case $ac_cv_target in | 
|  | 6652 | *-*-*) ;; | 
|  | 6653 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | 
|  | 6654 | esac | 
|  | 6655 | target=$ac_cv_target | 
|  | 6656 | ac_save_IFS=$IFS; IFS='-' | 
|  | 6657 | set x $ac_cv_target | 
|  | 6658 | shift | 
|  | 6659 | target_cpu=$1 | 
|  | 6660 | target_vendor=$2 | 
|  | 6661 | shift; shift | 
|  | 6662 | # Remember, the first character of IFS is used to create $*, | 
|  | 6663 | # except with old shells: | 
|  | 6664 | target_os=$* | 
|  | 6665 | IFS=$ac_save_IFS | 
|  | 6666 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | 
|  | 6667 |  | 
|  | 6668 |  | 
|  | 6669 | # The aliases save the names the user supplied, while $host etc. | 
|  | 6670 | # will get canonicalized. | 
|  | 6671 | test -n "$target_alias" && | 
|  | 6672 | test "$program_prefix$program_suffix$program_transform_name" = \ | 
|  | 6673 | NONENONEs,x,x, && | 
|  | 6674 | program_prefix=${target_alias}- | 
|  | 6675 | # Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args. | 
|  | 6676 | set dummy $target_alias-llvm-profdata; ac_word=$2 | 
|  | 6677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6678 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6679 | if ${ac_cv_path_LLVM_PROFDATA+:} false; then : | 
|  | 6680 | $as_echo_n "(cached) " >&6 | 
|  | 6681 | else | 
|  | 6682 | case $LLVM_PROFDATA in | 
|  | 6683 | [\\/]* | ?:[\\/]*) | 
|  | 6684 | ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. | 
|  | 6685 | ;; | 
|  | 6686 | *) | 
|  | 6687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6688 | for as_dir in ${llvm_path} | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6689 | do | 
|  | 6690 | IFS=$as_save_IFS | 
|  | 6691 | test -z "$as_dir" && as_dir=. | 
|  | 6692 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6693 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6694 | ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6696 | break 2 | 
|  | 6697 | fi | 
|  | 6698 | done | 
|  | 6699 | done | 
|  | 6700 | IFS=$as_save_IFS | 
|  | 6701 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6702 | ;; | 
|  | 6703 | esac | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6704 | fi | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6705 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA | 
|  | 6706 | if test -n "$LLVM_PROFDATA"; then | 
|  | 6707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 | 
|  | 6708 | $as_echo "$LLVM_PROFDATA" >&6; } | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6709 | else | 
|  | 6710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6711 | $as_echo "no" >&6; } | 
|  | 6712 | fi | 
|  | 6713 |  | 
|  | 6714 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6715 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then | 
|  | 6716 | if test "$build" = "$target"; then | 
|  | 6717 | ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA | 
|  | 6718 | # Extract the first word of "llvm-profdata", so it can be a program name with args. | 
|  | 6719 | set dummy llvm-profdata; ac_word=$2 | 
|  | 6720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6721 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6722 | if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : | 
|  | 6723 | $as_echo_n "(cached) " >&6 | 
|  | 6724 | else | 
|  | 6725 | case $ac_pt_LLVM_PROFDATA in | 
|  | 6726 | [\\/]* | ?:[\\/]*) | 
|  | 6727 | ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. | 
|  | 6728 | ;; | 
|  | 6729 | *) | 
|  | 6730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6731 | for as_dir in ${llvm_path} | 
|  | 6732 | do | 
|  | 6733 | IFS=$as_save_IFS | 
|  | 6734 | test -z "$as_dir" && as_dir=. | 
|  | 6735 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 6737 | ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | 
|  | 6738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6739 | break 2 | 
|  | 6740 | fi | 
|  | 6741 | done | 
|  | 6742 | done | 
|  | 6743 | IFS=$as_save_IFS | 
|  | 6744 |  | 
|  | 6745 | test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''" | 
|  | 6746 | ;; | 
|  | 6747 | esac | 
|  | 6748 | fi | 
|  | 6749 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA | 
|  | 6750 | if test -n "$ac_pt_LLVM_PROFDATA"; then | 
|  | 6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 | 
|  | 6752 | $as_echo "$ac_pt_LLVM_PROFDATA" >&6; } | 
|  | 6753 | else | 
|  | 6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6755 | $as_echo "no" >&6; } | 
|  | 6756 | fi | 
|  | 6757 |  | 
|  | 6758 | LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA | 
|  | 6759 | else | 
|  | 6760 | LLVM_PROFDATA="''" | 
|  | 6761 | fi | 
|  | 6762 | else | 
|  | 6763 | LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" | 
|  | 6764 | fi | 
|  | 6765 |  | 
|  | 6766 |  | 
|  | 6767 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" | 
|  | 6768 | then | 
|  | 6769 | LLVM_PROF_FOUND="found" | 
|  | 6770 | else | 
|  | 6771 | LLVM_PROF_FOUND="not-found" | 
|  | 6772 | fi | 
|  | 6773 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" | 
|  | 6774 | then | 
|  | 6775 | found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` | 
|  | 6776 | if test -n "${found_llvm_profdata}" | 
|  | 6777 | then | 
|  | 6778 | # llvm-profdata isn't directly in $PATH in some cases. | 
|  | 6779 | # https://apple.stackexchange.com/questions/197053/ | 
|  | 6780 | LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' | 
|  | 6781 | LLVM_PROF_FOUND=found | 
|  | 6782 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 | 
|  | 6783 | $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} | 
|  | 6784 | fi | 
|  | 6785 | fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6786 | LLVM_PROF_ERR=no | 
|  | 6787 | case $CC in | 
|  | 6788 | *clang*) | 
|  | 6789 | # Any changes made here should be reflected in the GCC+Darwin case below | 
|  | 6790 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
|  | 6791 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6792 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6793 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
|  | 6794 | if test $LLVM_PROF_FOUND = not-found | 
|  | 6795 | then | 
|  | 6796 | LLVM_PROF_ERR=yes | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6797 | if test "${REQUIRE_PGO}" = "yes" | 
|  | 6798 | then | 
|  | 6799 | as_fn_error $? "llvm-profdata is required for a --with-optimizations build but could not be found." "$LINENO" 5 | 
|  | 6800 | fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6801 | fi | 
|  | 6802 | ;; | 
|  | 6803 | *gcc*) | 
|  | 6804 | case $ac_sys_system in | 
|  | 6805 | Darwin*) | 
|  | 6806 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
|  | 6807 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6808 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6809 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6810 | if test "${LLVM_PROF_FOUND}" = "not-found" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6811 | then | 
|  | 6812 | LLVM_PROF_ERR=yes | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6813 | if test "${REQUIRE_PGO}" = "yes" | 
|  | 6814 | then | 
|  | 6815 | as_fn_error $? "llvm-profdata is required for a --with-optimizations build but could not be found." "$LINENO" 5 | 
|  | 6816 | fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6817 | fi | 
|  | 6818 | ;; | 
|  | 6819 | *) | 
|  | 6820 | PGO_PROF_GEN_FLAG="-fprofile-generate" | 
|  | 6821 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | 
|  | 6822 | LLVM_PROF_MERGER="true" | 
|  | 6823 | LLVM_PROF_FILE="" | 
|  | 6824 | ;; | 
|  | 6825 | esac | 
|  | 6826 | ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6827 | *icc*) | 
|  | 6828 | PGO_PROF_GEN_FLAG="-prof-gen" | 
|  | 6829 | PGO_PROF_USE_FLAG="-prof-use" | 
|  | 6830 | LLVM_PROF_MERGER="true" | 
|  | 6831 | LLVM_PROF_FILE="" | 
|  | 6832 | ;; | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6833 | esac | 
|  | 6834 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6835 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
|  | 6836 | # merged with this chunk of code? | 
|  | 6837 |  | 
|  | 6838 | # Optimizer/debugger flags | 
|  | 6839 | # ------------------------ | 
|  | 6840 | # (The following bit of code is complicated enough - please keep things | 
|  | 6841 | # indented properly.  Just pretend you're editing Python code. ;-) | 
|  | 6842 |  | 
|  | 6843 | # There are two parallel sets of case statements below, one that checks to | 
|  | 6844 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
|  | 6845 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
|  | 6846 | # user set OPT. | 
|  | 6847 |  | 
|  | 6848 | # tweak OPT based on compiler and platform, only if the user didn't set | 
|  | 6849 | # it on the command line | 
|  | 6850 |  | 
| Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6851 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6852 | then | 
|  | 6853 | case $GCC in | 
|  | 6854 | yes) | 
|  | 6855 | if test "$CC" != 'g++' ; then | 
|  | 6856 | STRICT_PROTO="-Wstrict-prototypes" | 
|  | 6857 | fi | 
|  | 6858 | # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
|  | 6859 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
|  | 6860 | WRAP="-fwrapv" | 
|  | 6861 | fi | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6862 |  | 
|  | 6863 | # Clang also needs -fwrapv | 
| Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6864 | case $CC in | 
|  | 6865 | *clang*) WRAP="-fwrapv" | 
|  | 6866 | ;; | 
|  | 6867 | esac | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6868 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [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 19:39:16 +0100 | [diff] [blame] | 6874 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then | 
|  | 6875 | OPT="-g -Og -Wall $STRICT_PROTO" | 
|  | 6876 | else | 
|  | 6877 | OPT="-g -O0 -Wall $STRICT_PROTO" | 
|  | 6878 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6879 | else | 
|  | 6880 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
|  | 6881 | fi | 
|  | 6882 | ;; | 
|  | 6883 | *) | 
|  | 6884 | OPT="-O3 -Wall $STRICT_PROTO" | 
|  | 6885 | ;; | 
|  | 6886 | esac | 
|  | 6887 | case $ac_sys_system in | 
|  | 6888 | SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
|  | 6889 | ;; | 
|  | 6890 | esac | 
|  | 6891 | ;; | 
|  | 6892 |  | 
|  | 6893 | *) | 
|  | 6894 | OPT="-O" | 
|  | 6895 | ;; | 
|  | 6896 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6897 | fi | 
|  | 6898 |  | 
|  | 6899 |  | 
|  | 6900 |  | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6901 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6902 | # The -arch flags for universal builds on OSX | 
|  | 6903 | UNIVERSAL_ARCH_FLAGS= | 
|  | 6904 |  | 
|  | 6905 |  | 
|  | 6906 | # tweak BASECFLAGS based on compiler and platform | 
|  | 6907 | case $GCC in | 
|  | 6908 | yes) | 
| Benjamin Peterson | 050af5d | 2016-09-10 17:53:13 -0700 | [diff] [blame] | 6909 | CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" | 
| Benjamin Peterson | d170256 | 2016-09-07 12:00:06 -0700 | [diff] [blame] | 6910 |  | 
| Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 | 
|  | 6912 | $as_echo_n "checking for -Wextra... " >&6; } | 
|  | 6913 | ac_save_cc="$CC" | 
|  | 6914 | CC="$CC -Wextra -Werror" | 
|  | 6915 | if ${ac_cv_extra_warnings+:} false; then : | 
|  | 6916 | $as_echo_n "(cached) " >&6 | 
|  | 6917 | else | 
|  | 6918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6919 | /* end confdefs.h.  */ | 
|  | 6920 |  | 
|  | 6921 |  | 
|  | 6922 | int | 
|  | 6923 | main () | 
|  | 6924 | { | 
|  | 6925 |  | 
|  | 6926 | ; | 
|  | 6927 | return 0; | 
|  | 6928 | } | 
|  | 6929 |  | 
|  | 6930 | _ACEOF | 
|  | 6931 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 6932 |  | 
|  | 6933 | ac_cv_extra_warnings=yes | 
|  | 6934 |  | 
|  | 6935 | else | 
|  | 6936 |  | 
|  | 6937 | ac_cv_extra_warnings=no | 
|  | 6938 |  | 
|  | 6939 | fi | 
|  | 6940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6941 | fi | 
|  | 6942 |  | 
|  | 6943 | CC="$ac_save_cc" | 
|  | 6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 | 
|  | 6945 | $as_echo "$ac_cv_extra_warnings" >&6; } | 
|  | 6946 |  | 
|  | 6947 | if test $ac_cv_extra_warnings = yes | 
|  | 6948 | then | 
|  | 6949 | CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" | 
|  | 6950 | fi | 
|  | 6951 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6952 | # Python doesn't violate C99 aliasing rules, but older versions of | 
|  | 6953 | # GCC produce warnings for legal Python code.  Enable | 
|  | 6954 | # -fno-strict-aliasing on versions of GCC that support but produce | 
|  | 6955 | # warnings.  See Issue3326 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 | 
|  | 6957 | $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6958 | ac_save_cc="$CC" | 
|  | 6959 | CC="$CC -fno-strict-aliasing" | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6960 | save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6961 | if ${ac_cv_no_strict_aliasing+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6962 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6963 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6965 | /* end confdefs.h.  */ | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6966 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6967 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6968 | int | 
|  | 6969 | main () | 
|  | 6970 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6971 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6972 | ; | 
|  | 6973 | return 0; | 
|  | 6974 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6975 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6976 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6977 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6978 |  | 
|  | 6979 | CC="$ac_save_cc -fstrict-aliasing" | 
|  | 6980 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | 
|  | 6981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6982 | /* end confdefs.h.  */ | 
|  | 6983 |  | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6984 | void f(int **x) {} | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6985 | int | 
|  | 6986 | main () | 
|  | 6987 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6988 | double *x; f((int **) &x); | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6989 | ; | 
|  | 6990 | return 0; | 
|  | 6991 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6992 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6993 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6994 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6995 |  | 
|  | 6996 | ac_cv_no_strict_aliasing=no | 
|  | 6997 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6998 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6999 |  | 
|  | 7000 | ac_cv_no_strict_aliasing=yes | 
|  | 7001 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7002 | fi | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7004 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7005 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7006 |  | 
|  | 7007 | ac_cv_no_strict_aliasing=no | 
|  | 7008 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7009 | fi | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 7010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 7011 | fi | 
|  | 7012 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7013 | CFLAGS="$save_CFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7014 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 | 
|  | 7016 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 7017 | if test $ac_cv_no_strict_aliasing = yes | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7018 | then | 
|  | 7019 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
|  | 7020 | fi | 
|  | 7021 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7022 | # ICC doesn't recognize the option, but only emits a warning | 
|  | 7023 | ## XXX does it emit an unused result warning and can it be disabled? | 
|  | 7024 | case "$CC" in | 
|  | 7025 | *icc*) | 
|  | 7026 | ac_cv_disable_unused_result_warning=no | 
|  | 7027 | ;; | 
|  | 7028 | *) | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 | 
|  | 7030 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | 
|  | 7031 | ac_save_cc="$CC" | 
|  | 7032 | CC="$CC -Wunused-result -Werror" | 
|  | 7033 | save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7034 | if ${ac_cv_disable_unused_result_warning+:} false; then : | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7035 | $as_echo_n "(cached) " >&6 | 
|  | 7036 | else | 
|  | 7037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7038 | /* end confdefs.h.  */ | 
|  | 7039 |  | 
|  | 7040 |  | 
|  | 7041 | int | 
|  | 7042 | main () | 
|  | 7043 | { | 
|  | 7044 |  | 
|  | 7045 | ; | 
|  | 7046 | return 0; | 
|  | 7047 | } | 
|  | 7048 |  | 
|  | 7049 | _ACEOF | 
|  | 7050 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7051 |  | 
|  | 7052 | ac_cv_disable_unused_result_warning=yes | 
|  | 7053 |  | 
|  | 7054 | else | 
|  | 7055 |  | 
|  | 7056 | ac_cv_disable_unused_result_warning=no | 
|  | 7057 |  | 
|  | 7058 | fi | 
|  | 7059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7060 | fi | 
|  | 7061 |  | 
|  | 7062 | CFLAGS="$save_CFLAGS" | 
|  | 7063 | CC="$ac_save_cc" | 
|  | 7064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 | 
|  | 7065 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7066 | ;; | 
|  | 7067 | esac | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7068 |  | 
|  | 7069 | if test $ac_cv_disable_unused_result_warning = yes | 
|  | 7070 | then | 
|  | 7071 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" | 
| Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7072 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" | 
|  | 7073 | fi | 
|  | 7074 |  | 
|  | 7075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 | 
|  | 7076 | $as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } | 
|  | 7077 | ac_save_cc="$CC" | 
|  | 7078 | CC="$CC -Wunused-parameter -Werror" | 
|  | 7079 | if ${ac_cv_disable_unused_parameter_warning+:} false; then : | 
|  | 7080 | $as_echo_n "(cached) " >&6 | 
|  | 7081 | else | 
|  | 7082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7083 | /* end confdefs.h.  */ | 
|  | 7084 |  | 
|  | 7085 |  | 
|  | 7086 | int | 
|  | 7087 | main () | 
|  | 7088 | { | 
|  | 7089 |  | 
|  | 7090 | ; | 
|  | 7091 | return 0; | 
|  | 7092 | } | 
|  | 7093 |  | 
|  | 7094 | _ACEOF | 
|  | 7095 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7096 |  | 
|  | 7097 | ac_cv_disable_unused_parameter_warning=yes | 
|  | 7098 |  | 
|  | 7099 | else | 
|  | 7100 |  | 
|  | 7101 | ac_cv_disable_unused_parameter_warning=no | 
|  | 7102 |  | 
|  | 7103 | fi | 
|  | 7104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7105 | fi | 
|  | 7106 |  | 
|  | 7107 | CC="$ac_save_cc" | 
|  | 7108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 | 
|  | 7109 | $as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } | 
|  | 7110 |  | 
|  | 7111 | if test $ac_cv_disable_unused_parameter_warning = yes | 
|  | 7112 | then | 
|  | 7113 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" | 
|  | 7114 | fi | 
|  | 7115 |  | 
|  | 7116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 | 
|  | 7117 | $as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } | 
|  | 7118 | ac_save_cc="$CC" | 
|  | 7119 | CC="$CC -Wmissing-field-initializers -Werror" | 
|  | 7120 | if ${ac_cv_disable_missing_field_initializers+:} false; then : | 
|  | 7121 | $as_echo_n "(cached) " >&6 | 
|  | 7122 | else | 
|  | 7123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7124 | /* end confdefs.h.  */ | 
|  | 7125 |  | 
|  | 7126 |  | 
|  | 7127 | int | 
|  | 7128 | main () | 
|  | 7129 | { | 
|  | 7130 |  | 
|  | 7131 | ; | 
|  | 7132 | return 0; | 
|  | 7133 | } | 
|  | 7134 |  | 
|  | 7135 | _ACEOF | 
|  | 7136 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7137 |  | 
|  | 7138 | ac_cv_disable_missing_field_initializers=yes | 
|  | 7139 |  | 
|  | 7140 | else | 
|  | 7141 |  | 
|  | 7142 | ac_cv_disable_missing_field_initializers=no | 
|  | 7143 |  | 
|  | 7144 | fi | 
|  | 7145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7146 | fi | 
|  | 7147 |  | 
|  | 7148 | CC="$ac_save_cc" | 
|  | 7149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 | 
|  | 7150 | $as_echo "$ac_cv_disable_missing_field_initializers" >&6; } | 
|  | 7151 |  | 
|  | 7152 | if test $ac_cv_disable_missing_field_initializers = yes | 
|  | 7153 | then | 
|  | 7154 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7155 | fi | 
|  | 7156 |  | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 | 
|  | 7158 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } | 
|  | 7159 | ac_save_cc="$CC" | 
|  | 7160 | CC="$CC -Wsign-compare" | 
|  | 7161 | save_CFLAGS="$CFLAGS" | 
|  | 7162 | if ${ac_cv_enable_sign_compare_warning+:} false; then : | 
|  | 7163 | $as_echo_n "(cached) " >&6 | 
|  | 7164 | else | 
|  | 7165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7166 | /* end confdefs.h.  */ | 
|  | 7167 |  | 
|  | 7168 |  | 
|  | 7169 | int | 
|  | 7170 | main () | 
|  | 7171 | { | 
|  | 7172 |  | 
|  | 7173 | ; | 
|  | 7174 | return 0; | 
|  | 7175 | } | 
|  | 7176 |  | 
|  | 7177 | _ACEOF | 
|  | 7178 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7179 |  | 
|  | 7180 | ac_cv_enable_sign_compare_warning=yes | 
|  | 7181 |  | 
|  | 7182 | else | 
|  | 7183 |  | 
|  | 7184 | ac_cv_enable_sign_compare_warning=no | 
|  | 7185 |  | 
|  | 7186 | fi | 
|  | 7187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7188 | fi | 
|  | 7189 |  | 
|  | 7190 | CFLAGS="$save_CFLAGS" | 
|  | 7191 | CC="$ac_save_cc" | 
|  | 7192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 | 
|  | 7193 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } | 
|  | 7194 |  | 
|  | 7195 | if test $ac_cv_enable_sign_compare_warning = yes | 
|  | 7196 | then | 
|  | 7197 | BASECFLAGS="$BASECFLAGS -Wsign-compare" | 
|  | 7198 | fi | 
|  | 7199 |  | 
|  | 7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 | 
|  | 7201 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } | 
|  | 7202 | ac_save_cc="$CC" | 
|  | 7203 | CC="$CC -Wunreachable-code" | 
|  | 7204 | save_CFLAGS="$CFLAGS" | 
|  | 7205 | if ${ac_cv_enable_unreachable_code_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_unreachable_code_warning=yes | 
|  | 7224 |  | 
|  | 7225 | else | 
|  | 7226 |  | 
|  | 7227 | ac_cv_enable_unreachable_code_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" | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7235 |  | 
|  | 7236 | # Don't enable unreachable code warning in debug mode, since it usually | 
|  | 7237 | # results in non-standard code paths. | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7238 | # Issue #24324: Unfortunately, the unreachable code warning does not work | 
|  | 7239 | # correctly on gcc and has been silently removed from the compiler. | 
|  | 7240 | # It is supported on clang but on OS X systems gcc may be an alias | 
|  | 7241 | # for clang.  Try to determine if the compiler is not really gcc and, | 
|  | 7242 | # if so, only then enable the warning. | 
|  | 7243 | if test $ac_cv_enable_unreachable_code_warning = yes && \ | 
|  | 7244 | test "$Py_DEBUG" != "true" && \ | 
|  | 7245 | test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`" | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7246 | then | 
|  | 7247 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7248 | else | 
|  | 7249 | ac_cv_enable_unreachable_code_warning=no | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7250 | fi | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 | 
|  | 7252 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7253 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7254 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
|  | 7255 | # support.  Without this, treatment of subnormals doesn't follow | 
|  | 7256 | # the standard. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 7257 | case $host in | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7258 | alpha*) | 
|  | 7259 | BASECFLAGS="$BASECFLAGS -mieee" | 
|  | 7260 | ;; | 
|  | 7261 | esac | 
|  | 7262 |  | 
|  | 7263 | case $ac_sys_system in | 
|  | 7264 | SCO_SV*) | 
|  | 7265 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
|  | 7266 | ;; | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7267 |  | 
|  | 7268 | # is there any other compiler on Darwin besides gcc? | 
|  | 7269 | Darwin*) | 
|  | 7270 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
|  | 7271 | # used to be here, but non-Apple gcc doesn't accept them. | 
|  | 7272 | if test "${CC}" = gcc | 
|  | 7273 | then | 
|  | 7274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7275 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7276 | case "${UNIVERSALSDK}" in | 
|  | 7277 | */MacOSX10.4u.sdk) | 
|  | 7278 | # Build using 10.4 SDK, force usage of gcc when the | 
|  | 7279 | # compiler is gcc, otherwise the user will get very | 
|  | 7280 | # confusing error messages when building on OSX 10.6 | 
|  | 7281 | CC=gcc-4.0 | 
|  | 7282 | CPP=cpp-4.0 | 
|  | 7283 | ;; | 
|  | 7284 | esac | 
|  | 7285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7286 | $as_echo "$CC" >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7287 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7288 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7289 | if test "${enable_universalsdk}" | 
|  | 7290 | then | 
|  | 7291 | case "$UNIVERSAL_ARCHS" in | 
|  | 7292 | 32-bit) | 
|  | 7293 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
|  | 7294 | LIPO_32BIT_FLAGS="" | 
|  | 7295 | ARCH_RUN_32BIT="" | 
|  | 7296 | ;; | 
|  | 7297 | 64-bit) | 
|  | 7298 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
|  | 7299 | LIPO_32BIT_FLAGS="" | 
|  | 7300 | ARCH_RUN_32BIT="true" | 
|  | 7301 | ;; | 
|  | 7302 | all) | 
|  | 7303 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
|  | 7304 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
|  | 7305 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
|  | 7306 | ;; | 
|  | 7307 | intel) | 
|  | 7308 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
|  | 7309 | LIPO_32BIT_FLAGS="-extract i386" | 
|  | 7310 | ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
|  | 7311 | ;; | 
|  | 7312 | intel-32) | 
|  | 7313 | UNIVERSAL_ARCH_FLAGS="-arch i386" | 
|  | 7314 | LIPO_32BIT_FLAGS="" | 
|  | 7315 | ARCH_RUN_32BIT="" | 
|  | 7316 | ;; | 
|  | 7317 | 3-way) | 
|  | 7318 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
|  | 7319 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
|  | 7320 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
|  | 7321 | ;; | 
|  | 7322 | *) | 
|  | 7323 | as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
|  | 7324 | ;; | 
|  | 7325 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7326 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7327 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
|  | 7328 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
|  | 7329 | if test "${UNIVERSALSDK}" != "/" | 
|  | 7330 | then | 
|  | 7331 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
|  | 7332 | fi | 
|  | 7333 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7334 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7335 | # Calculate an appropriate deployment target for this build: | 
|  | 7336 | # The deployment target value is used explicitly to enable certain | 
|  | 7337 | # features are enabled (such as builtin libedit support for readline) | 
| Raymond Hettinger | 15f44ab | 2016-08-30 10:47:49 -0700 | [diff] [blame] | 7338 | # through the use of Apple's Availability Macros and is used as a | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7339 | # component of the string returned by distutils.get_platform(). | 
|  | 7340 | # | 
|  | 7341 | # Use the value from: | 
|  | 7342 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | 
|  | 7343 | # 2. the operating system version of the build machine if >= 10.6 | 
|  | 7344 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests | 
|  | 7345 | #       below to pick either 10.3, 10.4, or 10.5 as the target. | 
|  | 7346 | # 4. If we are running on OS X 10.2 or earlier, good luck! | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7347 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 | 
|  | 7349 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7350 | cur_target_major=`sw_vers -productVersion | \ | 
|  | 7351 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
|  | 7352 | cur_target_minor=`sw_vers -productVersion | \ | 
|  | 7353 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
|  | 7354 | cur_target="${cur_target_major}.${cur_target_minor}" | 
|  | 7355 | if test ${cur_target_major} -eq 10 && \ | 
|  | 7356 | test ${cur_target_minor} -ge 3 && \ | 
|  | 7357 | test ${cur_target_minor} -le 5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7358 | then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7359 | # OS X 10.3 through 10.5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7360 | cur_target=10.3 | 
|  | 7361 | if test ${enable_universalsdk} | 
|  | 7362 | then | 
|  | 7363 | case "$UNIVERSAL_ARCHS" in | 
|  | 7364 | all|3-way|intel|64-bit) | 
|  | 7365 | # These configurations were first supported in 10.5 | 
|  | 7366 | cur_target='10.5' | 
|  | 7367 | ;; | 
|  | 7368 | esac | 
|  | 7369 | else | 
|  | 7370 | if test `/usr/bin/arch` = "i386" | 
|  | 7371 | then | 
|  | 7372 | # 10.4 was the first release to support Intel archs | 
|  | 7373 | cur_target="10.4" | 
|  | 7374 | fi | 
|  | 7375 | fi | 
|  | 7376 | fi | 
|  | 7377 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7378 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7379 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
|  | 7380 | # environment with a value that is the same as what we'll use | 
|  | 7381 | # in the Makefile to ensure that we'll get the same compiler | 
|  | 7382 | # environment during configure and build time. | 
|  | 7383 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
|  | 7384 | export MACOSX_DEPLOYMENT_TARGET | 
|  | 7385 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
|  | 7386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 | 
|  | 7387 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7388 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7389 | # end of Darwin* tests | 
|  | 7390 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7391 | esac | 
|  | 7392 | ;; | 
|  | 7393 |  | 
|  | 7394 | *) | 
|  | 7395 | case $ac_sys_system in | 
|  | 7396 | OpenUNIX*|UnixWare*) | 
|  | 7397 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
|  | 7398 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7399 | SCO_SV*) | 
|  | 7400 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
|  | 7401 | ;; | 
|  | 7402 | esac | 
|  | 7403 | ;; | 
|  | 7404 | esac | 
|  | 7405 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7406 | # ICC needs -fp-model strict or floats behave badly | 
|  | 7407 | case "$CC" in | 
|  | 7408 | *icc*) | 
|  | 7409 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" | 
|  | 7410 | ;; | 
|  | 7411 | esac | 
|  | 7412 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7413 | if test "$Py_DEBUG" = 'true'; then | 
|  | 7414 | : | 
|  | 7415 | else | 
|  | 7416 | OPT="-DNDEBUG $OPT" | 
|  | 7417 | fi | 
|  | 7418 |  | 
|  | 7419 | if test "$ac_arch_flags" | 
|  | 7420 | then | 
|  | 7421 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
|  | 7422 | fi | 
|  | 7423 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7424 | # On some compilers, pthreads are available without further options | 
|  | 7425 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
|  | 7426 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
|  | 7427 | # So we have to see first whether pthreads are available without | 
|  | 7428 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
|  | 7430 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7431 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7432 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7433 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7434 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7435 | ac_cv_pthread_is_default=no | 
|  | 7436 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7438 | /* end confdefs.h.  */ | 
|  | 7439 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7440 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7441 | #include <pthread.h> | 
|  | 7442 |  | 
|  | 7443 | void* routine(void* p){return NULL;} | 
|  | 7444 |  | 
|  | 7445 | int main(){ | 
|  | 7446 | pthread_t p; | 
|  | 7447 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7448 | return 1; | 
|  | 7449 | (void)pthread_detach(p); | 
|  | 7450 | return 0; | 
|  | 7451 | } | 
|  | 7452 |  | 
|  | 7453 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7454 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7455 |  | 
|  | 7456 | ac_cv_pthread_is_default=yes | 
|  | 7457 | ac_cv_kthread=no | 
|  | 7458 | ac_cv_pthread=no | 
|  | 7459 |  | 
|  | 7460 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7461 | ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7462 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7463 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7464 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7465 | fi | 
|  | 7466 |  | 
|  | 7467 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7468 | fi | 
|  | 7469 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
|  | 7471 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7472 |  | 
|  | 7473 |  | 
|  | 7474 | if test $ac_cv_pthread_is_default = yes | 
|  | 7475 | then | 
|  | 7476 | ac_cv_kpthread=no | 
|  | 7477 | else | 
|  | 7478 | # -Kpthread, if available, provides the right #defines | 
|  | 7479 | # and linker options to make pthread_create available | 
|  | 7480 | # Some compilers won't report that they do not support -Kpthread, | 
|  | 7481 | # so we need to run a program to see whether it really made the | 
|  | 7482 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
|  | 7484 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7485 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7486 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7487 | else | 
|  | 7488 | ac_save_cc="$CC" | 
|  | 7489 | CC="$CC -Kpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7490 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7491 | ac_cv_kpthread=no | 
|  | 7492 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7494 | /* end confdefs.h.  */ | 
|  | 7495 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7496 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7497 | #include <pthread.h> | 
|  | 7498 |  | 
|  | 7499 | void* routine(void* p){return NULL;} | 
|  | 7500 |  | 
|  | 7501 | int main(){ | 
|  | 7502 | pthread_t p; | 
|  | 7503 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7504 | return 1; | 
|  | 7505 | (void)pthread_detach(p); | 
|  | 7506 | return 0; | 
|  | 7507 | } | 
|  | 7508 |  | 
|  | 7509 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7510 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7511 | ac_cv_kpthread=yes | 
|  | 7512 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7513 | ac_cv_kpthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7514 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7515 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7516 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7517 | fi | 
|  | 7518 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7519 | CC="$ac_save_cc" | 
|  | 7520 | fi | 
|  | 7521 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
|  | 7523 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7524 | fi | 
|  | 7525 |  | 
|  | 7526 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
|  | 7527 | then | 
|  | 7528 | # -Kthread, if available, provides the right #defines | 
|  | 7529 | # and linker options to make pthread_create available | 
|  | 7530 | # Some compilers won't report that they do not support -Kthread, | 
|  | 7531 | # so we need to run a program to see whether it really made the | 
|  | 7532 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
|  | 7534 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7535 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7536 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7537 | else | 
|  | 7538 | ac_save_cc="$CC" | 
|  | 7539 | CC="$CC -Kthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7540 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7541 | ac_cv_kthread=no | 
|  | 7542 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7544 | /* end confdefs.h.  */ | 
|  | 7545 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7546 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7547 | #include <pthread.h> | 
|  | 7548 |  | 
|  | 7549 | void* routine(void* p){return NULL;} | 
|  | 7550 |  | 
|  | 7551 | int main(){ | 
|  | 7552 | pthread_t p; | 
|  | 7553 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7554 | return 1; | 
|  | 7555 | (void)pthread_detach(p); | 
|  | 7556 | return 0; | 
|  | 7557 | } | 
|  | 7558 |  | 
|  | 7559 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7560 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7561 | ac_cv_kthread=yes | 
|  | 7562 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7563 | ac_cv_kthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7564 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7565 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7566 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7567 | fi | 
|  | 7568 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7569 | CC="$ac_save_cc" | 
|  | 7570 | fi | 
|  | 7571 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
|  | 7573 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7574 | fi | 
|  | 7575 |  | 
|  | 7576 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
|  | 7577 | then | 
|  | 7578 | # -pthread, if available, provides the right #defines | 
|  | 7579 | # and linker options to make pthread_create available | 
|  | 7580 | # Some compilers won't report that they do not support -pthread, | 
|  | 7581 | # so we need to run a program to see whether it really made the | 
|  | 7582 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
|  | 7584 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 7585 | if ${ac_cv_pthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7586 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7587 | else | 
|  | 7588 | ac_save_cc="$CC" | 
|  | 7589 | CC="$CC -pthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7590 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7591 | ac_cv_pthread=no | 
|  | 7592 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7594 | /* end confdefs.h.  */ | 
|  | 7595 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7596 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7597 | #include <pthread.h> | 
|  | 7598 |  | 
|  | 7599 | void* routine(void* p){return NULL;} | 
|  | 7600 |  | 
|  | 7601 | int main(){ | 
|  | 7602 | pthread_t p; | 
|  | 7603 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7604 | return 1; | 
|  | 7605 | (void)pthread_detach(p); | 
|  | 7606 | return 0; | 
|  | 7607 | } | 
|  | 7608 |  | 
|  | 7609 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7610 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7611 | ac_cv_pthread=yes | 
|  | 7612 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7613 | ac_cv_pthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7614 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7615 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7616 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7617 | fi | 
|  | 7618 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7619 | CC="$ac_save_cc" | 
|  | 7620 | fi | 
|  | 7621 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
|  | 7623 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7624 | fi | 
|  | 7625 |  | 
|  | 7626 | # If we have set a CC compiler flag for thread support then | 
|  | 7627 | # check if it works for CXX, too. | 
|  | 7628 | ac_cv_cxx_thread=no | 
|  | 7629 | if test ! -z "$CXX" | 
|  | 7630 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
|  | 7632 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7633 | ac_save_cxx="$CXX" | 
|  | 7634 |  | 
|  | 7635 | if test "$ac_cv_kpthread" = "yes" | 
|  | 7636 | then | 
|  | 7637 | CXX="$CXX -Kpthread" | 
|  | 7638 | ac_cv_cxx_thread=yes | 
|  | 7639 | elif test "$ac_cv_kthread" = "yes" | 
|  | 7640 | then | 
|  | 7641 | CXX="$CXX -Kthread" | 
|  | 7642 | ac_cv_cxx_thread=yes | 
|  | 7643 | elif test "$ac_cv_pthread" = "yes" | 
|  | 7644 | then | 
|  | 7645 | CXX="$CXX -pthread" | 
|  | 7646 | ac_cv_cxx_thread=yes | 
|  | 7647 | fi | 
|  | 7648 |  | 
|  | 7649 | if test $ac_cv_cxx_thread = yes | 
|  | 7650 | then | 
|  | 7651 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
|  | 7652 | $CXX -c conftest.$ac_ext 2>&5 | 
|  | 7653 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
|  | 7654 | && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
|  | 7655 | then | 
|  | 7656 | ac_cv_cxx_thread=yes | 
|  | 7657 | else | 
|  | 7658 | ac_cv_cxx_thread=no | 
|  | 7659 | fi | 
|  | 7660 | rm -fr conftest* | 
|  | 7661 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
|  | 7663 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7664 | fi | 
|  | 7665 | CXX="$ac_save_cxx" | 
|  | 7666 |  | 
|  | 7667 |  | 
|  | 7668 | # checks for header files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 7670 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7671 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7672 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7673 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7675 | /* end confdefs.h.  */ | 
|  | 7676 | #include <stdlib.h> | 
|  | 7677 | #include <stdarg.h> | 
|  | 7678 | #include <string.h> | 
|  | 7679 | #include <float.h> | 
|  | 7680 |  | 
|  | 7681 | int | 
|  | 7682 | main () | 
|  | 7683 | { | 
|  | 7684 |  | 
|  | 7685 | ; | 
|  | 7686 | return 0; | 
|  | 7687 | } | 
|  | 7688 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7689 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7690 | ac_cv_header_stdc=yes | 
|  | 7691 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7692 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7693 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7695 |  | 
|  | 7696 | if test $ac_cv_header_stdc = yes; then | 
|  | 7697 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7699 | /* end confdefs.h.  */ | 
|  | 7700 | #include <string.h> | 
|  | 7701 |  | 
|  | 7702 | _ACEOF | 
|  | 7703 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7704 | $EGREP "memchr" >/dev/null 2>&1; then : | 
|  | 7705 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7706 | else | 
|  | 7707 | ac_cv_header_stdc=no | 
|  | 7708 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7709 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7710 |  | 
|  | 7711 | fi | 
|  | 7712 |  | 
|  | 7713 | if test $ac_cv_header_stdc = yes; then | 
|  | 7714 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7716 | /* end confdefs.h.  */ | 
|  | 7717 | #include <stdlib.h> | 
|  | 7718 |  | 
|  | 7719 | _ACEOF | 
|  | 7720 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7721 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 7722 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7723 | else | 
|  | 7724 | ac_cv_header_stdc=no | 
|  | 7725 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7726 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7727 |  | 
|  | 7728 | fi | 
|  | 7729 |  | 
|  | 7730 | if test $ac_cv_header_stdc = yes; then | 
|  | 7731 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7732 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7733 | : | 
|  | 7734 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7736 | /* end confdefs.h.  */ | 
|  | 7737 | #include <ctype.h> | 
|  | 7738 | #include <stdlib.h> | 
|  | 7739 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 7740 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 7741 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 7742 | #else | 
|  | 7743 | # define ISLOWER(c) \ | 
|  | 7744 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 7745 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 7746 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 7747 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 7748 | #endif | 
|  | 7749 |  | 
|  | 7750 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 7751 | int | 
|  | 7752 | main () | 
|  | 7753 | { | 
|  | 7754 | int i; | 
|  | 7755 | for (i = 0; i < 256; i++) | 
|  | 7756 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 7757 | || toupper (i) != TOUPPER (i)) | 
|  | 7758 | return 2; | 
|  | 7759 | return 0; | 
|  | 7760 | } | 
|  | 7761 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7762 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 7763 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7764 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7765 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7766 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7767 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7768 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7769 | fi | 
|  | 7770 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7771 | fi | 
|  | 7772 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 7774 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7775 | if test $ac_cv_header_stdc = yes; then | 
|  | 7776 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7777 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7778 |  | 
|  | 7779 | fi | 
|  | 7780 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7781 | for ac_header in asm/types.h conio.h direct.h dlfcn.h errno.h \ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7782 | fcntl.h grp.h \ | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7783 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ | 
| Benjamin Peterson | 4fe5510 | 2016-09-06 11:58:01 -0700 | [diff] [blame] | 7784 | sched.h shadow.h signal.h stropts.h termios.h \ | 
| Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 7785 | unistd.h utime.h \ | 
| Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7786 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ | 
| Antoine Pitrou | bcf2b59 | 2012-02-08 23:28:36 +0100 | [diff] [blame] | 7787 | sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ | 
| Martin v. Löwis | 9d6c669 | 2012-02-03 17:44:58 +0100 | [diff] [blame] | 7788 | sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ | 
| Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7789 | sys/param.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ | 
| Martin v. Löwis | 9d6c669 | 2012-02-03 17:44:58 +0100 | [diff] [blame] | 7790 | sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \ | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 7791 | sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7792 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 7793 | linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \ | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 7794 | sys/endian.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7795 | do : | 
|  | 7796 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 7797 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7798 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7799 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7800 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7801 | _ACEOF | 
|  | 7802 |  | 
|  | 7803 | fi | 
|  | 7804 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7805 | done | 
|  | 7806 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7807 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7808 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7809 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 7810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
|  | 7811 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7812 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7813 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7814 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7816 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7817 | #include <sys/types.h> | 
|  | 7818 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7819 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7820 | int | 
|  | 7821 | main () | 
|  | 7822 | { | 
|  | 7823 | if ((DIR *) 0) | 
|  | 7824 | return 0; | 
|  | 7825 | ; | 
|  | 7826 | return 0; | 
|  | 7827 | } | 
|  | 7828 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7829 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7830 | eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7831 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7832 | eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7833 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7835 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7836 | eval ac_res=\$$as_ac_Header | 
|  | 7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 7838 | $as_echo "$ac_res" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7839 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7840 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7841 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7842 | _ACEOF | 
|  | 7843 |  | 
|  | 7844 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7845 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7846 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7847 | done | 
|  | 7848 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 7849 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 7851 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7852 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7853 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7854 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7855 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7857 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7858 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7859 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7860 | Use char because int might match the return type of a GCC | 
|  | 7861 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7862 | #ifdef __cplusplus | 
|  | 7863 | extern "C" | 
|  | 7864 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7865 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7866 | int | 
|  | 7867 | main () | 
|  | 7868 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7869 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7870 | ; | 
|  | 7871 | return 0; | 
|  | 7872 | } | 
|  | 7873 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7874 | for ac_lib in '' dir; do | 
|  | 7875 | if test -z "$ac_lib"; then | 
|  | 7876 | ac_res="none required" | 
|  | 7877 | else | 
|  | 7878 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7879 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7880 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7881 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7882 | ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7883 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7884 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7885 | conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7886 | if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7887 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7888 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7889 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7890 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7891 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7892 | else | 
|  | 7893 | ac_cv_search_opendir=no | 
|  | 7894 | fi | 
|  | 7895 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7896 | LIBS=$ac_func_search_save_LIBS | 
|  | 7897 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 7899 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7900 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7901 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7902 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7903 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7904 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7905 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7906 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 7908 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7909 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7910 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7911 | else | 
|  | 7912 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7914 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7915 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7916 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7917 | Use char because int might match the return type of a GCC | 
|  | 7918 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7919 | #ifdef __cplusplus | 
|  | 7920 | extern "C" | 
|  | 7921 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7922 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7923 | int | 
|  | 7924 | main () | 
|  | 7925 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7926 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7927 | ; | 
|  | 7928 | return 0; | 
|  | 7929 | } | 
|  | 7930 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7931 | for ac_lib in '' x; do | 
|  | 7932 | if test -z "$ac_lib"; then | 
|  | 7933 | ac_res="none required" | 
|  | 7934 | else | 
|  | 7935 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7936 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7937 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7938 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7939 | ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7940 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7941 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7942 | conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7943 | if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7944 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7945 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7946 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7947 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7948 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7949 | else | 
|  | 7950 | ac_cv_search_opendir=no | 
|  | 7951 | fi | 
|  | 7952 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7953 | LIBS=$ac_func_search_save_LIBS | 
|  | 7954 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 7956 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7957 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7958 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7959 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7960 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7961 | fi | 
|  | 7962 |  | 
|  | 7963 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7964 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
|  | 7966 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7967 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7968 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7969 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7971 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7972 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7973 | int | 
|  | 7974 | main () | 
|  | 7975 | { | 
|  | 7976 | return makedev(0, 0); | 
|  | 7977 | ; | 
|  | 7978 | return 0; | 
|  | 7979 | } | 
|  | 7980 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7981 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7982 | ac_cv_header_sys_types_h_makedev=yes | 
|  | 7983 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7984 | ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7985 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7986 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7987 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7988 |  | 
|  | 7989 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
|  | 7991 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7992 |  | 
|  | 7993 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7994 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7995 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7996 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7997 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7998 |  | 
|  | 7999 | fi | 
|  | 8000 |  | 
|  | 8001 |  | 
|  | 8002 |  | 
|  | 8003 | if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8004 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8005 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8006 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8007 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8008 |  | 
|  | 8009 | fi | 
|  | 8010 |  | 
|  | 8011 |  | 
|  | 8012 | fi | 
|  | 8013 | fi | 
|  | 8014 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8015 |  | 
| Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 8016 | # bluetooth/bluetooth.h has been known to not compile with -std=c99. | 
|  | 8017 | # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 | 
|  | 8018 | SAVE_CFLAGS=$CFLAGS | 
|  | 8019 | CFLAGS="-std=c99 $CFLAGS" | 
|  | 8020 | for ac_header in bluetooth/bluetooth.h | 
|  | 8021 | do : | 
|  | 8022 | ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" | 
|  | 8023 | if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : | 
|  | 8024 | cat >>confdefs.h <<_ACEOF | 
|  | 8025 | #define HAVE_BLUETOOTH_BLUETOOTH_H 1 | 
|  | 8026 | _ACEOF | 
|  | 8027 |  | 
|  | 8028 | fi | 
|  | 8029 |  | 
|  | 8030 | done | 
|  | 8031 |  | 
|  | 8032 | CFLAGS=$SAVE_CFLAGS | 
|  | 8033 |  | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8034 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. | 
|  | 8035 | for ac_header in net/if.h | 
|  | 8036 | do : | 
|  | 8037 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | 
|  | 8038 | #ifdef STDC_HEADERS | 
|  | 8039 | # include <stdlib.h> | 
|  | 8040 | # include <stddef.h> | 
|  | 8041 | #else | 
|  | 8042 | # ifdef HAVE_STDLIB_H | 
|  | 8043 | #  include <stdlib.h> | 
|  | 8044 | # endif | 
|  | 8045 | #endif | 
|  | 8046 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 8047 | # include <sys/socket.h> | 
|  | 8048 | #endif | 
|  | 8049 |  | 
|  | 8050 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8051 | if test "x$ac_cv_header_net_if_h" = xyes; then : | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8052 | cat >>confdefs.h <<_ACEOF | 
|  | 8053 | #define HAVE_NET_IF_H 1 | 
|  | 8054 | _ACEOF | 
|  | 8055 |  | 
|  | 8056 | fi | 
|  | 8057 |  | 
|  | 8058 | done | 
|  | 8059 |  | 
|  | 8060 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8061 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8062 | for ac_header in linux/netlink.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8063 | do : | 
|  | 8064 | ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8065 | #ifdef HAVE_ASM_TYPES_H | 
|  | 8066 | #include <asm/types.h> | 
|  | 8067 | #endif | 
|  | 8068 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 8069 | #include <sys/socket.h> | 
|  | 8070 | #endif | 
|  | 8071 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8072 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8073 | if test "x$ac_cv_header_linux_netlink_h" = xyes; then : | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8074 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8075 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8076 | _ACEOF | 
|  | 8077 |  | 
|  | 8078 | fi | 
|  | 8079 |  | 
|  | 8080 | done | 
|  | 8081 |  | 
|  | 8082 |  | 
| Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 8083 | # On Linux, can.h and can/raw.h require sys/socket.h | 
| Charles-François Natali | 773e42d | 2013-02-05 19:42:01 +0100 | [diff] [blame] | 8084 | for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h | 
| Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 8085 | do : | 
|  | 8086 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 8087 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | 
|  | 8088 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 8089 | #include <sys/socket.h> | 
|  | 8090 | #endif | 
|  | 8091 |  | 
|  | 8092 | " | 
|  | 8093 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
|  | 8094 | cat >>confdefs.h <<_ACEOF | 
|  | 8095 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 8096 | _ACEOF | 
|  | 8097 |  | 
|  | 8098 | fi | 
|  | 8099 |  | 
|  | 8100 | done | 
|  | 8101 |  | 
|  | 8102 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8103 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8104 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
|  | 8106 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
|  | 8107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8108 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8109 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8110 |  | 
|  | 8111 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8112 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8113 | $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8114 | was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8115 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8116 |  | 
|  | 8117 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8118 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8119 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8120 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8121 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8122 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8123 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 8125 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8126 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
|  | 8128 | $as_echo_n "checking for makedev... " >&6; } | 
|  | 8129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8130 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8131 |  | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8132 | #if defined(MAJOR_IN_MKDEV) | 
|  | 8133 | #include <sys/mkdev.h> | 
|  | 8134 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 8135 | #include <sys/sysmacros.h> | 
|  | 8136 | #else | 
|  | 8137 | #include <sys/types.h> | 
|  | 8138 | #endif | 
|  | 8139 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8140 | int | 
|  | 8141 | main () | 
|  | 8142 | { | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8143 |  | 
|  | 8144 | makedev(0, 0) | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8145 | ; | 
|  | 8146 | return 0; | 
|  | 8147 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8148 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8149 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8150 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8151 | ac_cv_has_makedev=yes | 
|  | 8152 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8153 | ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8154 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8155 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8156 | conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
|  | 8158 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8159 | if test "$ac_cv_has_makedev" = "yes"; then | 
|  | 8160 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8161 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8162 |  | 
|  | 8163 | fi | 
|  | 8164 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8165 | # byte swapping | 
|  | 8166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 | 
|  | 8167 | $as_echo_n "checking for le64toh... " >&6; } | 
|  | 8168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8169 | /* end confdefs.h.  */ | 
|  | 8170 |  | 
|  | 8171 | #ifdef HAVE_ENDIAN_H | 
|  | 8172 | #include <endian.h> | 
|  | 8173 | #elif defined(HAVE_SYS_ENDIAN_H) | 
|  | 8174 | #include <sys/endian.h> | 
|  | 8175 | #endif | 
|  | 8176 |  | 
|  | 8177 | int | 
|  | 8178 | main () | 
|  | 8179 | { | 
|  | 8180 |  | 
|  | 8181 | le64toh(1) | 
|  | 8182 | ; | 
|  | 8183 | return 0; | 
|  | 8184 | } | 
|  | 8185 |  | 
|  | 8186 | _ACEOF | 
|  | 8187 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 8188 | ac_cv_has_le64toh=yes | 
|  | 8189 | else | 
|  | 8190 | ac_cv_has_le64toh=no | 
|  | 8191 | fi | 
|  | 8192 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8193 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 | 
|  | 8195 | $as_echo "$ac_cv_has_le64toh" >&6; } | 
|  | 8196 | if test "$ac_cv_has_le64toh" = "yes"; then | 
|  | 8197 |  | 
|  | 8198 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h | 
|  | 8199 |  | 
|  | 8200 | fi | 
|  | 8201 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8202 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
|  | 8203 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
|  | 8204 | # defined, but the compiler does not support pragma redefine_extname, | 
|  | 8205 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
|  | 8206 | # structures (such as rlimit64) without declaring them. As a | 
|  | 8207 | # work-around, disable LFS on such configurations | 
|  | 8208 |  | 
|  | 8209 | use_lfs=yes | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
|  | 8211 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
|  | 8212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8213 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8214 |  | 
|  | 8215 | #define _LARGEFILE_SOURCE 1 | 
|  | 8216 | #define _FILE_OFFSET_BITS 64 | 
|  | 8217 | #include <sys/resource.h> | 
|  | 8218 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8219 | int | 
|  | 8220 | main () | 
|  | 8221 | { | 
|  | 8222 | struct rlimit foo; | 
|  | 8223 | ; | 
|  | 8224 | return 0; | 
|  | 8225 | } | 
|  | 8226 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8227 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8228 | sol_lfs_bug=no | 
|  | 8229 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8230 | sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8231 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
|  | 8234 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8235 | if test "$sol_lfs_bug" = "yes"; then | 
|  | 8236 | use_lfs=no | 
|  | 8237 | fi | 
|  | 8238 |  | 
| doko@ubuntu.com | 006a56c | 2016-06-14 10:15:25 +0200 | [diff] [blame] | 8239 | # Don't use largefile support for GNU/Hurd | 
|  | 8240 | case $ac_sys_system in GNU*) | 
|  | 8241 | use_lfs=no | 
|  | 8242 | esac | 
|  | 8243 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8244 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8245 | # Two defines needed to enable largefile support on various platforms | 
|  | 8246 | # These may affect some typedefs | 
| Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 8247 | case $ac_sys_system/$ac_sys_release in | 
|  | 8248 | AIX*) | 
|  | 8249 |  | 
|  | 8250 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
|  | 8251 |  | 
|  | 8252 | ;; | 
|  | 8253 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8254 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8255 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8256 |  | 
|  | 8257 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8258 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8259 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8260 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8261 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8262 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
|  | 8263 | cat >> confdefs.h <<\EOF | 
|  | 8264 | #if defined(SCO_DS) | 
|  | 8265 | #undef _OFF_T | 
|  | 8266 | #endif | 
|  | 8267 | EOF | 
|  | 8268 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8269 | # Type availability checks | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8270 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8271 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8272 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8273 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8274 |  | 
|  | 8275 | cat >>confdefs.h <<_ACEOF | 
|  | 8276 | #define mode_t int | 
|  | 8277 | _ACEOF | 
|  | 8278 |  | 
|  | 8279 | fi | 
|  | 8280 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8281 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8282 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8283 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8284 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8285 |  | 
|  | 8286 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8287 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8288 | _ACEOF | 
|  | 8289 |  | 
|  | 8290 | fi | 
|  | 8291 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8292 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8293 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8294 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8295 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8296 |  | 
|  | 8297 | cat >>confdefs.h <<_ACEOF | 
|  | 8298 | #define pid_t int | 
|  | 8299 | _ACEOF | 
|  | 8300 |  | 
|  | 8301 | fi | 
|  | 8302 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8303 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8304 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 8305 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8306 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8307 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8308 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8309 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8310 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8311 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8312 |  | 
|  | 8313 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8314 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8315 | _ACEOF | 
|  | 8316 |  | 
|  | 8317 | fi | 
|  | 8318 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
|  | 8320 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8321 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8322 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8323 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8325 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8326 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8327 |  | 
|  | 8328 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8329 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8330 | $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8331 | ac_cv_type_uid_t=yes | 
|  | 8332 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8333 | ac_cv_type_uid_t=no | 
|  | 8334 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8335 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8336 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8337 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
|  | 8339 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8340 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8341 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8342 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8343 |  | 
|  | 8344 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8345 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8346 |  | 
|  | 8347 | fi | 
|  | 8348 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8349 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8350 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8351 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8352 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8353 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8354 |  | 
|  | 8355 | fi | 
|  | 8356 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8357 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" | 
|  | 8358 | if test "x$ac_cv_type___uint128_t" = xyes; then : | 
|  | 8359 |  | 
|  | 8360 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h | 
|  | 8361 |  | 
|  | 8362 | fi | 
|  | 8363 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8364 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8365 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8366 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8367 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8368 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8369 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8370 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
|  | 8372 | $as_echo_n "checking size of int... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8373 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8374 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8375 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8376 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8377 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8378 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8379 | if test "$ac_cv_type_int" = yes; then | 
|  | 8380 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8381 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8382 | as_fn_error 77 "cannot compute sizeof (int) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8383 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8384 | else | 
|  | 8385 | ac_cv_sizeof_int=0 | 
|  | 8386 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8387 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8388 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8389 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
|  | 8391 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8392 |  | 
|  | 8393 |  | 
|  | 8394 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8395 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8396 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8397 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8398 |  | 
|  | 8399 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8400 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8401 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8402 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8403 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
|  | 8405 | $as_echo_n "checking size of long... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8406 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8407 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8408 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8409 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8410 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8411 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8412 | if test "$ac_cv_type_long" = yes; then | 
|  | 8413 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8414 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8415 | as_fn_error 77 "cannot compute sizeof (long) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8416 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8417 | else | 
|  | 8418 | ac_cv_sizeof_long=0 | 
|  | 8419 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8420 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8421 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8422 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
|  | 8424 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8425 |  | 
|  | 8426 |  | 
|  | 8427 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8428 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8429 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8430 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8431 |  | 
|  | 8432 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8433 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8434 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8435 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8436 | # This bug is HP SR number 8606223364. | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
|  | 8438 | $as_echo_n "checking size of long long... " >&6; } | 
|  | 8439 | if ${ac_cv_sizeof_long_long+:} false; then : | 
|  | 8440 | $as_echo_n "(cached) " >&6 | 
|  | 8441 | else | 
|  | 8442 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then : | 
|  | 8443 |  | 
|  | 8444 | else | 
|  | 8445 | if test "$ac_cv_type_long_long" = yes; then | 
|  | 8446 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8447 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 8448 | as_fn_error 77 "cannot compute sizeof (long long) | 
|  | 8449 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 8450 | else | 
|  | 8451 | ac_cv_sizeof_long_long=0 | 
|  | 8452 | fi | 
|  | 8453 | fi | 
|  | 8454 |  | 
|  | 8455 | fi | 
|  | 8456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
|  | 8457 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
|  | 8458 |  | 
|  | 8459 |  | 
|  | 8460 |  | 
|  | 8461 | cat >>confdefs.h <<_ACEOF | 
|  | 8462 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
|  | 8463 | _ACEOF | 
|  | 8464 |  | 
|  | 8465 |  | 
|  | 8466 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8467 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8468 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8469 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
|  | 8471 | $as_echo_n "checking size of void *... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8472 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8473 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8474 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8475 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8476 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8477 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8478 | if test "$ac_cv_type_void_p" = yes; then | 
|  | 8479 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8480 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8481 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8482 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8483 | else | 
|  | 8484 | ac_cv_sizeof_void_p=0 | 
|  | 8485 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8486 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8487 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8488 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
|  | 8490 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8491 |  | 
|  | 8492 |  | 
|  | 8493 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8494 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8495 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8496 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8497 |  | 
|  | 8498 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8499 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8500 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8501 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8502 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
|  | 8504 | $as_echo_n "checking size of short... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8505 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8506 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8507 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8508 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8509 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8510 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8511 | if test "$ac_cv_type_short" = yes; then | 
|  | 8512 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8513 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8514 | as_fn_error 77 "cannot compute sizeof (short) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8515 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8516 | else | 
|  | 8517 | ac_cv_sizeof_short=0 | 
|  | 8518 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8519 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8520 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8521 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
|  | 8523 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8524 |  | 
|  | 8525 |  | 
|  | 8526 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8527 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8528 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8529 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8530 |  | 
|  | 8531 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8532 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8533 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8534 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8535 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
|  | 8537 | $as_echo_n "checking size of float... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8538 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8539 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8540 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8541 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8542 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8543 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8544 | if test "$ac_cv_type_float" = yes; then | 
|  | 8545 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8546 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8547 | as_fn_error 77 "cannot compute sizeof (float) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8548 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8549 | else | 
|  | 8550 | ac_cv_sizeof_float=0 | 
|  | 8551 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8552 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8553 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
|  | 8556 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8557 |  | 
|  | 8558 |  | 
|  | 8559 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8560 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8561 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8562 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8563 |  | 
|  | 8564 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8565 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8566 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8567 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8568 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
|  | 8570 | $as_echo_n "checking size of double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8571 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8572 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8573 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8574 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8575 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8576 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8577 | if test "$ac_cv_type_double" = yes; then | 
|  | 8578 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8579 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8580 | as_fn_error 77 "cannot compute sizeof (double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8581 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8582 | else | 
|  | 8583 | ac_cv_sizeof_double=0 | 
|  | 8584 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8585 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8586 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8587 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
|  | 8589 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8590 |  | 
|  | 8591 |  | 
|  | 8592 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8593 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8594 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8595 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8596 |  | 
|  | 8597 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8598 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8599 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8600 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8601 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
|  | 8603 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8604 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8605 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8606 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8607 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8608 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8609 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8610 | if test "$ac_cv_type_fpos_t" = yes; then | 
|  | 8611 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8612 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8613 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8614 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8615 | else | 
|  | 8616 | ac_cv_sizeof_fpos_t=0 | 
|  | 8617 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8618 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8619 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
|  | 8622 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8623 |  | 
|  | 8624 |  | 
|  | 8625 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8626 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8627 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8628 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8629 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8630 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8631 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8632 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8633 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8634 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
|  | 8636 | $as_echo_n "checking size of size_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8637 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8638 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8639 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8640 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8641 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8642 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8643 | if test "$ac_cv_type_size_t" = yes; then | 
|  | 8644 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8645 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8646 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8647 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8648 | else | 
|  | 8649 | ac_cv_sizeof_size_t=0 | 
|  | 8650 | fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8651 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8652 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8653 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
|  | 8655 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8656 |  | 
|  | 8657 |  | 
|  | 8658 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8659 | cat >>confdefs.h <<_ACEOF | 
|  | 8660 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
|  | 8661 | _ACEOF | 
|  | 8662 |  | 
|  | 8663 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8664 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8665 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8666 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8667 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
|  | 8669 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8670 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8671 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8672 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8673 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then : | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8674 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8675 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8676 | if test "$ac_cv_type_pid_t" = yes; then | 
|  | 8677 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8678 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8679 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8680 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8681 | else | 
|  | 8682 | ac_cv_sizeof_pid_t=0 | 
|  | 8683 | fi | 
|  | 8684 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8685 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8686 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
|  | 8688 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8689 |  | 
|  | 8690 |  | 
|  | 8691 |  | 
|  | 8692 | cat >>confdefs.h <<_ACEOF | 
|  | 8693 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
|  | 8694 | _ACEOF | 
|  | 8695 |  | 
|  | 8696 |  | 
| Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 8697 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8698 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8699 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8700 | # This bug is HP SR number 8606223364. | 
|  | 8701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
|  | 8702 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
|  | 8703 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
|  | 8704 | $as_echo_n "(cached) " >&6 | 
|  | 8705 | else | 
|  | 8706 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t"        "$ac_includes_default"; then : | 
|  | 8707 |  | 
|  | 8708 | else | 
|  | 8709 | if test "$ac_cv_type_uintptr_t" = yes; then | 
|  | 8710 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8711 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 8712 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
|  | 8713 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 8714 | else | 
|  | 8715 | ac_cv_sizeof_uintptr_t=0 | 
|  | 8716 | fi | 
|  | 8717 | fi | 
|  | 8718 |  | 
|  | 8719 | fi | 
|  | 8720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
|  | 8721 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
|  | 8722 |  | 
|  | 8723 |  | 
|  | 8724 |  | 
|  | 8725 | cat >>confdefs.h <<_ACEOF | 
|  | 8726 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
|  | 8727 | _ACEOF | 
|  | 8728 |  | 
|  | 8729 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8730 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
|  | 8732 | $as_echo_n "checking for long double support... " >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8733 | have_long_double=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8735 | /* end confdefs.h.  */ | 
|  | 8736 |  | 
|  | 8737 | int | 
|  | 8738 | main () | 
|  | 8739 | { | 
|  | 8740 | long double x; x = (long double)0; | 
|  | 8741 | ; | 
|  | 8742 | return 0; | 
|  | 8743 | } | 
|  | 8744 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8745 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8746 |  | 
|  | 8747 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8748 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8749 |  | 
|  | 8750 | have_long_double=yes | 
|  | 8751 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8752 | fi | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
|  | 8755 | $as_echo "$have_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8756 | if test "$have_long_double" = yes ; then | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8757 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8758 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8759 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8760 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
|  | 8762 | $as_echo_n "checking size of long double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8763 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8764 | $as_echo_n "(cached) " >&6 | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8765 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8766 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8767 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8768 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8769 | if test "$ac_cv_type_long_double" = yes; then | 
|  | 8770 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8771 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8772 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8773 | See \`config.log' for more details" "$LINENO" 5; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8774 | else | 
|  | 8775 | ac_cv_sizeof_long_double=0 | 
|  | 8776 | fi | 
|  | 8777 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8778 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8779 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
|  | 8781 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8782 |  | 
|  | 8783 |  | 
|  | 8784 |  | 
|  | 8785 | cat >>confdefs.h <<_ACEOF | 
|  | 8786 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
|  | 8787 | _ACEOF | 
|  | 8788 |  | 
|  | 8789 |  | 
|  | 8790 | fi | 
|  | 8791 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8792 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8793 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8794 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8795 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
|  | 8797 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8798 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8799 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8800 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8801 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8802 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8803 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8804 | if test "$ac_cv_type__Bool" = yes; then | 
|  | 8805 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8806 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8807 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8808 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8809 | else | 
|  | 8810 | ac_cv_sizeof__Bool=0 | 
|  | 8811 | fi | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8812 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8813 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8814 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
|  | 8816 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8817 |  | 
|  | 8818 |  | 
|  | 8819 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8820 | cat >>confdefs.h <<_ACEOF | 
|  | 8821 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
|  | 8822 | _ACEOF | 
|  | 8823 |  | 
|  | 8824 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8825 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8826 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8827 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8828 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8829 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
|  | 8831 | $as_echo_n "checking size of off_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8832 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8833 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8834 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8835 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8836 | #ifdef HAVE_SYS_TYPES_H | 
|  | 8837 | #include <sys/types.h> | 
|  | 8838 | #endif | 
|  | 8839 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8840 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8841 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8842 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8843 | if test "$ac_cv_type_off_t" = yes; then | 
|  | 8844 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8845 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8846 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8847 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8848 | else | 
|  | 8849 | ac_cv_sizeof_off_t=0 | 
|  | 8850 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8851 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8852 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8853 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
|  | 8855 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8856 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8857 |  | 
|  | 8858 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8859 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8860 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8861 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8862 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8863 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8864 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
|  | 8866 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8867 | if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8868 | "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8869 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8870 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8871 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 8873 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8874 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8876 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8877 | fi | 
|  | 8878 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8879 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8880 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8881 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8882 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
|  | 8884 | $as_echo_n "checking size of time_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8885 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8886 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8887 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8888 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8889 | #ifdef HAVE_SYS_TYPES_H | 
|  | 8890 | #include <sys/types.h> | 
|  | 8891 | #endif | 
|  | 8892 | #ifdef HAVE_TIME_H | 
|  | 8893 | #include <time.h> | 
|  | 8894 | #endif | 
|  | 8895 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8896 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8897 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8898 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8899 | if test "$ac_cv_type_time_t" = yes; then | 
|  | 8900 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8901 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8902 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8903 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8904 | else | 
|  | 8905 | ac_cv_sizeof_time_t=0 | 
|  | 8906 | fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8907 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8908 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8909 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
|  | 8911 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8912 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8913 |  | 
|  | 8914 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8915 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8916 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8917 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8918 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8919 |  | 
|  | 8920 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8921 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8922 | ac_save_cc="$CC" | 
|  | 8923 | if test "$ac_cv_kpthread" = "yes" | 
|  | 8924 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8925 | elif test "$ac_cv_kthread" = "yes" | 
|  | 8926 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8927 | elif test "$ac_cv_pthread" = "yes" | 
|  | 8928 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8929 | fi | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8930 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
|  | 8932 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8933 | have_pthread_t=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8935 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8936 |  | 
|  | 8937 | #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8938 | int | 
|  | 8939 | main () | 
|  | 8940 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8941 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8942 | ; | 
|  | 8943 | return 0; | 
|  | 8944 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8945 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8946 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8947 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8948 | have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8949 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
|  | 8952 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8953 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8954 | # The cast to long int works around a bug in the HP C Compiler | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8955 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8956 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8957 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
|  | 8959 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8960 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8961 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8962 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8963 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8964 | #ifdef HAVE_PTHREAD_H | 
|  | 8965 | #include <pthread.h> | 
|  | 8966 | #endif | 
|  | 8967 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8968 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8969 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8970 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8971 | if test "$ac_cv_type_pthread_t" = yes; then | 
|  | 8972 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8973 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8974 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8975 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8976 | else | 
|  | 8977 | ac_cv_sizeof_pthread_t=0 | 
|  | 8978 | fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8979 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8980 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8981 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
|  | 8983 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8984 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8985 |  | 
|  | 8986 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8987 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8988 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8989 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8990 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8991 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8992 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8993 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8994 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8995 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8996 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8997 | Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8998 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
|  | 8999 | ;; | 
|  | 9000 | Darwin/*) | 
|  | 9001 | OTHER_LIBTOOL_OPT="" | 
|  | 9002 | ;; | 
|  | 9003 | esac | 
|  | 9004 |  | 
|  | 9005 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9006 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9007 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9008 | Darwin/[01567]\..*) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9009 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
|  | 9010 | if test "${enable_universalsdk}"; then | 
|  | 9011 | : | 
|  | 9012 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9013 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9014 | fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9015 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9016 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9017 | Darwin/*) | 
| Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 9018 | gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9019 | if test ${gcc_version} '<' 4.0 | 
|  | 9020 | then | 
|  | 9021 | LIBTOOL_CRUFT="-lcc_dynamic" | 
|  | 9022 | else | 
|  | 9023 | LIBTOOL_CRUFT="" | 
|  | 9024 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9025 | if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9026 | ac_osx_32bit=yes | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9027 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9029 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9030 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9031 | #include <unistd.h> | 
|  | 9032 | int main(int argc, char*argv[]) | 
|  | 9033 | { | 
|  | 9034 | if (sizeof(long) == 4) { | 
|  | 9035 | return 0; | 
|  | 9036 | } else { | 
|  | 9037 | return 1; | 
|  | 9038 | } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9039 | } | 
|  | 9040 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9041 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9042 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9043 | ac_osx_32bit=yes | 
|  | 9044 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9045 | ac_osx_32bit=no | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9046 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9047 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9048 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9049 | fi | 
|  | 9050 |  | 
|  | 9051 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9052 | if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9053 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9054 | i386) | 
|  | 9055 | MACOSX_DEFAULT_ARCH="i386" | 
|  | 9056 | ;; | 
|  | 9057 | ppc) | 
|  | 9058 | MACOSX_DEFAULT_ARCH="ppc" | 
|  | 9059 | ;; | 
|  | 9060 | *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9061 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9062 | ;; | 
|  | 9063 | esac | 
|  | 9064 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9065 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9066 | i386) | 
|  | 9067 | MACOSX_DEFAULT_ARCH="x86_64" | 
|  | 9068 | ;; | 
|  | 9069 | ppc) | 
|  | 9070 | MACOSX_DEFAULT_ARCH="ppc64" | 
|  | 9071 | ;; | 
|  | 9072 | *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9073 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9074 | ;; | 
|  | 9075 | esac | 
|  | 9076 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9077 | fi | 
|  | 9078 |  | 
|  | 9079 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9080 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9081 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9082 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
|  | 9084 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9085 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9086 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9087 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9088 | # -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9089 | # in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9090 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9091 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9092 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9094 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9095 | if test $enable_shared = "yes" | 
|  | 9096 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9097 | as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5 | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9098 | fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9099 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9101 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9102 | fi | 
|  | 9103 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
|  | 9105 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9106 | case $ac_sys_system/$ac_sys_release in | 
|  | 9107 | Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9108 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9109 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9110 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
|  | 9112 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9113 | ;; | 
|  | 9114 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9116 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9117 | ;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9118 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9119 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9120 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9121 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9122 |  | 
|  | 9123 |  | 
|  | 9124 |  | 
|  | 9125 |  | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9126 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9127 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9128 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) | 
|  | 9129 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
|  | 9130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 | 
|  | 9131 | $as_echo_n "checking the extension of shared libraries... " >&6; } | 
|  | 9132 | if test -z "$SHLIB_SUFFIX"; then | 
|  | 9133 | case $ac_sys_system in | 
|  | 9134 | hp*|HP*) | 
|  | 9135 | case `uname -m` in | 
|  | 9136 | ia64) SHLIB_SUFFIX=.so;; | 
|  | 9137 | *)    SHLIB_SUFFIX=.sl;; | 
|  | 9138 | esac | 
|  | 9139 | ;; | 
|  | 9140 | CYGWIN*)   SHLIB_SUFFIX=.dll;; | 
|  | 9141 | *)	   SHLIB_SUFFIX=.so;; | 
|  | 9142 | esac | 
|  | 9143 | fi | 
|  | 9144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 | 
|  | 9145 | $as_echo "$SHLIB_SUFFIX" >&6; } | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9146 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9147 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 9148 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9149 | # (Shared libraries in this instance are shared modules to be loaded into | 
|  | 9150 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
|  | 9152 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9153 | if test -z "$LDSHARED" | 
|  | 9154 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9155 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9156 | AIX*) | 
| Georg Brandl | 9a829be | 2011-02-15 15:44:51 +0000 | [diff] [blame] | 9157 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp" | 
| Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 9158 | LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9159 | ;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9160 | IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9161 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9162 | SunOS/5*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9163 | if test "$GCC" = "yes" ; then | 
|  | 9164 | LDSHARED='$(CC) -shared' | 
|  | 9165 | LDCXXSHARED='$(CXX) -shared' | 
|  | 9166 | else | 
|  | 9167 | LDSHARED='$(CC) -G' | 
|  | 9168 | LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9169 | fi ;; | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9170 | hp*|HP*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9171 | if test "$GCC" = "yes" ; then | 
|  | 9172 | LDSHARED='$(CC) -shared' | 
|  | 9173 | LDCXXSHARED='$(CXX) -shared' | 
|  | 9174 | else | 
|  | 9175 | LDSHARED='ld -b' | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9176 | fi ;; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9177 | Darwin/1.3*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9178 | LDSHARED='$(CC) -bundle' | 
|  | 9179 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9180 | if test "$enable_framework" ; then | 
|  | 9181 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9182 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 9183 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9184 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9185 | else | 
|  | 9186 | # No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9187 | LDSHARED="$LDSHARED -undefined suppress" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9188 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9189 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9190 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9191 | LDSHARED='$(CC) -bundle' | 
|  | 9192 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9193 | if test "$enable_framework" ; then | 
|  | 9194 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9195 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 9196 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9197 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9198 | else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9199 | # No framework, use the Python app as bundle-loader | 
|  | 9200 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9201 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9202 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9203 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9204 | Darwin/*) | 
|  | 9205 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
|  | 9206 | # This allows an extension to be used in any Python | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 9207 |  | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9208 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
|  | 9209 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
|  | 9210 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
|  | 9211 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
|  | 9212 | if test ${dep_target_major} -eq 10 && \ | 
|  | 9213 | test ${dep_target_minor} -le 2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9214 | then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9215 | # building for OS X 10.0 through 10.2 | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9216 | LDSHARED='$(CC) -bundle' | 
|  | 9217 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9218 | if test "$enable_framework" ; then | 
|  | 9219 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9220 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 9221 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9222 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9223 | else | 
|  | 9224 | # No framework, use the Python app as bundle-loader | 
|  | 9225 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
|  | 9226 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9227 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9228 | fi | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9229 | else | 
|  | 9230 | # building for OS X 10.3 and later | 
|  | 9231 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
|  | 9232 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
|  | 9233 | BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9234 | fi | 
|  | 9235 | ;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9236 | Linux*|GNU*|QNX*) | 
|  | 9237 | LDSHARED='$(CC) -shared' | 
|  | 9238 | LDCXXSHARED='$(CXX) -shared';; | 
|  | 9239 | BSD/OS*/4*) | 
|  | 9240 | LDSHARED="gcc -shared" | 
|  | 9241 | LDCXXSHARED="g++ -shared";; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9242 | FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9243 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9244 | then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9245 | LDSHARED='$(CC) -shared' | 
|  | 9246 | LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9247 | else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9248 | LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9249 | fi;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9250 | OpenBSD*) | 
|  | 9251 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 9252 | then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9253 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 9254 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9255 | else | 
|  | 9256 | case `uname -r` in | 
|  | 9257 | [01].* | 2.[0-7] | 2.[0-7].*) | 
|  | 9258 | LDSHARED="ld -Bshareable ${LDFLAGS}" | 
|  | 9259 | ;; | 
|  | 9260 | *) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9261 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 9262 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9263 | ;; | 
|  | 9264 | esac | 
|  | 9265 | fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9266 | NetBSD*|DragonFly*) | 
| Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 9267 | LDSHARED='$(CC) -shared' | 
|  | 9268 | LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9269 | OpenUNIX*|UnixWare*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9270 | if test "$GCC" = "yes" ; then | 
|  | 9271 | LDSHARED='$(CC) -shared' | 
|  | 9272 | LDCXXSHARED='$(CXX) -shared' | 
|  | 9273 | else | 
|  | 9274 | LDSHARED='$(CC) -G' | 
|  | 9275 | LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9276 | fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9277 | SCO_SV*) | 
|  | 9278 | LDSHARED='$(CC) -Wl,-G,-Bexport' | 
|  | 9279 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
|  | 9280 | CYGWIN*) | 
|  | 9281 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
|  | 9282 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9283 | *)	LDSHARED="ld";; | 
|  | 9284 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9285 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
|  | 9287 | $as_echo "$LDSHARED" >&6; } | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9288 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9289 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9290 | # CCSHARED are the C *flags* used to create objects to go into a shared | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9291 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
|  | 9293 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9294 | if test -z "$CCSHARED" | 
|  | 9295 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9296 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9297 | SunOS*) if test "$GCC" = yes; | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9298 | then CCSHARED="-fPIC"; | 
|  | 9299 | elif test `uname -p` = sparc; | 
|  | 9300 | then CCSHARED="-xcode=pic32"; | 
|  | 9301 | else CCSHARED="-Kpic"; | 
|  | 9302 | fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9303 | hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9304 | then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9305 | else CCSHARED="+z"; | 
|  | 9306 | fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9307 | Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9308 | BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9309 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9310 | OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9311 | if test "$GCC" = "yes" | 
|  | 9312 | then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9313 | else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9314 | fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9315 | SCO_SV*) | 
|  | 9316 | if test "$GCC" = "yes" | 
|  | 9317 | then CCSHARED="-fPIC" | 
|  | 9318 | else CCSHARED="-Kpic -belf" | 
|  | 9319 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9320 | IRIX*/6*)  case $CC in | 
|  | 9321 | *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9322 | *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9323 | esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9324 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9325 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
|  | 9327 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9328 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9329 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
|  | 9331 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9332 | if test -z "$LINKFORSHARED" | 
|  | 9333 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9334 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9335 | AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9336 | hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9337 | LINKFORSHARED="-Wl,-E -Wl,+s";; | 
|  | 9338 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9339 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9340 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9341 | # -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9342 | Darwin/*) | 
| Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9343 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" | 
| Łukasz Langa | 335ab5b | 2013-05-30 20:58:53 +0200 | [diff] [blame] | 9344 |  | 
|  | 9345 | # Issue #18075: the default maximum stack size (8MBytes) is too | 
|  | 9346 | # small for the default recursion limit. Increase the stack size | 
|  | 9347 | # to ensure that tests don't crash | 
|  | 9348 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" | 
|  | 9349 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9350 | if test "$enable_framework" | 
|  | 9351 | then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9352 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9353 | fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9354 | LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9355 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9356 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9357 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9358 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9359 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 9360 | then | 
|  | 9361 | LINKFORSHARED="-Wl,--export-dynamic" | 
|  | 9362 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9363 | SunOS/5*) case $CC in | 
|  | 9364 | *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9365 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9366 | then | 
|  | 9367 | LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9368 | fi;; | 
|  | 9369 | esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9370 | CYGWIN*) | 
|  | 9371 | if test $enable_shared = "no" | 
|  | 9372 | then | 
|  | 9373 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
|  | 9374 | fi;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9375 | QNX*) | 
|  | 9376 | # -Wl,-E causes the symbols to be added to the dynamic | 
|  | 9377 | # symbol table so that they can be found when a module | 
|  | 9378 | # is loaded.  -N 2048K causes the stack size to be set | 
|  | 9379 | # to 2048 kilobytes so that the stack doesn't overflow | 
|  | 9380 | # when running test_compile.py. | 
|  | 9381 | LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9382 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9383 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
|  | 9385 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9386 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9387 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9388 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
|  | 9390 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9391 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
|  | 9392 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9393 | case $ac_sys_system in | 
|  | 9394 | CYGWIN*) | 
|  | 9395 | # Cygwin needs CCSHARED when building extension DLLs | 
|  | 9396 | # but not when building the interpreter DLL. | 
|  | 9397 | CFLAGSFORSHARED='';; | 
|  | 9398 | *) | 
|  | 9399 | CFLAGSFORSHARED='$(CCSHARED)' | 
|  | 9400 | esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9401 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
|  | 9403 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9404 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9405 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
|  | 9406 | # library (with --enable-shared). | 
|  | 9407 | # For platforms on which shared libraries are not allowed to have unresolved | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9408 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
|  | 9409 | # if it is not required, since it creates a dependency of the shared library | 
|  | 9410 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
|  | 9411 | # don't need to link LIBS explicitly. The default should be only changed | 
|  | 9412 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9413 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
|  | 9415 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9416 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9417 | *) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9418 | SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9419 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
|  | 9421 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9422 |  | 
|  | 9423 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9424 | # checks for libraries | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 | 
|  | 9426 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9427 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9428 | $as_echo_n "(cached) " >&6 | 
|  | 9429 | else | 
|  | 9430 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9431 | LIBS="-lsendfile  $LIBS" | 
|  | 9432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9433 | /* end confdefs.h.  */ | 
|  | 9434 |  | 
|  | 9435 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9436 | Use char because int might match the return type of a GCC | 
|  | 9437 | builtin and then its argument prototype would still apply.  */ | 
|  | 9438 | #ifdef __cplusplus | 
|  | 9439 | extern "C" | 
|  | 9440 | #endif | 
|  | 9441 | char sendfile (); | 
|  | 9442 | int | 
|  | 9443 | main () | 
|  | 9444 | { | 
|  | 9445 | return sendfile (); | 
|  | 9446 | ; | 
|  | 9447 | return 0; | 
|  | 9448 | } | 
|  | 9449 | _ACEOF | 
|  | 9450 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 9451 | ac_cv_lib_sendfile_sendfile=yes | 
|  | 9452 | else | 
|  | 9453 | ac_cv_lib_sendfile_sendfile=no | 
|  | 9454 | fi | 
|  | 9455 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9456 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9457 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9458 | fi | 
|  | 9459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 | 
|  | 9460 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9461 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9462 | cat >>confdefs.h <<_ACEOF | 
|  | 9463 | #define HAVE_LIBSENDFILE 1 | 
|  | 9464 | _ACEOF | 
|  | 9465 |  | 
|  | 9466 | LIBS="-lsendfile $LIBS" | 
|  | 9467 |  | 
|  | 9468 | fi | 
|  | 9469 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
|  | 9471 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9472 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9473 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9474 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9475 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9476 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9478 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9479 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9480 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9481 | Use char because int might match the return type of a GCC | 
|  | 9482 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9483 | #ifdef __cplusplus | 
|  | 9484 | extern "C" | 
|  | 9485 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9486 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9487 | int | 
|  | 9488 | main () | 
|  | 9489 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9490 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9491 | ; | 
|  | 9492 | return 0; | 
|  | 9493 | } | 
|  | 9494 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9495 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9496 | ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9497 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9498 | ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9499 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9500 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9501 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9502 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9503 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 9505 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9506 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9507 | cat >>confdefs.h <<_ACEOF | 
|  | 9508 | #define HAVE_LIBDL 1 | 
|  | 9509 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9510 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9511 | LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9512 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9513 | fi | 
|  | 9514 | # Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
|  | 9516 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9517 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9518 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9519 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9520 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9521 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9523 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9524 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9525 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9526 | Use char because int might match the return type of a GCC | 
|  | 9527 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9528 | #ifdef __cplusplus | 
|  | 9529 | extern "C" | 
|  | 9530 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9531 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9532 | int | 
|  | 9533 | main () | 
|  | 9534 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9535 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9536 | ; | 
|  | 9537 | return 0; | 
|  | 9538 | } | 
|  | 9539 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9540 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9541 | ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9542 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9543 | ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9544 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9545 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9546 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9547 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9548 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 9550 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9551 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9552 | cat >>confdefs.h <<_ACEOF | 
|  | 9553 | #define HAVE_LIBDLD 1 | 
|  | 9554 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9555 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9556 | LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9557 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9558 | fi | 
|  | 9559 | # Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9560 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 9561 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9562 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
|  | 9564 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9565 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9566 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9567 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9568 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9570 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9571 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9572 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9573 | Use char because int might match the return type of a GCC | 
|  | 9574 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9575 | #ifdef __cplusplus | 
|  | 9576 | extern "C" | 
|  | 9577 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9578 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9579 | int | 
|  | 9580 | main () | 
|  | 9581 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9582 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9583 | ; | 
|  | 9584 | return 0; | 
|  | 9585 | } | 
|  | 9586 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9587 | for ac_lib in '' pthread rt posix4; do | 
|  | 9588 | if test -z "$ac_lib"; then | 
|  | 9589 | ac_res="none required" | 
|  | 9590 | else | 
|  | 9591 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9592 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9593 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9594 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9595 | ac_cv_search_sem_init=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9596 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9597 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9598 | conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9599 | if ${ac_cv_search_sem_init+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9600 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9601 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9602 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9603 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9604 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9605 | else | 
|  | 9606 | ac_cv_search_sem_init=no | 
|  | 9607 | fi | 
|  | 9608 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9609 | LIBS=$ac_func_search_save_LIBS | 
|  | 9610 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
|  | 9612 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9613 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9614 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9615 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9616 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9617 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9618 | # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9619 | # posix4 on Solaris 2.6 | 
|  | 9620 | # pthread (first!) on Linux | 
|  | 9621 | fi | 
|  | 9622 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9623 | # check if we need libintl for locale functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
|  | 9625 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9626 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9627 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9628 | else | 
|  | 9629 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9630 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9632 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9633 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9634 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9635 | Use char because int might match the return type of a GCC | 
|  | 9636 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9637 | #ifdef __cplusplus | 
|  | 9638 | extern "C" | 
|  | 9639 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9640 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9641 | int | 
|  | 9642 | main () | 
|  | 9643 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9644 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9645 | ; | 
|  | 9646 | return 0; | 
|  | 9647 | } | 
|  | 9648 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9649 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9650 | ac_cv_lib_intl_textdomain=yes | 
|  | 9651 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9652 | ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9653 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9654 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9655 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9656 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9657 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
|  | 9659 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9660 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9661 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9662 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9663 |  | 
| Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 9664 | LIBS="-lintl $LIBS" | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9665 | fi | 
|  | 9666 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9667 |  | 
|  | 9668 | # checks for system dependent C++ extensions support | 
|  | 9669 | case "$ac_sys_system" in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9670 | AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
|  | 9671 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
|  | 9672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9673 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9674 |  | 
| Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 9675 | #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9676 | int | 
|  | 9677 | main () | 
|  | 9678 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9679 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9680 | ; | 
|  | 9681 | return 0; | 
|  | 9682 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9683 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9684 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9685 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9686 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9687 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9688 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9689 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9691 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9692 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9693 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9694 |  | 
|  | 9695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9696 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9697 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9698 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9699 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9700 | conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9701 | *) ;; | 
|  | 9702 | esac | 
|  | 9703 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9704 | # check for systems that require aligned memory access | 
|  | 9705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 | 
|  | 9706 | $as_echo_n "checking aligned memory access is required... " >&6; } | 
|  | 9707 | if test "$cross_compiling" = yes; then : | 
|  | 9708 | aligned_required=yes | 
|  | 9709 | else | 
|  | 9710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9711 | /* end confdefs.h.  */ | 
|  | 9712 |  | 
|  | 9713 | int main() | 
|  | 9714 | { | 
|  | 9715 | char s[16]; | 
|  | 9716 | int i, *p1, *p2; | 
|  | 9717 | for (i=0; i < 16; i++) | 
|  | 9718 | s[i] = i; | 
|  | 9719 | p1 = (int*)(s+1); | 
|  | 9720 | p2 = (int*)(s+2); | 
|  | 9721 | if (*p1 == *p2) | 
|  | 9722 | return 1; | 
|  | 9723 | return 0; | 
|  | 9724 | } | 
|  | 9725 |  | 
|  | 9726 | _ACEOF | 
|  | 9727 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 9728 | aligned_required=no | 
|  | 9729 | else | 
|  | 9730 | aligned_required=yes | 
|  | 9731 | fi | 
|  | 9732 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9733 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 9734 | fi | 
|  | 9735 |  | 
|  | 9736 |  | 
|  | 9737 | if test "$aligned_required" = yes ; then | 
|  | 9738 |  | 
|  | 9739 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h | 
|  | 9740 |  | 
|  | 9741 | fi | 
|  | 9742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aligned_required" >&5 | 
|  | 9743 | $as_echo "$aligned_required" >&6; } | 
|  | 9744 |  | 
|  | 9745 |  | 
|  | 9746 | # str, bytes and memoryview hash algorithm | 
|  | 9747 |  | 
|  | 9748 |  | 
|  | 9749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 | 
|  | 9750 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | 
|  | 9751 |  | 
|  | 9752 | # Check whether --with-hash_algorithm was given. | 
|  | 9753 | if test "${with_hash_algorithm+set}" = set; then : | 
|  | 9754 | withval=$with_hash_algorithm; | 
|  | 9755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9756 | $as_echo "$withval" >&6; } | 
|  | 9757 | case "$withval" in | 
|  | 9758 | siphash24) | 
|  | 9759 | $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h | 
|  | 9760 |  | 
|  | 9761 | ;; | 
|  | 9762 | fnv) | 
|  | 9763 | $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h | 
|  | 9764 |  | 
|  | 9765 | ;; | 
|  | 9766 | *) | 
|  | 9767 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | 
|  | 9768 | ;; | 
|  | 9769 | esac | 
|  | 9770 |  | 
|  | 9771 | else | 
|  | 9772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | 
|  | 9773 | $as_echo "default" >&6; } | 
|  | 9774 | fi | 
|  | 9775 |  | 
|  | 9776 |  | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 9777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 | 
|  | 9778 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } | 
|  | 9779 |  | 
|  | 9780 | # Check whether --with-address_sanitizer was given. | 
|  | 9781 | if test "${with_address_sanitizer+set}" = set; then : | 
|  | 9782 | withval=$with_address_sanitizer; | 
|  | 9783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9784 | $as_echo "$withval" >&6; } | 
|  | 9785 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" | 
|  | 9786 | LDFLAGS="-fsanitize=address $LDFLAGS" | 
|  | 9787 |  | 
|  | 9788 | else | 
|  | 9789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9790 | $as_echo "no" >&6; } | 
|  | 9791 | fi | 
|  | 9792 |  | 
|  | 9793 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9794 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
|  | 9796 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9797 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9798 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9799 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9800 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9801 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9803 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9804 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9805 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9806 | Use char because int might match the return type of a GCC | 
|  | 9807 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9808 | #ifdef __cplusplus | 
|  | 9809 | extern "C" | 
|  | 9810 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9811 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9812 | int | 
|  | 9813 | main () | 
|  | 9814 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9815 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9816 | ; | 
|  | 9817 | return 0; | 
|  | 9818 | } | 
|  | 9819 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9820 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9821 | ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9822 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9823 | ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9824 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9825 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9826 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9827 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9828 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
|  | 9830 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9831 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9832 | LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9833 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9834 | # SVR4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
|  | 9836 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9837 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9838 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9839 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9840 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9841 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9843 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9844 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9845 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9846 | Use char because int might match the return type of a GCC | 
|  | 9847 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9848 | #ifdef __cplusplus | 
|  | 9849 | extern "C" | 
|  | 9850 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9851 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9852 | int | 
|  | 9853 | main () | 
|  | 9854 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9855 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9856 | ; | 
|  | 9857 | return 0; | 
|  | 9858 | } | 
|  | 9859 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9860 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9862 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9863 | ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9864 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9865 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9866 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9867 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9868 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
|  | 9870 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9871 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9872 | LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9873 | fi | 
|  | 9874 | # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 9875 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
|  | 9877 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9878 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9879 | # Check whether --with-libs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9880 | if test "${with_libs+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9881 | withval=$with_libs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9883 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9884 | LIBS="$withval $LIBS" | 
|  | 9885 |  | 
|  | 9886 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9888 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9889 | fi | 
|  | 9890 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9891 |  | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 9892 |  | 
|  | 9893 |  | 
|  | 9894 |  | 
|  | 9895 |  | 
|  | 9896 |  | 
|  | 9897 |  | 
|  | 9898 |  | 
|  | 9899 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 
|  | 9900 | if test -n "$ac_tool_prefix"; then | 
|  | 9901 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
|  | 9902 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
|  | 9903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9904 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 9905 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
|  | 9906 | $as_echo_n "(cached) " >&6 | 
|  | 9907 | else | 
|  | 9908 | case $PKG_CONFIG in | 
|  | 9909 | [\\/]* | ?:[\\/]*) | 
|  | 9910 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
|  | 9911 | ;; | 
|  | 9912 | *) | 
|  | 9913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9914 | for as_dir in $PATH | 
|  | 9915 | do | 
|  | 9916 | IFS=$as_save_IFS | 
|  | 9917 | test -z "$as_dir" && as_dir=. | 
|  | 9918 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 9919 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 9920 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
|  | 9921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 9922 | break 2 | 
|  | 9923 | fi | 
|  | 9924 | done | 
|  | 9925 | done | 
|  | 9926 | IFS=$as_save_IFS | 
|  | 9927 |  | 
|  | 9928 | ;; | 
|  | 9929 | esac | 
|  | 9930 | fi | 
|  | 9931 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
|  | 9932 | if test -n "$PKG_CONFIG"; then | 
|  | 9933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
|  | 9934 | $as_echo "$PKG_CONFIG" >&6; } | 
|  | 9935 | else | 
|  | 9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9937 | $as_echo "no" >&6; } | 
|  | 9938 | fi | 
|  | 9939 |  | 
|  | 9940 |  | 
|  | 9941 | fi | 
|  | 9942 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
|  | 9943 | ac_pt_PKG_CONFIG=$PKG_CONFIG | 
|  | 9944 | # Extract the first word of "pkg-config", so it can be a program name with args. | 
|  | 9945 | set dummy pkg-config; ac_word=$2 | 
|  | 9946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9947 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 9948 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
|  | 9949 | $as_echo_n "(cached) " >&6 | 
|  | 9950 | else | 
|  | 9951 | case $ac_pt_PKG_CONFIG in | 
|  | 9952 | [\\/]* | ?:[\\/]*) | 
|  | 9953 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
|  | 9954 | ;; | 
|  | 9955 | *) | 
|  | 9956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9957 | for as_dir in $PATH | 
|  | 9958 | do | 
|  | 9959 | IFS=$as_save_IFS | 
|  | 9960 | test -z "$as_dir" && as_dir=. | 
|  | 9961 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 9962 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 9963 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
|  | 9964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 9965 | break 2 | 
|  | 9966 | fi | 
|  | 9967 | done | 
|  | 9968 | done | 
|  | 9969 | IFS=$as_save_IFS | 
|  | 9970 |  | 
|  | 9971 | ;; | 
|  | 9972 | esac | 
|  | 9973 | fi | 
|  | 9974 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
|  | 9975 | if test -n "$ac_pt_PKG_CONFIG"; then | 
|  | 9976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
|  | 9977 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
|  | 9978 | else | 
|  | 9979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9980 | $as_echo "no" >&6; } | 
|  | 9981 | fi | 
|  | 9982 |  | 
|  | 9983 | if test "x$ac_pt_PKG_CONFIG" = x; then | 
|  | 9984 | PKG_CONFIG="" | 
|  | 9985 | else | 
|  | 9986 | case $cross_compiling:$ac_tool_warned in | 
|  | 9987 | yes:) | 
|  | 9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 9989 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 9990 | ac_tool_warned=yes ;; | 
|  | 9991 | esac | 
|  | 9992 | PKG_CONFIG=$ac_pt_PKG_CONFIG | 
|  | 9993 | fi | 
|  | 9994 | else | 
|  | 9995 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
|  | 9996 | fi | 
|  | 9997 |  | 
|  | 9998 | fi | 
|  | 9999 | if test -n "$PKG_CONFIG"; then | 
|  | 10000 | _pkg_min_version=0.9.0 | 
|  | 10001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | 
|  | 10002 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | 
|  | 10003 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 
|  | 10004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10005 | $as_echo "yes" >&6; } | 
|  | 10006 | else | 
|  | 10007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10008 | $as_echo "no" >&6; } | 
|  | 10009 | PKG_CONFIG="" | 
|  | 10010 | fi | 
|  | 10011 | fi | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10012 |  | 
|  | 10013 | # Check for use of the system expat library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
|  | 10015 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10016 |  | 
|  | 10017 | # Check whether --with-system_expat was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10018 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10019 | withval=$with_system_expat; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 10020 | else | 
|  | 10021 | with_system_expat="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10022 | fi | 
|  | 10023 |  | 
|  | 10024 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
|  | 10026 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10027 |  | 
|  | 10028 | # Check for use of the system libffi library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
|  | 10030 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10031 |  | 
|  | 10032 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10033 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10034 | withval=$with_system_ffi; | 
|  | 10035 | fi | 
|  | 10036 |  | 
|  | 10037 |  | 
| Zachary Ware | 935043d | 2016-09-09 17:01:21 -0700 | [diff] [blame] | 10038 | case "$with_system_ffi" in | 
|  | 10039 | "") | 
|  | 10040 | case $ac_sys_system in | 
|  | 10041 | Darwin) | 
|  | 10042 | with_system_ffi="no" | 
|  | 10043 | ;; | 
|  | 10044 | *) | 
|  | 10045 | with_system_ffi="yes" | 
|  | 10046 | ;; | 
|  | 10047 | esac | 
|  | 10048 | ;; | 
|  | 10049 | yes|no) | 
|  | 10050 | ;; | 
|  | 10051 | *) | 
|  | 10052 | as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 | 
|  | 10053 | ;; | 
|  | 10054 | esac | 
|  | 10055 |  | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10056 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 10057 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
|  | 10058 | else | 
|  | 10059 | LIBFFI_INCLUDEDIR="" | 
|  | 10060 | fi | 
|  | 10061 |  | 
|  | 10062 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
|  | 10064 | $as_echo "$with_system_ffi" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 10065 |  | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10066 | # Check for use of the system libmpdec library | 
|  | 10067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 | 
|  | 10068 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | 
|  | 10069 |  | 
|  | 10070 | # Check whether --with-system_libmpdec was given. | 
|  | 10071 | if test "${with_system_libmpdec+set}" = set; then : | 
|  | 10072 | withval=$with_system_libmpdec; | 
|  | 10073 | else | 
|  | 10074 | with_system_libmpdec="no" | 
|  | 10075 | fi | 
|  | 10076 |  | 
|  | 10077 |  | 
|  | 10078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 | 
|  | 10079 | $as_echo "$with_system_libmpdec" >&6; } | 
|  | 10080 |  | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10081 | # Check for support for loadable sqlite extensions | 
|  | 10082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | 
|  | 10083 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | 
|  | 10084 | # Check whether --enable-loadable-sqlite-extensions was given. | 
|  | 10085 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | 
|  | 10086 | enableval=$enable_loadable_sqlite_extensions; | 
|  | 10087 | else | 
|  | 10088 | enable_loadable_sqlite_extensions="no" | 
|  | 10089 | fi | 
|  | 10090 |  | 
|  | 10091 |  | 
|  | 10092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | 
|  | 10093 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | 
|  | 10094 |  | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10095 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path | 
|  | 10096 |  | 
|  | 10097 |  | 
|  | 10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | 
|  | 10099 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | 
|  | 10100 |  | 
|  | 10101 | # Check whether --with-tcltk-includes was given. | 
|  | 10102 | if test "${with_tcltk_includes+set}" = set; then : | 
|  | 10103 | withval=$with_tcltk_includes; | 
|  | 10104 | else | 
|  | 10105 | with_tcltk_includes="default" | 
|  | 10106 | fi | 
|  | 10107 |  | 
|  | 10108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | 
|  | 10109 | $as_echo "$with_tcltk_includes" >&6; } | 
|  | 10110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | 
|  | 10111 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | 
|  | 10112 |  | 
|  | 10113 | # Check whether --with-tcltk-libs was given. | 
|  | 10114 | if test "${with_tcltk_libs+set}" = set; then : | 
|  | 10115 | withval=$with_tcltk_libs; | 
|  | 10116 | else | 
|  | 10117 | with_tcltk_libs="default" | 
|  | 10118 | fi | 
|  | 10119 |  | 
|  | 10120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | 
|  | 10121 | $as_echo "$with_tcltk_libs" >&6; } | 
|  | 10122 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | 
|  | 10123 | then | 
|  | 10124 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | 
|  | 10125 | then | 
|  | 10126 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | 
|  | 10127 | fi | 
|  | 10128 | TCLTK_INCLUDES="" | 
|  | 10129 | TCLTK_LIBS="" | 
|  | 10130 | else | 
|  | 10131 | TCLTK_INCLUDES="$with_tcltk_includes" | 
|  | 10132 | TCLTK_LIBS="$with_tcltk_libs" | 
|  | 10133 | fi | 
|  | 10134 |  | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10135 | # Check for --with-dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
|  | 10137 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10138 |  | 
|  | 10139 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10140 | if test "${with_dbmliborder+set}" = set; then : | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10141 | withval=$with_dbmliborder; | 
|  | 10142 | if test x$with_dbmliborder = xyes | 
|  | 10143 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10144 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10145 | else | 
|  | 10146 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
|  | 10147 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
|  | 10148 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10149 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10150 | fi | 
|  | 10151 | done | 
|  | 10152 | fi | 
|  | 10153 | fi | 
|  | 10154 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
|  | 10156 | $as_echo "$with_dbmliborder" >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10157 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10158 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10159 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10160 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10161 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10162 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10163 |  | 
|  | 10164 | # Templates for things AC_DEFINEd more than once. | 
|  | 10165 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10166 |  | 
|  | 10167 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10168 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
|  | 10170 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10171 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10172 | # Check whether --with-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10173 | if test "${with_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10174 | withval=$with_threads; | 
|  | 10175 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10176 |  | 
|  | 10177 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10178 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10179 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10180 | # Check whether --with-thread was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10181 | if test "${with_thread+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10182 | withval=$with_thread; with_threads=$with_thread | 
|  | 10183 | fi | 
|  | 10184 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10185 |  | 
|  | 10186 | if test -z "$with_threads" | 
|  | 10187 | then with_threads="yes" | 
|  | 10188 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
|  | 10190 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10191 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10192 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10193 | if test "$with_threads" = "no" | 
|  | 10194 | then | 
|  | 10195 | USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10196 | elif test "$ac_cv_pthread_is_default" = yes | 
|  | 10197 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10198 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10199 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10200 | # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10201 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10202 |  | 
|  | 10203 | posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10204 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10205 | elif test "$ac_cv_kpthread" = "yes" | 
|  | 10206 | then | 
|  | 10207 | CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10208 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 10209 | CXX="$CXX -Kpthread" | 
|  | 10210 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10211 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10212 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10213 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10214 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10215 | elif test "$ac_cv_kthread" = "yes" | 
|  | 10216 | then | 
|  | 10217 | CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10218 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 10219 | CXX="$CXX -Kthread" | 
|  | 10220 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10221 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10222 |  | 
|  | 10223 | posix_threads=yes | 
|  | 10224 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10225 | elif test "$ac_cv_pthread" = "yes" | 
|  | 10226 | then | 
|  | 10227 | CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10228 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 10229 | CXX="$CXX -pthread" | 
|  | 10230 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10231 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10232 |  | 
|  | 10233 | posix_threads=yes | 
|  | 10234 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10235 | else | 
|  | 10236 | if test ! -z "$with_threads" -a -d "$with_threads" | 
|  | 10237 | then LDFLAGS="$LDFLAGS -L$with_threads" | 
|  | 10238 | fi | 
|  | 10239 | if test ! -z "$withval" -a -d "$withval" | 
|  | 10240 | then LDFLAGS="$LDFLAGS -L$withval" | 
|  | 10241 | fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10242 |  | 
|  | 10243 | # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 10244 | # define _POSIX_THREADS in unistd.h. Some apparently don't | 
|  | 10245 | # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
|  | 10247 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
|  | 10248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10249 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10250 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10251 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10252 | #ifdef _POSIX_THREADS | 
|  | 10253 | yes | 
|  | 10254 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10255 |  | 
|  | 10256 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10257 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10258 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10259 | unistd_defines_pthreads=yes | 
|  | 10260 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10261 | unistd_defines_pthreads=no | 
|  | 10262 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10263 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10264 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
|  | 10266 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10267 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10268 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10269 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10270 | # Just looking for pthread_create in libpthread is not enough: | 
|  | 10271 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
|  | 10272 | # So we really have to include pthread.h, and then link. | 
|  | 10273 | _libs=$LIBS | 
|  | 10274 | LIBS="$LIBS -lpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
|  | 10276 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
|  | 10277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10278 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10279 |  | 
|  | 10280 | #include <stdio.h> | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10281 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10282 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10283 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10284 | int | 
|  | 10285 | main () | 
|  | 10286 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10287 |  | 
|  | 10288 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10289 | ; | 
|  | 10290 | return 0; | 
|  | 10291 | } | 
|  | 10292 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10293 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10294 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10296 | $as_echo "yes" >&6; } | 
|  | 10297 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10298 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10299 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10300 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10301 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10302 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10303 | LIBS=$_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10304 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10305 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10306 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10307 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10308 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10309 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10310 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10311 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
|  | 10313 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10314 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10315 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10316 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10317 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10318 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10320 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10321 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10322 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10323 | Use char because int might match the return type of a GCC | 
|  | 10324 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10325 | #ifdef __cplusplus | 
|  | 10326 | extern "C" | 
|  | 10327 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10328 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10329 | int | 
|  | 10330 | main () | 
|  | 10331 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10332 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10333 | ; | 
|  | 10334 | return 0; | 
|  | 10335 | } | 
|  | 10336 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10337 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10338 | ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10339 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10340 | ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10341 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10342 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10343 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10344 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10345 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
|  | 10347 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10348 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10349 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10350 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10351 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10352 | LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10353 | THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10354 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10355 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
|  | 10357 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10358 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10359 | $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10360 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10361 | ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10362 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10364 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10365 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10366 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10367 | Use char because int might match the return type of a GCC | 
|  | 10368 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10369 | #ifdef __cplusplus | 
|  | 10370 | extern "C" | 
|  | 10371 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10372 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10373 | int | 
|  | 10374 | main () | 
|  | 10375 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10376 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10377 | ; | 
|  | 10378 | return 0; | 
|  | 10379 | } | 
|  | 10380 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10381 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10382 | ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10383 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10384 | ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10385 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10386 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10387 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10388 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10389 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
|  | 10391 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10392 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10393 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10394 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10395 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10396 | LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10397 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10398 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10399 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
|  | 10401 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10402 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10403 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10404 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10405 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10406 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10408 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10409 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10410 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10411 | Use char because int might match the return type of a GCC | 
|  | 10412 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10413 | #ifdef __cplusplus | 
|  | 10414 | extern "C" | 
|  | 10415 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10416 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10417 | int | 
|  | 10418 | main () | 
|  | 10419 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10420 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10421 | ; | 
|  | 10422 | return 0; | 
|  | 10423 | } | 
|  | 10424 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10425 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10426 | ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10427 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10428 | ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10429 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10430 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10431 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10432 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10433 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
|  | 10435 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10436 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10437 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10438 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10439 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10440 | LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10441 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10442 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10443 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
|  | 10445 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10446 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10447 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10448 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10449 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10450 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10452 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10453 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10454 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10455 | Use char because int might match the return type of a GCC | 
|  | 10456 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10457 | #ifdef __cplusplus | 
|  | 10458 | extern "C" | 
|  | 10459 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10460 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10461 | int | 
|  | 10462 | main () | 
|  | 10463 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10464 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10465 | ; | 
|  | 10466 | return 0; | 
|  | 10467 | } | 
|  | 10468 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10469 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10470 | ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10471 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10472 | ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10473 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10474 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10475 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10476 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10477 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
|  | 10479 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10480 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10481 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10482 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10483 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10484 | LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10485 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10486 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10487 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10488 | USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10489 | fi | 
|  | 10490 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10491 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10492 | fi | 
|  | 10493 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10494 | fi | 
|  | 10495 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10496 | fi | 
|  | 10497 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10498 | fi | 
|  | 10499 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10500 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10501 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10502 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10503 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
|  | 10505 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10506 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10507 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10508 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10509 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10510 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10512 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10513 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10514 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10515 | Use char because int might match the return type of a GCC | 
|  | 10516 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10517 | #ifdef __cplusplus | 
|  | 10518 | extern "C" | 
|  | 10519 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10520 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10521 | int | 
|  | 10522 | main () | 
|  | 10523 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10524 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10525 | ; | 
|  | 10526 | return 0; | 
|  | 10527 | } | 
|  | 10528 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10529 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10530 | ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10531 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10532 | ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10533 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10534 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10535 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10536 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10537 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
|  | 10539 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10540 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10541 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10542 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10543 | LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10544 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10545 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10546 | fi | 
|  | 10547 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10548 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 10549 | if test "$posix_threads" != "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
|  | 10551 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10552 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10553 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10554 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10555 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10556 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10558 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10559 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10560 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10561 | Use char because int might match the return type of a GCC | 
|  | 10562 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10563 | #ifdef __cplusplus | 
|  | 10564 | extern "C" | 
|  | 10565 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10566 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10567 | int | 
|  | 10568 | main () | 
|  | 10569 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10570 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10571 | ; | 
|  | 10572 | return 0; | 
|  | 10573 | } | 
|  | 10574 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10575 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10576 | ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10577 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10578 | ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10579 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10580 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10581 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10582 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10583 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
|  | 10585 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10586 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10587 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10588 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10589 | LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10590 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10591 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10592 | fi | 
|  | 10593 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10594 | fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10595 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10596 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10597 | if test "$posix_threads" = "yes"; then | 
|  | 10598 | if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10599 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10600 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10601 |  | 
|  | 10602 | fi | 
|  | 10603 |  | 
|  | 10604 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
|  | 10605 | case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10606 | SunOS/5.6) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10607 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10608 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10609 | ;; | 
|  | 10610 | SunOS/5.8) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10611 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10612 |  | 
|  | 10613 | ;; | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10614 | AIX/*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10615 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 10616 |  | 
|  | 10617 | ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10618 | esac | 
|  | 10619 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
|  | 10621 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10622 | if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10623 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10624 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10625 | if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10626 | ac_cv_pthread_system_supported=no | 
|  | 10627 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10629 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10630 |  | 
|  | 10631 | #include <stdio.h> | 
|  | 10632 | #include <pthread.h> | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10633 | void *foo(void *parm) { | 
|  | 10634 | return NULL; | 
|  | 10635 | } | 
|  | 10636 | main() { | 
|  | 10637 | pthread_attr_t attr; | 
|  | 10638 | pthread_t id; | 
|  | 10639 | if (pthread_attr_init(&attr)) exit(-1); | 
|  | 10640 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
|  | 10641 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
|  | 10642 | exit(0); | 
|  | 10643 | } | 
|  | 10644 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10645 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10646 | ac_cv_pthread_system_supported=yes | 
|  | 10647 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10648 | ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10649 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10650 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 10651 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10652 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10653 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10654 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10655 | fi | 
|  | 10656 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
|  | 10658 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10659 | if test "$ac_cv_pthread_system_supported" = "yes"; then | 
|  | 10660 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10661 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10662 |  | 
|  | 10663 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10664 | for ac_func in pthread_sigmask | 
|  | 10665 | do : | 
|  | 10666 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10667 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10668 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10669 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10670 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10671 | case $ac_sys_system in | 
|  | 10672 | CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10673 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10674 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10675 |  | 
|  | 10676 | ;; | 
|  | 10677 | esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10678 | fi | 
|  | 10679 | done | 
|  | 10680 |  | 
| Christian Heimes | f77b4b2 | 2013-08-21 13:26:05 +0200 | [diff] [blame] | 10681 | for ac_func in pthread_atfork | 
|  | 10682 | do : | 
|  | 10683 | ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" | 
|  | 10684 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : | 
|  | 10685 | cat >>confdefs.h <<_ACEOF | 
|  | 10686 | #define HAVE_PTHREAD_ATFORK 1 | 
|  | 10687 | _ACEOF | 
|  | 10688 |  | 
|  | 10689 | fi | 
|  | 10690 | done | 
|  | 10691 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10692 | fi | 
|  | 10693 |  | 
|  | 10694 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10695 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10696 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
|  | 10698 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10699 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10700 | if test "${enable_ipv6+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10701 | enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10702 | no) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10704 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10705 | ipv6=no | 
|  | 10706 | ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10707 | *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10708 | $as_echo "yes" >&6; } | 
|  | 10709 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10710 |  | 
|  | 10711 | ipv6=yes | 
|  | 10712 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10713 | esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10714 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10715 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10717 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10718 | /* AF_INET6 available check */ | 
|  | 10719 | #include <sys/types.h> | 
|  | 10720 | #include <sys/socket.h> | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10721 | int | 
|  | 10722 | main () | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10723 | { | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10724 | int domain = AF_INET6; | 
|  | 10725 | ; | 
|  | 10726 | return 0; | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10727 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10728 | _ACEOF | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10729 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10730 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10732 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10733 | ipv6=yes | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10734 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10735 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10736 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10738 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10739 | ipv6=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10740 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10741 | fi | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10743 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10744 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
|  | 10746 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
|  | 10747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10748 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10749 |  | 
|  | 10750 | #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10751 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10752 | int | 
|  | 10753 | main () | 
|  | 10754 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10755 | struct sockaddr_in6 x; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10756 | x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10757 | ; | 
|  | 10758 | return 0; | 
|  | 10759 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10760 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10761 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10762 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10763 |  | 
|  | 10764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10765 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10766 | ipv6=yes | 
|  | 10767 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10768 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10769 |  | 
|  | 10770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10771 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10772 | ipv6=no | 
|  | 10773 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10774 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10776 | fi | 
|  | 10777 |  | 
|  | 10778 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10779 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10780 |  | 
|  | 10781 | fi | 
|  | 10782 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10783 | fi | 
|  | 10784 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10785 |  | 
|  | 10786 | ipv6type=unknown | 
|  | 10787 | ipv6lib=none | 
|  | 10788 | ipv6trylibc=no | 
|  | 10789 |  | 
|  | 10790 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
|  | 10792 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10793 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
|  | 10794 | do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10795 | case $i in | 
|  | 10796 | inria) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10798 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10799 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10800 | #include <netinet/in.h> | 
|  | 10801 | #ifdef IPV6_INRIA_VERSION | 
|  | 10802 | yes | 
|  | 10803 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10804 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10805 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10806 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10807 | ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10808 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10809 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10810 |  | 
|  | 10811 | ;; | 
|  | 10812 | kame) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10814 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10815 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10816 | #include <netinet/in.h> | 
|  | 10817 | #ifdef __KAME__ | 
|  | 10818 | yes | 
|  | 10819 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10820 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10822 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10823 | ipv6type=$i; | 
|  | 10824 | ipv6lib=inet6 | 
|  | 10825 | ipv6libdir=/usr/local/v6/lib | 
|  | 10826 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10827 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10828 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10829 |  | 
|  | 10830 | ;; | 
|  | 10831 | linux-glibc) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10833 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10834 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10835 | #include <features.h> | 
|  | 10836 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
|  | 10837 | yes | 
|  | 10838 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10839 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10841 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10842 | ipv6type=$i; | 
|  | 10843 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10844 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10845 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10846 |  | 
|  | 10847 | ;; | 
|  | 10848 | linux-inet6) | 
|  | 10849 | if test -d /usr/inet6; then | 
|  | 10850 | ipv6type=$i | 
|  | 10851 | ipv6lib=inet6 | 
|  | 10852 | ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10853 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10854 | fi | 
|  | 10855 | ;; | 
|  | 10856 | solaris) | 
|  | 10857 | if test -f /etc/netconfig; then | 
| Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 10858 | if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10859 | ipv6type=$i | 
|  | 10860 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10861 | fi | 
|  | 10862 | fi | 
|  | 10863 | ;; | 
|  | 10864 | toshiba) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10866 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10867 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10868 | #include <sys/param.h> | 
|  | 10869 | #ifdef _TOSHIBA_INET6 | 
|  | 10870 | yes | 
|  | 10871 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10872 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10873 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10874 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10875 | ipv6type=$i; | 
|  | 10876 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10877 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10878 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10879 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10880 |  | 
|  | 10881 | ;; | 
|  | 10882 | v6d) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10884 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10885 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10886 | #include </usr/local/v6/include/sys/v6config.h> | 
|  | 10887 | #ifdef __V6D__ | 
|  | 10888 | yes | 
|  | 10889 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10890 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10891 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10892 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10893 | ipv6type=$i; | 
|  | 10894 | ipv6lib=v6; | 
|  | 10895 | ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10896 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10897 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10898 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10899 |  | 
|  | 10900 | ;; | 
|  | 10901 | zeta) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10903 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10904 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10905 | #include <sys/param.h> | 
|  | 10906 | #ifdef _ZETA_MINAMI_INET6 | 
|  | 10907 | yes | 
|  | 10908 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10909 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10910 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10911 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10912 | ipv6type=$i; | 
|  | 10913 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10914 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10915 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10916 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10917 |  | 
|  | 10918 | ;; | 
|  | 10919 | esac | 
|  | 10920 | if test "$ipv6type" != "unknown"; then | 
|  | 10921 | break | 
|  | 10922 | fi | 
|  | 10923 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
|  | 10925 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10926 | fi | 
|  | 10927 |  | 
|  | 10928 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
|  | 10929 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
|  | 10930 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
|  | 10931 | echo "using lib$ipv6lib" | 
|  | 10932 | else | 
|  | 10933 | if test $ipv6trylibc = "yes"; then | 
|  | 10934 | echo "using libc" | 
|  | 10935 | else | 
|  | 10936 | echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
|  | 10937 | echo "You need to fetch lib$ipv6lib.a from appropriate" | 
|  | 10938 | echo 'ipv6 kit and compile beforehand.' | 
|  | 10939 | exit 1 | 
|  | 10940 | fi | 
|  | 10941 | fi | 
|  | 10942 | fi | 
|  | 10943 |  | 
| Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 10944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 | 
|  | 10945 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } | 
|  | 10946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 10947 | /* end confdefs.h.  */ | 
|  | 10948 | /* CAN_RAW_FD_FRAMES available check */ | 
|  | 10949 | #include <linux/can/raw.h> | 
|  | 10950 | int | 
|  | 10951 | main () | 
|  | 10952 | { | 
|  | 10953 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; | 
|  | 10954 | ; | 
|  | 10955 | return 0; | 
|  | 10956 | } | 
|  | 10957 | _ACEOF | 
|  | 10958 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 10959 |  | 
|  | 10960 |  | 
|  | 10961 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h | 
|  | 10962 |  | 
|  | 10963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10964 | $as_echo "yes" >&6; } | 
|  | 10965 |  | 
|  | 10966 | else | 
|  | 10967 |  | 
|  | 10968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10969 | $as_echo "no" >&6; } | 
|  | 10970 |  | 
|  | 10971 | fi | 
|  | 10972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10973 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10974 | # Check for --with-doc-strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
|  | 10976 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10977 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10978 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10979 | if test "${with_doc_strings+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10980 | withval=$with_doc_strings; | 
|  | 10981 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10982 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10983 |  | 
|  | 10984 | if test -z "$with_doc_strings" | 
|  | 10985 | then with_doc_strings="yes" | 
|  | 10986 | fi | 
|  | 10987 | if test "$with_doc_strings" != "no" | 
|  | 10988 | then | 
|  | 10989 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10990 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10991 |  | 
|  | 10992 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
|  | 10994 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10995 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10996 | # Check for Python-specific malloc support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
|  | 10998 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10999 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11000 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11001 | if test "${with_pymalloc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11002 | withval=$with_pymalloc; | 
|  | 11003 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11004 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11005 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11006 | if test -z "$with_pymalloc" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 11007 | then | 
|  | 11008 | with_pymalloc="yes" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11009 | fi | 
|  | 11010 | if test "$with_pymalloc" != "no" | 
|  | 11011 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11012 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11013 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11014 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11015 | ABIFLAGS="${ABIFLAGS}m" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11016 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
|  | 11018 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11019 |  | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11020 | # Check for Valgrind support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
|  | 11022 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11023 |  | 
|  | 11024 | # Check whether --with-valgrind was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11025 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11026 | withval=$with_valgrind; | 
|  | 11027 | else | 
|  | 11028 | with_valgrind=no | 
|  | 11029 | fi | 
|  | 11030 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
|  | 11032 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11033 | if test "$with_valgrind" != no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11034 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11035 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11036 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11037 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11038 |  | 
|  | 11039 | else | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11040 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11041 |  | 
|  | 11042 | fi | 
|  | 11043 |  | 
|  | 11044 |  | 
| Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 11045 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11046 | fi | 
|  | 11047 |  | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11048 | # Check for DTrace support | 
|  | 11049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 | 
|  | 11050 | $as_echo_n "checking for --with-dtrace... " >&6; } | 
|  | 11051 |  | 
|  | 11052 | # Check whether --with-dtrace was given. | 
|  | 11053 | if test "${with_dtrace+set}" = set; then : | 
|  | 11054 | withval=$with_dtrace; | 
|  | 11055 | else | 
|  | 11056 | with_dtrace=no | 
|  | 11057 | fi | 
|  | 11058 |  | 
|  | 11059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 | 
|  | 11060 | $as_echo "$with_dtrace" >&6; } | 
|  | 11061 |  | 
|  | 11062 |  | 
|  | 11063 |  | 
|  | 11064 |  | 
|  | 11065 |  | 
|  | 11066 | DTRACE= | 
|  | 11067 | DFLAGS= | 
|  | 11068 | DTRACE_HEADERS= | 
|  | 11069 | DTRACE_OBJS= | 
|  | 11070 |  | 
|  | 11071 | if test "$with_dtrace" = "yes" | 
|  | 11072 | then | 
|  | 11073 | # Extract the first word of "dtrace", so it can be a program name with args. | 
|  | 11074 | set dummy dtrace; ac_word=$2 | 
|  | 11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11076 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 11077 | if ${ac_cv_path_DTRACE+:} false; then : | 
|  | 11078 | $as_echo_n "(cached) " >&6 | 
|  | 11079 | else | 
|  | 11080 | case $DTRACE in | 
|  | 11081 | [\\/]* | ?:[\\/]*) | 
|  | 11082 | ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. | 
|  | 11083 | ;; | 
|  | 11084 | *) | 
|  | 11085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11086 | for as_dir in $PATH | 
|  | 11087 | do | 
|  | 11088 | IFS=$as_save_IFS | 
|  | 11089 | test -z "$as_dir" && as_dir=. | 
|  | 11090 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11091 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 11092 | ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" | 
|  | 11093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11094 | break 2 | 
|  | 11095 | fi | 
|  | 11096 | done | 
|  | 11097 | done | 
|  | 11098 | IFS=$as_save_IFS | 
|  | 11099 |  | 
|  | 11100 | test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" | 
|  | 11101 | ;; | 
|  | 11102 | esac | 
|  | 11103 | fi | 
|  | 11104 | DTRACE=$ac_cv_path_DTRACE | 
|  | 11105 | if test -n "$DTRACE"; then | 
|  | 11106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 | 
|  | 11107 | $as_echo "$DTRACE" >&6; } | 
|  | 11108 | else | 
|  | 11109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11110 | $as_echo "no" >&6; } | 
|  | 11111 | fi | 
|  | 11112 |  | 
|  | 11113 |  | 
|  | 11114 | if test "$DTRACE" = "not found"; then | 
|  | 11115 | as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 | 
|  | 11116 | fi | 
|  | 11117 |  | 
|  | 11118 | $as_echo "#define WITH_DTRACE 1" >>confdefs.h | 
|  | 11119 |  | 
|  | 11120 | DTRACE_HEADERS="Include/pydtrace_probes.h" | 
|  | 11121 |  | 
|  | 11122 | # On OS X, DTrace providers do not need to be explicitly compiled and | 
|  | 11123 | # linked into the binary. Correspondingly, dtrace(1) is missing the ELF | 
|  | 11124 | # generation flag '-G'. We check for presence of this flag, rather than | 
|  | 11125 | # hardcoding support by OS, in the interest of robustness. | 
|  | 11126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 | 
|  | 11127 | $as_echo_n "checking whether DTrace probes require linking... " >&6; } | 
|  | 11128 | if ${ac_cv_dtrace_link+:} false; then : | 
|  | 11129 | $as_echo_n "(cached) " >&6 | 
|  | 11130 | else | 
|  | 11131 | ac_cv_dtrace_link=no | 
|  | 11132 | echo 'BEGIN' > conftest.d | 
|  | 11133 | "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ | 
|  | 11134 | ac_cv_dtrace_link=yes | 
|  | 11135 |  | 
|  | 11136 | fi | 
|  | 11137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 | 
|  | 11138 | $as_echo "$ac_cv_dtrace_link" >&6; } | 
|  | 11139 | if test "$ac_cv_dtrace_link" = "yes"; then | 
|  | 11140 | DTRACE_OBJS="Python/pydtrace.o" | 
|  | 11141 | fi | 
|  | 11142 | fi | 
|  | 11143 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11144 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11145 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11146 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11147 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11148 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
|  | 11149 | # platforms, such as AIX, have dlopen(), but don't want to use it. | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11150 | for ac_func in dlopen | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11151 | do : | 
|  | 11152 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11153 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11154 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11155 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11156 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11157 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11158 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11159 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11160 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11161 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11162 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
|  | 11163 | # loading of modules. | 
|  | 11164 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
|  | 11166 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11167 | if test -z "$DYNLOADFILE" | 
|  | 11168 | then | 
|  | 11169 | case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 11170 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
|  | 11171 | if test "$ac_cv_func_dlopen" = yes | 
|  | 11172 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 11173 | else DYNLOADFILE="dynload_aix.o" | 
|  | 11174 | fi | 
|  | 11175 | ;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11176 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 11177 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
|  | 11178 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11179 | *) | 
|  | 11180 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
|  | 11181 | # out any dynamic loading | 
|  | 11182 | if test "$ac_cv_func_dlopen" = yes | 
|  | 11183 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 11184 | else DYNLOADFILE="dynload_stub.o" | 
|  | 11185 | fi | 
|  | 11186 | ;; | 
|  | 11187 | esac | 
|  | 11188 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
|  | 11190 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11191 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
|  | 11192 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11193 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11194 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11195 |  | 
|  | 11196 | fi | 
|  | 11197 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11198 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
|  | 11199 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11200 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
|  | 11202 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11203 | if test -z "$MACHDEP_OBJS" | 
|  | 11204 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11205 | MACHDEP_OBJS=$extra_machdep_objs | 
|  | 11206 | else | 
|  | 11207 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11208 | fi | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11209 | if test -z "$MACHDEP_OBJS"; then | 
|  | 11210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 11211 | $as_echo "none" >&6; } | 
|  | 11212 | else | 
|  | 11213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 | 
|  | 11214 | $as_echo "$MACHDEP_OBJS" >&6; } | 
|  | 11215 | fi | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11216 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11217 | # checks for library functions | 
| Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 11218 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | 
| Victor Stinner | daf4555 | 2013-08-28 00:53:59 +0200 | [diff] [blame] | 11219 | clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11220 | fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ | 
| Victor Stinner | 4d6a3d6 | 2014-12-21 01:16:38 +0100 | [diff] [blame] | 11221 | futimens futimes gai_strerror getentropy \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11222 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 11223 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 11224 | if_nameindex \ | 
| Antoine Pitrou | f0effe6 | 2011-11-26 01:11:02 +0100 | [diff] [blame] | 11225 | initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \ | 
|  | 11226 | memrchr mbrtowc mkdirat mkfifo \ | 
| Charles-François Natali | daafdd5 | 2011-05-29 20:07:40 +0200 | [diff] [blame] | 11227 | mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11228 | posix_fallocate posix_fadvise pread \ | 
| Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 11229 | pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 11230 | select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ | 
| Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 11231 | setgid sethostname \ | 
| Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 11232 | setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ | 
| Charles-François Natali | ea0d5fc | 2011-09-06 19:03:35 +0200 | [diff] [blame] | 11233 | sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ | 
|  | 11234 | sched_rr_get_interval \ | 
| Ross Lagerwall | bc80822 | 2011-06-25 12:13:40 +0200 | [diff] [blame] | 11235 | sigaction sigaltstack siginterrupt sigpending sigrelse \ | 
|  | 11236 | sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11237 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11238 | truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ | 
| Victor Stinner | cd777ea | 2013-04-08 22:43:44 +0200 | [diff] [blame] | 11239 | wcscoll wcsftime wcsxfrm wmemcmp writev _getpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11240 | do : | 
|  | 11241 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11242 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11243 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11244 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11245 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11246 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11247 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11248 | fi | 
|  | 11249 | done | 
|  | 11250 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11251 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11252 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> | 
|  | 11253 | #include <dirent.h> | 
|  | 11254 | " | 
|  | 11255 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | 
|  | 11256 |  | 
|  | 11257 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | 
|  | 11258 |  | 
|  | 11259 | fi | 
|  | 11260 |  | 
|  | 11261 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11262 | # For some functions, having a definition is not sufficient, since | 
|  | 11263 | # we want to take their address. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
|  | 11265 | $as_echo_n "checking for chroot... " >&6; } | 
|  | 11266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11267 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11268 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11269 | int | 
|  | 11270 | main () | 
|  | 11271 | { | 
|  | 11272 | void *x=chroot | 
|  | 11273 | ; | 
|  | 11274 | return 0; | 
|  | 11275 | } | 
|  | 11276 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11277 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11278 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11279 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11280 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11282 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11283 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11285 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11286 |  | 
|  | 11287 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
|  | 11290 | $as_echo_n "checking for link... " >&6; } | 
|  | 11291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11292 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11293 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11294 | int | 
|  | 11295 | main () | 
|  | 11296 | { | 
|  | 11297 | void *x=link | 
|  | 11298 | ; | 
|  | 11299 | return 0; | 
|  | 11300 | } | 
|  | 11301 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11302 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11303 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11304 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11305 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11307 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11308 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11310 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11311 |  | 
|  | 11312 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
|  | 11315 | $as_echo_n "checking for symlink... " >&6; } | 
|  | 11316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11317 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11318 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11319 | int | 
|  | 11320 | main () | 
|  | 11321 | { | 
|  | 11322 | void *x=symlink | 
|  | 11323 | ; | 
|  | 11324 | return 0; | 
|  | 11325 | } | 
|  | 11326 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11327 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11328 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11329 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11330 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11332 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11333 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11335 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11336 |  | 
|  | 11337 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
|  | 11340 | $as_echo_n "checking for fchdir... " >&6; } | 
|  | 11341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11342 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11343 | #include <unistd.h> | 
|  | 11344 | int | 
|  | 11345 | main () | 
|  | 11346 | { | 
|  | 11347 | void *x=fchdir | 
|  | 11348 | ; | 
|  | 11349 | return 0; | 
|  | 11350 | } | 
|  | 11351 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11352 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11353 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11354 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11355 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11357 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11358 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11360 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11361 |  | 
|  | 11362 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
|  | 11365 | $as_echo_n "checking for fsync... " >&6; } | 
|  | 11366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11367 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11368 | #include <unistd.h> | 
|  | 11369 | int | 
|  | 11370 | main () | 
|  | 11371 | { | 
|  | 11372 | void *x=fsync | 
|  | 11373 | ; | 
|  | 11374 | return 0; | 
|  | 11375 | } | 
|  | 11376 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11377 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11378 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11379 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11380 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11382 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11383 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11385 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11386 |  | 
|  | 11387 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
|  | 11390 | $as_echo_n "checking for fdatasync... " >&6; } | 
|  | 11391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11392 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11393 | #include <unistd.h> | 
|  | 11394 | int | 
|  | 11395 | main () | 
|  | 11396 | { | 
|  | 11397 | void *x=fdatasync | 
|  | 11398 | ; | 
|  | 11399 | return 0; | 
|  | 11400 | } | 
|  | 11401 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11402 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11403 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11404 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11405 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11407 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11408 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11410 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11411 |  | 
|  | 11412 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
|  | 11415 | $as_echo_n "checking for epoll... " >&6; } | 
|  | 11416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11417 | /* end confdefs.h.  */ | 
|  | 11418 | #include <sys/epoll.h> | 
|  | 11419 | int | 
|  | 11420 | main () | 
|  | 11421 | { | 
|  | 11422 | void *x=epoll_create | 
|  | 11423 | ; | 
|  | 11424 | return 0; | 
|  | 11425 | } | 
|  | 11426 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11427 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11428 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11429 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11430 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11432 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11433 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11435 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11436 |  | 
|  | 11437 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 11439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 | 
|  | 11440 | $as_echo_n "checking for epoll_create1... " >&6; } | 
|  | 11441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11442 | /* end confdefs.h.  */ | 
|  | 11443 | #include <sys/epoll.h> | 
|  | 11444 | int | 
|  | 11445 | main () | 
|  | 11446 | { | 
|  | 11447 | void *x=epoll_create1 | 
|  | 11448 | ; | 
|  | 11449 | return 0; | 
|  | 11450 | } | 
|  | 11451 | _ACEOF | 
|  | 11452 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11453 |  | 
|  | 11454 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h | 
|  | 11455 |  | 
|  | 11456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11457 | $as_echo "yes" >&6; } | 
|  | 11458 | else | 
|  | 11459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11460 | $as_echo "no" >&6; } | 
|  | 11461 |  | 
|  | 11462 | fi | 
|  | 11463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
|  | 11465 | $as_echo_n "checking for kqueue... " >&6; } | 
|  | 11466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11467 | /* end confdefs.h.  */ | 
|  | 11468 |  | 
|  | 11469 | #include <sys/types.h> | 
|  | 11470 | #include <sys/event.h> | 
|  | 11471 |  | 
|  | 11472 | int | 
|  | 11473 | main () | 
|  | 11474 | { | 
|  | 11475 | int x=kqueue() | 
|  | 11476 | ; | 
|  | 11477 | return 0; | 
|  | 11478 | } | 
|  | 11479 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11480 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11481 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11482 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11483 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11485 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11486 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11488 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11489 |  | 
|  | 11490 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 11492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 | 
|  | 11493 | $as_echo_n "checking for prlimit... " >&6; } | 
|  | 11494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11495 | /* end confdefs.h.  */ | 
|  | 11496 |  | 
|  | 11497 | #include <sys/time.h> | 
|  | 11498 | #include <sys/resource.h> | 
|  | 11499 |  | 
|  | 11500 | int | 
|  | 11501 | main () | 
|  | 11502 | { | 
|  | 11503 | void *x=prlimit | 
|  | 11504 | ; | 
|  | 11505 | return 0; | 
|  | 11506 | } | 
|  | 11507 | _ACEOF | 
|  | 11508 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11509 |  | 
|  | 11510 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h | 
|  | 11511 |  | 
|  | 11512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11513 | $as_echo "yes" >&6; } | 
|  | 11514 | else | 
|  | 11515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11516 | $as_echo "no" >&6; } | 
|  | 11517 |  | 
|  | 11518 | fi | 
|  | 11519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11520 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11521 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
|  | 11522 | # functions ctermid_r, setgroups in the library, but no prototype | 
|  | 11523 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
|  | 11524 | # address to avoid compiler warnings and potential miscompilations | 
|  | 11525 | # because of the missing prototypes. | 
|  | 11526 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
|  | 11528 | $as_echo_n "checking for ctermid_r... " >&6; } | 
|  | 11529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11530 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11531 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11532 | #include <stdio.h> | 
|  | 11533 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11534 | int | 
|  | 11535 | main () | 
|  | 11536 | { | 
|  | 11537 | void* p = ctermid_r | 
|  | 11538 | ; | 
|  | 11539 | return 0; | 
|  | 11540 | } | 
|  | 11541 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11542 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11543 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11544 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11545 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11547 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11548 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11550 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11551 |  | 
|  | 11552 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11554 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
|  | 11556 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11557 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11558 | $as_echo_n "(cached) " >&6 | 
|  | 11559 | else | 
|  | 11560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11561 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11562 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11563 | int | 
|  | 11564 | main () | 
|  | 11565 | { | 
|  | 11566 | void* p = flock | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11567 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11568 | ; | 
|  | 11569 | return 0; | 
|  | 11570 | } | 
|  | 11571 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11572 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11573 | ac_cv_flock_decl=yes | 
|  | 11574 | else | 
|  | 11575 | ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11576 |  | 
|  | 11577 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11579 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11580 | fi | 
|  | 11581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
|  | 11582 | $as_echo "$ac_cv_flock_decl" >&6; } | 
|  | 11583 | if test "x${ac_cv_flock_decl}" = xyes; then | 
|  | 11584 | for ac_func in flock | 
|  | 11585 | do : | 
|  | 11586 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11587 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11588 | cat >>confdefs.h <<_ACEOF | 
|  | 11589 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11590 | _ACEOF | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11591 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11592 | else | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11594 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11595 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11596 | $as_echo_n "(cached) " >&6 | 
|  | 11597 | else | 
|  | 11598 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11599 | LIBS="-lbsd  $LIBS" | 
|  | 11600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11601 | /* end confdefs.h.  */ | 
|  | 11602 |  | 
|  | 11603 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11604 | Use char because int might match the return type of a GCC | 
|  | 11605 | builtin and then its argument prototype would still apply.  */ | 
|  | 11606 | #ifdef __cplusplus | 
|  | 11607 | extern "C" | 
|  | 11608 | #endif | 
|  | 11609 | char flock (); | 
|  | 11610 | int | 
|  | 11611 | main () | 
|  | 11612 | { | 
|  | 11613 | return flock (); | 
|  | 11614 | ; | 
|  | 11615 | return 0; | 
|  | 11616 | } | 
|  | 11617 | _ACEOF | 
|  | 11618 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 11619 | ac_cv_lib_bsd_flock=yes | 
|  | 11620 | else | 
|  | 11621 | ac_cv_lib_bsd_flock=no | 
|  | 11622 | fi | 
|  | 11623 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11624 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11625 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11626 | fi | 
|  | 11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
|  | 11628 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11629 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11630 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11631 |  | 
|  | 11632 |  | 
|  | 11633 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
|  | 11634 |  | 
|  | 11635 |  | 
|  | 11636 | fi | 
|  | 11637 |  | 
|  | 11638 |  | 
|  | 11639 | fi | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11640 | done | 
|  | 11641 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11642 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11643 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
|  | 11645 | $as_echo_n "checking for getpagesize... " >&6; } | 
|  | 11646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11647 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11648 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11649 | #include <unistd.h> | 
|  | 11650 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11651 | int | 
|  | 11652 | main () | 
|  | 11653 | { | 
|  | 11654 | void* p = getpagesize | 
|  | 11655 | ; | 
|  | 11656 | return 0; | 
|  | 11657 | } | 
|  | 11658 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11659 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11660 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11661 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11662 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11664 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11665 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11667 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11668 |  | 
|  | 11669 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11671 |  | 
| Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
|  | 11673 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
|  | 11674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11675 | /* end confdefs.h.  */ | 
|  | 11676 |  | 
|  | 11677 | #include <stdlib.h> | 
|  | 11678 |  | 
|  | 11679 | int | 
|  | 11680 | main () | 
|  | 11681 | { | 
|  | 11682 | int res = unsetenv("DUMMY") | 
|  | 11683 | ; | 
|  | 11684 | return 0; | 
|  | 11685 | } | 
|  | 11686 | _ACEOF | 
|  | 11687 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11689 | $as_echo "no" >&6; } | 
|  | 11690 | else | 
|  | 11691 |  | 
|  | 11692 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
|  | 11693 |  | 
|  | 11694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11695 | $as_echo "yes" >&6; } | 
|  | 11696 |  | 
|  | 11697 | fi | 
|  | 11698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11699 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11700 | for ac_prog in true | 
|  | 11701 | do | 
|  | 11702 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 11703 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11705 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11706 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11707 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11708 | else | 
|  | 11709 | if test -n "$TRUE"; then | 
|  | 11710 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
|  | 11711 | else | 
|  | 11712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11713 | for as_dir in $PATH | 
|  | 11714 | do | 
|  | 11715 | IFS=$as_save_IFS | 
|  | 11716 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11717 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11718 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11719 | ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11721 | break 2 | 
|  | 11722 | fi | 
|  | 11723 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11724 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11725 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11726 |  | 
|  | 11727 | fi | 
|  | 11728 | fi | 
|  | 11729 | TRUE=$ac_cv_prog_TRUE | 
|  | 11730 | if test -n "$TRUE"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
|  | 11732 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11733 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11735 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11736 | fi | 
|  | 11737 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11738 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11739 | test -n "$TRUE" && break | 
|  | 11740 | done | 
|  | 11741 | test -n "$TRUE" || TRUE="/bin/true" | 
|  | 11742 |  | 
|  | 11743 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
|  | 11745 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11746 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11747 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11748 | else | 
|  | 11749 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11750 | LIBS="-lc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11752 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11753 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11754 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11755 | Use char because int might match the return type of a GCC | 
|  | 11756 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11757 | #ifdef __cplusplus | 
|  | 11758 | extern "C" | 
|  | 11759 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11760 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11761 | int | 
|  | 11762 | main () | 
|  | 11763 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11764 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11765 | ; | 
|  | 11766 | return 0; | 
|  | 11767 | } | 
|  | 11768 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11769 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11770 | ac_cv_lib_c_inet_aton=yes | 
|  | 11771 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11772 | ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11773 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11774 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11775 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11776 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11777 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
|  | 11779 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11780 | if test "x$ac_cv_lib_c_inet_aton" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11781 | $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11782 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
|  | 11784 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11785 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11786 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11787 | else | 
|  | 11788 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11789 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11791 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11792 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11793 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11794 | Use char because int might match the return type of a GCC | 
|  | 11795 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11796 | #ifdef __cplusplus | 
|  | 11797 | extern "C" | 
|  | 11798 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11799 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11800 | int | 
|  | 11801 | main () | 
|  | 11802 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11803 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11804 | ; | 
|  | 11805 | return 0; | 
|  | 11806 | } | 
|  | 11807 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11808 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11809 | ac_cv_lib_resolv_inet_aton=yes | 
|  | 11810 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11811 | ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11812 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11813 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11814 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11815 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11816 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
|  | 11818 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11819 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11820 | cat >>confdefs.h <<_ACEOF | 
|  | 11821 | #define HAVE_LIBRESOLV 1 | 
|  | 11822 | _ACEOF | 
|  | 11823 |  | 
|  | 11824 | LIBS="-lresolv $LIBS" | 
|  | 11825 |  | 
|  | 11826 | fi | 
|  | 11827 |  | 
|  | 11828 |  | 
|  | 11829 | fi | 
|  | 11830 |  | 
|  | 11831 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11832 | # On Tru64, chflags seems to be present, but calling it will | 
|  | 11833 | # exit Python | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
|  | 11835 | $as_echo_n "checking for chflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11836 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11837 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11838 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11839 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11840 | ac_cv_have_chflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11841 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11843 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11844 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11845 | #include <sys/stat.h> | 
|  | 11846 | #include <unistd.h> | 
|  | 11847 | int main(int argc, char*argv[]) | 
|  | 11848 | { | 
|  | 11849 | if(chflags(argv[0], 0) != 0) | 
|  | 11850 | return 1; | 
|  | 11851 | return 0; | 
|  | 11852 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11853 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11854 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11855 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11856 | ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11857 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11858 | ac_cv_have_chflags=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11859 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11860 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11861 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 11862 | fi | 
|  | 11863 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11864 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11865 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
|  | 11867 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11868 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11869 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11870 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11871 | ac_cv_have_chflags="yes" | 
|  | 11872 | else | 
|  | 11873 | ac_cv_have_chflags="no" | 
|  | 11874 | fi | 
|  | 11875 |  | 
|  | 11876 | fi | 
|  | 11877 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11878 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11879 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11880 |  | 
|  | 11881 | fi | 
|  | 11882 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
|  | 11884 | $as_echo_n "checking for lchflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11885 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11886 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11887 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11888 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11889 | ac_cv_have_lchflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11890 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11892 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11893 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11894 | #include <sys/stat.h> | 
|  | 11895 | #include <unistd.h> | 
|  | 11896 | int main(int argc, char*argv[]) | 
|  | 11897 | { | 
|  | 11898 | if(lchflags(argv[0], 0) != 0) | 
|  | 11899 | return 1; | 
|  | 11900 | return 0; | 
|  | 11901 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11902 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11903 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11904 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11905 | ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11906 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11907 | ac_cv_have_lchflags=no | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11908 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11909 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11910 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11911 | fi | 
|  | 11912 |  | 
|  | 11913 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11914 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
|  | 11916 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11917 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11918 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11919 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11920 | ac_cv_have_lchflags="yes" | 
|  | 11921 | else | 
|  | 11922 | ac_cv_have_lchflags="no" | 
|  | 11923 | fi | 
|  | 11924 |  | 
|  | 11925 | fi | 
|  | 11926 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11927 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11928 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11929 |  | 
|  | 11930 | fi | 
|  | 11931 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11932 | case $ac_sys_system/$ac_sys_release in | 
|  | 11933 | Darwin/*) | 
|  | 11934 | _CUR_CFLAGS="${CFLAGS}" | 
|  | 11935 | _CUR_LDFLAGS="${LDFLAGS}" | 
|  | 11936 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
|  | 11937 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
|  | 11938 | ;; | 
|  | 11939 | esac | 
|  | 11940 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
|  | 11942 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11943 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11944 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11945 | else | 
|  | 11946 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11947 | LIBS="-lz  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11949 | /* end confdefs.h.  */ | 
|  | 11950 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11951 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11952 | Use char because int might match the return type of a GCC | 
|  | 11953 | builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11954 | #ifdef __cplusplus | 
|  | 11955 | extern "C" | 
|  | 11956 | #endif | 
|  | 11957 | char inflateCopy (); | 
|  | 11958 | int | 
|  | 11959 | main () | 
|  | 11960 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11961 | return inflateCopy (); | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11962 | ; | 
|  | 11963 | return 0; | 
|  | 11964 | } | 
|  | 11965 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11966 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11967 | ac_cv_lib_z_inflateCopy=yes | 
|  | 11968 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11969 | ac_cv_lib_z_inflateCopy=no | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11970 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11971 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11972 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11973 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11974 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
|  | 11976 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11977 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11978 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11979 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11980 |  | 
|  | 11981 | fi | 
|  | 11982 |  | 
|  | 11983 |  | 
|  | 11984 | case $ac_sys_system/$ac_sys_release in | 
|  | 11985 | Darwin/*) | 
|  | 11986 | CFLAGS="${_CUR_CFLAGS}" | 
|  | 11987 | LDFLAGS="${_CUR_LDFLAGS}" | 
|  | 11988 | ;; | 
|  | 11989 | esac | 
|  | 11990 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
|  | 11992 | $as_echo_n "checking for hstrerror... " >&6; } | 
|  | 11993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11994 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11995 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11996 | #include <netdb.h> | 
|  | 11997 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11998 | int | 
|  | 11999 | main () | 
|  | 12000 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12001 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12002 | ; | 
|  | 12003 | return 0; | 
|  | 12004 | } | 
|  | 12005 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12006 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12007 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12008 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12009 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12011 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12012 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12014 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12015 |  | 
|  | 12016 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12017 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12018 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12019 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
|  | 12021 | $as_echo_n "checking for inet_aton... " >&6; } | 
|  | 12022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12023 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12024 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12025 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12026 | #include <sys/socket.h> | 
|  | 12027 | #include <netinet/in.h> | 
|  | 12028 | #include <arpa/inet.h> | 
|  | 12029 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12030 | int | 
|  | 12031 | main () | 
|  | 12032 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12033 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12034 | ; | 
|  | 12035 | return 0; | 
|  | 12036 | } | 
|  | 12037 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12038 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12039 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12040 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12041 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12043 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12044 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12046 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12047 |  | 
|  | 12048 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12049 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12050 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12051 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
|  | 12053 | $as_echo_n "checking for inet_pton... " >&6; } | 
|  | 12054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12055 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12056 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12057 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12058 | #include <sys/socket.h> | 
|  | 12059 | #include <netinet/in.h> | 
|  | 12060 | #include <arpa/inet.h> | 
|  | 12061 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12062 | int | 
|  | 12063 | main () | 
|  | 12064 | { | 
|  | 12065 | void* p = inet_pton | 
|  | 12066 | ; | 
|  | 12067 | return 0; | 
|  | 12068 | } | 
|  | 12069 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12070 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12071 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12072 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12073 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12075 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12076 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12078 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12079 |  | 
|  | 12080 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12082 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12083 | # On some systems, setgroups is in unistd.h, on others, in grp.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
|  | 12085 | $as_echo_n "checking for setgroups... " >&6; } | 
|  | 12086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12087 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12088 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12089 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12090 | #ifdef HAVE_GRP_H | 
|  | 12091 | #include <grp.h> | 
|  | 12092 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12093 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12094 | int | 
|  | 12095 | main () | 
|  | 12096 | { | 
|  | 12097 | void* p = setgroups | 
|  | 12098 | ; | 
|  | 12099 | return 0; | 
|  | 12100 | } | 
|  | 12101 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12102 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12103 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12104 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12105 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12107 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12108 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12110 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12111 |  | 
|  | 12112 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12114 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12115 | # check for openpty and forkpty | 
|  | 12116 |  | 
|  | 12117 | for ac_func in openpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12118 | do : | 
|  | 12119 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12120 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12121 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12122 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12123 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12124 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12125 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
|  | 12127 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12128 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12129 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12130 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12131 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12132 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12134 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12135 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12136 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12137 | Use char because int might match the return type of a GCC | 
|  | 12138 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12139 | #ifdef __cplusplus | 
|  | 12140 | extern "C" | 
|  | 12141 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12142 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12143 | int | 
|  | 12144 | main () | 
|  | 12145 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12146 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12147 | ; | 
|  | 12148 | return 0; | 
|  | 12149 | } | 
|  | 12150 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12151 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12152 | ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12153 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12154 | ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12155 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12156 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12157 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12158 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12159 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
|  | 12161 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12162 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12163 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12164 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12165 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
|  | 12167 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12168 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12169 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12170 | else | 
|  | 12171 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12172 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12174 | /* end confdefs.h.  */ | 
|  | 12175 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12176 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12177 | Use char because int might match the return type of a GCC | 
|  | 12178 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12179 | #ifdef __cplusplus | 
|  | 12180 | extern "C" | 
|  | 12181 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12182 | char openpty (); | 
|  | 12183 | int | 
|  | 12184 | main () | 
|  | 12185 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12186 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12187 | ; | 
|  | 12188 | return 0; | 
|  | 12189 | } | 
|  | 12190 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12191 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12192 | ac_cv_lib_bsd_openpty=yes | 
|  | 12193 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12194 | ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12195 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12196 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12197 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12198 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12199 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
|  | 12201 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12202 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12203 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12204 | LIBS="$LIBS -lbsd" | 
|  | 12205 | fi | 
|  | 12206 |  | 
|  | 12207 |  | 
|  | 12208 | fi | 
|  | 12209 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12210 |  | 
|  | 12211 | fi | 
|  | 12212 | done | 
|  | 12213 |  | 
|  | 12214 | for ac_func in forkpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12215 | do : | 
|  | 12216 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12217 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12218 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12219 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12220 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12221 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12222 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
|  | 12224 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12225 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12226 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12227 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12228 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12229 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12231 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12232 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12233 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12234 | Use char because int might match the return type of a GCC | 
|  | 12235 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12236 | #ifdef __cplusplus | 
|  | 12237 | extern "C" | 
|  | 12238 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12239 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12240 | int | 
|  | 12241 | main () | 
|  | 12242 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12243 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12244 | ; | 
|  | 12245 | return 0; | 
|  | 12246 | } | 
|  | 12247 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12248 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12249 | ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12250 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12251 | ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12252 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12253 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12254 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12255 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12256 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
|  | 12258 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12259 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12260 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12261 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12262 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
|  | 12264 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12265 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12266 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12267 | else | 
|  | 12268 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12269 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12271 | /* end confdefs.h.  */ | 
|  | 12272 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12273 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12274 | Use char because int might match the return type of a GCC | 
|  | 12275 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12276 | #ifdef __cplusplus | 
|  | 12277 | extern "C" | 
|  | 12278 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12279 | char forkpty (); | 
|  | 12280 | int | 
|  | 12281 | main () | 
|  | 12282 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12283 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12284 | ; | 
|  | 12285 | return 0; | 
|  | 12286 | } | 
|  | 12287 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12288 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12289 | ac_cv_lib_bsd_forkpty=yes | 
|  | 12290 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12291 | ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12292 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12293 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12294 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12295 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12296 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
|  | 12298 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12299 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12300 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12301 | LIBS="$LIBS -lbsd" | 
|  | 12302 | fi | 
|  | 12303 |  | 
|  | 12304 |  | 
|  | 12305 | fi | 
|  | 12306 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12307 |  | 
|  | 12308 | fi | 
|  | 12309 | done | 
|  | 12310 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12311 |  | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12312 | # Stuff for expat. | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12313 | for ac_func in memmove | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12314 | do : | 
|  | 12315 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12316 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12317 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12318 | #define HAVE_MEMMOVE 1 | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12319 | _ACEOF | 
|  | 12320 |  | 
|  | 12321 | fi | 
|  | 12322 | done | 
|  | 12323 |  | 
|  | 12324 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12325 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12326 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12327 | do : | 
|  | 12328 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 12329 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12330 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12331 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12332 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12333 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12334 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12335 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12336 | done | 
|  | 12337 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12338 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12339 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12340 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12341 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12342 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12343 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12344 | case " $LIBOBJS " in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12345 | *" dup2.$ac_objext "* ) ;; | 
|  | 12346 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12347 | ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12348 | esac | 
|  | 12349 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12350 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12351 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12352 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12353 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12354 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
|  | 12355 |  | 
|  | 12356 | else | 
|  | 12357 | case " $LIBOBJS " in | 
|  | 12358 | *" strdup.$ac_objext "* ) ;; | 
|  | 12359 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
|  | 12360 | ;; | 
|  | 12361 | esac | 
|  | 12362 |  | 
|  | 12363 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12364 |  | 
|  | 12365 |  | 
|  | 12366 | for ac_func in getpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12367 | do : | 
|  | 12368 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12369 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12370 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12371 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12372 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12374 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12375 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12376 | int | 
|  | 12377 | main () | 
|  | 12378 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12379 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12380 | ; | 
|  | 12381 | return 0; | 
|  | 12382 | } | 
|  | 12383 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12384 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12385 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12386 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12387 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12388 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12390 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12391 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12392 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12393 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12394 | for ac_func in setpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12395 | do : | 
|  | 12396 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12397 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12398 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12399 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12400 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12402 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12403 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12404 | int | 
|  | 12405 | main () | 
|  | 12406 | { | 
|  | 12407 | setpgrp(0,0); | 
|  | 12408 | ; | 
|  | 12409 | return 0; | 
|  | 12410 | } | 
|  | 12411 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12412 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12413 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12414 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12415 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12416 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12418 |  | 
|  | 12419 | fi | 
|  | 12420 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12421 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12422 | for ac_func in gettimeofday | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12423 | do : | 
|  | 12424 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12425 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12426 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12427 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12428 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12430 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12431 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12432 | int | 
|  | 12433 | main () | 
|  | 12434 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12435 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12436 | ; | 
|  | 12437 | return 0; | 
|  | 12438 | } | 
|  | 12439 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12440 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12441 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12442 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12443 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12444 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12445 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12446 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12447 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12449 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12450 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12451 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12452 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12453 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12454 | for ac_func in clock_gettime | 
|  | 12455 | do : | 
|  | 12456 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | 
|  | 12457 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | 
|  | 12458 | cat >>confdefs.h <<_ACEOF | 
|  | 12459 | #define HAVE_CLOCK_GETTIME 1 | 
|  | 12460 | _ACEOF | 
|  | 12461 |  | 
|  | 12462 | else | 
|  | 12463 |  | 
|  | 12464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | 
|  | 12465 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | 
|  | 12466 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | 
|  | 12467 | $as_echo_n "(cached) " >&6 | 
|  | 12468 | else | 
|  | 12469 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12470 | LIBS="-lrt  $LIBS" | 
|  | 12471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12472 | /* end confdefs.h.  */ | 
|  | 12473 |  | 
|  | 12474 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12475 | Use char because int might match the return type of a GCC | 
|  | 12476 | builtin and then its argument prototype would still apply.  */ | 
|  | 12477 | #ifdef __cplusplus | 
|  | 12478 | extern "C" | 
|  | 12479 | #endif | 
|  | 12480 | char clock_gettime (); | 
|  | 12481 | int | 
|  | 12482 | main () | 
|  | 12483 | { | 
|  | 12484 | return clock_gettime (); | 
|  | 12485 | ; | 
|  | 12486 | return 0; | 
|  | 12487 | } | 
|  | 12488 | _ACEOF | 
|  | 12489 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 12490 | ac_cv_lib_rt_clock_gettime=yes | 
|  | 12491 | else | 
|  | 12492 | ac_cv_lib_rt_clock_gettime=no | 
|  | 12493 | fi | 
|  | 12494 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12495 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12496 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12497 | fi | 
|  | 12498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | 
|  | 12499 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | 
|  | 12500 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | 
|  | 12501 |  | 
| Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 12502 | LIBS="$LIBS -lrt" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12503 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | 
|  | 12504 |  | 
|  | 12505 |  | 
|  | 12506 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h | 
|  | 12507 |  | 
|  | 12508 |  | 
|  | 12509 | fi | 
|  | 12510 |  | 
|  | 12511 |  | 
|  | 12512 | fi | 
|  | 12513 | done | 
|  | 12514 |  | 
|  | 12515 |  | 
|  | 12516 | for ac_func in clock_getres | 
|  | 12517 | do : | 
|  | 12518 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | 
|  | 12519 | if test "x$ac_cv_func_clock_getres" = xyes; then : | 
|  | 12520 | cat >>confdefs.h <<_ACEOF | 
|  | 12521 | #define HAVE_CLOCK_GETRES 1 | 
|  | 12522 | _ACEOF | 
|  | 12523 |  | 
|  | 12524 | else | 
|  | 12525 |  | 
|  | 12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 | 
|  | 12527 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | 
|  | 12528 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | 
|  | 12529 | $as_echo_n "(cached) " >&6 | 
|  | 12530 | else | 
|  | 12531 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12532 | LIBS="-lrt  $LIBS" | 
|  | 12533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12534 | /* end confdefs.h.  */ | 
|  | 12535 |  | 
|  | 12536 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12537 | Use char because int might match the return type of a GCC | 
|  | 12538 | builtin and then its argument prototype would still apply.  */ | 
|  | 12539 | #ifdef __cplusplus | 
|  | 12540 | extern "C" | 
|  | 12541 | #endif | 
|  | 12542 | char clock_getres (); | 
|  | 12543 | int | 
|  | 12544 | main () | 
|  | 12545 | { | 
|  | 12546 | return clock_getres (); | 
|  | 12547 | ; | 
|  | 12548 | return 0; | 
|  | 12549 | } | 
|  | 12550 | _ACEOF | 
|  | 12551 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 12552 | ac_cv_lib_rt_clock_getres=yes | 
|  | 12553 | else | 
|  | 12554 | ac_cv_lib_rt_clock_getres=no | 
|  | 12555 | fi | 
|  | 12556 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12557 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12558 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12559 | fi | 
|  | 12560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 | 
|  | 12561 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | 
|  | 12562 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | 
|  | 12563 |  | 
|  | 12564 | $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h | 
|  | 12565 |  | 
|  | 12566 |  | 
|  | 12567 | fi | 
|  | 12568 |  | 
|  | 12569 |  | 
|  | 12570 | fi | 
|  | 12571 | done | 
|  | 12572 |  | 
|  | 12573 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
|  | 12575 | $as_echo_n "checking for major... " >&6; } | 
|  | 12576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12577 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12578 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12579 | #if defined(MAJOR_IN_MKDEV) | 
|  | 12580 | #include <sys/mkdev.h> | 
|  | 12581 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 12582 | #include <sys/sysmacros.h> | 
|  | 12583 | #else | 
|  | 12584 | #include <sys/types.h> | 
|  | 12585 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12586 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12587 | int | 
|  | 12588 | main () | 
|  | 12589 | { | 
|  | 12590 |  | 
|  | 12591 | makedev(major(0),minor(0)); | 
|  | 12592 |  | 
|  | 12593 | ; | 
|  | 12594 | return 0; | 
|  | 12595 | } | 
|  | 12596 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12597 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12598 |  | 
|  | 12599 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12600 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12601 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 12603 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12604 |  | 
|  | 12605 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12606 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12608 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12609 |  | 
|  | 12610 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12611 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12612 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12613 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12614 | # On OSF/1 V5.1, getaddrinfo is available, but a define | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12615 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
|  | 12617 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
|  | 12618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12619 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12620 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12621 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12622 | #include <sys/socket.h> | 
|  | 12623 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12624 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12625 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12626 | int | 
|  | 12627 | main () | 
|  | 12628 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12629 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12630 | ; | 
|  | 12631 | return 0; | 
|  | 12632 | } | 
|  | 12633 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12634 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12635 | have_getaddrinfo=yes | 
|  | 12636 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12637 | have_getaddrinfo=no | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12638 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12639 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12640 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
|  | 12642 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12643 | if test $have_getaddrinfo = yes | 
|  | 12644 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
|  | 12646 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12647 | if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12648 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12649 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12650 | if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12651 |  | 
|  | 12652 | if test "${enable_ipv6+set}" = set; then | 
|  | 12653 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | 
|  | 12654 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12655 | ac_cv_buggy_getaddrinfo=yes | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12656 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12657 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12659 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12660 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 12661 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12662 | #include <sys/types.h> | 
|  | 12663 | #include <netdb.h> | 
|  | 12664 | #include <string.h> | 
|  | 12665 | #include <sys/socket.h> | 
|  | 12666 | #include <netinet/in.h> | 
|  | 12667 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12668 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12669 | { | 
|  | 12670 | int passive, gaierr, inet4 = 0, inet6 = 0; | 
|  | 12671 | struct addrinfo hints, *ai, *aitop; | 
|  | 12672 | char straddr[INET6_ADDRSTRLEN], strport[16]; | 
|  | 12673 |  | 
|  | 12674 | for (passive = 0; passive <= 1; passive++) { | 
|  | 12675 | memset(&hints, 0, sizeof(hints)); | 
|  | 12676 | hints.ai_family = AF_UNSPEC; | 
|  | 12677 | hints.ai_flags = passive ? AI_PASSIVE : 0; | 
|  | 12678 | hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 12679 | hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12680 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
|  | 12681 | (void)gai_strerror(gaierr); | 
|  | 12682 | goto bad; | 
|  | 12683 | } | 
|  | 12684 | for (ai = aitop; ai; ai = ai->ai_next) { | 
|  | 12685 | if (ai->ai_addr == NULL || | 
|  | 12686 | ai->ai_addrlen == 0 || | 
|  | 12687 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
|  | 12688 | straddr, sizeof(straddr), strport, sizeof(strport), | 
|  | 12689 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
|  | 12690 | goto bad; | 
|  | 12691 | } | 
|  | 12692 | switch (ai->ai_family) { | 
|  | 12693 | case AF_INET: | 
|  | 12694 | if (strcmp(strport, "54321") != 0) { | 
|  | 12695 | goto bad; | 
|  | 12696 | } | 
|  | 12697 | if (passive) { | 
|  | 12698 | if (strcmp(straddr, "0.0.0.0") != 0) { | 
|  | 12699 | goto bad; | 
|  | 12700 | } | 
|  | 12701 | } else { | 
|  | 12702 | if (strcmp(straddr, "127.0.0.1") != 0) { | 
|  | 12703 | goto bad; | 
|  | 12704 | } | 
|  | 12705 | } | 
|  | 12706 | inet4++; | 
|  | 12707 | break; | 
|  | 12708 | case AF_INET6: | 
|  | 12709 | if (strcmp(strport, "54321") != 0) { | 
|  | 12710 | goto bad; | 
|  | 12711 | } | 
|  | 12712 | if (passive) { | 
|  | 12713 | if (strcmp(straddr, "::") != 0) { | 
|  | 12714 | goto bad; | 
|  | 12715 | } | 
|  | 12716 | } else { | 
|  | 12717 | if (strcmp(straddr, "::1") != 0) { | 
|  | 12718 | goto bad; | 
|  | 12719 | } | 
|  | 12720 | } | 
|  | 12721 | inet6++; | 
|  | 12722 | break; | 
|  | 12723 | case AF_UNSPEC: | 
|  | 12724 | goto bad; | 
|  | 12725 | break; | 
|  | 12726 | default: | 
|  | 12727 | /* another family support? */ | 
|  | 12728 | break; | 
|  | 12729 | } | 
|  | 12730 | } | 
| Benjamin Peterson | 01c340d | 2016-09-06 15:54:24 -0700 | [diff] [blame] | 12731 | freeaddrinfo(aitop); | 
|  | 12732 | aitop = NULL; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12733 | } | 
|  | 12734 |  | 
|  | 12735 | if (!(inet4 == 0 || inet4 == 2)) | 
|  | 12736 | goto bad; | 
|  | 12737 | if (!(inet6 == 0 || inet6 == 2)) | 
|  | 12738 | goto bad; | 
|  | 12739 |  | 
|  | 12740 | if (aitop) | 
|  | 12741 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12742 | return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12743 |  | 
|  | 12744 | bad: | 
|  | 12745 | if (aitop) | 
|  | 12746 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12747 | return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12748 | } | 
|  | 12749 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12750 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12751 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12752 | ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12753 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12754 | ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12755 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12756 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12757 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12758 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12759 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12760 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12761 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12762 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12763 |  | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
|  | 12765 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
|  | 12766 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12767 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12768 | then | 
|  | 12769 | if test $ipv6 = yes | 
|  | 12770 | then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12771 | echo 'Fatal: You must get working getaddrinfo() function.' | 
|  | 12772 | echo '       or you can specify "--disable-ipv6"'. | 
|  | 12773 | exit 1 | 
|  | 12774 | fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12775 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12776 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12777 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12778 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12779 | fi | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12780 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12781 | for ac_func in getnameinfo | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12782 | do : | 
|  | 12783 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12784 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12785 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12786 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12787 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12788 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12789 | fi | 
|  | 12790 | done | 
|  | 12791 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12792 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12793 | # checks for structures | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
|  | 12795 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12796 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12797 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12798 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12800 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12801 | #include <sys/types.h> | 
|  | 12802 | #include <sys/time.h> | 
|  | 12803 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12804 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12805 | int | 
|  | 12806 | main () | 
|  | 12807 | { | 
|  | 12808 | if ((struct tm *) 0) | 
|  | 12809 | return 0; | 
|  | 12810 | ; | 
|  | 12811 | return 0; | 
|  | 12812 | } | 
|  | 12813 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12814 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12815 | ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12816 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12817 | ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12818 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12820 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
|  | 12822 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12823 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12824 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12825 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12826 |  | 
|  | 12827 | fi | 
|  | 12828 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|  | 12830 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12831 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12832 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12833 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12835 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12836 | #include <sys/types.h> | 
|  | 12837 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12838 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12839 | int | 
|  | 12840 | main () | 
|  | 12841 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12842 | struct tm tm; | 
|  | 12843 | int *p = &tm.tm_sec; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12844 | return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12845 | ; | 
|  | 12846 | return 0; | 
|  | 12847 | } | 
|  | 12848 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12849 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12850 | ac_cv_struct_tm=time.h | 
|  | 12851 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12852 | ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12853 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12855 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
|  | 12857 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12858 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12859 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12860 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12861 |  | 
|  | 12862 | fi | 
|  | 12863 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12864 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12865 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12866 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12867 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12868 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12869 |  | 
|  | 12870 | cat >>confdefs.h <<_ACEOF | 
|  | 12871 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 12872 | _ACEOF | 
|  | 12873 |  | 
|  | 12874 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12875 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12876 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12877 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 12878 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12879 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12880 |  | 
|  | 12881 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12882 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 12883 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12884 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12885 | ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12886 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12887 | ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12888 | fi | 
|  | 12889 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12890 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12891 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12892 | _ACEOF | 
|  | 12893 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 12895 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12896 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12897 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12898 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12900 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12901 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12902 | #if !HAVE_DECL_TZNAME | 
|  | 12903 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12904 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12905 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12906 | int | 
|  | 12907 | main () | 
|  | 12908 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12909 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12910 | ; | 
|  | 12911 | return 0; | 
|  | 12912 | } | 
|  | 12913 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12914 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12915 | ac_cv_var_tzname=yes | 
|  | 12916 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12917 | ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12918 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12919 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12920 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12921 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 12923 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12924 | if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12925 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12926 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12927 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12928 | fi | 
|  | 12929 | fi | 
|  | 12930 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12931 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12932 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12933 |  | 
|  | 12934 | cat >>confdefs.h <<_ACEOF | 
|  | 12935 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
|  | 12936 | _ACEOF | 
|  | 12937 |  | 
|  | 12938 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12939 | fi | 
|  | 12940 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12941 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12942 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12943 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12944 | cat >>confdefs.h <<_ACEOF | 
|  | 12945 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
|  | 12946 | _ACEOF | 
|  | 12947 |  | 
|  | 12948 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12949 | fi | 
|  | 12950 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12951 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12952 | if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : | 
| Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 12953 |  | 
|  | 12954 | cat >>confdefs.h <<_ACEOF | 
|  | 12955 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
|  | 12956 | _ACEOF | 
|  | 12957 |  | 
|  | 12958 |  | 
|  | 12959 | fi | 
|  | 12960 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12961 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12962 | if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 12963 |  | 
|  | 12964 | cat >>confdefs.h <<_ACEOF | 
|  | 12965 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
|  | 12966 | _ACEOF | 
|  | 12967 |  | 
|  | 12968 |  | 
|  | 12969 | fi | 
|  | 12970 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12971 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12972 | if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 12973 |  | 
|  | 12974 | cat >>confdefs.h <<_ACEOF | 
|  | 12975 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
|  | 12976 | _ACEOF | 
|  | 12977 |  | 
|  | 12978 |  | 
|  | 12979 | fi | 
|  | 12980 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12981 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12982 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12983 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12984 | cat >>confdefs.h <<_ACEOF | 
|  | 12985 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
|  | 12986 | _ACEOF | 
|  | 12987 |  | 
|  | 12988 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12989 | fi | 
|  | 12990 |  | 
| Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 12991 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " | 
|  | 12992 | #include <sys/types.h> | 
|  | 12993 | #include <pwd.h> | 
|  | 12994 |  | 
|  | 12995 | " | 
|  | 12996 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | 
|  | 12997 |  | 
|  | 12998 | cat >>confdefs.h <<_ACEOF | 
|  | 12999 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | 
|  | 13000 | _ACEOF | 
|  | 13001 |  | 
|  | 13002 |  | 
|  | 13003 | fi | 
|  | 13004 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " | 
|  | 13005 | #include <sys/types.h> | 
|  | 13006 | #include <pwd.h> | 
|  | 13007 |  | 
|  | 13008 | " | 
|  | 13009 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : | 
|  | 13010 |  | 
|  | 13011 | cat >>confdefs.h <<_ACEOF | 
|  | 13012 | #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 | 
|  | 13013 | _ACEOF | 
|  | 13014 |  | 
|  | 13015 |  | 
|  | 13016 | fi | 
|  | 13017 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13018 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
|  | 13020 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13021 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13022 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13023 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13024 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13026 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13027 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13028 | int | 
|  | 13029 | main () | 
|  | 13030 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13031 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13032 | ; | 
|  | 13033 | return 0; | 
|  | 13034 | } | 
|  | 13035 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13036 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13037 | ac_cv_header_time_altzone=yes | 
|  | 13038 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13039 | ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13040 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13042 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13043 | fi | 
|  | 13044 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
|  | 13046 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13047 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13048 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13049 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13050 |  | 
|  | 13051 | fi | 
|  | 13052 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13053 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
|  | 13055 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
|  | 13056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13057 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13058 |  | 
|  | 13059 | #include <sys/types.h> | 
|  | 13060 | #include <sys/select.h> | 
|  | 13061 | #include <sys/time.h> | 
|  | 13062 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13063 | int | 
|  | 13064 | main () | 
|  | 13065 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13066 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13067 | ; | 
|  | 13068 | return 0; | 
|  | 13069 | } | 
|  | 13070 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13071 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13072 |  | 
|  | 13073 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13074 | $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13075 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13076 | was_it_defined=yes | 
|  | 13077 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13078 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 13081 | $as_echo "$was_it_defined" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13082 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
|  | 13084 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13085 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13086 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13087 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13089 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13090 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13091 | int | 
|  | 13092 | main () | 
|  | 13093 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13094 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13095 | ; | 
|  | 13096 | return 0; | 
|  | 13097 | } | 
|  | 13098 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13099 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13100 | ac_cv_struct_addrinfo=yes | 
|  | 13101 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13102 | ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13103 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13105 | fi | 
|  | 13106 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
|  | 13108 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13109 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13110 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13111 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13112 |  | 
|  | 13113 | fi | 
|  | 13114 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
|  | 13116 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13117 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13118 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13119 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13121 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13122 |  | 
|  | 13123 | #		include <sys/types.h> | 
|  | 13124 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13125 | int | 
|  | 13126 | main () | 
|  | 13127 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13128 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13129 | ; | 
|  | 13130 | return 0; | 
|  | 13131 | } | 
|  | 13132 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13133 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13134 | ac_cv_struct_sockaddr_storage=yes | 
|  | 13135 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13136 | ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13137 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13139 | fi | 
|  | 13140 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
|  | 13142 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13143 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13144 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13145 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13146 |  | 
|  | 13147 | fi | 
|  | 13148 |  | 
| Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 | 
|  | 13150 | $as_echo_n "checking for sockaddr_alg... " >&6; } | 
|  | 13151 | if ${ac_cv_struct_sockaddr_alg+:} false; then : | 
|  | 13152 | $as_echo_n "(cached) " >&6 | 
|  | 13153 | else | 
|  | 13154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13155 | /* end confdefs.h.  */ | 
|  | 13156 |  | 
|  | 13157 | #		include <sys/types.h> | 
|  | 13158 | #		include <sys/socket.h> | 
|  | 13159 | #		include <linux/if_alg.h> | 
|  | 13160 | int | 
|  | 13161 | main () | 
|  | 13162 | { | 
|  | 13163 | struct sockaddr_alg s | 
|  | 13164 | ; | 
|  | 13165 | return 0; | 
|  | 13166 | } | 
|  | 13167 | _ACEOF | 
|  | 13168 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13169 | ac_cv_struct_sockaddr_alg=yes | 
|  | 13170 | else | 
|  | 13171 | ac_cv_struct_sockaddr_alg=no | 
|  | 13172 | fi | 
|  | 13173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13174 | fi | 
|  | 13175 |  | 
|  | 13176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 | 
|  | 13177 | $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } | 
|  | 13178 | if test $ac_cv_struct_sockaddr_alg = yes; then | 
|  | 13179 |  | 
|  | 13180 | $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h | 
|  | 13181 |  | 
|  | 13182 | fi | 
|  | 13183 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13184 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13185 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
|  | 13187 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13188 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13189 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13190 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13192 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13193 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13194 | int | 
|  | 13195 | main () | 
|  | 13196 | { | 
|  | 13197 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13198 | test_array [0] = 0; | 
|  | 13199 | return test_array [0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13200 |  | 
|  | 13201 | ; | 
|  | 13202 | return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13203 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13204 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13205 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13206 | ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13207 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13208 | ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13209 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13211 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
|  | 13213 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13214 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13215 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13216 |  | 
|  | 13217 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13218 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
|  | 13220 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13221 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13222 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13223 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13225 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13226 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13227 | int | 
|  | 13228 | main () | 
|  | 13229 | { | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13230 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13231 | #ifndef __cplusplus | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13232 | /* Ultrix mips cc rejects this sort of thing.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13233 | typedef int charset[2]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13234 | const charset cs = { 0, 0 }; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13235 | /* SunOS 4.1.1 cc rejects this.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13236 | char const *const *pcpcc; | 
|  | 13237 | char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13238 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|  | 13239 | struct point {int x, y;}; | 
|  | 13240 | static struct point const zero = {0,0}; | 
|  | 13241 | /* AIX XL C 1.02.0.0 rejects this. | 
|  | 13242 | It does not let you subtract one const X* pointer from another in | 
|  | 13243 | an arm of an if-expression whose if-part is not a constant | 
|  | 13244 | expression */ | 
|  | 13245 | const char *g = "string"; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13246 | pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13247 | /* HPUX 7.0 cc rejects these. */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13248 | ++pcpcc; | 
|  | 13249 | ppc = (char**) pcpcc; | 
|  | 13250 | pcpcc = (char const *const *) ppc; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13251 | { /* SCO 3.2v4 cc rejects this sort of thing.  */ | 
|  | 13252 | char tx; | 
|  | 13253 | char *t = &tx; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13254 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13255 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13256 | *t++ = 0; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13257 | if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13258 | } | 
|  | 13259 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|  | 13260 | int x[] = {25, 17}; | 
|  | 13261 | const int *foo = &x[0]; | 
|  | 13262 | ++foo; | 
|  | 13263 | } | 
|  | 13264 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|  | 13265 | typedef const int *iptr; | 
|  | 13266 | iptr p = 0; | 
|  | 13267 | ++p; | 
|  | 13268 | } | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13269 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13270 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13271 | struct s { int j; const int *ap[3]; } bx; | 
|  | 13272 | struct s *b = &bx; b->j = 5; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13273 | } | 
|  | 13274 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|  | 13275 | const int foo = 10; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13276 | if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13277 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13278 | return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13279 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13280 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13281 | ; | 
|  | 13282 | return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13283 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13284 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13285 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13286 | ac_cv_c_const=yes | 
|  | 13287 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13288 | ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13289 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13291 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
|  | 13293 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13294 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13295 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13296 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13297 |  | 
|  | 13298 | fi | 
|  | 13299 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13300 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13301 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
|  | 13303 | $as_echo_n "checking for working volatile... " >&6; } | 
|  | 13304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13305 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13306 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13307 | int | 
|  | 13308 | main () | 
|  | 13309 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13310 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13311 | ; | 
|  | 13312 | return 0; | 
|  | 13313 | } | 
|  | 13314 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13315 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13316 | works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13317 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13318 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13319 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13320 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13321 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13322 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 13325 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13326 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13327 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
|  | 13329 | $as_echo_n "checking for working signed char... " >&6; } | 
|  | 13330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13331 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13332 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13333 | int | 
|  | 13334 | main () | 
|  | 13335 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13336 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13337 | ; | 
|  | 13338 | return 0; | 
|  | 13339 | } | 
|  | 13340 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13341 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13342 | works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13343 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13344 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13345 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13346 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13347 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13348 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 13351 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13352 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13353 | have_prototypes=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
|  | 13355 | $as_echo_n "checking for prototypes... " >&6; } | 
|  | 13356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13357 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13358 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13359 | int | 
|  | 13360 | main () | 
|  | 13361 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13362 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13363 | ; | 
|  | 13364 | return 0; | 
|  | 13365 | } | 
|  | 13366 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13367 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13368 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13369 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13370 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13371 | have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13372 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
|  | 13375 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13376 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13377 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
|  | 13379 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
|  | 13380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13381 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13382 |  | 
|  | 13383 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13384 | int foo(int x, ...) { | 
|  | 13385 | va_list va; | 
|  | 13386 | va_start(va, x); | 
|  | 13387 | va_arg(va, int); | 
|  | 13388 | va_arg(va, char *); | 
|  | 13389 | va_arg(va, double); | 
|  | 13390 | return 0; | 
|  | 13391 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13392 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13393 | int | 
|  | 13394 | main () | 
|  | 13395 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13396 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13397 | ; | 
|  | 13398 | return 0; | 
|  | 13399 | } | 
|  | 13400 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13401 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13402 |  | 
|  | 13403 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13404 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13405 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13406 | works=yes | 
|  | 13407 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13408 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 13411 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13412 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13413 | # check for socketpair | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
|  | 13415 | $as_echo_n "checking for socketpair... " >&6; } | 
|  | 13416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13417 | /* end confdefs.h.  */ | 
|  | 13418 |  | 
|  | 13419 | #include <sys/types.h> | 
|  | 13420 | #include <sys/socket.h> | 
|  | 13421 |  | 
|  | 13422 | int | 
|  | 13423 | main () | 
|  | 13424 | { | 
|  | 13425 | void *x=socketpair | 
|  | 13426 | ; | 
|  | 13427 | return 0; | 
|  | 13428 | } | 
|  | 13429 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13430 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13431 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13432 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13433 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13435 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13436 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13438 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13439 |  | 
|  | 13440 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13442 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13443 | # check if sockaddr has sa_len member | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
|  | 13445 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
|  | 13446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13447 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13448 | #include <sys/types.h> | 
|  | 13449 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13450 | int | 
|  | 13451 | main () | 
|  | 13452 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13453 | struct sockaddr x; | 
|  | 13454 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13455 | ; | 
|  | 13456 | return 0; | 
|  | 13457 | } | 
|  | 13458 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13459 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13461 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13462 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13463 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13464 |  | 
|  | 13465 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13467 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13468 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13469 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13471 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13472 | va_list_is_array=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
|  | 13474 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
|  | 13475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13476 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13477 |  | 
|  | 13478 | #ifdef HAVE_STDARG_PROTOTYPES | 
|  | 13479 | #include <stdarg.h> | 
|  | 13480 | #else | 
|  | 13481 | #include <varargs.h> | 
|  | 13482 | #endif | 
|  | 13483 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13484 | int | 
|  | 13485 | main () | 
|  | 13486 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13487 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13488 | ; | 
|  | 13489 | return 0; | 
|  | 13490 | } | 
|  | 13491 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13492 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13493 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13494 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13495 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13496 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13497 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13498 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13499 | va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13500 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13501 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
|  | 13504 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13505 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13506 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13507 |  | 
|  | 13508 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13509 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13510 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13511 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13512 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13513 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
|  | 13515 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13516 | OLD_CFLAGS=$CFLAGS | 
|  | 13517 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13519 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13520 |  | 
|  | 13521 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13522 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13523 | int | 
|  | 13524 | main () | 
|  | 13525 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13526 |  | 
|  | 13527 | char *name; | 
|  | 13528 | struct hostent *he, *res; | 
|  | 13529 | char buffer[2048]; | 
|  | 13530 | int buflen = 2048; | 
|  | 13531 | int h_errnop; | 
|  | 13532 |  | 
|  | 13533 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13534 |  | 
|  | 13535 | ; | 
|  | 13536 | return 0; | 
|  | 13537 | } | 
|  | 13538 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13539 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13540 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13541 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13542 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13543 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13544 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13545 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13547 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13548 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13549 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13550 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13552 | $as_echo "no" >&6; } | 
|  | 13553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
|  | 13554 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
|  | 13555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13556 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13557 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13558 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13559 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13560 | int | 
|  | 13561 | main () | 
|  | 13562 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13563 |  | 
|  | 13564 | char *name; | 
|  | 13565 | struct hostent *he; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13566 | char buffer[2048]; | 
|  | 13567 | int buflen = 2048; | 
|  | 13568 | int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13569 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13570 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13571 |  | 
|  | 13572 | ; | 
|  | 13573 | return 0; | 
|  | 13574 | } | 
|  | 13575 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13576 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13577 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13578 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13579 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13580 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13581 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13582 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13584 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13585 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13586 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13587 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13589 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
|  | 13591 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
|  | 13592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13593 | /* end confdefs.h.  */ | 
|  | 13594 |  | 
|  | 13595 | #           include <netdb.h> | 
|  | 13596 |  | 
|  | 13597 | int | 
|  | 13598 | main () | 
|  | 13599 | { | 
|  | 13600 |  | 
|  | 13601 | char *name; | 
|  | 13602 | struct hostent *he; | 
|  | 13603 | struct hostent_data data; | 
|  | 13604 |  | 
|  | 13605 | (void) gethostbyname_r(name, he, &data); | 
|  | 13606 |  | 
|  | 13607 | ; | 
|  | 13608 | return 0; | 
|  | 13609 | } | 
|  | 13610 | _ACEOF | 
|  | 13611 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13612 |  | 
|  | 13613 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
|  | 13614 |  | 
|  | 13615 |  | 
|  | 13616 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
|  | 13617 |  | 
|  | 13618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13619 | $as_echo "yes" >&6; } | 
|  | 13620 |  | 
|  | 13621 | else | 
|  | 13622 |  | 
|  | 13623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13624 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13625 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13626 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13628 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13629 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13631 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13632 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13634 | CFLAGS=$OLD_CFLAGS | 
|  | 13635 |  | 
|  | 13636 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13637 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13638 | for ac_func in gethostbyname | 
|  | 13639 | do : | 
|  | 13640 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13641 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13642 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13643 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13644 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13645 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13646 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13647 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13648 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13649 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13650 | fi | 
|  | 13651 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13652 |  | 
|  | 13653 |  | 
|  | 13654 |  | 
|  | 13655 |  | 
|  | 13656 |  | 
|  | 13657 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13658 | # checks for system services | 
|  | 13659 | # (none yet) | 
|  | 13660 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13661 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13662 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13663 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13664 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13665 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
|  | 13667 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13668 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13669 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13670 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13671 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13672 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13674 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13675 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13676 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13677 | Use char because int might match the return type of a GCC | 
|  | 13678 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13679 | #ifdef __cplusplus | 
|  | 13680 | extern "C" | 
|  | 13681 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13682 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13683 | int | 
|  | 13684 | main () | 
|  | 13685 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13686 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13687 | ; | 
|  | 13688 | return 0; | 
|  | 13689 | } | 
|  | 13690 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13691 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13692 | ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13693 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13694 | ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13695 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13696 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13697 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13698 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13699 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
|  | 13701 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13702 | if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13703 | cat >>confdefs.h <<_ACEOF | 
|  | 13704 | #define HAVE_LIBIEEE 1 | 
|  | 13705 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13706 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13707 | LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13708 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13709 | fi | 
|  | 13710 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13711 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13712 | fi | 
|  | 13713 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13714 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13715 | # Check for --with-fpectl | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
|  | 13717 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13718 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13719 | # Check whether --with-fpectl was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13720 | if test "${with_fpectl+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13721 | withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13722 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13723 | then | 
|  | 13724 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13725 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13726 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13728 | $as_echo "yes" >&6; } | 
|  | 13729 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13730 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13731 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13732 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13734 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13735 | fi | 
|  | 13736 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13737 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13738 | # check for --with-libm=... | 
|  | 13739 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13740 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 13741 | Darwin) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13742 | *) LIBM=-lm | 
|  | 13743 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
|  | 13745 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13746 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13747 | # Check whether --with-libm was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13748 | if test "${with_libm+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13749 | withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13750 | if test "$withval" = no | 
|  | 13751 | then LIBM= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
|  | 13753 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13754 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13755 | then LIBM=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
|  | 13757 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13758 | else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13759 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13760 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
|  | 13762 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13763 | fi | 
|  | 13764 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13765 |  | 
|  | 13766 | # check for --with-libc=... | 
|  | 13767 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
|  | 13769 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13770 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13771 | # Check whether --with-libc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13772 | if test "${with_libc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13773 | withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13774 | if test "$withval" = no | 
|  | 13775 | then LIBC= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
|  | 13777 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13778 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13779 | then LIBC=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
|  | 13781 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13782 | else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13783 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13784 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
|  | 13786 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13787 | fi | 
|  | 13788 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13789 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13790 | # ************************************** | 
|  | 13791 | # * Check for gcc x64 inline assembler * | 
|  | 13792 | # ************************************** | 
|  | 13793 |  | 
|  | 13794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 | 
|  | 13795 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | 
|  | 13796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13797 | /* end confdefs.h.  */ | 
|  | 13798 |  | 
|  | 13799 | int | 
|  | 13800 | main () | 
|  | 13801 | { | 
|  | 13802 |  | 
|  | 13803 | __asm__ __volatile__ ("movq %rcx, %rax"); | 
|  | 13804 |  | 
|  | 13805 | ; | 
|  | 13806 | return 0; | 
|  | 13807 | } | 
|  | 13808 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13809 | if ac_fn_c_try_link "$LINENO"; then : | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13810 | have_gcc_asm_for_x64=yes | 
|  | 13811 | else | 
|  | 13812 | have_gcc_asm_for_x64=no | 
|  | 13813 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13814 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13815 | conftest$ac_exeext conftest.$ac_ext | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 | 
|  | 13817 | $as_echo "$have_gcc_asm_for_x64" >&6; } | 
|  | 13818 | if test "$have_gcc_asm_for_x64" = yes | 
|  | 13819 | then | 
|  | 13820 |  | 
|  | 13821 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h | 
|  | 13822 |  | 
|  | 13823 | fi | 
|  | 13824 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13825 | # ************************************************** | 
|  | 13826 | # * Check for various properties of floating point * | 
|  | 13827 | # ************************************************** | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13828 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
|  | 13830 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13831 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13832 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13833 | else | 
|  | 13834 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13835 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13836 | ac_cv_little_endian_double=no | 
|  | 13837 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13839 | /* end confdefs.h.  */ | 
|  | 13840 |  | 
|  | 13841 | #include <string.h> | 
|  | 13842 | int main() { | 
|  | 13843 | double x = 9006104071832581.0; | 
|  | 13844 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
|  | 13845 | return 0; | 
|  | 13846 | else | 
|  | 13847 | return 1; | 
|  | 13848 | } | 
|  | 13849 |  | 
|  | 13850 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13851 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13852 | ac_cv_little_endian_double=yes | 
|  | 13853 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13854 | ac_cv_little_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13855 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13856 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13857 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13858 | fi | 
|  | 13859 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13860 | fi | 
|  | 13861 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
|  | 13863 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13864 | if test "$ac_cv_little_endian_double" = yes | 
|  | 13865 | then | 
|  | 13866 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13867 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13868 |  | 
|  | 13869 | fi | 
|  | 13870 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
|  | 13872 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13873 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13874 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13875 | else | 
|  | 13876 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13877 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13878 | ac_cv_big_endian_double=no | 
|  | 13879 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13881 | /* end confdefs.h.  */ | 
|  | 13882 |  | 
|  | 13883 | #include <string.h> | 
|  | 13884 | int main() { | 
|  | 13885 | double x = 9006104071832581.0; | 
|  | 13886 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
|  | 13887 | return 0; | 
|  | 13888 | else | 
|  | 13889 | return 1; | 
|  | 13890 | } | 
|  | 13891 |  | 
|  | 13892 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13893 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13894 | ac_cv_big_endian_double=yes | 
|  | 13895 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13896 | ac_cv_big_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13897 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13898 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13899 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13900 | fi | 
|  | 13901 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13902 | fi | 
|  | 13903 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
|  | 13905 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13906 | if test "$ac_cv_big_endian_double" = yes | 
|  | 13907 | then | 
|  | 13908 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13909 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13910 |  | 
|  | 13911 | fi | 
|  | 13912 |  | 
|  | 13913 | # Some ARM platforms use a mixed-endian representation for doubles. | 
|  | 13914 | # While Python doesn't currently have full support for these platforms | 
|  | 13915 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
|  | 13916 | # conversions work. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
|  | 13918 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13919 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13920 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13921 | else | 
|  | 13922 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13923 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13924 | ac_cv_mixed_endian_double=no | 
|  | 13925 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13927 | /* end confdefs.h.  */ | 
|  | 13928 |  | 
|  | 13929 | #include <string.h> | 
|  | 13930 | int main() { | 
|  | 13931 | double x = 9006104071832581.0; | 
|  | 13932 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
|  | 13933 | return 0; | 
|  | 13934 | else | 
|  | 13935 | return 1; | 
|  | 13936 | } | 
|  | 13937 |  | 
|  | 13938 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13939 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13940 | ac_cv_mixed_endian_double=yes | 
|  | 13941 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13942 | ac_cv_mixed_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13943 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13944 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13945 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13946 | fi | 
|  | 13947 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13948 | fi | 
|  | 13949 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
|  | 13951 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13952 | if test "$ac_cv_mixed_endian_double" = yes | 
|  | 13953 | then | 
|  | 13954 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13955 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13956 |  | 
|  | 13957 | fi | 
|  | 13958 |  | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13959 | # The short float repr introduced in Python 3.1 requires the | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13960 | # correctly-rounded string <-> double conversion functions from | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13961 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13962 | # rounding; this is a problem on x86, where the x87 FPU has a default | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13963 | # rounding precision of 64 bits.  For gcc/x86, we can fix this by | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13964 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13965 |  | 
|  | 13966 | # This inline assembler syntax may also work for suncc and icc, | 
|  | 13967 | # so we try it on all platforms. | 
|  | 13968 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
|  | 13970 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
|  | 13971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13972 | /* end confdefs.h.  */ | 
|  | 13973 |  | 
|  | 13974 | int | 
|  | 13975 | main () | 
|  | 13976 | { | 
|  | 13977 |  | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13978 | unsigned short cw; | 
|  | 13979 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
|  | 13980 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13981 |  | 
|  | 13982 | ; | 
|  | 13983 | return 0; | 
|  | 13984 | } | 
|  | 13985 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13986 | if ac_fn_c_try_link "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13987 | have_gcc_asm_for_x87=yes | 
|  | 13988 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13989 | have_gcc_asm_for_x87=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13990 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13991 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13992 | conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
|  | 13994 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13995 | if test "$have_gcc_asm_for_x87" = yes | 
|  | 13996 | then | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13997 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13998 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13999 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14000 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14001 |  | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 | 
|  | 14003 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } | 
|  | 14004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14005 | /* end confdefs.h.  */ | 
|  | 14006 |  | 
|  | 14007 | int | 
|  | 14008 | main () | 
|  | 14009 | { | 
|  | 14010 |  | 
|  | 14011 | unsigned int fpcr; | 
|  | 14012 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); | 
|  | 14013 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); | 
|  | 14014 |  | 
|  | 14015 | ; | 
|  | 14016 | return 0; | 
|  | 14017 | } | 
|  | 14018 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14019 | if ac_fn_c_try_link "$LINENO"; then : | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14020 | have_gcc_asm_for_mc68881=yes | 
|  | 14021 | else | 
|  | 14022 | have_gcc_asm_for_mc68881=no | 
|  | 14023 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14024 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14025 | conftest$ac_exeext conftest.$ac_ext | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 | 
|  | 14027 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } | 
|  | 14028 | if test "$have_gcc_asm_for_mc68881" = yes | 
|  | 14029 | then | 
|  | 14030 |  | 
|  | 14031 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h | 
|  | 14032 |  | 
|  | 14033 | fi | 
|  | 14034 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14035 | # Detect whether system arithmetic is subject to x87-style double | 
|  | 14036 | # rounding issues.  The result of this test has little meaning on non | 
|  | 14037 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
|  | 14038 | # mode is round-to-nearest and double rounding issues are present, and | 
|  | 14039 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
|  | 14041 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14042 | # $BASECFLAGS may affect the result | 
|  | 14043 | ac_save_cc="$CC" | 
|  | 14044 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14045 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14046 | ac_cv_x87_double_rounding=no | 
|  | 14047 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14049 | /* end confdefs.h.  */ | 
|  | 14050 |  | 
|  | 14051 | #include <stdlib.h> | 
|  | 14052 | #include <math.h> | 
|  | 14053 | int main() { | 
|  | 14054 | volatile double x, y, z; | 
|  | 14055 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
|  | 14056 | x = 0.99999999999999989; /* 1-2**-53 */ | 
|  | 14057 | y = 1./x; | 
|  | 14058 | if (y != 1.) | 
|  | 14059 | exit(0); | 
|  | 14060 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
|  | 14061 | x = 1e16; | 
|  | 14062 | y = 2.99999; | 
|  | 14063 | z = x + y; | 
|  | 14064 | if (z != 1e16+4.) | 
|  | 14065 | exit(0); | 
|  | 14066 | /* both tests show evidence of double rounding */ | 
|  | 14067 | exit(1); | 
|  | 14068 | } | 
|  | 14069 |  | 
|  | 14070 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14071 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14072 | ac_cv_x87_double_rounding=no | 
|  | 14073 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14074 | ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14075 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14076 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14077 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14078 | fi | 
|  | 14079 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14080 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
|  | 14082 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14083 | if test "$ac_cv_x87_double_rounding" = yes | 
|  | 14084 | then | 
|  | 14085 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14086 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14087 |  | 
|  | 14088 | fi | 
|  | 14089 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14090 | # ************************************ | 
|  | 14091 | # * Check for mathematical functions * | 
|  | 14092 | # ************************************ | 
|  | 14093 |  | 
|  | 14094 | LIBS_SAVE=$LIBS | 
|  | 14095 | LIBS="$LIBS $LIBM" | 
|  | 14096 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14097 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
|  | 14098 | do : | 
|  | 14099 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 14100 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14101 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14102 | cat >>confdefs.h <<_ACEOF | 
|  | 14103 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 14104 | _ACEOF | 
|  | 14105 |  | 
|  | 14106 | fi | 
|  | 14107 | done | 
|  | 14108 |  | 
| Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 14109 | for ac_func in hypot lgamma log1p log2 round tgamma | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14110 | do : | 
|  | 14111 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 14112 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14113 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14114 | cat >>confdefs.h <<_ACEOF | 
|  | 14115 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 14116 | _ACEOF | 
|  | 14117 |  | 
|  | 14118 | fi | 
|  | 14119 | done | 
|  | 14120 |  | 
|  | 14121 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
|  | 14122 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14123 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14124 | ac_have_decl=1 | 
|  | 14125 | else | 
|  | 14126 | ac_have_decl=0 | 
|  | 14127 | fi | 
|  | 14128 |  | 
|  | 14129 | cat >>confdefs.h <<_ACEOF | 
|  | 14130 | #define HAVE_DECL_ISINF $ac_have_decl | 
|  | 14131 | _ACEOF | 
|  | 14132 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
|  | 14133 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14134 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14135 | ac_have_decl=1 | 
|  | 14136 | else | 
|  | 14137 | ac_have_decl=0 | 
|  | 14138 | fi | 
|  | 14139 |  | 
|  | 14140 | cat >>confdefs.h <<_ACEOF | 
|  | 14141 | #define HAVE_DECL_ISNAN $ac_have_decl | 
|  | 14142 | _ACEOF | 
|  | 14143 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
|  | 14144 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14145 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14146 | ac_have_decl=1 | 
|  | 14147 | else | 
|  | 14148 | ac_have_decl=0 | 
|  | 14149 | fi | 
|  | 14150 |  | 
|  | 14151 | cat >>confdefs.h <<_ACEOF | 
|  | 14152 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
|  | 14153 | _ACEOF | 
|  | 14154 |  | 
|  | 14155 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14156 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
|  | 14157 | # -0. on some architectures. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
|  | 14159 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14160 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14161 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14162 | else | 
|  | 14163 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14164 | if test "$cross_compiling" = yes; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14165 | ac_cv_tanh_preserves_zero_sign=no | 
|  | 14166 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14168 | /* end confdefs.h.  */ | 
|  | 14169 |  | 
|  | 14170 | #include <math.h> | 
|  | 14171 | #include <stdlib.h> | 
|  | 14172 | int main() { | 
|  | 14173 | /* return 0 if either negative zeros don't exist | 
|  | 14174 | on this platform or if negative zeros exist | 
|  | 14175 | and tanh(-0.) == -0. */ | 
|  | 14176 | if (atan2(0., -1.) == atan2(-0., -1.) || | 
|  | 14177 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
|  | 14178 | else exit(1); | 
|  | 14179 | } | 
|  | 14180 |  | 
|  | 14181 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14182 | if ac_fn_c_try_run "$LINENO"; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14183 | ac_cv_tanh_preserves_zero_sign=yes | 
|  | 14184 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14185 | ac_cv_tanh_preserves_zero_sign=no | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14186 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14187 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14188 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14189 | fi | 
|  | 14190 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14191 | fi | 
|  | 14192 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
|  | 14194 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14195 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
|  | 14196 | then | 
|  | 14197 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14198 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14199 |  | 
|  | 14200 | fi | 
|  | 14201 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14202 | if test "$ac_cv_func_log1p" = yes | 
|  | 14203 | then | 
|  | 14204 | # On some versions of AIX, log1p(-0.) returns 0. instead of | 
|  | 14205 | # -0.  See issue #9920. | 
|  | 14206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | 
|  | 14207 | $as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14208 | if ${ac_cv_log1p_drops_zero_sign+:} false; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14209 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14210 | else | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14211 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14212 | if test "$cross_compiling" = yes; then : | 
|  | 14213 | ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14214 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14216 | /* end confdefs.h.  */ | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14217 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14218 | #include <math.h> | 
|  | 14219 | #include <stdlib.h> | 
|  | 14220 | int main() { | 
|  | 14221 | /* Fail if the signs of log1p(-0.) and -0. can be | 
|  | 14222 | distinguished. */ | 
|  | 14223 | if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | 
|  | 14224 | return 0; | 
|  | 14225 | else | 
|  | 14226 | return 1; | 
|  | 14227 | } | 
|  | 14228 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14229 | _ACEOF | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14230 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 14231 | ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14232 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14233 | ac_cv_log1p_drops_zero_sign=yes | 
|  | 14234 | fi | 
|  | 14235 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14236 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14237 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14238 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14239 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14240 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 | 
|  | 14242 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | 
|  | 14243 | fi | 
|  | 14244 | if test "$ac_cv_log1p_drops_zero_sign" = yes | 
|  | 14245 | then | 
|  | 14246 |  | 
|  | 14247 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | 
|  | 14248 |  | 
|  | 14249 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14250 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14251 | LIBS=$LIBS_SAVE | 
|  | 14252 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14253 | # For multiprocessing module, check that sem_open | 
|  | 14254 | # actually works.  For FreeBSD versions <= 7.2, | 
|  | 14255 | # the kernel module that provides POSIX semaphores | 
|  | 14256 | # isn't loaded by default, so an attempt to call | 
|  | 14257 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
|  | 14259 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14260 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14261 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14262 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14263 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14264 | ac_cv_posix_semaphores_enabled=yes | 
|  | 14265 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14267 | /* end confdefs.h.  */ | 
|  | 14268 |  | 
|  | 14269 | #include <unistd.h> | 
|  | 14270 | #include <fcntl.h> | 
|  | 14271 | #include <stdio.h> | 
|  | 14272 | #include <semaphore.h> | 
|  | 14273 | #include <sys/stat.h> | 
|  | 14274 |  | 
|  | 14275 | int main(void) { | 
|  | 14276 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
|  | 14277 | if (a == SEM_FAILED) { | 
|  | 14278 | perror("sem_open"); | 
|  | 14279 | return 1; | 
|  | 14280 | } | 
|  | 14281 | sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14282 | sem_unlink("/autoconf"); | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14283 | return 0; | 
|  | 14284 | } | 
|  | 14285 |  | 
|  | 14286 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14287 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14288 | ac_cv_posix_semaphores_enabled=yes | 
|  | 14289 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14290 | ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14291 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14292 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14293 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14294 | fi | 
|  | 14295 |  | 
|  | 14296 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14297 | fi | 
|  | 14298 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
|  | 14300 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14301 | if test $ac_cv_posix_semaphores_enabled = no | 
|  | 14302 | then | 
|  | 14303 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14304 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14305 |  | 
|  | 14306 | fi | 
|  | 14307 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14308 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
|  | 14310 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14311 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14312 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14313 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14314 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14315 | ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14316 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14318 | /* end confdefs.h.  */ | 
|  | 14319 |  | 
|  | 14320 | #include <unistd.h> | 
|  | 14321 | #include <fcntl.h> | 
|  | 14322 | #include <stdio.h> | 
|  | 14323 | #include <semaphore.h> | 
|  | 14324 | #include <sys/stat.h> | 
|  | 14325 |  | 
|  | 14326 | int main(void){ | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14327 | sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14328 | int count; | 
|  | 14329 | int res; | 
|  | 14330 | if(a==SEM_FAILED){ | 
|  | 14331 | perror("sem_open"); | 
|  | 14332 | return 1; | 
|  | 14333 |  | 
|  | 14334 | } | 
|  | 14335 | res = sem_getvalue(a, &count); | 
|  | 14336 | sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14337 | sem_unlink("/autocftw"); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14338 | return res==-1 ? 1 : 0; | 
|  | 14339 | } | 
|  | 14340 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14341 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14342 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14343 | ac_cv_broken_sem_getvalue=no | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14344 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14345 | ac_cv_broken_sem_getvalue=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14346 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14347 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14348 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14349 | fi | 
|  | 14350 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14351 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14352 | fi | 
|  | 14353 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
|  | 14355 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14356 | if test $ac_cv_broken_sem_getvalue = yes | 
|  | 14357 | then | 
|  | 14358 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14359 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14360 |  | 
|  | 14361 | fi | 
|  | 14362 |  | 
| Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14363 | ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> | 
|  | 14364 | " | 
|  | 14365 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : | 
|  | 14366 | ac_have_decl=1 | 
|  | 14367 | else | 
|  | 14368 | ac_have_decl=0 | 
|  | 14369 | fi | 
|  | 14370 |  | 
|  | 14371 | cat >>confdefs.h <<_ACEOF | 
|  | 14372 | #define HAVE_DECL_RTLD_LAZY $ac_have_decl | 
|  | 14373 | _ACEOF | 
|  | 14374 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | 
|  | 14375 | " | 
|  | 14376 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : | 
|  | 14377 | ac_have_decl=1 | 
|  | 14378 | else | 
|  | 14379 | ac_have_decl=0 | 
|  | 14380 | fi | 
|  | 14381 |  | 
|  | 14382 | cat >>confdefs.h <<_ACEOF | 
|  | 14383 | #define HAVE_DECL_RTLD_NOW $ac_have_decl | 
|  | 14384 | _ACEOF | 
|  | 14385 | ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> | 
|  | 14386 | " | 
|  | 14387 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : | 
|  | 14388 | ac_have_decl=1 | 
|  | 14389 | else | 
|  | 14390 | ac_have_decl=0 | 
|  | 14391 | fi | 
|  | 14392 |  | 
|  | 14393 | cat >>confdefs.h <<_ACEOF | 
|  | 14394 | #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl | 
|  | 14395 | _ACEOF | 
|  | 14396 | ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> | 
|  | 14397 | " | 
|  | 14398 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : | 
|  | 14399 | ac_have_decl=1 | 
|  | 14400 | else | 
|  | 14401 | ac_have_decl=0 | 
|  | 14402 | fi | 
|  | 14403 |  | 
|  | 14404 | cat >>confdefs.h <<_ACEOF | 
|  | 14405 | #define HAVE_DECL_RTLD_LOCAL $ac_have_decl | 
|  | 14406 | _ACEOF | 
|  | 14407 | ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> | 
|  | 14408 | " | 
|  | 14409 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : | 
|  | 14410 | ac_have_decl=1 | 
|  | 14411 | else | 
|  | 14412 | ac_have_decl=0 | 
|  | 14413 | fi | 
|  | 14414 |  | 
|  | 14415 | cat >>confdefs.h <<_ACEOF | 
|  | 14416 | #define HAVE_DECL_RTLD_NODELETE $ac_have_decl | 
|  | 14417 | _ACEOF | 
|  | 14418 | ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> | 
|  | 14419 | " | 
|  | 14420 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : | 
|  | 14421 | ac_have_decl=1 | 
|  | 14422 | else | 
|  | 14423 | ac_have_decl=0 | 
|  | 14424 | fi | 
|  | 14425 |  | 
|  | 14426 | cat >>confdefs.h <<_ACEOF | 
|  | 14427 | #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl | 
|  | 14428 | _ACEOF | 
|  | 14429 | ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> | 
|  | 14430 | " | 
|  | 14431 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : | 
|  | 14432 | ac_have_decl=1 | 
|  | 14433 | else | 
|  | 14434 | ac_have_decl=0 | 
|  | 14435 | fi | 
|  | 14436 |  | 
|  | 14437 | cat >>confdefs.h <<_ACEOF | 
|  | 14438 | #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl | 
|  | 14439 | _ACEOF | 
|  | 14440 |  | 
|  | 14441 |  | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14442 | # determine what size digit to use for Python's longs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
|  | 14444 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14445 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14446 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14447 | enableval=$enable_big_digits; case $enable_big_digits in | 
|  | 14448 | yes) | 
|  | 14449 | enable_big_digits=30 ;; | 
|  | 14450 | no) | 
|  | 14451 | enable_big_digits=15 ;; | 
|  | 14452 | 15|30) | 
|  | 14453 | ;; | 
|  | 14454 | *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14455 | as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14456 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
|  | 14458 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14459 |  | 
|  | 14460 | cat >>confdefs.h <<_ACEOF | 
|  | 14461 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
|  | 14462 | _ACEOF | 
|  | 14463 |  | 
|  | 14464 |  | 
|  | 14465 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 14467 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14468 | fi | 
|  | 14469 |  | 
|  | 14470 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14471 | # check for wchar.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14472 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14473 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14474 |  | 
|  | 14475 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14476 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14477 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14478 | wchar_h="yes" | 
|  | 14479 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14480 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14481 | wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14482 |  | 
|  | 14483 | fi | 
|  | 14484 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14485 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14486 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14487 | # determine wchar_t size | 
|  | 14488 | if test "$wchar_h" = yes | 
|  | 14489 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14490 | # The cast to long int works around a bug in the HP C Compiler | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14491 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 14492 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 14493 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
|  | 14495 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14496 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14497 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14498 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14499 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
|  | 14500 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14501 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14502 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14503 | if test "$ac_cv_type_wchar_t" = yes; then | 
|  | 14504 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 14505 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14506 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14507 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14508 | else | 
|  | 14509 | ac_cv_sizeof_wchar_t=0 | 
|  | 14510 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14511 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14512 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14513 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
|  | 14515 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14516 |  | 
|  | 14517 |  | 
|  | 14518 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14519 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14520 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14521 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14522 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14523 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14524 | fi | 
|  | 14525 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
|  | 14527 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14528 | have_ucs4_tcl=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14530 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14531 |  | 
|  | 14532 | #include <tcl.h> | 
|  | 14533 | #if TCL_UTF_MAX != 6 | 
|  | 14534 | # error "NOT UCS4_TCL" | 
|  | 14535 | #endif | 
|  | 14536 | int | 
|  | 14537 | main () | 
|  | 14538 | { | 
|  | 14539 |  | 
|  | 14540 | ; | 
|  | 14541 | return 0; | 
|  | 14542 | } | 
|  | 14543 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14544 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14545 |  | 
|  | 14546 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14547 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14548 |  | 
|  | 14549 | have_ucs4_tcl=yes | 
|  | 14550 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14551 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
|  | 14554 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14555 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14556 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14557 | if test "$wchar_h" = yes | 
|  | 14558 | then | 
|  | 14559 | # check whether wchar_t is signed or not | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
|  | 14561 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14562 | if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14563 | $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14564 | else | 
|  | 14565 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14566 | if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14567 | ac_cv_wchar_t_signed=yes | 
|  | 14568 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14570 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14571 |  | 
|  | 14572 | #include <wchar.h> | 
|  | 14573 | int main() | 
|  | 14574 | { | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14575 | /* Success: exit code 0 */ | 
|  | 14576 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14577 | } | 
|  | 14578 |  | 
|  | 14579 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14580 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14581 | ac_cv_wchar_t_signed=yes | 
|  | 14582 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14583 | ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14584 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14585 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14586 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14587 | fi | 
|  | 14588 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14589 | fi | 
|  | 14590 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
|  | 14592 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14593 | fi | 
|  | 14594 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14595 | # wchar_t is only usable if it maps to an unsigned type | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14596 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 14597 | -a "$ac_cv_wchar_t_signed" = "no" | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14598 | then | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14599 | HAVE_USABLE_WCHAR_T="yes" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14600 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14601 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14602 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14603 | else | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14604 | HAVE_USABLE_WCHAR_T="no usable wchar_t found" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14605 | fi | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 | 
|  | 14607 | $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14608 |  | 
|  | 14609 | # check for endianness | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
|  | 14611 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14612 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14613 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14614 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14615 | ac_cv_c_bigendian=unknown | 
|  | 14616 | # See if we're dealing with a universal compiler. | 
|  | 14617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14618 | /* end confdefs.h.  */ | 
|  | 14619 | #ifndef __APPLE_CC__ | 
|  | 14620 | not a universal capable compiler | 
|  | 14621 | #endif | 
|  | 14622 | typedef int dummy; | 
|  | 14623 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14624 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14625 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14626 |  | 
|  | 14627 | # Check for potential -arch flags.  It is not universal unless | 
|  | 14628 | # there are at least two -arch flags with different values. | 
|  | 14629 | ac_arch= | 
|  | 14630 | ac_prev= | 
|  | 14631 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
|  | 14632 | if test -n "$ac_prev"; then | 
|  | 14633 | case $ac_word in | 
|  | 14634 | i?86 | x86_64 | ppc | ppc64) | 
|  | 14635 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
|  | 14636 | ac_arch=$ac_word | 
|  | 14637 | else | 
|  | 14638 | ac_cv_c_bigendian=universal | 
|  | 14639 | break | 
|  | 14640 | fi | 
|  | 14641 | ;; | 
|  | 14642 | esac | 
|  | 14643 | ac_prev= | 
|  | 14644 | elif test "x$ac_word" = "x-arch"; then | 
|  | 14645 | ac_prev=arch | 
|  | 14646 | fi | 
|  | 14647 | done | 
|  | 14648 | fi | 
|  | 14649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14650 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 14651 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 14652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14653 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14654 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14655 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14656 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14657 | int | 
|  | 14658 | main () | 
|  | 14659 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14660 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
|  | 14661 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
|  | 14662 | && LITTLE_ENDIAN) | 
|  | 14663 | bogus endian macros | 
|  | 14664 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14665 |  | 
|  | 14666 | ; | 
|  | 14667 | return 0; | 
|  | 14668 | } | 
|  | 14669 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14670 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14671 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14673 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14674 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14675 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14676 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14677 | int | 
|  | 14678 | main () | 
|  | 14679 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14680 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14681 | not big endian | 
|  | 14682 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14683 |  | 
|  | 14684 | ; | 
|  | 14685 | return 0; | 
|  | 14686 | } | 
|  | 14687 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14688 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14689 | ac_cv_c_bigendian=yes | 
|  | 14690 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14691 | ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14692 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14694 | fi | 
|  | 14695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14696 | fi | 
|  | 14697 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 14698 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
|  | 14699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14700 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14701 | #include <limits.h> | 
|  | 14702 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14703 | int | 
|  | 14704 | main () | 
|  | 14705 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14706 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
|  | 14707 | bogus endian macros | 
|  | 14708 | #endif | 
|  | 14709 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14710 | ; | 
|  | 14711 | return 0; | 
|  | 14712 | } | 
|  | 14713 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14714 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14715 | # It does; now see whether it defined to _BIG_ENDIAN or not. | 
|  | 14716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14717 | /* end confdefs.h.  */ | 
|  | 14718 | #include <limits.h> | 
|  | 14719 |  | 
|  | 14720 | int | 
|  | 14721 | main () | 
|  | 14722 | { | 
|  | 14723 | #ifndef _BIG_ENDIAN | 
|  | 14724 | not big endian | 
|  | 14725 | #endif | 
|  | 14726 |  | 
|  | 14727 | ; | 
|  | 14728 | return 0; | 
|  | 14729 | } | 
|  | 14730 | _ACEOF | 
|  | 14731 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14732 | ac_cv_c_bigendian=yes | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14733 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14734 | ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14735 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14737 | fi | 
|  | 14738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14739 | fi | 
|  | 14740 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 14741 | # Compile a test program. | 
|  | 14742 | if test "$cross_compiling" = yes; then : | 
|  | 14743 | # Try to guess by grepping values from an object file. | 
|  | 14744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14745 | /* end confdefs.h.  */ | 
|  | 14746 | short int ascii_mm[] = | 
|  | 14747 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 14748 | short int ascii_ii[] = | 
|  | 14749 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 14750 | int use_ascii (int i) { | 
|  | 14751 | return ascii_mm[i] + ascii_ii[i]; | 
|  | 14752 | } | 
|  | 14753 | short int ebcdic_ii[] = | 
|  | 14754 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 14755 | short int ebcdic_mm[] = | 
|  | 14756 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 14757 | int use_ebcdic (int i) { | 
|  | 14758 | return ebcdic_mm[i] + ebcdic_ii[i]; | 
|  | 14759 | } | 
|  | 14760 | extern int foo; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14761 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14762 | int | 
|  | 14763 | main () | 
|  | 14764 | { | 
|  | 14765 | return use_ascii (foo) == use_ebcdic (foo); | 
|  | 14766 | ; | 
|  | 14767 | return 0; | 
|  | 14768 | } | 
|  | 14769 | _ACEOF | 
|  | 14770 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14771 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
|  | 14772 | ac_cv_c_bigendian=yes | 
|  | 14773 | fi | 
|  | 14774 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 14775 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 14776 | ac_cv_c_bigendian=no | 
|  | 14777 | else | 
|  | 14778 | # finding both strings is unlikely to happen, but who knows? | 
|  | 14779 | ac_cv_c_bigendian=unknown | 
|  | 14780 | fi | 
|  | 14781 | fi | 
|  | 14782 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14784 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14786 | /* end confdefs.h.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14787 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14788 | int | 
|  | 14789 | main () | 
|  | 14790 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14791 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14792 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 14793 | union | 
|  | 14794 | { | 
|  | 14795 | long int l; | 
|  | 14796 | char c[sizeof (long int)]; | 
|  | 14797 | } u; | 
|  | 14798 | u.l = 1; | 
|  | 14799 | return u.c[sizeof (long int) - 1] == 1; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14800 |  | 
|  | 14801 | ; | 
|  | 14802 | return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14803 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14804 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14805 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14806 | ac_cv_c_bigendian=no | 
|  | 14807 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14808 | ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14809 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14810 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14811 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14812 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14813 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14814 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14815 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
|  | 14817 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
|  | 14818 | case $ac_cv_c_bigendian in #( | 
|  | 14819 | yes) | 
|  | 14820 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
|  | 14821 | ;; #( | 
|  | 14822 | no) | 
|  | 14823 | ;; #( | 
|  | 14824 | universal) | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14825 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14826 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14827 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14828 | ;; #( | 
|  | 14829 | *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14830 | as_fn_error $? "unknown endianness | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14831 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14832 | esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14833 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14834 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14835 | # ABI version string for Python extension modules.  This appears between the | 
|  | 14836 | # periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated | 
|  | 14837 | # from the following attributes which affect the ABI of this Python build (in | 
|  | 14838 | # this order): | 
|  | 14839 | # | 
|  | 14840 | # * The Python implementation (always 'cpython-' for us) | 
|  | 14841 | # * The major and minor version numbers | 
|  | 14842 | # * --with-pydebug (adds a 'd') | 
|  | 14843 | # * --with-pymalloc (adds a 'm') | 
|  | 14844 | # * --with-wide-unicode (adds a 'u') | 
|  | 14845 | # | 
|  | 14846 | # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 14847 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared | 
|  | 14848 | # libraries would be named 'foo.cpython-32dmu.so'. | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14849 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 | 
|  | 14851 | $as_echo_n "checking ABIFLAGS... " >&6; } | 
|  | 14852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | 
|  | 14853 | $as_echo "$ABIFLAGS" >&6; } | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | 
|  | 14855 | $as_echo_n "checking SOABI... " >&6; } | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 14856 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 | 
|  | 14858 | $as_echo "$SOABI" >&6; } | 
|  | 14859 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14860 |  | 
|  | 14861 | case $ac_sys_system in | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 14862 | Linux*|GNU*|Darwin) | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14863 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; | 
|  | 14864 | *) | 
|  | 14865 | EXT_SUFFIX=${SHLIB_SUFFIX};; | 
|  | 14866 | esac | 
|  | 14867 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 | 
|  | 14869 | $as_echo_n "checking LDVERSION... " >&6; } | 
|  | 14870 | LDVERSION='$(VERSION)$(ABIFLAGS)' | 
|  | 14871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | 
|  | 14872 | $as_echo "$LDVERSION" >&6; } | 
|  | 14873 |  | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14874 |  | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 14875 | if test x$PLATFORM_TRIPLET = x; then | 
|  | 14876 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" | 
|  | 14877 | else | 
|  | 14878 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | 
|  | 14879 | fi | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14880 |  | 
|  | 14881 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14882 | # Check whether right shifting a negative integer extends the sign bit | 
|  | 14883 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
|  | 14885 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14886 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14887 | $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14888 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14889 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14890 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14891 | ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14892 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14894 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14895 |  | 
|  | 14896 | int main() | 
|  | 14897 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14898 | exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14899 | } | 
|  | 14900 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14901 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14902 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14903 | ac_cv_rshift_extends_sign=yes | 
|  | 14904 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14905 | ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14906 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14907 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14908 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14909 | fi | 
|  | 14910 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14911 | fi | 
|  | 14912 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
|  | 14914 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14915 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14916 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14917 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14918 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14919 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14920 | fi | 
|  | 14921 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14922 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
|  | 14924 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14925 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14926 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14927 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14928 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14930 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14931 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14932 | int | 
|  | 14933 | main () | 
|  | 14934 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14935 |  | 
|  | 14936 | FILE *f = fopen("/dev/null", "r"); | 
|  | 14937 | flockfile(f); | 
|  | 14938 | getc_unlocked(f); | 
|  | 14939 | funlockfile(f); | 
|  | 14940 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14941 | ; | 
|  | 14942 | return 0; | 
|  | 14943 | } | 
|  | 14944 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14945 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14946 | ac_cv_have_getc_unlocked=yes | 
|  | 14947 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14948 | ac_cv_have_getc_unlocked=no | 
|  | 14949 | fi | 
|  | 14950 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14951 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14952 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14953 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
|  | 14955 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14956 | if test "$ac_cv_have_getc_unlocked" = yes | 
|  | 14957 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14958 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14959 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14960 |  | 
|  | 14961 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14962 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14963 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 14964 | # save the value of LIBS so we don't actually link Python with readline | 
|  | 14965 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14966 |  | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14967 | # On some systems we need to link readline to a termcap compatible | 
|  | 14968 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
|  | 14969 | # with setup.py. | 
|  | 14970 | py_cv_lib_readline=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
|  | 14972 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| doko@ubuntu.com | f2967c7 | 2012-06-30 17:32:23 +0200 | [diff] [blame] | 14973 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14974 | if test -z "$py_libtermcap"; then | 
|  | 14975 | READLINE_LIBS="-lreadline" | 
|  | 14976 | else | 
|  | 14977 | READLINE_LIBS="-lreadline -l$py_libtermcap" | 
|  | 14978 | fi | 
|  | 14979 | LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14981 | /* end confdefs.h.  */ | 
|  | 14982 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14983 | /* Override any GCC internal prototype to avoid an error. | 
|  | 14984 | Use char because int might match the return type of a GCC | 
|  | 14985 | builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14986 | #ifdef __cplusplus | 
|  | 14987 | extern "C" | 
|  | 14988 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14989 | char readline (); | 
|  | 14990 | int | 
|  | 14991 | main () | 
|  | 14992 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14993 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14994 | ; | 
|  | 14995 | return 0; | 
|  | 14996 | } | 
|  | 14997 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14998 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14999 | py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15000 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15001 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15002 | conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15003 | if test $py_cv_lib_readline = yes; then | 
|  | 15004 | break | 
|  | 15005 | fi | 
|  | 15006 | done | 
|  | 15007 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
|  | 15008 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 15009 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 15011 | $as_echo "none" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15012 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
|  | 15014 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15015 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15016 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15017 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15018 | fi | 
|  | 15019 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15020 | # check for readline 2.1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
|  | 15022 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15023 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15024 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15025 | else | 
|  | 15026 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15027 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15029 | /* end confdefs.h.  */ | 
|  | 15030 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15031 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15032 | Use char because int might match the return type of a GCC | 
|  | 15033 | builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15034 | #ifdef __cplusplus | 
|  | 15035 | extern "C" | 
|  | 15036 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15037 | char rl_callback_handler_install (); | 
|  | 15038 | int | 
|  | 15039 | main () | 
|  | 15040 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15041 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15042 | ; | 
|  | 15043 | return 0; | 
|  | 15044 | } | 
|  | 15045 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15046 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15047 | ac_cv_lib_readline_rl_callback_handler_install=yes | 
|  | 15048 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15049 | ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15050 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15051 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15052 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15053 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15054 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
|  | 15056 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15057 | if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15058 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15059 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15060 |  | 
|  | 15061 | fi | 
|  | 15062 |  | 
|  | 15063 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15064 | # check for readline 2.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15066 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15067 | #include <readline/readline.h> | 
|  | 15068 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15069 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15070 | have_readline=yes | 
|  | 15071 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15072 | have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15073 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15074 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15075 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15076 | if test $have_readline = yes | 
|  | 15077 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15079 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15080 | #include <readline/readline.h> | 
|  | 15081 |  | 
|  | 15082 | _ACEOF | 
|  | 15083 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15084 | $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15085 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15086 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15087 |  | 
|  | 15088 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15089 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15090 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15092 | /* end confdefs.h.  */ | 
|  | 15093 | #include <readline/readline.h> | 
|  | 15094 |  | 
|  | 15095 | _ACEOF | 
|  | 15096 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15097 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15098 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15099 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15100 |  | 
|  | 15101 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15102 | rm -f conftest* | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15103 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15104 | fi | 
|  | 15105 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15106 | # check for readline 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
|  | 15108 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15109 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15110 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15111 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15112 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15113 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15115 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15116 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15117 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15118 | Use char because int might match the return type of a GCC | 
|  | 15119 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15120 | #ifdef __cplusplus | 
|  | 15121 | extern "C" | 
|  | 15122 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15123 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15124 | int | 
|  | 15125 | main () | 
|  | 15126 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15127 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15128 | ; | 
|  | 15129 | return 0; | 
|  | 15130 | } | 
|  | 15131 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15132 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15133 | ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15134 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15135 | ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15136 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15137 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15138 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15139 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15140 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
|  | 15142 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15143 | if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15144 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15145 | $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15146 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15147 | fi | 
|  | 15148 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15149 |  | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15150 | # also in 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
|  | 15152 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15153 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15154 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15155 | else | 
|  | 15156 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15157 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15159 | /* end confdefs.h.  */ | 
|  | 15160 |  | 
|  | 15161 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15162 | Use char because int might match the return type of a GCC | 
|  | 15163 | builtin and then its argument prototype would still apply.  */ | 
|  | 15164 | #ifdef __cplusplus | 
|  | 15165 | extern "C" | 
|  | 15166 | #endif | 
|  | 15167 | char rl_completion_display_matches_hook (); | 
|  | 15168 | int | 
|  | 15169 | main () | 
|  | 15170 | { | 
|  | 15171 | return rl_completion_display_matches_hook (); | 
|  | 15172 | ; | 
|  | 15173 | return 0; | 
|  | 15174 | } | 
|  | 15175 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15176 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15177 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
|  | 15178 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15179 | ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15180 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15181 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15182 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15183 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15184 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
|  | 15186 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15187 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15188 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15189 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15190 |  | 
|  | 15191 | fi | 
|  | 15192 |  | 
|  | 15193 |  | 
| Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15194 | # also in 4.0, but not in editline | 
|  | 15195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 | 
|  | 15196 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } | 
|  | 15197 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : | 
|  | 15198 | $as_echo_n "(cached) " >&6 | 
|  | 15199 | else | 
|  | 15200 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15201 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
|  | 15202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15203 | /* end confdefs.h.  */ | 
|  | 15204 |  | 
|  | 15205 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15206 | Use char because int might match the return type of a GCC | 
|  | 15207 | builtin and then its argument prototype would still apply.  */ | 
|  | 15208 | #ifdef __cplusplus | 
|  | 15209 | extern "C" | 
|  | 15210 | #endif | 
|  | 15211 | char rl_resize_terminal (); | 
|  | 15212 | int | 
|  | 15213 | main () | 
|  | 15214 | { | 
|  | 15215 | return rl_resize_terminal (); | 
|  | 15216 | ; | 
|  | 15217 | return 0; | 
|  | 15218 | } | 
|  | 15219 | _ACEOF | 
|  | 15220 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 15221 | ac_cv_lib_readline_rl_resize_terminal=yes | 
|  | 15222 | else | 
|  | 15223 | ac_cv_lib_readline_rl_resize_terminal=no | 
|  | 15224 | fi | 
|  | 15225 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15226 | conftest$ac_exeext conftest.$ac_ext | 
|  | 15227 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15228 | fi | 
|  | 15229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 | 
|  | 15230 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } | 
|  | 15231 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : | 
|  | 15232 |  | 
|  | 15233 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h | 
|  | 15234 |  | 
|  | 15235 | fi | 
|  | 15236 |  | 
|  | 15237 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15238 | # check for readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
|  | 15240 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15241 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15242 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15243 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15244 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15245 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15247 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15248 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15249 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15250 | Use char because int might match the return type of a GCC | 
|  | 15251 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15252 | #ifdef __cplusplus | 
|  | 15253 | extern "C" | 
|  | 15254 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15255 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15256 | int | 
|  | 15257 | main () | 
|  | 15258 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15259 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15260 | ; | 
|  | 15261 | return 0; | 
|  | 15262 | } | 
|  | 15263 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15264 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15265 | ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15266 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15267 | ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15268 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15269 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15270 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15271 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15272 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
|  | 15274 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15275 | if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15276 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15277 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15278 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15279 | fi | 
|  | 15280 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15281 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15282 | # also in readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15284 | /* end confdefs.h.  */ | 
|  | 15285 | #include <readline/readline.h> | 
|  | 15286 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15287 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15288 | have_readline=yes | 
|  | 15289 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15290 | have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15291 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15292 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15293 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15294 | if test $have_readline = yes | 
|  | 15295 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15297 | /* end confdefs.h.  */ | 
|  | 15298 | #include <readline/readline.h> | 
|  | 15299 |  | 
|  | 15300 | _ACEOF | 
|  | 15301 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15302 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15303 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15304 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15305 |  | 
|  | 15306 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15307 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15308 |  | 
|  | 15309 | fi | 
|  | 15310 |  | 
| Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 | 
|  | 15312 | $as_echo_n "checking for append_history in -lreadline... " >&6; } | 
|  | 15313 | if ${ac_cv_lib_readline_append_history+:} false; then : | 
|  | 15314 | $as_echo_n "(cached) " >&6 | 
|  | 15315 | else | 
|  | 15316 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15317 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
|  | 15318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15319 | /* end confdefs.h.  */ | 
|  | 15320 |  | 
|  | 15321 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15322 | Use char because int might match the return type of a GCC | 
|  | 15323 | builtin and then its argument prototype would still apply.  */ | 
|  | 15324 | #ifdef __cplusplus | 
|  | 15325 | extern "C" | 
|  | 15326 | #endif | 
|  | 15327 | char append_history (); | 
|  | 15328 | int | 
|  | 15329 | main () | 
|  | 15330 | { | 
|  | 15331 | return append_history (); | 
|  | 15332 | ; | 
|  | 15333 | return 0; | 
|  | 15334 | } | 
|  | 15335 | _ACEOF | 
|  | 15336 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 15337 | ac_cv_lib_readline_append_history=yes | 
|  | 15338 | else | 
|  | 15339 | ac_cv_lib_readline_append_history=no | 
|  | 15340 | fi | 
|  | 15341 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15342 | conftest$ac_exeext conftest.$ac_ext | 
|  | 15343 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15344 | fi | 
|  | 15345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 | 
|  | 15346 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } | 
|  | 15347 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : | 
|  | 15348 |  | 
|  | 15349 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h | 
|  | 15350 |  | 
|  | 15351 | fi | 
|  | 15352 |  | 
|  | 15353 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15354 | # End of readline checks: restore LIBS | 
|  | 15355 | LIBS=$LIBS_no_readline | 
|  | 15356 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
|  | 15358 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15359 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15360 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15361 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15362 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15363 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15364 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15365 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15367 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15368 |  | 
|  | 15369 | int main() | 
|  | 15370 | { | 
|  | 15371 | int val1 = nice(1); | 
|  | 15372 | if (val1 != -1 && val1 == nice(2)) | 
|  | 15373 | exit(0); | 
|  | 15374 | exit(1); | 
|  | 15375 | } | 
|  | 15376 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15377 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15378 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15379 | ac_cv_broken_nice=yes | 
|  | 15380 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15381 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15382 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15383 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15384 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15385 | fi | 
|  | 15386 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15387 | fi | 
|  | 15388 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
|  | 15390 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15391 | if test "$ac_cv_broken_nice" = yes | 
|  | 15392 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15393 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15394 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15395 |  | 
|  | 15396 | fi | 
|  | 15397 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
|  | 15399 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15400 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15401 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15402 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15403 | if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15404 | ac_cv_broken_poll=no | 
|  | 15405 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15407 | /* end confdefs.h.  */ | 
|  | 15408 |  | 
|  | 15409 | #include <poll.h> | 
|  | 15410 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15411 | int main() | 
|  | 15412 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15413 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15414 | int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15415 |  | 
|  | 15416 | close (42); | 
|  | 15417 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15418 | poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15419 | if (poll_test < 0) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15420 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15421 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15422 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15423 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15424 | return 1; | 
|  | 15425 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15426 |  | 
|  | 15427 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15428 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15429 | ac_cv_broken_poll=yes | 
|  | 15430 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15431 | ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15432 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15433 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15434 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15435 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15436 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15437 | fi | 
|  | 15438 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
|  | 15440 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15441 | if test "$ac_cv_broken_poll" = yes | 
|  | 15442 | then | 
|  | 15443 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15444 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15445 |  | 
|  | 15446 | fi | 
|  | 15447 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15448 | # Before we can test tzset, we need to check if struct tm has a tm_zone | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15449 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
|  | 15450 | # tzname[] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15451 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15452 | #include <$ac_cv_struct_tm> | 
|  | 15453 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15454 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15455 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15456 |  | 
|  | 15457 | cat >>confdefs.h <<_ACEOF | 
|  | 15458 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 15459 | _ACEOF | 
|  | 15460 |  | 
|  | 15461 |  | 
|  | 15462 | fi | 
|  | 15463 |  | 
|  | 15464 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 15465 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15466 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15467 |  | 
|  | 15468 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15469 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 15470 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15471 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15472 | ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15473 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15474 | ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15475 | fi | 
|  | 15476 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15477 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15478 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15479 | _ACEOF | 
|  | 15480 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 15482 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15483 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15484 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15485 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15487 | /* end confdefs.h.  */ | 
|  | 15488 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15489 | #if !HAVE_DECL_TZNAME | 
|  | 15490 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15491 | #endif | 
|  | 15492 |  | 
|  | 15493 | int | 
|  | 15494 | main () | 
|  | 15495 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15496 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15497 | ; | 
|  | 15498 | return 0; | 
|  | 15499 | } | 
|  | 15500 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15501 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15502 | ac_cv_var_tzname=yes | 
|  | 15503 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15504 | ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15505 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15506 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15507 | conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15508 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 15510 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15511 | if test $ac_cv_var_tzname = yes; then | 
|  | 15512 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15513 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15514 |  | 
|  | 15515 | fi | 
|  | 15516 | fi | 
|  | 15517 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15518 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15519 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
|  | 15521 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15522 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15523 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15524 | else | 
|  | 15525 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15526 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15527 | ac_cv_working_tzset=no | 
|  | 15528 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15530 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15531 |  | 
|  | 15532 | #include <stdlib.h> | 
|  | 15533 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15534 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15535 |  | 
|  | 15536 | #if HAVE_TZNAME | 
|  | 15537 | extern char *tzname[]; | 
|  | 15538 | #endif | 
|  | 15539 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15540 | int main() | 
|  | 15541 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15542 | /* Note that we need to ensure that not only does tzset(3) | 
|  | 15543 | do 'something' with localtime, but it works as documented | 
|  | 15544 | in the library reference and as expected by the test suite. | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15545 | This includes making sure that tzname is set properly if | 
|  | 15546 | tm->tm_zone does not exist since it is the alternative way | 
|  | 15547 | of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15548 |  | 
|  | 15549 | Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15550 | after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15551 | */ | 
|  | 15552 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15553 | time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15554 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
|  | 15555 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15556 | putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15557 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15558 | if (localtime(&groundhogday)->tm_hour != 0) | 
|  | 15559 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15560 | #if HAVE_TZNAME | 
|  | 15561 | /* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
|  | 15562 | if (strcmp(tzname[0], "UTC") || | 
|  | 15563 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
|  | 15564 | exit(1); | 
|  | 15565 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15566 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15567 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15568 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15569 | if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15570 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15571 | #if HAVE_TZNAME | 
|  | 15572 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
|  | 15573 | exit(1); | 
|  | 15574 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15575 |  | 
|  | 15576 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
|  | 15577 | tzset(); | 
|  | 15578 | if (localtime(&groundhogday)->tm_hour != 11) | 
|  | 15579 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15580 | #if HAVE_TZNAME | 
|  | 15581 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
|  | 15582 | exit(1); | 
|  | 15583 | #endif | 
|  | 15584 |  | 
|  | 15585 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15586 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
|  | 15587 | exit(1); | 
|  | 15588 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
|  | 15589 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15590 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15591 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15592 | exit(0); | 
|  | 15593 | } | 
|  | 15594 |  | 
|  | 15595 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15596 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15597 | ac_cv_working_tzset=yes | 
|  | 15598 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15599 | ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15600 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15601 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15602 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15603 | fi | 
|  | 15604 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15605 | fi | 
|  | 15606 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
|  | 15608 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15609 | if test "$ac_cv_working_tzset" = yes | 
|  | 15610 | then | 
|  | 15611 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15612 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15613 |  | 
|  | 15614 | fi | 
|  | 15615 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15616 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
|  | 15618 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15619 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15620 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15621 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15623 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15624 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15625 | int | 
|  | 15626 | main () | 
|  | 15627 | { | 
|  | 15628 |  | 
|  | 15629 | struct stat st; | 
|  | 15630 | st.st_mtim.tv_nsec = 1; | 
|  | 15631 |  | 
|  | 15632 | ; | 
|  | 15633 | return 0; | 
|  | 15634 | } | 
|  | 15635 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15636 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 15637 | ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15638 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15639 | ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15640 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15642 | fi | 
|  | 15643 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
|  | 15645 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15646 | if test "$ac_cv_stat_tv_nsec" = yes | 
|  | 15647 | then | 
|  | 15648 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15649 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15650 |  | 
|  | 15651 | fi | 
|  | 15652 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15653 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
|  | 15655 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15656 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15657 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15658 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15660 | /* end confdefs.h.  */ | 
|  | 15661 | #include <sys/stat.h> | 
|  | 15662 | int | 
|  | 15663 | main () | 
|  | 15664 | { | 
|  | 15665 |  | 
|  | 15666 | struct stat st; | 
|  | 15667 | st.st_mtimespec.tv_nsec = 1; | 
|  | 15668 |  | 
|  | 15669 | ; | 
|  | 15670 | return 0; | 
|  | 15671 | } | 
|  | 15672 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15673 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15674 | ac_cv_stat_tv_nsec2=yes | 
|  | 15675 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15676 | ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15677 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15679 | fi | 
|  | 15680 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
|  | 15682 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15683 | if test "$ac_cv_stat_tv_nsec2" = yes | 
|  | 15684 | then | 
|  | 15685 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15686 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15687 |  | 
|  | 15688 | fi | 
|  | 15689 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15690 | # first curses header check | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15691 | ac_save_cppflags="$CPPFLAGS" | 
|  | 15692 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15693 |  | 
|  | 15694 | for ac_header in curses.h ncurses.h | 
|  | 15695 | do : | 
|  | 15696 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15697 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
|  | 15698 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
|  | 15699 | cat >>confdefs.h <<_ACEOF | 
|  | 15700 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 15701 | _ACEOF | 
|  | 15702 |  | 
|  | 15703 | fi | 
|  | 15704 |  | 
|  | 15705 | done | 
|  | 15706 |  | 
|  | 15707 |  | 
|  | 15708 | # On Solaris, term.h requires curses.h | 
|  | 15709 | for ac_header in term.h | 
|  | 15710 | do : | 
|  | 15711 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
|  | 15712 | #ifdef HAVE_CURSES_H | 
|  | 15713 | #include <curses.h> | 
|  | 15714 | #endif | 
|  | 15715 |  | 
|  | 15716 | " | 
|  | 15717 | if test "x$ac_cv_header_term_h" = xyes; then : | 
|  | 15718 | cat >>confdefs.h <<_ACEOF | 
|  | 15719 | #define HAVE_TERM_H 1 | 
|  | 15720 | _ACEOF | 
|  | 15721 |  | 
|  | 15722 | fi | 
|  | 15723 |  | 
|  | 15724 | done | 
|  | 15725 |  | 
|  | 15726 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15727 | # On HP/UX 11.0, mvwdelch is a block with a return statement | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
|  | 15729 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15730 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15731 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15732 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15734 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15735 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15736 | int | 
|  | 15737 | main () | 
|  | 15738 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15739 |  | 
|  | 15740 | int rtn; | 
|  | 15741 | rtn = mvwdelch(0,0,0); | 
|  | 15742 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15743 | ; | 
|  | 15744 | return 0; | 
|  | 15745 | } | 
|  | 15746 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15747 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15748 | ac_cv_mvwdelch_is_expression=yes | 
|  | 15749 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15750 | ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15751 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15753 | fi | 
|  | 15754 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
|  | 15756 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15757 |  | 
|  | 15758 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
|  | 15759 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15760 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15761 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15762 |  | 
|  | 15763 | fi | 
|  | 15764 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
|  | 15766 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15767 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15768 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15769 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15771 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15772 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15773 | int | 
|  | 15774 | main () | 
|  | 15775 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15776 |  | 
|  | 15777 | WINDOW *w; | 
|  | 15778 | w->_flags = 0; | 
|  | 15779 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15780 | ; | 
|  | 15781 | return 0; | 
|  | 15782 | } | 
|  | 15783 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15784 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15785 | ac_cv_window_has_flags=yes | 
|  | 15786 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15787 | ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15788 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15790 | fi | 
|  | 15791 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
|  | 15793 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15794 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15795 |  | 
|  | 15796 | if test "$ac_cv_window_has_flags" = yes | 
|  | 15797 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15798 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15799 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15800 |  | 
|  | 15801 | fi | 
|  | 15802 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
|  | 15804 | $as_echo_n "checking for is_term_resized... " >&6; } | 
|  | 15805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15806 | /* end confdefs.h.  */ | 
|  | 15807 | #include <curses.h> | 
|  | 15808 | int | 
|  | 15809 | main () | 
|  | 15810 | { | 
|  | 15811 | void *x=is_term_resized | 
|  | 15812 | ; | 
|  | 15813 | return 0; | 
|  | 15814 | } | 
|  | 15815 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15816 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15817 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15818 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15819 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15821 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15822 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 15824 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15825 |  | 
|  | 15826 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15828 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
|  | 15830 | $as_echo_n "checking for resize_term... " >&6; } | 
|  | 15831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15832 | /* end confdefs.h.  */ | 
|  | 15833 | #include <curses.h> | 
|  | 15834 | int | 
|  | 15835 | main () | 
|  | 15836 | { | 
|  | 15837 | void *x=resize_term | 
|  | 15838 | ; | 
|  | 15839 | return 0; | 
|  | 15840 | } | 
|  | 15841 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15842 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15843 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15844 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15845 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15847 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15848 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 15850 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15851 |  | 
|  | 15852 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15854 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
|  | 15856 | $as_echo_n "checking for resizeterm... " >&6; } | 
|  | 15857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15858 | /* end confdefs.h.  */ | 
|  | 15859 | #include <curses.h> | 
|  | 15860 | int | 
|  | 15861 | main () | 
|  | 15862 | { | 
|  | 15863 | void *x=resizeterm | 
|  | 15864 | ; | 
|  | 15865 | return 0; | 
|  | 15866 | } | 
|  | 15867 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15868 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15869 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15870 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15871 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15873 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15874 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 15876 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15877 |  | 
|  | 15878 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15880 | # last curses configure check | 
|  | 15881 | CPPFLAGS=$ac_save_cppflags | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15882 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 | 
|  | 15884 | $as_echo "$as_me: checking for device files" >&6;} | 
|  | 15885 |  | 
|  | 15886 | if test "x$cross_compiling" = xyes; then | 
|  | 15887 | if test "${ac_cv_file__dev_ptmx+set}" != set; then | 
|  | 15888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
|  | 15889 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
|  | 15890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
|  | 15891 | $as_echo "not set" >&6; } | 
|  | 15892 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
|  | 15893 | fi | 
|  | 15894 | if test "${ac_cv_file__dev_ptc+set}" != set; then | 
|  | 15895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
|  | 15896 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
|  | 15897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
|  | 15898 | $as_echo "not set" >&6; } | 
|  | 15899 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
|  | 15900 | fi | 
|  | 15901 | fi | 
|  | 15902 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
|  | 15904 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15905 | if ${ac_cv_file__dev_ptmx+:} false; then : | 
|  | 15906 | $as_echo_n "(cached) " >&6 | 
|  | 15907 | else | 
|  | 15908 | test "$cross_compiling" = yes && | 
|  | 15909 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
|  | 15910 | if test -r "/dev/ptmx"; then | 
|  | 15911 | ac_cv_file__dev_ptmx=yes | 
|  | 15912 | else | 
|  | 15913 | ac_cv_file__dev_ptmx=no | 
|  | 15914 | fi | 
|  | 15915 | fi | 
|  | 15916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | 
|  | 15917 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | 
|  | 15918 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15919 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15920 | fi | 
|  | 15921 |  | 
|  | 15922 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15923 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15924 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15925 |  | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15926 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
|  | 15928 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15929 | if ${ac_cv_file__dev_ptc+:} false; then : | 
|  | 15930 | $as_echo_n "(cached) " >&6 | 
|  | 15931 | else | 
|  | 15932 | test "$cross_compiling" = yes && | 
|  | 15933 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
|  | 15934 | if test -r "/dev/ptc"; then | 
|  | 15935 | ac_cv_file__dev_ptc=yes | 
|  | 15936 | else | 
|  | 15937 | ac_cv_file__dev_ptc=no | 
|  | 15938 | fi | 
|  | 15939 | fi | 
|  | 15940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | 
|  | 15941 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | 
|  | 15942 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15943 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15944 | fi | 
|  | 15945 |  | 
|  | 15946 | if test "x$ac_cv_file__dev_ptc" = xyes; then | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15947 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15948 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15949 |  | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15950 | fi | 
|  | 15951 |  | 
| Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 15952 | if test $ac_sys_system = Darwin | 
|  | 15953 | then | 
|  | 15954 | LIBS="$LIBS -framework CoreFoundation" | 
|  | 15955 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15956 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
|  | 15958 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15959 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15960 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15961 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15962 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 15963 | ac_cv_have_size_t_format="cross -- assuming yes" | 
|  | 15964 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15965 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15967 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15968 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15969 | #include <stdio.h> | 
|  | 15970 | #include <stddef.h> | 
|  | 15971 | #include <string.h> | 
|  | 15972 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15973 | #ifdef HAVE_SYS_TYPES_H | 
|  | 15974 | #include <sys/types.h> | 
|  | 15975 | #endif | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15976 |  | 
|  | 15977 | #ifdef HAVE_SSIZE_T | 
|  | 15978 | typedef ssize_t Py_ssize_t; | 
|  | 15979 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
|  | 15980 | typedef long Py_ssize_t; | 
|  | 15981 | #else | 
|  | 15982 | typedef int Py_ssize_t; | 
|  | 15983 | #endif | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15984 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15985 | int main() | 
|  | 15986 | { | 
|  | 15987 | char buffer[256]; | 
|  | 15988 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15989 | if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
|  | 15990 | return 1; | 
|  | 15991 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15992 | if (strcmp(buffer, "123")) | 
|  | 15993 | return 1; | 
|  | 15994 |  | 
|  | 15995 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
|  | 15996 | return 1; | 
|  | 15997 |  | 
|  | 15998 | if (strcmp(buffer, "-123")) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15999 | return 1; | 
|  | 16000 |  | 
|  | 16001 | return 0; | 
|  | 16002 | } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16003 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16004 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16005 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16006 | ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16007 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16008 | ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16009 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16010 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16011 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 16012 | fi | 
|  | 16013 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16014 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
|  | 16016 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16017 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16018 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16019 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16020 |  | 
|  | 16021 | fi | 
|  | 16022 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16023 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16024 | #ifdef HAVE_SYS_TYPES_H | 
|  | 16025 | #include <sys/types.h> | 
|  | 16026 | #endif | 
|  | 16027 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 16028 | #include <sys/socket.h> | 
|  | 16029 | #endif | 
|  | 16030 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16031 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16032 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16033 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16034 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16035 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16036 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16037 |  | 
|  | 16038 | fi | 
|  | 16039 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16040 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 | 
|  | 16042 | $as_echo_n "checking for broken mbstowcs... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16043 | if ${ac_cv_broken_mbstowcs+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16044 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16045 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16046 | if test "$cross_compiling" = yes; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16047 | ac_cv_broken_mbstowcs=no | 
|  | 16048 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16050 | /* end confdefs.h.  */ | 
|  | 16051 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 16052 | #include <stdio.h> | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16053 | #include<stdlib.h> | 
|  | 16054 | int main() { | 
|  | 16055 | size_t len = -1; | 
|  | 16056 | const char *str = "text"; | 
|  | 16057 | len = mbstowcs(NULL, str, 0); | 
|  | 16058 | return (len != 4); | 
|  | 16059 | } | 
|  | 16060 |  | 
|  | 16061 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16062 | if ac_fn_c_try_run "$LINENO"; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16063 | ac_cv_broken_mbstowcs=no | 
|  | 16064 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16065 | ac_cv_broken_mbstowcs=yes | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16066 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16067 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16068 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16069 | fi | 
|  | 16070 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16071 | fi | 
|  | 16072 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 | 
|  | 16074 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16075 | if test "$ac_cv_broken_mbstowcs" = yes | 
|  | 16076 | then | 
|  | 16077 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16078 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16079 |  | 
|  | 16080 | fi | 
|  | 16081 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16082 | # Check for --with-computed-gotos | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
|  | 16084 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16085 |  | 
|  | 16086 | # Check whether --with-computed-gotos was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16087 | if test "${with_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16088 | withval=$with_computed_gotos; | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16089 | if test "$withval" = yes | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16090 | then | 
|  | 16091 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16092 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16093 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 16095 | $as_echo "yes" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16096 | fi | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16097 | if test "$withval" = no | 
|  | 16098 | then | 
|  | 16099 |  | 
|  | 16100 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
|  | 16101 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 16103 | $as_echo "no" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16104 | fi | 
|  | 16105 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16106 | else | 
|  | 16107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 16108 | $as_echo "no value specified" >&6; } | 
|  | 16109 | fi | 
|  | 16110 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16111 |  | 
| Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
|  | 16113 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
|  | 16114 | if ${ac_cv_computed_gotos+:} false; then : | 
|  | 16115 | $as_echo_n "(cached) " >&6 | 
|  | 16116 | else | 
|  | 16117 | if test "$cross_compiling" = yes; then : | 
|  | 16118 | if test "${with_computed_gotos+set}" = set; then | 
|  | 16119 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | 
|  | 16120 | else | 
|  | 16121 | ac_cv_computed_gotos=no | 
|  | 16122 | fi | 
|  | 16123 | else | 
|  | 16124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16125 | /* end confdefs.h.  */ | 
|  | 16126 |  | 
|  | 16127 | int main(int argc, char **argv) | 
|  | 16128 | { | 
|  | 16129 | static void *targets[1] = { &&LABEL1 }; | 
|  | 16130 | goto LABEL2; | 
|  | 16131 | LABEL1: | 
|  | 16132 | return 0; | 
|  | 16133 | LABEL2: | 
|  | 16134 | goto *targets[0]; | 
|  | 16135 | return 1; | 
|  | 16136 | } | 
|  | 16137 |  | 
|  | 16138 | _ACEOF | 
|  | 16139 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 16140 | ac_cv_computed_gotos=yes | 
|  | 16141 | else | 
|  | 16142 | ac_cv_computed_gotos=no | 
|  | 16143 | fi | 
|  | 16144 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16145 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 16146 | fi | 
|  | 16147 |  | 
|  | 16148 | fi | 
|  | 16149 |  | 
|  | 16150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
|  | 16151 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
|  | 16152 | case "$ac_cv_computed_gotos" in yes*) | 
|  | 16153 |  | 
|  | 16154 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
|  | 16155 |  | 
|  | 16156 | esac | 
|  | 16157 |  | 
| Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 16158 | case $ac_sys_system in | 
|  | 16159 | AIX*) | 
|  | 16160 |  | 
|  | 16161 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
|  | 16162 | ;; | 
|  | 16163 | esac | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16164 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16165 |  | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 16166 |  | 
|  | 16167 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16168 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
|  | 16169 | do | 
|  | 16170 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
|  | 16171 | done | 
|  | 16172 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16173 |  | 
| Ned Deily | 0db50cf | 2014-07-25 12:41:31 -0700 | [diff] [blame] | 16174 | SRCDIRS="Parser Grammar Objects Python Modules Mac Programs" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
|  | 16176 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16177 | for dir in $SRCDIRS; do | 
|  | 16178 | if test ! -d $dir; then | 
|  | 16179 | mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16180 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16181 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
|  | 16183 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16184 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16185 | # Availability of -O2: | 
|  | 16186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 | 
|  | 16187 | $as_echo_n "checking for -O2... " >&6; } | 
|  | 16188 | saved_cflags="$CFLAGS" | 
|  | 16189 | CFLAGS="-O2" | 
|  | 16190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16191 | /* end confdefs.h.  */ | 
|  | 16192 |  | 
|  | 16193 | int | 
|  | 16194 | main () | 
|  | 16195 | { | 
|  | 16196 |  | 
|  | 16197 |  | 
|  | 16198 | ; | 
|  | 16199 | return 0; | 
|  | 16200 | } | 
|  | 16201 | _ACEOF | 
|  | 16202 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 16203 | have_O2=yes | 
|  | 16204 | else | 
|  | 16205 | have_O2=no | 
|  | 16206 | fi | 
|  | 16207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | 
|  | 16209 | $as_echo "$have_O2" >&6; } | 
|  | 16210 | CFLAGS="$saved_cflags" | 
|  | 16211 |  | 
|  | 16212 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | 
|  | 16213 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | 
|  | 16214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 | 
|  | 16215 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | 
|  | 16216 | saved_cflags="$CFLAGS" | 
|  | 16217 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | 
|  | 16218 | if test "$have_O2" = no; then | 
|  | 16219 | CFLAGS="" | 
|  | 16220 | fi | 
|  | 16221 | if test "$cross_compiling" = yes; then : | 
|  | 16222 | have_glibc_memmove_bug=undefined | 
|  | 16223 | else | 
|  | 16224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16225 | /* end confdefs.h.  */ | 
|  | 16226 |  | 
|  | 16227 | #include <stdio.h> | 
|  | 16228 | #include <stdlib.h> | 
|  | 16229 | #include <string.h> | 
|  | 16230 | void foo(void *p, void *q) { memmove(p, q, 19); } | 
|  | 16231 | int main() { | 
|  | 16232 | char a[32] = "123456789000000000"; | 
|  | 16233 | foo(&a[9], a); | 
|  | 16234 | if (strcmp(a, "123456789123456789000000000") != 0) | 
|  | 16235 | return 1; | 
|  | 16236 | foo(a, &a[9]); | 
|  | 16237 | if (strcmp(a, "123456789000000000") != 0) | 
|  | 16238 | return 1; | 
|  | 16239 | return 0; | 
|  | 16240 | } | 
|  | 16241 |  | 
|  | 16242 | _ACEOF | 
|  | 16243 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 16244 | have_glibc_memmove_bug=no | 
|  | 16245 | else | 
|  | 16246 | have_glibc_memmove_bug=yes | 
|  | 16247 | fi | 
|  | 16248 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16249 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 16250 | fi | 
|  | 16251 |  | 
|  | 16252 | CFLAGS="$saved_cflags" | 
|  | 16253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 | 
|  | 16254 | $as_echo "$have_glibc_memmove_bug" >&6; } | 
|  | 16255 | if test "$have_glibc_memmove_bug" = yes; then | 
|  | 16256 |  | 
|  | 16257 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h | 
|  | 16258 |  | 
|  | 16259 | fi | 
|  | 16260 |  | 
|  | 16261 | if test "$have_gcc_asm_for_x87" = yes; then | 
|  | 16262 | # Some versions of gcc miscompile inline asm: | 
|  | 16263 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | 
|  | 16264 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | 
|  | 16265 | case $CC in | 
|  | 16266 | *gcc*) | 
|  | 16267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 | 
|  | 16268 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | 
|  | 16269 | saved_cflags="$CFLAGS" | 
|  | 16270 | CFLAGS="-O2" | 
|  | 16271 | if test "$cross_compiling" = yes; then : | 
|  | 16272 | have_ipa_pure_const_bug=undefined | 
|  | 16273 | else | 
|  | 16274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16275 | /* end confdefs.h.  */ | 
|  | 16276 |  | 
|  | 16277 | __attribute__((noinline)) int | 
|  | 16278 | foo(int *p) { | 
|  | 16279 | int r; | 
|  | 16280 | asm ( "movl \$6, (%1)\n\t" | 
|  | 16281 | "xorl %0, %0\n\t" | 
|  | 16282 | : "=r" (r) : "r" (p) : "memory" | 
|  | 16283 | ); | 
|  | 16284 | return r; | 
|  | 16285 | } | 
|  | 16286 | int main() { | 
|  | 16287 | int p = 8; | 
|  | 16288 | if ((foo(&p) ? : p) != 6) | 
|  | 16289 | return 1; | 
|  | 16290 | return 0; | 
|  | 16291 | } | 
|  | 16292 |  | 
|  | 16293 | _ACEOF | 
|  | 16294 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 16295 | have_ipa_pure_const_bug=no | 
|  | 16296 | else | 
|  | 16297 | have_ipa_pure_const_bug=yes | 
|  | 16298 | fi | 
|  | 16299 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16300 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 16301 | fi | 
|  | 16302 |  | 
|  | 16303 | CFLAGS="$saved_cflags" | 
|  | 16304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 | 
|  | 16305 | $as_echo "$have_ipa_pure_const_bug" >&6; } | 
|  | 16306 | if test "$have_ipa_pure_const_bug" = yes; then | 
|  | 16307 |  | 
|  | 16308 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h | 
|  | 16309 |  | 
|  | 16310 | fi | 
|  | 16311 | ;; | 
|  | 16312 | esac | 
|  | 16313 | fi | 
|  | 16314 |  | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16315 | # Check for stdatomic.h | 
|  | 16316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 | 
|  | 16317 | $as_echo_n "checking for stdatomic.h... " >&6; } | 
|  | 16318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16319 | /* end confdefs.h.  */ | 
|  | 16320 |  | 
|  | 16321 |  | 
|  | 16322 | #include <stdatomic.h> | 
| Victor Stinner | 923e06f | 2015-01-14 16:01:46 +0100 | [diff] [blame] | 16323 | atomic_int value = ATOMIC_VAR_INIT(1); | 
|  | 16324 | _Atomic void *py_atomic_address = (void*) &value; | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16325 | int main() { | 
|  | 16326 | int loaded_value = atomic_load(&value); | 
|  | 16327 | return 0; | 
|  | 16328 | } | 
|  | 16329 |  | 
|  | 16330 |  | 
|  | 16331 | _ACEOF | 
|  | 16332 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16333 | have_stdatomic_h=yes | 
|  | 16334 | else | 
|  | 16335 | have_stdatomic_h=no | 
|  | 16336 | fi | 
|  | 16337 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16338 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16339 |  | 
|  | 16340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 | 
|  | 16341 | $as_echo "$have_stdatomic_h" >&6; } | 
|  | 16342 |  | 
|  | 16343 | if test "$have_stdatomic_h" = yes; then | 
|  | 16344 |  | 
|  | 16345 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h | 
|  | 16346 |  | 
|  | 16347 | fi | 
|  | 16348 |  | 
|  | 16349 | # Check for GCC >= 4.7 __atomic builtins | 
|  | 16350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 | 
|  | 16351 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } | 
|  | 16352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16353 | /* end confdefs.h.  */ | 
|  | 16354 |  | 
|  | 16355 |  | 
|  | 16356 | volatile int val = 1; | 
|  | 16357 | int main() { | 
|  | 16358 | __atomic_load_n(&val, __ATOMIC_SEQ_CST); | 
|  | 16359 | return 0; | 
|  | 16360 | } | 
|  | 16361 |  | 
|  | 16362 |  | 
|  | 16363 | _ACEOF | 
|  | 16364 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16365 | have_builtin_atomic=yes | 
|  | 16366 | else | 
|  | 16367 | have_builtin_atomic=no | 
|  | 16368 | fi | 
|  | 16369 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16370 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16371 |  | 
|  | 16372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 | 
|  | 16373 | $as_echo "$have_builtin_atomic" >&6; } | 
|  | 16374 |  | 
|  | 16375 | if test "$have_builtin_atomic" = yes; then | 
|  | 16376 |  | 
|  | 16377 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h | 
|  | 16378 |  | 
|  | 16379 | fi | 
|  | 16380 |  | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 16381 | # ensurepip option | 
|  | 16382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | 
|  | 16383 | $as_echo_n "checking for ensurepip... " >&6; } | 
|  | 16384 |  | 
|  | 16385 | # Check whether --with-ensurepip was given. | 
|  | 16386 | if test "${with_ensurepip+set}" = set; then : | 
|  | 16387 | withval=$with_ensurepip; | 
|  | 16388 | else | 
|  | 16389 | with_ensurepip=upgrade | 
|  | 16390 | fi | 
|  | 16391 |  | 
|  | 16392 | case $with_ensurepip in #( | 
|  | 16393 | yes|upgrade) : | 
|  | 16394 | ENSUREPIP=upgrade ;; #( | 
|  | 16395 | install) : | 
|  | 16396 | ENSUREPIP=install ;; #( | 
|  | 16397 | no) : | 
|  | 16398 | ENSUREPIP=no ;; #( | 
|  | 16399 | *) : | 
|  | 16400 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | 
|  | 16401 | esac | 
|  | 16402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | 
|  | 16403 | $as_echo "$ENSUREPIP" >&6; } | 
|  | 16404 |  | 
|  | 16405 |  | 
| Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 16406 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined | 
|  | 16407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 | 
|  | 16408 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } | 
|  | 16409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16410 | /* end confdefs.h.  */ | 
|  | 16411 |  | 
|  | 16412 |  | 
|  | 16413 | #include <dirent.h> | 
|  | 16414 |  | 
|  | 16415 | int main() { | 
|  | 16416 | struct dirent entry; | 
|  | 16417 | return entry.d_type == DT_UNKNOWN; | 
|  | 16418 | } | 
|  | 16419 |  | 
|  | 16420 |  | 
|  | 16421 | _ACEOF | 
|  | 16422 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16423 | have_dirent_d_type=yes | 
|  | 16424 | else | 
|  | 16425 | have_dirent_d_type=no | 
|  | 16426 | fi | 
|  | 16427 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16428 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 | 
|  | 16430 | $as_echo "$have_dirent_d_type" >&6; } | 
|  | 16431 |  | 
|  | 16432 | if test "$have_dirent_d_type" = yes; then | 
|  | 16433 |  | 
|  | 16434 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h | 
|  | 16435 |  | 
|  | 16436 | fi | 
|  | 16437 |  | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16438 | # check if the Linux getrandom() syscall is available | 
|  | 16439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 | 
|  | 16440 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } | 
|  | 16441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16442 | /* end confdefs.h.  */ | 
|  | 16443 |  | 
|  | 16444 |  | 
| Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 16445 | #include <unistd.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16446 | #include <sys/syscall.h> | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16447 | #include <linux/random.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16448 |  | 
|  | 16449 | int main() { | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16450 | char buffer[1]; | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16451 | const size_t buflen = sizeof(buffer); | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16452 | const int flags = GRND_NONBLOCK; | 
|  | 16453 | /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16454 | (void)syscall(SYS_getrandom, buffer, buflen, flags); | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16455 | return 0; | 
|  | 16456 | } | 
|  | 16457 |  | 
|  | 16458 |  | 
|  | 16459 | _ACEOF | 
|  | 16460 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16461 | have_getrandom_syscall=yes | 
|  | 16462 | else | 
|  | 16463 | have_getrandom_syscall=no | 
|  | 16464 | fi | 
|  | 16465 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16466 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 | 
|  | 16468 | $as_echo "$have_getrandom_syscall" >&6; } | 
|  | 16469 |  | 
|  | 16470 | if test "$have_getrandom_syscall" = yes; then | 
|  | 16471 |  | 
|  | 16472 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h | 
|  | 16473 |  | 
|  | 16474 | fi | 
|  | 16475 |  | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16476 | # check if the getrandom() function is available | 
|  | 16477 | # the test was written for the Solaris function of <sys/random.h> | 
|  | 16478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 | 
|  | 16479 | $as_echo_n "checking for the getrandom() function... " >&6; } | 
|  | 16480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16481 | /* end confdefs.h.  */ | 
|  | 16482 |  | 
|  | 16483 |  | 
|  | 16484 | #include <sys/random.h> | 
|  | 16485 |  | 
|  | 16486 | int main() { | 
|  | 16487 | char buffer[1]; | 
|  | 16488 | const size_t buflen = sizeof(buffer); | 
|  | 16489 | const int flags = 0; | 
|  | 16490 | /* ignore the result, Python checks for ENOSYS at runtime */ | 
|  | 16491 | (void)getrandom(buffer, buflen, flags); | 
|  | 16492 | return 0; | 
|  | 16493 | } | 
|  | 16494 |  | 
|  | 16495 |  | 
|  | 16496 | _ACEOF | 
|  | 16497 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16498 | have_getrandom=yes | 
|  | 16499 | else | 
|  | 16500 | have_getrandom=no | 
|  | 16501 | fi | 
|  | 16502 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16503 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 | 
|  | 16505 | $as_echo "$have_getrandom" >&6; } | 
|  | 16506 |  | 
|  | 16507 | if test "$have_getrandom" = yes; then | 
|  | 16508 |  | 
|  | 16509 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h | 
|  | 16510 |  | 
|  | 16511 | fi | 
|  | 16512 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16513 | # generate output files | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 16514 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc Misc/python-config.sh" | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 16515 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 16516 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
|  | 16517 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16518 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16519 | # This file is a shell script that caches the results of configure | 
|  | 16520 | # tests run on this system so they can be shared between configure | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16521 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 16522 | # It is not useful on other systems.  If it contains results you don't | 
|  | 16523 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16524 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16525 | # config.status only pays attention to the cache file if you give it | 
|  | 16526 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16527 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16528 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16529 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 16530 | # following values. | 
|  | 16531 |  | 
|  | 16532 | _ACEOF | 
|  | 16533 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16534 | # The following way of writing the cache mishandles newlines in values, | 
|  | 16535 | # but we know of no workaround that is simple, portable, and efficient. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16536 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16537 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 16538 | # and sets the high bit in the cache file unless we assign to the vars. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16539 | ( | 
|  | 16540 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
|  | 16541 | eval ac_val=\$$ac_var | 
|  | 16542 | case $ac_val in #( | 
|  | 16543 | *${as_nl}*) | 
|  | 16544 | case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16545 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 16546 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16547 | esac | 
|  | 16548 | case $ac_var in #( | 
|  | 16549 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16550 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 16551 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16552 | esac ;; | 
|  | 16553 | esac | 
|  | 16554 | done | 
|  | 16555 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16556 | (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16557 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
|  | 16558 | *${as_nl}ac_space=\ *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16559 | # `set' does not quote correctly, so add quotes: double-quote | 
|  | 16560 | # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16561 | sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16562 | "s/'/'\\\\''/g; | 
|  | 16563 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16564 | ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16565 | *) | 
|  | 16566 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16567 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16568 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16569 | esac | | 
|  | 16570 | sort | 
|  | 16571 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16572 | sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16573 | /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16574 | t clear | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16575 | :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16576 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 16577 | t end | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16578 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 16579 | :end' >>confcache | 
|  | 16580 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
|  | 16581 | if test -w "$cache_file"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16582 | if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16583 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
|  | 16584 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16585 | if test ! -f "$cache_file" || test -h "$cache_file"; then | 
|  | 16586 | cat confcache >"$cache_file" | 
|  | 16587 | else | 
|  | 16588 | case $cache_file in #( | 
|  | 16589 | */* | ?:*) | 
|  | 16590 | mv -f confcache "$cache_file"$$ && | 
|  | 16591 | mv -f "$cache_file"$$ "$cache_file" ;; #( | 
|  | 16592 | *) | 
|  | 16593 | mv -f confcache "$cache_file" ;; | 
|  | 16594 | esac | 
|  | 16595 | fi | 
|  | 16596 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16597 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16598 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
|  | 16599 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16600 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16601 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16602 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16603 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16604 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 16605 | # Let make expand exec_prefix. | 
|  | 16606 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16607 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16608 | DEFS=-DHAVE_CONFIG_H | 
|  | 16609 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16610 | ac_libobjs= | 
|  | 16611 | ac_ltlibobjs= | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16612 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16613 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 16614 | # 1. Remove the extension, and $U if already installed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16615 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16616 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16617 | # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
|  | 16618 | #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16619 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
|  | 16620 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16621 | done | 
|  | 16622 | LIBOBJS=$ac_libobjs | 
|  | 16623 |  | 
|  | 16624 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 16625 |  | 
|  | 16626 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16627 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16628 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16629 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16630 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16631 | ac_clean_files_save=$ac_clean_files | 
|  | 16632 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16633 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
|  | 16634 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
|  | 16635 | as_write_fail=0 | 
|  | 16636 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16637 | #! $SHELL | 
|  | 16638 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16639 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16640 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16641 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16642 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16643 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16644 | ac_cs_recheck=false | 
|  | 16645 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16646 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16647 | SHELL=\${CONFIG_SHELL-$SHELL} | 
|  | 16648 | export SHELL | 
|  | 16649 | _ASEOF | 
|  | 16650 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
|  | 16651 | ## -------------------- ## | 
|  | 16652 | ## M4sh Initialization. ## | 
|  | 16653 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16654 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16655 | # Be more Bourne compatible | 
|  | 16656 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16657 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16658 | emulate sh | 
|  | 16659 | NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16660 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16661 | # is contrary to our usage.  Disable this feature. | 
|  | 16662 | alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16663 | setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 16664 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16665 | case `(set -o) 2>/dev/null` in #( | 
|  | 16666 | *posix*) : | 
|  | 16667 | set -o posix ;; #( | 
|  | 16668 | *) : | 
|  | 16669 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16670 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16671 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16672 |  | 
|  | 16673 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16674 | as_nl=' | 
|  | 16675 | ' | 
|  | 16676 | export as_nl | 
|  | 16677 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 16678 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 16679 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 16680 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 16681 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 16682 | # but without wasting forks for bash or zsh. | 
|  | 16683 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 16684 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 16685 | as_echo='print -r --' | 
|  | 16686 | as_echo_n='print -rn --' | 
|  | 16687 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 16688 | as_echo='printf %s\n' | 
|  | 16689 | as_echo_n='printf %s' | 
|  | 16690 | else | 
|  | 16691 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 16692 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 16693 | as_echo_n='/usr/ucb/echo -n' | 
|  | 16694 | else | 
|  | 16695 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 16696 | as_echo_n_body='eval | 
|  | 16697 | arg=$1; | 
|  | 16698 | case $arg in #( | 
|  | 16699 | *"$as_nl"*) | 
|  | 16700 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 16701 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 16702 | esac; | 
|  | 16703 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 16704 | ' | 
|  | 16705 | export as_echo_n_body | 
|  | 16706 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 16707 | fi | 
|  | 16708 | export as_echo_body | 
|  | 16709 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 16710 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16711 |  | 
|  | 16712 | # The user is always right. | 
|  | 16713 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16714 | PATH_SEPARATOR=: | 
|  | 16715 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 16716 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 16717 | PATH_SEPARATOR=';' | 
|  | 16718 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16719 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16720 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16721 |  | 
|  | 16722 | # IFS | 
|  | 16723 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 16724 | # there to prevent editors from complaining about space-tab. | 
|  | 16725 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 16726 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16727 | IFS=" ""	$as_nl" | 
|  | 16728 |  | 
|  | 16729 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16730 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16731 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16732 | *[\\/]* ) as_myself=$0 ;; | 
|  | 16733 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16734 | for as_dir in $PATH | 
|  | 16735 | do | 
|  | 16736 | IFS=$as_save_IFS | 
|  | 16737 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16738 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 16739 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16740 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16741 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16742 | ;; | 
|  | 16743 | esac | 
|  | 16744 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 16745 | # in which case we are not to be found in the path. | 
|  | 16746 | if test "x$as_myself" = x; then | 
|  | 16747 | as_myself=$0 | 
|  | 16748 | fi | 
|  | 16749 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16750 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 16751 | exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16752 | fi | 
|  | 16753 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16754 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 16755 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 16756 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 16757 | # trigger a bug in pdksh 5.2.14. | 
|  | 16758 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 16759 | do eval test x\${$as_var+set} = xset \ | 
|  | 16760 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16761 | done | 
|  | 16762 | PS1='$ ' | 
|  | 16763 | PS2='> ' | 
|  | 16764 | PS4='+ ' | 
|  | 16765 |  | 
|  | 16766 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16767 | LC_ALL=C | 
|  | 16768 | export LC_ALL | 
|  | 16769 | LANGUAGE=C | 
|  | 16770 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16771 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16772 | # CDPATH. | 
|  | 16773 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 16774 |  | 
|  | 16775 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16776 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
|  | 16777 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16778 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 16779 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16780 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16781 | as_fn_error () | 
|  | 16782 | { | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16783 | as_status=$1; test $as_status -eq 0 && as_status=1 | 
|  | 16784 | if test "$4"; then | 
|  | 16785 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 16786 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16787 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16788 | $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16789 | as_fn_exit $as_status | 
|  | 16790 | } # as_fn_error | 
|  | 16791 |  | 
|  | 16792 |  | 
|  | 16793 | # as_fn_set_status STATUS | 
|  | 16794 | # ----------------------- | 
|  | 16795 | # Set $? to STATUS, without forking. | 
|  | 16796 | as_fn_set_status () | 
|  | 16797 | { | 
|  | 16798 | return $1 | 
|  | 16799 | } # as_fn_set_status | 
|  | 16800 |  | 
|  | 16801 | # as_fn_exit STATUS | 
|  | 16802 | # ----------------- | 
|  | 16803 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 16804 | as_fn_exit () | 
|  | 16805 | { | 
|  | 16806 | set +e | 
|  | 16807 | as_fn_set_status $1 | 
|  | 16808 | exit $1 | 
|  | 16809 | } # as_fn_exit | 
|  | 16810 |  | 
|  | 16811 | # as_fn_unset VAR | 
|  | 16812 | # --------------- | 
|  | 16813 | # Portably unset VAR. | 
|  | 16814 | as_fn_unset () | 
|  | 16815 | { | 
|  | 16816 | { eval $1=; unset $1;} | 
|  | 16817 | } | 
|  | 16818 | as_unset=as_fn_unset | 
|  | 16819 | # as_fn_append VAR VALUE | 
|  | 16820 | # ---------------------- | 
|  | 16821 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 16822 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 16823 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 16824 | # implementations. | 
|  | 16825 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 16826 | eval 'as_fn_append () | 
|  | 16827 | { | 
|  | 16828 | eval $1+=\$2 | 
|  | 16829 | }' | 
|  | 16830 | else | 
|  | 16831 | as_fn_append () | 
|  | 16832 | { | 
|  | 16833 | eval $1=\$$1\$2 | 
|  | 16834 | } | 
|  | 16835 | fi # as_fn_append | 
|  | 16836 |  | 
|  | 16837 | # as_fn_arith ARG... | 
|  | 16838 | # ------------------ | 
|  | 16839 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 16840 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 16841 | # must be portable across $(()) and expr. | 
|  | 16842 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 16843 | eval 'as_fn_arith () | 
|  | 16844 | { | 
|  | 16845 | as_val=$(( $* )) | 
|  | 16846 | }' | 
|  | 16847 | else | 
|  | 16848 | as_fn_arith () | 
|  | 16849 | { | 
|  | 16850 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 16851 | } | 
|  | 16852 | fi # as_fn_arith | 
|  | 16853 |  | 
|  | 16854 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16855 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 16856 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 16857 | as_expr=expr | 
|  | 16858 | else | 
|  | 16859 | as_expr=false | 
|  | 16860 | fi | 
|  | 16861 |  | 
|  | 16862 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 16863 | as_basename=basename | 
|  | 16864 | else | 
|  | 16865 | as_basename=false | 
|  | 16866 | fi | 
|  | 16867 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16868 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 16869 | as_dirname=dirname | 
|  | 16870 | else | 
|  | 16871 | as_dirname=false | 
|  | 16872 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16873 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16874 | as_me=`$as_basename -- "$0" || | 
|  | 16875 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 16876 | X"$0" : 'X\(//\)$' \| \ | 
|  | 16877 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16878 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16879 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 16880 | s//\1/ | 
|  | 16881 | q | 
|  | 16882 | } | 
|  | 16883 | /^X\/\(\/\/\)$/{ | 
|  | 16884 | s//\1/ | 
|  | 16885 | q | 
|  | 16886 | } | 
|  | 16887 | /^X\/\(\/\).*/{ | 
|  | 16888 | s//\1/ | 
|  | 16889 | q | 
|  | 16890 | } | 
|  | 16891 | s/.*/./; q'` | 
|  | 16892 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16893 | # Avoid depending upon Character Ranges. | 
|  | 16894 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 16895 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 16896 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 16897 | as_cr_digits='0123456789' | 
|  | 16898 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16899 |  | 
|  | 16900 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16901 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16902 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16903 | case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16904 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16905 | xy)  ECHO_C='\c';; | 
|  | 16906 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 16907 | ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16908 | esac;; | 
|  | 16909 | *) | 
|  | 16910 | ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16911 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 16912 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16913 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16914 | if test -d conf$$.dir; then | 
|  | 16915 | rm -f conf$$.dir/conf$$.file | 
|  | 16916 | else | 
|  | 16917 | rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16918 | mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16919 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16920 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 16921 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 16922 | as_ln_s='ln -s' | 
|  | 16923 | # ... but there are two gotchas: | 
|  | 16924 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 16925 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16926 | # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16927 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16928 | as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16929 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 16930 | as_ln_s=ln | 
|  | 16931 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16932 | as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16933 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16934 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16935 | as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16936 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16937 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 16938 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16939 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16940 |  | 
|  | 16941 | # as_fn_mkdir_p | 
|  | 16942 | # ------------- | 
|  | 16943 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 16944 | as_fn_mkdir_p () | 
|  | 16945 | { | 
|  | 16946 |  | 
|  | 16947 | case $as_dir in #( | 
|  | 16948 | -*) as_dir=./$as_dir;; | 
|  | 16949 | esac | 
|  | 16950 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 16951 | as_dirs= | 
|  | 16952 | while :; do | 
|  | 16953 | case $as_dir in #( | 
|  | 16954 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 16955 | *) as_qdir=$as_dir;; | 
|  | 16956 | esac | 
|  | 16957 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 16958 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 16959 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 16960 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 16961 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 16962 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 16963 | $as_echo X"$as_dir" | | 
|  | 16964 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 16965 | s//\1/ | 
|  | 16966 | q | 
|  | 16967 | } | 
|  | 16968 | /^X\(\/\/\)[^/].*/{ | 
|  | 16969 | s//\1/ | 
|  | 16970 | q | 
|  | 16971 | } | 
|  | 16972 | /^X\(\/\/\)$/{ | 
|  | 16973 | s//\1/ | 
|  | 16974 | q | 
|  | 16975 | } | 
|  | 16976 | /^X\(\/\).*/{ | 
|  | 16977 | s//\1/ | 
|  | 16978 | q | 
|  | 16979 | } | 
|  | 16980 | s/.*/./; q'` | 
|  | 16981 | test -d "$as_dir" && break | 
|  | 16982 | done | 
|  | 16983 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16984 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16985 |  | 
|  | 16986 |  | 
|  | 16987 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16988 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16989 | as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16990 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16991 | test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16992 | as_mkdir_p=false | 
|  | 16993 | fi | 
|  | 16994 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16995 |  | 
|  | 16996 | # as_fn_executable_p FILE | 
|  | 16997 | # ----------------------- | 
|  | 16998 | # Test if FILE is an executable regular file. | 
|  | 16999 | as_fn_executable_p () | 
|  | 17000 | { | 
|  | 17001 | test -f "$1" && test -x "$1" | 
|  | 17002 | } # as_fn_executable_p | 
|  | 17003 | as_test_x='test -x' | 
|  | 17004 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17005 |  | 
|  | 17006 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17007 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17008 |  | 
|  | 17009 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17010 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17011 |  | 
|  | 17012 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17013 | exec 6>&1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17014 | ## ----------------------------------- ## | 
|  | 17015 | ## Main body of $CONFIG_STATUS script. ## | 
|  | 17016 | ## ----------------------------------- ## | 
|  | 17017 | _ASEOF | 
|  | 17018 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17019 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17020 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 17021 | # Save the log message, to keep $0 and so on meaningful, and to | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17022 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17023 | # values after options handling. | 
|  | 17024 | ac_log=" | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 17025 | This file was extended by python $as_me 3.6, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17026 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17027 |  | 
|  | 17028 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 17029 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 17030 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 17031 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 17032 | $ $0 $@ | 
|  | 17033 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17034 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 17035 | " | 
|  | 17036 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17037 | _ACEOF | 
|  | 17038 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17039 | case $ac_config_files in *" | 
|  | 17040 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
|  | 17041 | esac | 
|  | 17042 |  | 
|  | 17043 | case $ac_config_headers in *" | 
|  | 17044 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
|  | 17045 | esac | 
|  | 17046 |  | 
|  | 17047 |  | 
|  | 17048 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17049 | # Files that config.status was made for. | 
| Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 17050 | config_files="$ac_config_files" | 
|  | 17051 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17052 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17053 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17054 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17055 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17056 | ac_cs_usage="\ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17057 | \`$as_me' instantiates files and other configuration actions | 
|  | 17058 | from templates according to the current configuration.  Unless the files | 
|  | 17059 | and actions are specified as TAGs, all are instantiated by default. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17060 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17061 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17062 |  | 
|  | 17063 | -h, --help       print this help, then exit | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17064 | -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17065 | --config     print configuration, then exit | 
|  | 17066 | -q, --quiet, --silent | 
|  | 17067 | do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17068 | -d, --debug      don't remove temporary files | 
|  | 17069 | --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17070 | --file=FILE[:TEMPLATE] | 
|  | 17071 | instantiate the configuration file FILE | 
|  | 17072 | --header=FILE[:TEMPLATE] | 
|  | 17073 | instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17074 |  | 
|  | 17075 | Configuration files: | 
|  | 17076 | $config_files | 
|  | 17077 |  | 
|  | 17078 | Configuration headers: | 
|  | 17079 | $config_headers | 
|  | 17080 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 17081 | Report bugs to <https://bugs.python.org/>." | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 17082 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17083 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17084 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17085 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17086 | ac_cs_version="\\ | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 17087 | python config.status 3.6 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17088 | configured by $0, generated by GNU Autoconf 2.69, | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17089 | with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17090 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17091 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17092 | This config.status script is free software; the Free Software Foundation | 
|  | 17093 | gives unlimited permission to copy, distribute and modify it." | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17094 |  | 
|  | 17095 | ac_pwd='$ac_pwd' | 
|  | 17096 | srcdir='$srcdir' | 
|  | 17097 | INSTALL='$INSTALL' | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17098 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17099 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17100 | _ACEOF | 
|  | 17101 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17102 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 17103 | # The default lists apply if the user does not specify any file. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17104 | ac_need_defaults=: | 
|  | 17105 | while test $# != 0 | 
|  | 17106 | do | 
|  | 17107 | case $1 in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17108 | --*=?*) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17109 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 17110 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17111 | ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17112 | ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17113 | --*=) | 
|  | 17114 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 17115 | ac_optarg= | 
|  | 17116 | ac_shift=: | 
|  | 17117 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17118 | *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17119 | ac_option=$1 | 
|  | 17120 | ac_optarg=$2 | 
|  | 17121 | ac_shift=shift | 
|  | 17122 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17123 | esac | 
|  | 17124 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17125 | case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17126 | # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17127 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 17128 | ac_cs_recheck=: ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17129 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17130 | $as_echo "$ac_cs_version"; exit ;; | 
|  | 17131 | --config | --confi | --conf | --con | --co | --c ) | 
|  | 17132 | $as_echo "$ac_cs_config"; exit ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17133 | --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17134 | debug=: ;; | 
|  | 17135 | --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17136 | $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17137 | case $ac_optarg in | 
|  | 17138 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17139 | '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17140 | esac | 
|  | 17141 | as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17142 | ac_need_defaults=false;; | 
|  | 17143 | --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17144 | $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17145 | case $ac_optarg in | 
|  | 17146 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 17147 | esac | 
|  | 17148 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17149 | ac_need_defaults=false;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17150 | --he | --h) | 
|  | 17151 | # Conflict between --help and --header | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17152 | as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17153 | Try \`$0 --help' for more information.";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17154 | --help | --hel | -h ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17155 | $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17156 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 17157 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 17158 | ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17159 |  | 
|  | 17160 | # This is an error. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17161 | -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17162 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17163 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17164 | *) as_fn_append ac_config_targets " $1" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17165 | ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17166 |  | 
|  | 17167 | esac | 
|  | 17168 | shift | 
|  | 17169 | done | 
|  | 17170 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17171 | ac_configure_extra_args= | 
|  | 17172 |  | 
|  | 17173 | if $ac_cs_silent; then | 
|  | 17174 | exec 6>/dev/null | 
|  | 17175 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 17176 | fi | 
|  | 17177 |  | 
|  | 17178 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17179 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17180 | if \$ac_cs_recheck; then | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17181 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17182 | shift | 
|  | 17183 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
|  | 17184 | CONFIG_SHELL='$SHELL' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17185 | export CONFIG_SHELL | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17186 | exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17187 | fi | 
|  | 17188 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17189 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17190 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17191 | exec 5>>config.log | 
|  | 17192 | { | 
|  | 17193 | echo | 
|  | 17194 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 17195 | ## Running $as_me. ## | 
|  | 17196 | _ASBOX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17197 | $as_echo "$ac_log" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17198 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17199 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17200 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17201 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17202 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17203 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17204 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17205 |  | 
|  | 17206 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17207 | for ac_config_target in $ac_config_targets | 
|  | 17208 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17209 | case $ac_config_target in | 
|  | 17210 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
|  | 17211 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
|  | 17212 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 17213 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
|  | 17214 | "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17215 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
|  | 17216 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17217 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17218 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17219 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17220 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17221 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17222 | esac | 
|  | 17223 | done | 
|  | 17224 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17225 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17226 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 17227 | # then the envvar interface is used.  Set only those that are not. | 
|  | 17228 | # We use the long form for the default assignment because of an extremely | 
|  | 17229 | # bizarre bug on SunOS 4.1.3. | 
|  | 17230 | if $ac_need_defaults; then | 
|  | 17231 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 17232 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
|  | 17233 | fi | 
|  | 17234 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17235 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17236 | # simply because there is no reason against having it here, and in addition, | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17237 | # creating and moving files from /tmp can sometimes cause problems. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17238 | # Hook for its removal unless debugging. | 
|  | 17239 | # Note that there is a small window in which the directory will not be cleaned: | 
|  | 17240 | # after its creation but before its name has been assigned to `$tmp'. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17241 | $debug || | 
|  | 17242 | { | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17243 | tmp= ac_tmp= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17244 | trap 'exit_status=$? | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17245 | : "${ac_tmp:=$tmp}" | 
|  | 17246 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17247 | ' 0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17248 | trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17249 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17250 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17251 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17252 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17253 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17254 | test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17255 | }  || | 
|  | 17256 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17257 | tmp=./conf$$-$RANDOM | 
|  | 17258 | (umask 077 && mkdir "$tmp") | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17259 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17260 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17261 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17262 | # Set up the scripts for CONFIG_FILES section. | 
|  | 17263 | # No need to generate them if there are no CONFIG_FILES. | 
|  | 17264 | # This happens for instance with `./config.status config.h'. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17265 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17266 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17267 |  | 
|  | 17268 | ac_cr=`echo X | tr X '\015'` | 
|  | 17269 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
|  | 17270 | # But we know of no other shell where ac_cr would be empty at this | 
|  | 17271 | # point, so we can use a bashism as a fallback. | 
|  | 17272 | if test "x$ac_cr" = x; then | 
|  | 17273 | eval ac_cr=\$\'\\r\' | 
|  | 17274 | fi | 
|  | 17275 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
|  | 17276 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17277 | ac_cs_awk_cr='\\r' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17278 | else | 
|  | 17279 | ac_cs_awk_cr=$ac_cr | 
|  | 17280 | fi | 
|  | 17281 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17282 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17283 | _ACEOF | 
|  | 17284 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17285 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17286 | { | 
|  | 17287 | echo "cat >conf$$subs.awk <<_ACEOF" && | 
|  | 17288 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
|  | 17289 | echo "_ACEOF" | 
|  | 17290 | } >conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17291 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
|  | 17292 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17293 | ac_delim='%!_!# ' | 
|  | 17294 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17295 | . ./conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17296 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17297 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17298 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
|  | 17299 | if test $ac_delim_n = $ac_delim_num; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17300 | break | 
|  | 17301 | elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17302 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17303 | else | 
|  | 17304 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17305 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17306 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17307 | rm -f conf$$subs.sh | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17308 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17309 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17310 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17311 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17312 | sed -n ' | 
|  | 17313 | h | 
|  | 17314 | s/^/S["/; s/!.*/"]=/ | 
|  | 17315 | p | 
|  | 17316 | g | 
|  | 17317 | s/^[^!]*!// | 
|  | 17318 | :repl | 
|  | 17319 | t repl | 
|  | 17320 | s/'"$ac_delim"'$// | 
|  | 17321 | t delim | 
|  | 17322 | :nl | 
|  | 17323 | h | 
|  | 17324 | s/\(.\{148\}\)..*/\1/ | 
|  | 17325 | t more1 | 
|  | 17326 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
|  | 17327 | p | 
|  | 17328 | n | 
|  | 17329 | b repl | 
|  | 17330 | :more1 | 
|  | 17331 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 17332 | p | 
|  | 17333 | g | 
|  | 17334 | s/.\{148\}// | 
|  | 17335 | t nl | 
|  | 17336 | :delim | 
|  | 17337 | h | 
|  | 17338 | s/\(.\{148\}\)..*/\1/ | 
|  | 17339 | t more2 | 
|  | 17340 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
|  | 17341 | p | 
|  | 17342 | b | 
|  | 17343 | :more2 | 
|  | 17344 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 17345 | p | 
|  | 17346 | g | 
|  | 17347 | s/.\{148\}// | 
|  | 17348 | t delim | 
|  | 17349 | ' <conf$$subs.awk | sed ' | 
|  | 17350 | /^[^""]/{ | 
|  | 17351 | N | 
|  | 17352 | s/\n// | 
|  | 17353 | } | 
|  | 17354 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 17355 | rm -f conf$$subs.awk | 
|  | 17356 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17357 | _ACAWK | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17358 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17359 | for (key in S) S_is_set[key] = 1 | 
|  | 17360 | FS = "" | 
|  | 17361 |  | 
|  | 17362 | } | 
|  | 17363 | { | 
|  | 17364 | line = $ 0 | 
|  | 17365 | nfields = split(line, field, "@") | 
|  | 17366 | substed = 0 | 
|  | 17367 | len = length(field[1]) | 
|  | 17368 | for (i = 2; i < nfields; i++) { | 
|  | 17369 | key = field[i] | 
|  | 17370 | keylen = length(key) | 
|  | 17371 | if (S_is_set[key]) { | 
|  | 17372 | value = S[key] | 
|  | 17373 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
|  | 17374 | len += length(value) + length(field[++i]) | 
|  | 17375 | substed = 1 | 
|  | 17376 | } else | 
|  | 17377 | len += 1 + keylen | 
|  | 17378 | } | 
|  | 17379 |  | 
|  | 17380 | print line | 
|  | 17381 | } | 
|  | 17382 |  | 
|  | 17383 | _ACAWK | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17384 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17385 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 17386 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
|  | 17387 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
|  | 17388 | else | 
|  | 17389 | cat | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17390 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17391 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17392 | _ACEOF | 
|  | 17393 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17394 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
|  | 17395 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17396 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 17397 | # (actually we leave an empty line to preserve line numbers). | 
|  | 17398 | if test "x$srcdir" = x.; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17399 | ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
|  | 17400 | h | 
|  | 17401 | s/// | 
|  | 17402 | s/^/:/ | 
|  | 17403 | s/[	 ]*$/:/ | 
|  | 17404 | s/:\$(srcdir):/:/g | 
|  | 17405 | s/:\${srcdir}:/:/g | 
|  | 17406 | s/:@srcdir@:/:/g | 
|  | 17407 | s/^:*// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17408 | s/:*$// | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17409 | x | 
|  | 17410 | s/\(=[	 ]*\).*/\1/ | 
|  | 17411 | G | 
|  | 17412 | s/\n// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17413 | s/^[^=]*=[	 ]*$// | 
|  | 17414 | }' | 
|  | 17415 | fi | 
|  | 17416 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17417 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17418 | fi # test -n "$CONFIG_FILES" | 
|  | 17419 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17420 | # Set up the scripts for CONFIG_HEADERS section. | 
|  | 17421 | # No need to generate them if there are no CONFIG_HEADERS. | 
|  | 17422 | # This happens for instance with `./config.status Makefile'. | 
|  | 17423 | if test -n "$CONFIG_HEADERS"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17424 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17425 | BEGIN { | 
|  | 17426 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17427 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17428 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
|  | 17429 | # here-document in config.status, that substitutes the proper values into | 
|  | 17430 | # config.h.in to produce config.h. | 
|  | 17431 |  | 
|  | 17432 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
|  | 17433 | # handling of long lines. | 
|  | 17434 | ac_delim='%!_!# ' | 
|  | 17435 | for ac_last_try in false false :; do | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17436 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
|  | 17437 | if test -z "$ac_tt"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17438 | break | 
|  | 17439 | elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17440 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17441 | else | 
|  | 17442 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 17443 | fi | 
|  | 17444 | done | 
|  | 17445 |  | 
|  | 17446 | # For the awk script, D is an array of macro values keyed by name, | 
|  | 17447 | # likewise P contains macro parameters if any.  Preserve backslash | 
|  | 17448 | # newline sequences. | 
|  | 17449 |  | 
|  | 17450 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
|  | 17451 | sed -n ' | 
|  | 17452 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 17453 | t rset | 
|  | 17454 | :rset | 
|  | 17455 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
|  | 17456 | t def | 
|  | 17457 | d | 
|  | 17458 | :def | 
|  | 17459 | s/\\$// | 
|  | 17460 | t bsnl | 
|  | 17461 | s/["\\]/\\&/g | 
|  | 17462 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 17463 | D["\1"]=" \3"/p | 
|  | 17464 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
|  | 17465 | d | 
|  | 17466 | :bsnl | 
|  | 17467 | s/["\\]/\\&/g | 
|  | 17468 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 17469 | D["\1"]=" \3\\\\\\n"\\/p | 
|  | 17470 | t cont | 
|  | 17471 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
|  | 17472 | t cont | 
|  | 17473 | d | 
|  | 17474 | :cont | 
|  | 17475 | n | 
|  | 17476 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 17477 | t clear | 
|  | 17478 | :clear | 
|  | 17479 | s/\\$// | 
|  | 17480 | t bsnlc | 
|  | 17481 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
|  | 17482 | d | 
|  | 17483 | :bsnlc | 
|  | 17484 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
|  | 17485 | b cont | 
|  | 17486 | ' <confdefs.h | sed ' | 
|  | 17487 | s/'"$ac_delim"'/"\\\ | 
|  | 17488 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 17489 |  | 
|  | 17490 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17491 | for (key in D) D_is_set[key] = 1 | 
|  | 17492 | FS = "" | 
|  | 17493 | } | 
|  | 17494 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
|  | 17495 | line = \$ 0 | 
|  | 17496 | split(line, arg, " ") | 
|  | 17497 | if (arg[1] == "#") { | 
|  | 17498 | defundef = arg[2] | 
|  | 17499 | mac1 = arg[3] | 
|  | 17500 | } else { | 
|  | 17501 | defundef = substr(arg[1], 2) | 
|  | 17502 | mac1 = arg[2] | 
|  | 17503 | } | 
|  | 17504 | split(mac1, mac2, "(") #) | 
|  | 17505 | macro = mac2[1] | 
|  | 17506 | prefix = substr(line, 1, index(line, defundef) - 1) | 
|  | 17507 | if (D_is_set[macro]) { | 
|  | 17508 | # Preserve the white space surrounding the "#". | 
|  | 17509 | print prefix "define", macro P[macro] D[macro] | 
|  | 17510 | next | 
|  | 17511 | } else { | 
|  | 17512 | # Replace #undef with comments.  This is necessary, for example, | 
|  | 17513 | # in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 17514 | # on some systems where configure will not decide to define it. | 
|  | 17515 | if (defundef == "undef") { | 
|  | 17516 | print "/*", prefix defundef, macro, "*/" | 
|  | 17517 | next | 
|  | 17518 | } | 
|  | 17519 | } | 
|  | 17520 | } | 
|  | 17521 | { print } | 
|  | 17522 | _ACAWK | 
|  | 17523 | _ACEOF | 
|  | 17524 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17525 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17526 | fi # test -n "$CONFIG_HEADERS" | 
|  | 17527 |  | 
|  | 17528 |  | 
|  | 17529 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
|  | 17530 | shift | 
|  | 17531 | for ac_tag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17532 | do | 
|  | 17533 | case $ac_tag in | 
|  | 17534 | :[FHLC]) ac_mode=$ac_tag; continue;; | 
|  | 17535 | esac | 
|  | 17536 | case $ac_mode$ac_tag in | 
|  | 17537 | :[FHL]*:*);; | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17538 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17539 | :[FH]-) ac_tag=-:-;; | 
|  | 17540 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
|  | 17541 | esac | 
|  | 17542 | ac_save_IFS=$IFS | 
|  | 17543 | IFS=: | 
|  | 17544 | set x $ac_tag | 
|  | 17545 | IFS=$ac_save_IFS | 
|  | 17546 | shift | 
|  | 17547 | ac_file=$1 | 
|  | 17548 | shift | 
|  | 17549 |  | 
|  | 17550 | case $ac_mode in | 
|  | 17551 | :L) ac_source=$1;; | 
|  | 17552 | :[FH]) | 
|  | 17553 | ac_file_inputs= | 
|  | 17554 | for ac_f | 
|  | 17555 | do | 
|  | 17556 | case $ac_f in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17557 | -) ac_f="$ac_tmp/stdin";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17558 | *) # Look for the file first in the build tree, then in the source tree | 
|  | 17559 | # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
|  | 17560 | # because $ac_f cannot contain `:'. | 
|  | 17561 | test -f "$ac_f" || | 
|  | 17562 | case $ac_f in | 
|  | 17563 | [\\/$]*) false;; | 
|  | 17564 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
|  | 17565 | esac || | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17566 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17567 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17568 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
|  | 17569 | as_fn_append ac_file_inputs " '$ac_f'" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17570 | done | 
|  | 17571 |  | 
|  | 17572 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 17573 | # use $as_me), people would be surprised to read: | 
|  | 17574 | #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17575 | configure_input='Generated from '` | 
|  | 17576 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
|  | 17577 | `' by configure.' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17578 | if test x"$ac_file" != x-; then | 
|  | 17579 | configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17580 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
|  | 17581 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17582 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17583 | # Neutralize special characters interpreted by sed in replacement strings. | 
|  | 17584 | case $configure_input in #( | 
|  | 17585 | *\&* | *\|* | *\\* ) | 
|  | 17586 | ac_sed_conf_input=`$as_echo "$configure_input" | | 
|  | 17587 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
|  | 17588 | *) ac_sed_conf_input=$configure_input;; | 
|  | 17589 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17590 |  | 
|  | 17591 | case $ac_tag in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17592 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
|  | 17593 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17594 | esac | 
|  | 17595 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17596 | esac | 
|  | 17597 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17598 | ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17599 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17600 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 17601 | X"$ac_file" : 'X\(//\)$' \| \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17602 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17603 | $as_echo X"$ac_file" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17604 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 17605 | s//\1/ | 
|  | 17606 | q | 
|  | 17607 | } | 
|  | 17608 | /^X\(\/\/\)[^/].*/{ | 
|  | 17609 | s//\1/ | 
|  | 17610 | q | 
|  | 17611 | } | 
|  | 17612 | /^X\(\/\/\)$/{ | 
|  | 17613 | s//\1/ | 
|  | 17614 | q | 
|  | 17615 | } | 
|  | 17616 | /^X\(\/\).*/{ | 
|  | 17617 | s//\1/ | 
|  | 17618 | q | 
|  | 17619 | } | 
|  | 17620 | s/.*/./; q'` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17621 | as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17622 | ac_builddir=. | 
|  | 17623 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17624 | case "$ac_dir" in | 
|  | 17625 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 17626 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17627 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17628 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17629 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17630 | case $ac_top_builddir_sub in | 
|  | 17631 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 17632 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 17633 | esac ;; | 
|  | 17634 | esac | 
|  | 17635 | ac_abs_top_builddir=$ac_pwd | 
|  | 17636 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 17637 | # for backward compatibility: | 
|  | 17638 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17639 |  | 
|  | 17640 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17641 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17642 | ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17643 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 17644 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 17645 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17646 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17647 | ac_top_srcdir=$srcdir | 
|  | 17648 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 17649 | *) # Relative name. | 
|  | 17650 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 17651 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 17652 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17653 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17654 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17655 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17656 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17657 | case $ac_mode in | 
|  | 17658 | :F) | 
|  | 17659 | # | 
|  | 17660 | # CONFIG_FILE | 
|  | 17661 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17662 |  | 
|  | 17663 | case $INSTALL in | 
|  | 17664 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17665 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17666 | esac | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17667 | ac_MKDIR_P=$MKDIR_P | 
|  | 17668 | case $MKDIR_P in | 
|  | 17669 | [\\/$]* | ?:[\\/]* ) ;; | 
|  | 17670 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
|  | 17671 | esac | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17672 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17673 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17674 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17675 | # If the template does not know about datarootdir, expand it. | 
|  | 17676 | # FIXME: This hack should be removed a few years after 2.60. | 
|  | 17677 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17678 | ac_sed_dataroot=' | 
|  | 17679 | /datarootdir/ { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17680 | p | 
|  | 17681 | q | 
|  | 17682 | } | 
|  | 17683 | /@datadir@/p | 
|  | 17684 | /@docdir@/p | 
|  | 17685 | /@infodir@/p | 
|  | 17686 | /@localedir@/p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17687 | /@mandir@/p' | 
|  | 17688 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17689 | *datarootdir*) ac_datarootdir_seen=yes;; | 
|  | 17690 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17691 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
|  | 17692 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17693 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17694 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17695 | ac_datarootdir_hack=' | 
|  | 17696 | s&@datadir@&$datadir&g | 
|  | 17697 | s&@docdir@&$docdir&g | 
|  | 17698 | s&@infodir@&$infodir&g | 
|  | 17699 | s&@localedir@&$localedir&g | 
|  | 17700 | s&@mandir@&$mandir&g | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17701 | s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17702 | esac | 
|  | 17703 | _ACEOF | 
|  | 17704 |  | 
|  | 17705 | # Neutralize VPATH when `$srcdir' = `.'. | 
|  | 17706 | # Shell code in configure.ac might set extrasub. | 
|  | 17707 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17708 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17709 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17710 | $extrasub | 
|  | 17711 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17712 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17713 | :t | 
|  | 17714 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17715 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17716 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17717 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17718 | s&@srcdir@&$ac_srcdir&;t t | 
|  | 17719 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
|  | 17720 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
|  | 17721 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
|  | 17722 | s&@builddir@&$ac_builddir&;t t | 
|  | 17723 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
|  | 17724 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
|  | 17725 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17726 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17727 | $ac_datarootdir_hack | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17728 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17729 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
|  | 17730 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17731 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17732 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17733 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
|  | 17734 | { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
|  | 17735 | "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17736 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17737 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17738 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17739 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17740 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17741 | rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17742 | case $ac_file in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17743 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
|  | 17744 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17745 | esac \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17746 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17747 | ;; | 
|  | 17748 | :H) | 
|  | 17749 | # | 
|  | 17750 | # CONFIG_HEADER | 
|  | 17751 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17752 | if test x"$ac_file" != x-; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17753 | { | 
|  | 17754 | $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17755 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
|  | 17756 | } >"$ac_tmp/config.h" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17757 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17758 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17759 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
|  | 17760 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17761 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17762 | rm -f "$ac_file" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17763 | mv "$ac_tmp/config.h" "$ac_file" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17764 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17765 | fi | 
|  | 17766 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17767 | $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17768 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17769 | || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17770 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17771 | ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17772 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17773 |  | 
|  | 17774 | esac | 
|  | 17775 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17776 |  | 
|  | 17777 | case $ac_file$ac_mode in | 
|  | 17778 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
|  | 17779 |  | 
|  | 17780 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17781 | done # for ac_tag | 
|  | 17782 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17783 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17784 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17785 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17786 | ac_clean_files=$ac_clean_files_save | 
|  | 17787 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17788 | test $ac_write_fail = 0 || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17789 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17790 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17791 |  | 
|  | 17792 | # configure is writing to config.log, and then calls config.status. | 
|  | 17793 | # config.status does its own redirection, appending to config.log. | 
|  | 17794 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 17795 | # by configure, so config.status won't be able to write to it; its | 
|  | 17796 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 17797 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 17798 | # appended to by config.status.  When coming back to configure, we | 
|  | 17799 | # need to make the FD available again. | 
|  | 17800 | if test "$no_create" != yes; then | 
|  | 17801 | ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17802 | ac_config_status_args= | 
|  | 17803 | test "$silent" = yes && | 
|  | 17804 | ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17805 | exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17806 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17807 | exec 5>>config.log | 
|  | 17808 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 17809 | # would make configure fail if this is the last instruction. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17810 | $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17811 | fi | 
|  | 17812 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
|  | 17813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
|  | 17814 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17815 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17816 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17817 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17818 | echo "creating Modules/Setup" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17819 | if test ! -f Modules/Setup | 
|  | 17820 | then | 
|  | 17821 | cp $srcdir/Modules/Setup.dist Modules/Setup | 
|  | 17822 | fi | 
|  | 17823 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17824 | echo "creating Modules/Setup.local" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17825 | if test ! -f Modules/Setup.local | 
|  | 17826 | then | 
|  | 17827 | echo "# Edit this file for local setup changes" >Modules/Setup.local | 
|  | 17828 | fi | 
|  | 17829 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17830 | echo "creating Makefile" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17831 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
|  | 17832 | -s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17833 | Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17834 | mv config.c Modules | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 17835 |  | 
|  | 17836 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then | 
|  | 17837 | echo "" >&6 | 
|  | 17838 | echo "" >&6 | 
|  | 17839 | echo "If you want a release build with all optimizations active (LTO, PGO, etc)," | 
|  | 17840 | echo "please run ./configure --with-optimizations" >&6 | 
|  | 17841 | echo "" >&6 | 
|  | 17842 | echo "" >&6 | 
|  | 17843 | fi | 
|  | 17844 |  |