| 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 | 
|  | 645 | THREADOBJ | 
|  | 646 | LDLAST | 
|  | 647 | USE_THREAD_MODULE | 
|  | 648 | SIGNAL_OBJS | 
|  | 649 | USE_SIGNAL_MODULE | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 650 | TCLTK_LIBS | 
|  | 651 | TCLTK_INCLUDES | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 652 | LIBFFI_INCLUDEDIR | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 653 | PKG_CONFIG_LIBDIR | 
|  | 654 | PKG_CONFIG_PATH | 
|  | 655 | PKG_CONFIG | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 656 | SHLIBS | 
|  | 657 | CFLAGSFORSHARED | 
|  | 658 | LINKFORSHARED | 
|  | 659 | CCSHARED | 
|  | 660 | BLDSHARED | 
|  | 661 | LDCXXSHARED | 
|  | 662 | LDSHARED | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 663 | SHLIB_SUFFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 664 | LIBTOOL_CRUFT | 
|  | 665 | OTHER_LIBTOOL_OPT | 
|  | 666 | UNIVERSAL_ARCH_FLAGS | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 667 | CFLAGS_NODIST | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 668 | BASECFLAGS | 
|  | 669 | OPT | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 670 | LLVM_PROF_FOUND | 
|  | 671 | LLVM_PROF_ERR | 
|  | 672 | LLVM_PROF_FILE | 
|  | 673 | LLVM_PROF_MERGER | 
|  | 674 | PGO_PROF_USE_FLAG | 
|  | 675 | PGO_PROF_GEN_FLAG | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 676 | LTOFLAGS | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame^] | 677 | DEF_MAKE_RULE | 
|  | 678 | DEF_MAKE_ALL_RULE | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 679 | ABIFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 680 | LN | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 681 | MKDIR_P | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 682 | INSTALL_DATA | 
|  | 683 | INSTALL_SCRIPT | 
|  | 684 | INSTALL_PROGRAM | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 685 | ac_ct_READELF | 
|  | 686 | READELF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 687 | ARFLAGS | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 688 | ac_ct_AR | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 689 | AR | 
|  | 690 | RANLIB | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 691 | USE_INLINE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 692 | GNULD | 
|  | 693 | LINKCC | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 694 | LDVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 695 | RUNSHARED | 
|  | 696 | INSTSONAME | 
|  | 697 | LDLIBRARYDIR | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 698 | PY3LIBRARY | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 699 | BLDLIBRARY | 
|  | 700 | DLLLIBRARY | 
|  | 701 | LDLIBRARY | 
|  | 702 | LIBRARY | 
|  | 703 | BUILDEXEEXT | 
|  | 704 | EGREP | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 705 | NO_AS_NEEDED | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 706 | MULTIARCH_CPPFLAGS | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 707 | PLATFORM_TRIPLET | 
| doko@ubuntu.com | 092f616 | 2015-04-15 20:45:33 +0200 | [diff] [blame] | 708 | PLATDIR | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 709 | MULTIARCH | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 710 | ac_ct_CXX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 711 | MAINCC | 
|  | 712 | CXX | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 713 | GREP | 
|  | 714 | CPP | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 715 | OBJEXT | 
|  | 716 | EXEEXT | 
|  | 717 | ac_ct_CC | 
|  | 718 | CPPFLAGS | 
|  | 719 | LDFLAGS | 
|  | 720 | CFLAGS | 
|  | 721 | CC | 
|  | 722 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
|  | 723 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
|  | 724 | SGI_ABI | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 725 | _PYTHON_HOST_PLATFORM | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 726 | MACHDEP | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 727 | FRAMEWORKINSTALLAPPSPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 728 | FRAMEWORKUNIXTOOLSPREFIX | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 729 | FRAMEWORKPYTHONW | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 730 | FRAMEWORKALTINSTALLLAST | 
|  | 731 | FRAMEWORKALTINSTALLFIRST | 
|  | 732 | FRAMEWORKINSTALLLAST | 
|  | 733 | FRAMEWORKINSTALLFIRST | 
|  | 734 | PYTHONFRAMEWORKINSTALLDIR | 
|  | 735 | PYTHONFRAMEWORKPREFIX | 
|  | 736 | PYTHONFRAMEWORKDIR | 
|  | 737 | PYTHONFRAMEWORKIDENTIFIER | 
|  | 738 | PYTHONFRAMEWORK | 
|  | 739 | LIPO_32BIT_FLAGS | 
|  | 740 | ARCH_RUN_32BIT | 
|  | 741 | UNIVERSALSDK | 
|  | 742 | CONFIG_ARGS | 
|  | 743 | SOVERSION | 
|  | 744 | VERSION | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 745 | GENERATED_COMMENT | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 746 | PYTHON_FOR_BUILD | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 747 | PYTHON_FOR_GEN | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 748 | host_os | 
|  | 749 | host_vendor | 
|  | 750 | host_cpu | 
|  | 751 | host | 
|  | 752 | build_os | 
|  | 753 | build_vendor | 
|  | 754 | build_cpu | 
|  | 755 | build | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 756 | HAS_HG | 
|  | 757 | HGBRANCH | 
|  | 758 | HGTAG | 
|  | 759 | HGVERSION | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 760 | BASECPPFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 761 | target_alias | 
|  | 762 | host_alias | 
|  | 763 | build_alias | 
|  | 764 | LIBS | 
|  | 765 | ECHO_T | 
|  | 766 | ECHO_N | 
|  | 767 | ECHO_C | 
|  | 768 | DEFS | 
|  | 769 | mandir | 
|  | 770 | localedir | 
|  | 771 | libdir | 
|  | 772 | psdir | 
|  | 773 | pdfdir | 
|  | 774 | dvidir | 
|  | 775 | htmldir | 
|  | 776 | infodir | 
|  | 777 | docdir | 
|  | 778 | oldincludedir | 
|  | 779 | includedir | 
|  | 780 | localstatedir | 
|  | 781 | sharedstatedir | 
|  | 782 | sysconfdir | 
|  | 783 | datadir | 
|  | 784 | datarootdir | 
|  | 785 | libexecdir | 
|  | 786 | sbindir | 
|  | 787 | bindir | 
|  | 788 | program_transform_name | 
|  | 789 | prefix | 
|  | 790 | exec_prefix | 
|  | 791 | PACKAGE_URL | 
|  | 792 | PACKAGE_BUGREPORT | 
|  | 793 | PACKAGE_STRING | 
|  | 794 | PACKAGE_VERSION | 
|  | 795 | PACKAGE_TARNAME | 
|  | 796 | PACKAGE_NAME | 
|  | 797 | PATH_SEPARATOR | 
|  | 798 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 799 | ac_subst_files='' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 800 | ac_user_opts=' | 
|  | 801 | enable_option_checking | 
|  | 802 | enable_universalsdk | 
|  | 803 | with_universal_archs | 
|  | 804 | with_framework_name | 
|  | 805 | enable_framework | 
|  | 806 | with_gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 807 | with_icc | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 808 | with_cxx_main | 
|  | 809 | with_suffix | 
|  | 810 | enable_shared | 
|  | 811 | enable_profiling | 
|  | 812 | with_pydebug | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame^] | 813 | with_optimizations | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 814 | with_lto | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 815 | with_hash_algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 816 | with_address_sanitizer | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 817 | with_libs | 
|  | 818 | with_system_expat | 
|  | 819 | with_system_ffi | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 820 | with_system_libmpdec | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 821 | enable_loadable_sqlite_extensions | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 822 | with_tcltk_includes | 
|  | 823 | with_tcltk_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 824 | with_dbmliborder | 
|  | 825 | with_signal_module | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 826 | with_threads | 
|  | 827 | with_thread | 
|  | 828 | enable_ipv6 | 
|  | 829 | with_doc_strings | 
|  | 830 | with_tsc | 
|  | 831 | with_pymalloc | 
|  | 832 | with_valgrind | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 833 | with_fpectl | 
|  | 834 | with_libm | 
|  | 835 | with_libc | 
|  | 836 | enable_big_digits | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 837 | with_computed_gotos | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 838 | with_ensurepip | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 839 | ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 840 | ac_precious_vars='build_alias | 
|  | 841 | host_alias | 
|  | 842 | target_alias | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 843 | MACHDEP | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 844 | CC | 
|  | 845 | CFLAGS | 
|  | 846 | LDFLAGS | 
|  | 847 | LIBS | 
|  | 848 | CPPFLAGS | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 849 | CPP | 
|  | 850 | PKG_CONFIG | 
|  | 851 | PKG_CONFIG_PATH | 
|  | 852 | PKG_CONFIG_LIBDIR' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 853 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 854 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 855 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 856 | ac_init_help= | 
|  | 857 | ac_init_version=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 858 | ac_unrecognized_opts= | 
|  | 859 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 860 | # The variables have the same names as the options, with | 
|  | 861 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 862 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 863 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 864 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 865 | no_recursion= | 
|  | 866 | prefix=NONE | 
|  | 867 | program_prefix=NONE | 
|  | 868 | program_suffix=NONE | 
|  | 869 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 870 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 871 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 872 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 873 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 874 | x_includes=NONE | 
|  | 875 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 876 |  | 
|  | 877 | # Installation directory options. | 
|  | 878 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
|  | 879 | # and all the variables that are supposed to be based on exec_prefix | 
|  | 880 | # by default will actually change. | 
|  | 881 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 882 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 883 | bindir='${exec_prefix}/bin' | 
|  | 884 | sbindir='${exec_prefix}/sbin' | 
|  | 885 | libexecdir='${exec_prefix}/libexec' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 886 | datarootdir='${prefix}/share' | 
|  | 887 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 888 | sysconfdir='${prefix}/etc' | 
|  | 889 | sharedstatedir='${prefix}/com' | 
|  | 890 | localstatedir='${prefix}/var' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 891 | includedir='${prefix}/include' | 
|  | 892 | oldincludedir='/usr/include' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 893 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
|  | 894 | infodir='${datarootdir}/info' | 
|  | 895 | htmldir='${docdir}' | 
|  | 896 | dvidir='${docdir}' | 
|  | 897 | pdfdir='${docdir}' | 
|  | 898 | psdir='${docdir}' | 
|  | 899 | libdir='${exec_prefix}/lib' | 
|  | 900 | localedir='${datarootdir}/locale' | 
|  | 901 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 902 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 903 | ac_prev= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 904 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 905 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 906 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 907 | # If the previous option needs an argument, assign it. | 
|  | 908 | if test -n "$ac_prev"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 909 | eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 910 | ac_prev= | 
|  | 911 | continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 912 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 913 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 914 | case $ac_option in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 915 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
|  | 916 | *=)   ac_optarg= ;; | 
|  | 917 | *)    ac_optarg=yes ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 918 | esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 919 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 920 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 921 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 922 | case $ac_dashdash$ac_option in | 
|  | 923 | --) | 
|  | 924 | ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 925 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 926 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|  | 927 | ac_prev=bindir ;; | 
|  | 928 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 929 | bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 930 |  | 
|  | 931 | -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 932 | ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 933 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 934 | build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 935 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 936 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 937 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 938 | ac_prev=cache_file ;; | 
|  | 939 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 940 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 941 | cache_file=$ac_optarg ;; | 
|  | 942 |  | 
|  | 943 | --config-cache | -C) | 
|  | 944 | cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 945 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 946 | -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 947 | ac_prev=datadir ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 948 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 949 | datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 950 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 951 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
|  | 952 | | --dataroo | --dataro | --datar) | 
|  | 953 | ac_prev=datarootdir ;; | 
|  | 954 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
|  | 955 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
|  | 956 | datarootdir=$ac_optarg ;; | 
|  | 957 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 958 | -disable-* | --disable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 959 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 960 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 961 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 962 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 963 | ac_useropt_orig=$ac_useropt | 
|  | 964 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 965 | case $ac_user_opts in | 
|  | 966 | *" | 
|  | 967 | "enable_$ac_useropt" | 
|  | 968 | "*) ;; | 
|  | 969 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
|  | 970 | ac_unrecognized_sep=', ';; | 
|  | 971 | esac | 
|  | 972 | eval enable_$ac_useropt=no ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 973 |  | 
|  | 974 | -docdir | --docdir | --docdi | --doc | --do) | 
|  | 975 | ac_prev=docdir ;; | 
|  | 976 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
|  | 977 | docdir=$ac_optarg ;; | 
|  | 978 |  | 
|  | 979 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
|  | 980 | ac_prev=dvidir ;; | 
|  | 981 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
|  | 982 | dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 983 |  | 
|  | 984 | -enable-* | --enable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 985 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 986 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 987 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 988 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 989 | ac_useropt_orig=$ac_useropt | 
|  | 990 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 991 | case $ac_user_opts in | 
|  | 992 | *" | 
|  | 993 | "enable_$ac_useropt" | 
|  | 994 | "*) ;; | 
|  | 995 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
|  | 996 | ac_unrecognized_sep=', ';; | 
|  | 997 | esac | 
|  | 998 | eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 999 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1000 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|  | 1001 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|  | 1002 | | --exec | --exe | --ex) | 
|  | 1003 | ac_prev=exec_prefix ;; | 
|  | 1004 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|  | 1005 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|  | 1006 | | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1007 | exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1008 |  | 
|  | 1009 | -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1010 | # Obsolete; use --with-gas. | 
|  | 1011 | with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1012 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1013 | -help | --help | --hel | --he | -h) | 
|  | 1014 | ac_init_help=long ;; | 
|  | 1015 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
|  | 1016 | ac_init_help=recursive ;; | 
|  | 1017 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
|  | 1018 | ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1019 |  | 
|  | 1020 | -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1021 | ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1022 | -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1023 | host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1024 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1025 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
|  | 1026 | ac_prev=htmldir ;; | 
|  | 1027 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
|  | 1028 | | --ht=*) | 
|  | 1029 | htmldir=$ac_optarg ;; | 
|  | 1030 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1031 | -includedir | --includedir | --includedi | --included | --include \ | 
|  | 1032 | | --includ | --inclu | --incl | --inc) | 
|  | 1033 | ac_prev=includedir ;; | 
|  | 1034 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|  | 1035 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1036 | includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1037 |  | 
|  | 1038 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|  | 1039 | ac_prev=infodir ;; | 
|  | 1040 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1041 | infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1042 |  | 
|  | 1043 | -libdir | --libdir | --libdi | --libd) | 
|  | 1044 | ac_prev=libdir ;; | 
|  | 1045 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1046 | libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1047 |  | 
|  | 1048 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|  | 1049 | | --libexe | --libex | --libe) | 
|  | 1050 | ac_prev=libexecdir ;; | 
|  | 1051 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|  | 1052 | | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1053 | libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1054 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1055 | -localedir | --localedir | --localedi | --localed | --locale) | 
|  | 1056 | ac_prev=localedir ;; | 
|  | 1057 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
|  | 1058 | localedir=$ac_optarg ;; | 
|  | 1059 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1060 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1061 | | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1062 | ac_prev=localstatedir ;; | 
|  | 1063 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1064 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1065 | localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1066 |  | 
|  | 1067 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|  | 1068 | ac_prev=mandir ;; | 
|  | 1069 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1070 | mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1071 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1072 | -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1073 | # Obsolete; use --without-fp. | 
|  | 1074 | with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1075 |  | 
|  | 1076 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1077 | | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1078 | no_create=yes ;; | 
|  | 1079 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1080 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 1081 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|  | 1082 | no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1083 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1084 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|  | 1085 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|  | 1086 | | --oldin | --oldi | --old | --ol | --o) | 
|  | 1087 | ac_prev=oldincludedir ;; | 
|  | 1088 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|  | 1089 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|  | 1090 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1091 | oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1092 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1093 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 1094 | ac_prev=prefix ;; | 
|  | 1095 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1096 | prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1097 |  | 
|  | 1098 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|  | 1099 | | --program-pre | --program-pr | --program-p) | 
|  | 1100 | ac_prev=program_prefix ;; | 
|  | 1101 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|  | 1102 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1103 | program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1104 |  | 
|  | 1105 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|  | 1106 | | --program-suf | --program-su | --program-s) | 
|  | 1107 | ac_prev=program_suffix ;; | 
|  | 1108 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|  | 1109 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1110 | program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1111 |  | 
|  | 1112 | -program-transform-name | --program-transform-name \ | 
|  | 1113 | | --program-transform-nam | --program-transform-na \ | 
|  | 1114 | | --program-transform-n | --program-transform- \ | 
|  | 1115 | | --program-transform | --program-transfor \ | 
|  | 1116 | | --program-transfo | --program-transf \ | 
|  | 1117 | | --program-trans | --program-tran \ | 
|  | 1118 | | --progr-tra | --program-tr | --program-t) | 
|  | 1119 | ac_prev=program_transform_name ;; | 
|  | 1120 | -program-transform-name=* | --program-transform-name=* \ | 
|  | 1121 | | --program-transform-nam=* | --program-transform-na=* \ | 
|  | 1122 | | --program-transform-n=* | --program-transform-=* \ | 
|  | 1123 | | --program-transform=* | --program-transfor=* \ | 
|  | 1124 | | --program-transfo=* | --program-transf=* \ | 
|  | 1125 | | --program-trans=* | --program-tran=* \ | 
|  | 1126 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1127 | program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1128 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1129 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
|  | 1130 | ac_prev=pdfdir ;; | 
|  | 1131 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
|  | 1132 | pdfdir=$ac_optarg ;; | 
|  | 1133 |  | 
|  | 1134 | -psdir | --psdir | --psdi | --psd | --ps) | 
|  | 1135 | ac_prev=psdir ;; | 
|  | 1136 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
|  | 1137 | psdir=$ac_optarg ;; | 
|  | 1138 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1139 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1140 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1141 | silent=yes ;; | 
|  | 1142 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1143 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|  | 1144 | ac_prev=sbindir ;; | 
|  | 1145 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|  | 1146 | | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1147 | sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1148 |  | 
|  | 1149 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|  | 1150 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|  | 1151 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|  | 1152 | | --sha | --sh) | 
|  | 1153 | ac_prev=sharedstatedir ;; | 
|  | 1154 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|  | 1155 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|  | 1156 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|  | 1157 | | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1158 | sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1159 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1160 | -site | --site | --sit) | 
|  | 1161 | ac_prev=site ;; | 
|  | 1162 | -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1163 | site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1164 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1165 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 1166 | ac_prev=srcdir ;; | 
|  | 1167 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1168 | srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1169 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1170 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|  | 1171 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|  | 1172 | ac_prev=sysconfdir ;; | 
|  | 1173 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|  | 1174 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1175 | sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1176 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1177 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1178 | ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1179 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1180 | target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1181 |  | 
|  | 1182 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|  | 1183 | verbose=yes ;; | 
|  | 1184 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1185 | -version | --version | --versio | --versi | --vers | -V) | 
|  | 1186 | ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1187 |  | 
|  | 1188 | -with-* | --with-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1189 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1190 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1191 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1192 | as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1193 | ac_useropt_orig=$ac_useropt | 
|  | 1194 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1195 | case $ac_user_opts in | 
|  | 1196 | *" | 
|  | 1197 | "with_$ac_useropt" | 
|  | 1198 | "*) ;; | 
|  | 1199 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
|  | 1200 | ac_unrecognized_sep=', ';; | 
|  | 1201 | esac | 
|  | 1202 | eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1203 |  | 
|  | 1204 | -without-* | --without-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1205 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1206 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1207 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1208 | as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1209 | ac_useropt_orig=$ac_useropt | 
|  | 1210 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1211 | case $ac_user_opts in | 
|  | 1212 | *" | 
|  | 1213 | "with_$ac_useropt" | 
|  | 1214 | "*) ;; | 
|  | 1215 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
|  | 1216 | ac_unrecognized_sep=', ';; | 
|  | 1217 | esac | 
|  | 1218 | eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1219 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1220 | --x) | 
|  | 1221 | # Obsolete; use --with-x. | 
|  | 1222 | with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1223 |  | 
|  | 1224 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|  | 1225 | | --x-incl | --x-inc | --x-in | --x-i) | 
|  | 1226 | ac_prev=x_includes ;; | 
|  | 1227 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|  | 1228 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1229 | x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1230 |  | 
|  | 1231 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|  | 1232 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|  | 1233 | ac_prev=x_libraries ;; | 
|  | 1234 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|  | 1235 | | --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] | 1236 | x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1237 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1238 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
|  | 1239 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1240 | ;; | 
|  | 1241 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1242 | *=*) | 
|  | 1243 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
|  | 1244 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1245 | case $ac_envvar in #( | 
|  | 1246 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1247 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1248 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1249 | eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1250 | export $ac_envvar ;; | 
|  | 1251 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1252 | *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1253 | # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1254 | $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] | 1255 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1256 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1257 | : "${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] | 1258 | ;; | 
|  | 1259 |  | 
|  | 1260 | esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1261 | done | 
|  | 1262 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1263 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1264 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1265 | as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1266 | fi | 
|  | 1267 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1268 | if test -n "$ac_unrecognized_opts"; then | 
|  | 1269 | case $enable_option_checking in | 
|  | 1270 | no) ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1271 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1272 | *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
|  | 1273 | esac | 
|  | 1274 | fi | 
|  | 1275 |  | 
|  | 1276 | # Check all directory arguments for consistency. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1277 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
|  | 1278 | datadir sysconfdir sharedstatedir localstatedir includedir \ | 
|  | 1279 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame^] | 1280 | libdir localedir mandir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1281 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1282 | eval ac_val=\$$ac_var | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1283 | # Remove trailing slashes. | 
|  | 1284 | case $ac_val in | 
|  | 1285 | */ ) | 
|  | 1286 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
|  | 1287 | eval $ac_var=\$ac_val;; | 
|  | 1288 | esac | 
|  | 1289 | # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1290 | case $ac_val in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1291 | [\\/$]* | ?:[\\/]* )  continue;; | 
|  | 1292 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1293 | esac | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1294 | 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] | 1295 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1296 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1297 | # There might be people who depend on the old broken behavior: `$host' | 
|  | 1298 | # used to hold the argument of --host etc. | 
|  | 1299 | # FIXME: To remove some day. | 
|  | 1300 | build=$build_alias | 
|  | 1301 | host=$host_alias | 
|  | 1302 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1303 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1304 | # FIXME: To remove some day. | 
|  | 1305 | if test "x$host_alias" != x; then | 
|  | 1306 | if test "x$build_alias" = x; then | 
|  | 1307 | cross_compiling=maybe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1308 | elif test "x$build_alias" != "x$host_alias"; then | 
|  | 1309 | cross_compiling=yes | 
|  | 1310 | fi | 
|  | 1311 | fi | 
|  | 1312 |  | 
|  | 1313 | ac_tool_prefix= | 
|  | 1314 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
|  | 1315 |  | 
|  | 1316 | test "$silent" = yes && exec 6>/dev/null | 
|  | 1317 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1318 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1319 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
|  | 1320 | ac_ls_di=`ls -di .` && | 
|  | 1321 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1322 | as_fn_error $? "working directory cannot be determined" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1323 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1324 | as_fn_error $? "pwd does not report name of working directory" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1325 |  | 
|  | 1326 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1327 | # Find the source files, if location was not specified. | 
|  | 1328 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1329 | ac_srcdir_defaulted=yes | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1330 | # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1331 | ac_confdir=`$as_dirname -- "$as_myself" || | 
|  | 1332 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 1333 | X"$as_myself" : 'X\(//\)[^/]' \| \ | 
|  | 1334 | X"$as_myself" : 'X\(//\)$' \| \ | 
|  | 1335 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 1336 | $as_echo X"$as_myself" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1337 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 1338 | s//\1/ | 
|  | 1339 | q | 
|  | 1340 | } | 
|  | 1341 | /^X\(\/\/\)[^/].*/{ | 
|  | 1342 | s//\1/ | 
|  | 1343 | q | 
|  | 1344 | } | 
|  | 1345 | /^X\(\/\/\)$/{ | 
|  | 1346 | s//\1/ | 
|  | 1347 | q | 
|  | 1348 | } | 
|  | 1349 | /^X\(\/\).*/{ | 
|  | 1350 | s//\1/ | 
|  | 1351 | q | 
|  | 1352 | } | 
|  | 1353 | s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1354 | srcdir=$ac_confdir | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1355 | if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1356 | srcdir=.. | 
|  | 1357 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1358 | else | 
|  | 1359 | ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1360 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1361 | if test ! -r "$srcdir/$ac_unique_file"; then | 
|  | 1362 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1363 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1364 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1365 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
|  | 1366 | ac_abs_confdir=`( | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1367 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1368 | pwd)` | 
|  | 1369 | # When building in place, set srcdir=. | 
|  | 1370 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
|  | 1371 | srcdir=. | 
|  | 1372 | fi | 
|  | 1373 | # Remove unnecessary trailing slashes from srcdir. | 
|  | 1374 | # Double slashes in file names in object file debugging info | 
|  | 1375 | # mess up M-x gdb in Emacs. | 
|  | 1376 | case $srcdir in | 
|  | 1377 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
|  | 1378 | esac | 
|  | 1379 | for ac_var in $ac_precious_vars; do | 
|  | 1380 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1381 | eval ac_env_${ac_var}_value=\$${ac_var} | 
|  | 1382 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1383 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
|  | 1384 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1385 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1386 | # | 
|  | 1387 | # Report the --help message. | 
|  | 1388 | # | 
|  | 1389 | if test "$ac_init_help" = "long"; then | 
|  | 1390 | # Omit some internal or obsolete options to make the list less imposing. | 
|  | 1391 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|  | 1392 | cat <<_ACEOF | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 1393 | \`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] | 1394 |  | 
|  | 1395 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
|  | 1396 |  | 
|  | 1397 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
|  | 1398 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
|  | 1399 |  | 
|  | 1400 | Defaults for the options are specified in brackets. | 
|  | 1401 |  | 
|  | 1402 | Configuration: | 
|  | 1403 | -h, --help              display this help and exit | 
|  | 1404 | --help=short        display options specific to this package | 
|  | 1405 | --help=recursive    display the short help of all the included packages | 
|  | 1406 | -V, --version           display version information and exit | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1407 | -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1408 | --cache-file=FILE   cache test results in FILE [disabled] | 
|  | 1409 | -C, --config-cache      alias for \`--cache-file=config.cache' | 
|  | 1410 | -n, --no-create         do not create output files | 
|  | 1411 | --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
|  | 1412 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1413 | Installation directories: | 
|  | 1414 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1415 | [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1416 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1417 | [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1418 |  | 
|  | 1419 | By default, \`make install' will install all the files in | 
|  | 1420 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
|  | 1421 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
|  | 1422 | for instance \`--prefix=\$HOME'. | 
|  | 1423 |  | 
|  | 1424 | For better control, use the options below. | 
|  | 1425 |  | 
|  | 1426 | Fine tuning of the installation directories: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1427 | --bindir=DIR            user executables [EPREFIX/bin] | 
|  | 1428 | --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
|  | 1429 | --libexecdir=DIR        program executables [EPREFIX/libexec] | 
|  | 1430 | --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
|  | 1431 | --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
|  | 1432 | --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
|  | 1433 | --libdir=DIR            object code libraries [EPREFIX/lib] | 
|  | 1434 | --includedir=DIR        C header files [PREFIX/include] | 
|  | 1435 | --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
|  | 1436 | --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
|  | 1437 | --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
|  | 1438 | --infodir=DIR           info documentation [DATAROOTDIR/info] | 
|  | 1439 | --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
|  | 1440 | --mandir=DIR            man documentation [DATAROOTDIR/man] | 
|  | 1441 | --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
|  | 1442 | --htmldir=DIR           html documentation [DOCDIR] | 
|  | 1443 | --dvidir=DIR            dvi documentation [DOCDIR] | 
|  | 1444 | --pdfdir=DIR            pdf documentation [DOCDIR] | 
|  | 1445 | --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | _ACEOF | 
|  | 1447 |  | 
|  | 1448 | cat <<\_ACEOF | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1449 |  | 
|  | 1450 | System types: | 
|  | 1451 | --build=BUILD     configure for building on BUILD [guessed] | 
|  | 1452 | --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1453 | _ACEOF | 
|  | 1454 | fi | 
|  | 1455 |  | 
|  | 1456 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1457 | case $ac_init_help in | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 1458 | short | recursive ) echo "Configuration of python 3.6:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1459 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1460 | cat <<\_ACEOF | 
|  | 1461 |  | 
|  | 1462 | Optional Features: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1463 | --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1464 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 1465 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1466 | --enable-universalsdk[=SDKDIR] | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 1467 | Build fat binary against Mac OS X SDK | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1468 | --enable-framework[=INSTALLDIR] | 
|  | 1469 | Build (MacOSX|Darwin) framework | 
|  | 1470 | --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1471 | --enable-profiling      enable C-level code profiling | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1472 | --enable-loadable-sqlite-extensions | 
|  | 1473 | support loadable extensions in _sqlite module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1474 | --enable-ipv6           Enable ipv6 (with ipv4) support | 
|  | 1475 | --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1476 | --enable-big-digits[=BITS] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1477 | use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1478 |  | 
|  | 1479 | Optional Packages: | 
|  | 1480 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1481 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1482 | --with-universal-archs=ARCH | 
|  | 1483 | select architectures for universal build ("32-bit", | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 1484 | "64-bit", "3-way", "intel", "intel-32", or "all") | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1485 | --with-framework-name=FRAMEWORK | 
|  | 1486 | specify an alternate name of the framework built | 
|  | 1487 | with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1488 | --without-gcc           never use gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 1489 | --with-icc              build with icc | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1490 | --with-cxx-main=<compiler> | 
|  | 1491 | compile main() and link python executable with C++ | 
|  | 1492 | compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1493 | --with-suffix=.exe      set executable suffix | 
|  | 1494 | --with-pydebug          build with Py_DEBUG defined | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame^] | 1495 | --with-optimizations    Enable all optimizations when available (LTO, PGO, | 
|  | 1496 | etc). Disabled by default. | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 1497 | --with-lto              Enable Link Time Optimization in PGO builds. | 
|  | 1498 | Disabled by default. | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1499 | --with-hash-algorithm=[fnv|siphash24] | 
|  | 1500 | select hash algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1501 | --with-address-sanitizer | 
|  | 1502 | enable AddressSanitizer | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1503 | --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1504 | --with-system-expat     build pyexpat module using an installed expat | 
|  | 1505 | library | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1506 | --with-system-ffi       build _ctypes module using an installed ffi library | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1507 | --with-system-libmpdec  build _decimal module using an installed libmpdec | 
|  | 1508 | library | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1509 | --with-tcltk-includes='-I...' | 
|  | 1510 | override search for Tcl and Tk include files | 
|  | 1511 | --with-tcltk-libs='-L...' | 
|  | 1512 | override search for Tcl and Tk libs | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1513 | --with-dbmliborder=db1:db2:... | 
|  | 1514 | order to check db backends for dbm. Valid value is a | 
|  | 1515 | colon separated string with the backend names | 
|  | 1516 | `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1517 | --with-signal-module    disable/enable signal module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1518 | --with(out)-threads[=DIRECTORY] | 
|  | 1519 | disable/enable thread support | 
|  | 1520 | --with(out)-thread[=DIRECTORY] | 
|  | 1521 | deprecated; use --with(out)-threads | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1522 | --with(out)-doc-strings disable/enable documentation strings | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1523 | --with(out)-tsc         enable/disable timestamp counter profile | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1524 | --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1525 | --with-valgrind         Enable Valgrind support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1526 | --with-fpectl           enable SIGFPE catching | 
|  | 1527 | --with-libm=STRING      math library | 
|  | 1528 | --with-libc=STRING      C library | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1529 | --with(out)-computed-gotos | 
|  | 1530 | Use computed gotos in evaluation loop (enabled by | 
|  | 1531 | default on supported compilers) | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 1532 | --with(out)-ensurepip=[=upgrade] | 
|  | 1533 | "install" or "upgrade" using bundled pip | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1534 |  | 
|  | 1535 | Some influential environment variables: | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1536 | MACHDEP     name for machine-dependent library files | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1537 | CC          C compiler command | 
|  | 1538 | CFLAGS      C compiler flags | 
|  | 1539 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1540 | nonstandard directory <lib dir> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1541 | LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1542 | CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1543 | you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1544 | CPP         C preprocessor | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 1545 | PKG_CONFIG  path to pkg-config utility | 
|  | 1546 | PKG_CONFIG_PATH | 
|  | 1547 | directories to add to pkg-config's search path | 
|  | 1548 | PKG_CONFIG_LIBDIR | 
|  | 1549 | path overriding pkg-config's built-in search path | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1550 |  | 
|  | 1551 | Use these variables to override the choices made by `configure' or to help | 
|  | 1552 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1553 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1554 | Report bugs to <https://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1555 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1556 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1557 | fi | 
|  | 1558 |  | 
|  | 1559 | if test "$ac_init_help" = "recursive"; then | 
|  | 1560 | # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1561 | 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] | 1562 | test -d "$ac_dir" || | 
|  | 1563 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
|  | 1564 | continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1565 | ac_builddir=. | 
|  | 1566 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1567 | case "$ac_dir" in | 
|  | 1568 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1569 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1570 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1571 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1572 | 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] | 1573 | case $ac_top_builddir_sub in | 
|  | 1574 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1575 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 1576 | esac ;; | 
|  | 1577 | esac | 
|  | 1578 | ac_abs_top_builddir=$ac_pwd | 
|  | 1579 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 1580 | # for backward compatibility: | 
|  | 1581 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1582 |  | 
|  | 1583 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1584 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1585 | ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1586 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 1587 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 1588 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1589 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1590 | ac_top_srcdir=$srcdir | 
|  | 1591 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 1592 | *) # Relative name. | 
|  | 1593 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 1594 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 1595 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1596 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1597 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1598 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1599 | cd "$ac_dir" || { ac_status=$?; continue; } | 
|  | 1600 | # Check for guested configure. | 
|  | 1601 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 1602 | echo && | 
|  | 1603 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
|  | 1604 | elif test -f "$ac_srcdir/configure"; then | 
|  | 1605 | echo && | 
|  | 1606 | $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1607 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1608 | $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] | 1609 | fi || ac_status=$? | 
|  | 1610 | cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1611 | done | 
|  | 1612 | fi | 
|  | 1613 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1614 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1615 | if $ac_init_version; then | 
|  | 1616 | cat <<\_ACEOF | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 1617 | python configure 3.6 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1618 | generated by GNU Autoconf 2.69 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1619 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1620 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1621 | This configure script is free software; the Free Software Foundation | 
|  | 1622 | gives unlimited permission to copy, distribute and modify it. | 
|  | 1623 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1624 | exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1625 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1626 |  | 
|  | 1627 | ## ------------------------ ## | 
|  | 1628 | ## Autoconf initialization. ## | 
|  | 1629 | ## ------------------------ ## | 
|  | 1630 |  | 
|  | 1631 | # ac_fn_c_try_compile LINENO | 
|  | 1632 | # -------------------------- | 
|  | 1633 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
|  | 1634 | ac_fn_c_try_compile () | 
|  | 1635 | { | 
|  | 1636 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1637 | rm -f conftest.$ac_objext | 
|  | 1638 | if { { ac_try="$ac_compile" | 
|  | 1639 | case "(($ac_try" in | 
|  | 1640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1641 | *) ac_try_echo=$ac_try;; | 
|  | 1642 | esac | 
|  | 1643 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1644 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1645 | (eval "$ac_compile") 2>conftest.err | 
|  | 1646 | ac_status=$? | 
|  | 1647 | if test -s conftest.err; then | 
|  | 1648 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1649 | cat conftest.er1 >&5 | 
|  | 1650 | mv -f conftest.er1 conftest.err | 
|  | 1651 | fi | 
|  | 1652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1653 | test $ac_status = 0; } && { | 
|  | 1654 | test -z "$ac_c_werror_flag" || | 
|  | 1655 | test ! -s conftest.err | 
|  | 1656 | } && test -s conftest.$ac_objext; then : | 
|  | 1657 | ac_retval=0 | 
|  | 1658 | else | 
|  | 1659 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1660 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1661 |  | 
|  | 1662 | ac_retval=1 | 
|  | 1663 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1664 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1665 | as_fn_set_status $ac_retval | 
|  | 1666 |  | 
|  | 1667 | } # ac_fn_c_try_compile | 
|  | 1668 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1669 | # ac_fn_c_try_cpp LINENO | 
|  | 1670 | # ---------------------- | 
|  | 1671 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
|  | 1672 | ac_fn_c_try_cpp () | 
|  | 1673 | { | 
|  | 1674 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1675 | if { { ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 1676 | case "(($ac_try" in | 
|  | 1677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1678 | *) ac_try_echo=$ac_try;; | 
|  | 1679 | esac | 
|  | 1680 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1681 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1682 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
|  | 1683 | ac_status=$? | 
|  | 1684 | if test -s conftest.err; then | 
|  | 1685 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1686 | cat conftest.er1 >&5 | 
|  | 1687 | mv -f conftest.er1 conftest.err | 
|  | 1688 | fi | 
|  | 1689 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1690 | test $ac_status = 0; } > conftest.i && { | 
|  | 1691 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
|  | 1692 | test ! -s conftest.err | 
|  | 1693 | }; then : | 
|  | 1694 | ac_retval=0 | 
|  | 1695 | else | 
|  | 1696 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1697 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1698 |  | 
|  | 1699 | ac_retval=1 | 
|  | 1700 | fi | 
|  | 1701 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
|  | 1702 | as_fn_set_status $ac_retval | 
|  | 1703 |  | 
|  | 1704 | } # ac_fn_c_try_cpp | 
|  | 1705 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1706 | # ac_fn_c_try_link LINENO | 
|  | 1707 | # ----------------------- | 
|  | 1708 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
|  | 1709 | ac_fn_c_try_link () | 
|  | 1710 | { | 
|  | 1711 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1712 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 1713 | if { { ac_try="$ac_link" | 
|  | 1714 | case "(($ac_try" in | 
|  | 1715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1716 | *) ac_try_echo=$ac_try;; | 
|  | 1717 | esac | 
|  | 1718 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1719 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1720 | (eval "$ac_link") 2>conftest.err | 
|  | 1721 | ac_status=$? | 
|  | 1722 | if test -s conftest.err; then | 
|  | 1723 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1724 | cat conftest.er1 >&5 | 
|  | 1725 | mv -f conftest.er1 conftest.err | 
|  | 1726 | fi | 
|  | 1727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1728 | test $ac_status = 0; } && { | 
|  | 1729 | test -z "$ac_c_werror_flag" || | 
|  | 1730 | test ! -s conftest.err | 
|  | 1731 | } && test -s conftest$ac_exeext && { | 
|  | 1732 | test "$cross_compiling" = yes || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1733 | test -x conftest$ac_exeext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1734 | }; then : | 
|  | 1735 | ac_retval=0 | 
|  | 1736 | else | 
|  | 1737 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1738 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1739 |  | 
|  | 1740 | ac_retval=1 | 
|  | 1741 | fi | 
|  | 1742 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
|  | 1743 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
|  | 1744 | # interfere with the next link command; also delete a directory that is | 
|  | 1745 | # left behind by Apple's compiler.  We do this before executing the actions. | 
|  | 1746 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1747 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1748 | as_fn_set_status $ac_retval | 
|  | 1749 |  | 
|  | 1750 | } # ac_fn_c_try_link | 
|  | 1751 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1752 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
|  | 1753 | # ------------------------------------------------------- | 
|  | 1754 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
|  | 1755 | # the include files in INCLUDES and setting the cache variable VAR | 
|  | 1756 | # accordingly. | 
|  | 1757 | ac_fn_c_check_header_mongrel () | 
|  | 1758 | { | 
|  | 1759 | 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] | 1760 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1762 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1763 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1764 | $as_echo_n "(cached) " >&6 | 
|  | 1765 | fi | 
|  | 1766 | eval ac_res=\$$3 | 
|  | 1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1768 | $as_echo "$ac_res" >&6; } | 
|  | 1769 | else | 
|  | 1770 | # Is the header compilable? | 
|  | 1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
|  | 1772 | $as_echo_n "checking $2 usability... " >&6; } | 
|  | 1773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1774 | /* end confdefs.h.  */ | 
|  | 1775 | $4 | 
|  | 1776 | #include <$2> | 
|  | 1777 | _ACEOF | 
|  | 1778 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1779 | ac_header_compiler=yes | 
|  | 1780 | else | 
|  | 1781 | ac_header_compiler=no | 
|  | 1782 | fi | 
|  | 1783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
|  | 1785 | $as_echo "$ac_header_compiler" >&6; } | 
|  | 1786 |  | 
|  | 1787 | # Is the header present? | 
|  | 1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
|  | 1789 | $as_echo_n "checking $2 presence... " >&6; } | 
|  | 1790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1791 | /* end confdefs.h.  */ | 
|  | 1792 | #include <$2> | 
|  | 1793 | _ACEOF | 
|  | 1794 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 1795 | ac_header_preproc=yes | 
|  | 1796 | else | 
|  | 1797 | ac_header_preproc=no | 
|  | 1798 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1799 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
|  | 1801 | $as_echo "$ac_header_preproc" >&6; } | 
|  | 1802 |  | 
|  | 1803 | # So?  What about this header? | 
|  | 1804 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
|  | 1805 | yes:no: ) | 
|  | 1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 1807 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 1808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1809 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
|  | 1810 | ;; | 
|  | 1811 | no:yes:* ) | 
|  | 1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
|  | 1813 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
|  | 1814 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
|  | 1815 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
|  | 1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
|  | 1817 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
|  | 1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 1819 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1821 | $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] | 1822 | ( $as_echo "## --------------------------------------- ## | 
|  | 1823 | ## Report this to https://bugs.python.org/ ## | 
|  | 1824 | ## --------------------------------------- ##" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1825 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 1826 | ;; | 
|  | 1827 | esac | 
|  | 1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1829 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1830 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1831 | $as_echo_n "(cached) " >&6 | 
|  | 1832 | else | 
|  | 1833 | eval "$3=\$ac_header_compiler" | 
|  | 1834 | fi | 
|  | 1835 | eval ac_res=\$$3 | 
|  | 1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1837 | $as_echo "$ac_res" >&6; } | 
|  | 1838 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1839 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1840 |  | 
|  | 1841 | } # ac_fn_c_check_header_mongrel | 
|  | 1842 |  | 
|  | 1843 | # ac_fn_c_try_run LINENO | 
|  | 1844 | # ---------------------- | 
|  | 1845 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
|  | 1846 | # that executables *can* be run. | 
|  | 1847 | ac_fn_c_try_run () | 
|  | 1848 | { | 
|  | 1849 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1850 | if { { ac_try="$ac_link" | 
|  | 1851 | case "(($ac_try" in | 
|  | 1852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1853 | *) ac_try_echo=$ac_try;; | 
|  | 1854 | esac | 
|  | 1855 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1856 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1857 | (eval "$ac_link") 2>&5 | 
|  | 1858 | ac_status=$? | 
|  | 1859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1860 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
|  | 1861 | { { case "(($ac_try" in | 
|  | 1862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1863 | *) ac_try_echo=$ac_try;; | 
|  | 1864 | esac | 
|  | 1865 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1866 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1867 | (eval "$ac_try") 2>&5 | 
|  | 1868 | ac_status=$? | 
|  | 1869 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1870 | test $ac_status = 0; }; }; then : | 
|  | 1871 | ac_retval=0 | 
|  | 1872 | else | 
|  | 1873 | $as_echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 1874 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1875 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1876 |  | 
|  | 1877 | ac_retval=$ac_status | 
|  | 1878 | fi | 
|  | 1879 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1880 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1881 | as_fn_set_status $ac_retval | 
|  | 1882 |  | 
|  | 1883 | } # ac_fn_c_try_run | 
|  | 1884 |  | 
|  | 1885 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
|  | 1886 | # ------------------------------------------------------- | 
|  | 1887 | # Tests whether HEADER exists and can be compiled using the include files in | 
|  | 1888 | # INCLUDES, setting the cache variable VAR accordingly. | 
|  | 1889 | ac_fn_c_check_header_compile () | 
|  | 1890 | { | 
|  | 1891 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1893 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1894 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1895 | $as_echo_n "(cached) " >&6 | 
|  | 1896 | else | 
|  | 1897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1898 | /* end confdefs.h.  */ | 
|  | 1899 | $4 | 
|  | 1900 | #include <$2> | 
|  | 1901 | _ACEOF | 
|  | 1902 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1903 | eval "$3=yes" | 
|  | 1904 | else | 
|  | 1905 | eval "$3=no" | 
|  | 1906 | fi | 
|  | 1907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1908 | fi | 
|  | 1909 | eval ac_res=\$$3 | 
|  | 1910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1911 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1912 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1913 |  | 
|  | 1914 | } # ac_fn_c_check_header_compile | 
|  | 1915 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1916 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
|  | 1917 | # ------------------------------------------- | 
|  | 1918 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
|  | 1919 | # variable VAR accordingly. | 
|  | 1920 | ac_fn_c_check_type () | 
|  | 1921 | { | 
|  | 1922 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1924 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1925 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1926 | $as_echo_n "(cached) " >&6 | 
|  | 1927 | else | 
|  | 1928 | eval "$3=no" | 
|  | 1929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1930 | /* end confdefs.h.  */ | 
|  | 1931 | $4 | 
|  | 1932 | int | 
|  | 1933 | main () | 
|  | 1934 | { | 
|  | 1935 | if (sizeof ($2)) | 
|  | 1936 | return 0; | 
|  | 1937 | ; | 
|  | 1938 | return 0; | 
|  | 1939 | } | 
|  | 1940 | _ACEOF | 
|  | 1941 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1943 | /* end confdefs.h.  */ | 
|  | 1944 | $4 | 
|  | 1945 | int | 
|  | 1946 | main () | 
|  | 1947 | { | 
|  | 1948 | if (sizeof (($2))) | 
|  | 1949 | return 0; | 
|  | 1950 | ; | 
|  | 1951 | return 0; | 
|  | 1952 | } | 
|  | 1953 | _ACEOF | 
|  | 1954 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1955 |  | 
|  | 1956 | else | 
|  | 1957 | eval "$3=yes" | 
|  | 1958 | fi | 
|  | 1959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1960 | fi | 
|  | 1961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1962 | fi | 
|  | 1963 | eval ac_res=\$$3 | 
|  | 1964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1965 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1966 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1967 |  | 
|  | 1968 | } # ac_fn_c_check_type | 
|  | 1969 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1970 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
|  | 1971 | # -------------------------------------------- | 
|  | 1972 | # Tries to find the compile-time value of EXPR in a program that includes | 
|  | 1973 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
|  | 1974 | # computed | 
|  | 1975 | ac_fn_c_compute_int () | 
|  | 1976 | { | 
|  | 1977 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1978 | if test "$cross_compiling" = yes; then | 
|  | 1979 | # Depending upon the size, compute the lo and hi bounds. | 
|  | 1980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1981 | /* end confdefs.h.  */ | 
|  | 1982 | $4 | 
|  | 1983 | int | 
|  | 1984 | main () | 
|  | 1985 | { | 
|  | 1986 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1987 | test_array [0] = 0; | 
|  | 1988 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1989 |  | 
|  | 1990 | ; | 
|  | 1991 | return 0; | 
|  | 1992 | } | 
|  | 1993 | _ACEOF | 
|  | 1994 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1995 | ac_lo=0 ac_mid=0 | 
|  | 1996 | while :; do | 
|  | 1997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1998 | /* end confdefs.h.  */ | 
|  | 1999 | $4 | 
|  | 2000 | int | 
|  | 2001 | main () | 
|  | 2002 | { | 
|  | 2003 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2004 | test_array [0] = 0; | 
|  | 2005 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2006 |  | 
|  | 2007 | ; | 
|  | 2008 | return 0; | 
|  | 2009 | } | 
|  | 2010 | _ACEOF | 
|  | 2011 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2012 | ac_hi=$ac_mid; break | 
|  | 2013 | else | 
|  | 2014 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
|  | 2015 | if test $ac_lo -le $ac_mid; then | 
|  | 2016 | ac_lo= ac_hi= | 
|  | 2017 | break | 
|  | 2018 | fi | 
|  | 2019 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
|  | 2020 | fi | 
|  | 2021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2022 | done | 
|  | 2023 | else | 
|  | 2024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2025 | /* end confdefs.h.  */ | 
|  | 2026 | $4 | 
|  | 2027 | int | 
|  | 2028 | main () | 
|  | 2029 | { | 
|  | 2030 | static int test_array [1 - 2 * !(($2) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2031 | test_array [0] = 0; | 
|  | 2032 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2033 |  | 
|  | 2034 | ; | 
|  | 2035 | return 0; | 
|  | 2036 | } | 
|  | 2037 | _ACEOF | 
|  | 2038 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2039 | ac_hi=-1 ac_mid=-1 | 
|  | 2040 | while :; do | 
|  | 2041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2042 | /* end confdefs.h.  */ | 
|  | 2043 | $4 | 
|  | 2044 | int | 
|  | 2045 | main () | 
|  | 2046 | { | 
|  | 2047 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2048 | test_array [0] = 0; | 
|  | 2049 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2050 |  | 
|  | 2051 | ; | 
|  | 2052 | return 0; | 
|  | 2053 | } | 
|  | 2054 | _ACEOF | 
|  | 2055 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2056 | ac_lo=$ac_mid; break | 
|  | 2057 | else | 
|  | 2058 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
|  | 2059 | if test $ac_mid -le $ac_hi; then | 
|  | 2060 | ac_lo= ac_hi= | 
|  | 2061 | break | 
|  | 2062 | fi | 
|  | 2063 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
|  | 2064 | fi | 
|  | 2065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2066 | done | 
|  | 2067 | else | 
|  | 2068 | ac_lo= ac_hi= | 
|  | 2069 | fi | 
|  | 2070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2071 | fi | 
|  | 2072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2073 | # Binary search between lo and hi bounds. | 
|  | 2074 | while test "x$ac_lo" != "x$ac_hi"; do | 
|  | 2075 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
|  | 2076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2077 | /* end confdefs.h.  */ | 
|  | 2078 | $4 | 
|  | 2079 | int | 
|  | 2080 | main () | 
|  | 2081 | { | 
|  | 2082 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2083 | test_array [0] = 0; | 
|  | 2084 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2085 |  | 
|  | 2086 | ; | 
|  | 2087 | return 0; | 
|  | 2088 | } | 
|  | 2089 | _ACEOF | 
|  | 2090 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2091 | ac_hi=$ac_mid | 
|  | 2092 | else | 
|  | 2093 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
|  | 2094 | fi | 
|  | 2095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2096 | done | 
|  | 2097 | case $ac_lo in #(( | 
|  | 2098 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
|  | 2099 | '') ac_retval=1 ;; | 
|  | 2100 | esac | 
|  | 2101 | else | 
|  | 2102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2103 | /* end confdefs.h.  */ | 
|  | 2104 | $4 | 
|  | 2105 | static long int longval () { return $2; } | 
|  | 2106 | static unsigned long int ulongval () { return $2; } | 
|  | 2107 | #include <stdio.h> | 
|  | 2108 | #include <stdlib.h> | 
|  | 2109 | int | 
|  | 2110 | main () | 
|  | 2111 | { | 
|  | 2112 |  | 
|  | 2113 | FILE *f = fopen ("conftest.val", "w"); | 
|  | 2114 | if (! f) | 
|  | 2115 | return 1; | 
|  | 2116 | if (($2) < 0) | 
|  | 2117 | { | 
|  | 2118 | long int i = longval (); | 
|  | 2119 | if (i != ($2)) | 
|  | 2120 | return 1; | 
|  | 2121 | fprintf (f, "%ld", i); | 
|  | 2122 | } | 
|  | 2123 | else | 
|  | 2124 | { | 
|  | 2125 | unsigned long int i = ulongval (); | 
|  | 2126 | if (i != ($2)) | 
|  | 2127 | return 1; | 
|  | 2128 | fprintf (f, "%lu", i); | 
|  | 2129 | } | 
|  | 2130 | /* Do not output a trailing newline, as this causes \r\n confusion | 
|  | 2131 | on some platforms.  */ | 
|  | 2132 | return ferror (f) || fclose (f) != 0; | 
|  | 2133 |  | 
|  | 2134 | ; | 
|  | 2135 | return 0; | 
|  | 2136 | } | 
|  | 2137 | _ACEOF | 
|  | 2138 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 2139 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
|  | 2140 | else | 
|  | 2141 | ac_retval=1 | 
|  | 2142 | fi | 
|  | 2143 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 2144 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 2145 | rm -f conftest.val | 
|  | 2146 |  | 
|  | 2147 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2148 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2149 | as_fn_set_status $ac_retval | 
|  | 2150 |  | 
|  | 2151 | } # ac_fn_c_compute_int | 
|  | 2152 |  | 
|  | 2153 | # ac_fn_c_check_func LINENO FUNC VAR | 
|  | 2154 | # ---------------------------------- | 
|  | 2155 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
|  | 2156 | ac_fn_c_check_func () | 
|  | 2157 | { | 
|  | 2158 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2160 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2161 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2162 | $as_echo_n "(cached) " >&6 | 
|  | 2163 | else | 
|  | 2164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2165 | /* end confdefs.h.  */ | 
|  | 2166 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
|  | 2167 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 2168 | #define $2 innocuous_$2 | 
|  | 2169 |  | 
|  | 2170 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 2171 | which can conflict with char $2 (); below. | 
|  | 2172 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 2173 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 2174 |  | 
|  | 2175 | #ifdef __STDC__ | 
|  | 2176 | # include <limits.h> | 
|  | 2177 | #else | 
|  | 2178 | # include <assert.h> | 
|  | 2179 | #endif | 
|  | 2180 |  | 
|  | 2181 | #undef $2 | 
|  | 2182 |  | 
|  | 2183 | /* Override any GCC internal prototype to avoid an error. | 
|  | 2184 | Use char because int might match the return type of a GCC | 
|  | 2185 | builtin and then its argument prototype would still apply.  */ | 
|  | 2186 | #ifdef __cplusplus | 
|  | 2187 | extern "C" | 
|  | 2188 | #endif | 
|  | 2189 | char $2 (); | 
|  | 2190 | /* The GNU C library defines this for functions which it implements | 
|  | 2191 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 2192 | something starting with __ and the normal name is an alias.  */ | 
|  | 2193 | #if defined __stub_$2 || defined __stub___$2 | 
|  | 2194 | choke me | 
|  | 2195 | #endif | 
|  | 2196 |  | 
|  | 2197 | int | 
|  | 2198 | main () | 
|  | 2199 | { | 
|  | 2200 | return $2 (); | 
|  | 2201 | ; | 
|  | 2202 | return 0; | 
|  | 2203 | } | 
|  | 2204 | _ACEOF | 
|  | 2205 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 2206 | eval "$3=yes" | 
|  | 2207 | else | 
|  | 2208 | eval "$3=no" | 
|  | 2209 | fi | 
|  | 2210 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 2211 | conftest$ac_exeext conftest.$ac_ext | 
|  | 2212 | fi | 
|  | 2213 | eval ac_res=\$$3 | 
|  | 2214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2215 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2216 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2217 |  | 
|  | 2218 | } # ac_fn_c_check_func | 
|  | 2219 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2220 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
|  | 2221 | # --------------------------------------------- | 
|  | 2222 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
|  | 2223 | # accordingly. | 
|  | 2224 | ac_fn_c_check_decl () | 
|  | 2225 | { | 
|  | 2226 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2227 | as_decl_name=`echo $2|sed 's/ *(.*//'` | 
|  | 2228 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
|  | 2229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
|  | 2230 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
|  | 2231 | if eval \${$3+:} false; then : | 
|  | 2232 | $as_echo_n "(cached) " >&6 | 
|  | 2233 | else | 
|  | 2234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2235 | /* end confdefs.h.  */ | 
|  | 2236 | $4 | 
|  | 2237 | int | 
|  | 2238 | main () | 
|  | 2239 | { | 
|  | 2240 | #ifndef $as_decl_name | 
|  | 2241 | #ifdef __cplusplus | 
|  | 2242 | (void) $as_decl_use; | 
|  | 2243 | #else | 
|  | 2244 | (void) $as_decl_name; | 
|  | 2245 | #endif | 
|  | 2246 | #endif | 
|  | 2247 |  | 
|  | 2248 | ; | 
|  | 2249 | return 0; | 
|  | 2250 | } | 
|  | 2251 | _ACEOF | 
|  | 2252 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2253 | eval "$3=yes" | 
|  | 2254 | else | 
|  | 2255 | eval "$3=no" | 
|  | 2256 | fi | 
|  | 2257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2258 | fi | 
|  | 2259 | eval ac_res=\$$3 | 
|  | 2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2261 | $as_echo "$ac_res" >&6; } | 
|  | 2262 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
|  | 2263 |  | 
|  | 2264 | } # ac_fn_c_check_decl | 
|  | 2265 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2266 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
|  | 2267 | # ---------------------------------------------------- | 
|  | 2268 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
|  | 2269 | # INCLUDES, setting cache variable VAR accordingly. | 
|  | 2270 | ac_fn_c_check_member () | 
|  | 2271 | { | 
|  | 2272 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
|  | 2274 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2275 | if eval \${$4+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2276 | $as_echo_n "(cached) " >&6 | 
|  | 2277 | else | 
|  | 2278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2279 | /* end confdefs.h.  */ | 
|  | 2280 | $5 | 
|  | 2281 | int | 
|  | 2282 | main () | 
|  | 2283 | { | 
|  | 2284 | static $2 ac_aggr; | 
|  | 2285 | if (ac_aggr.$3) | 
|  | 2286 | return 0; | 
|  | 2287 | ; | 
|  | 2288 | return 0; | 
|  | 2289 | } | 
|  | 2290 | _ACEOF | 
|  | 2291 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2292 | eval "$4=yes" | 
|  | 2293 | else | 
|  | 2294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2295 | /* end confdefs.h.  */ | 
|  | 2296 | $5 | 
|  | 2297 | int | 
|  | 2298 | main () | 
|  | 2299 | { | 
|  | 2300 | static $2 ac_aggr; | 
|  | 2301 | if (sizeof ac_aggr.$3) | 
|  | 2302 | return 0; | 
|  | 2303 | ; | 
|  | 2304 | return 0; | 
|  | 2305 | } | 
|  | 2306 | _ACEOF | 
|  | 2307 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2308 | eval "$4=yes" | 
|  | 2309 | else | 
|  | 2310 | eval "$4=no" | 
|  | 2311 | fi | 
|  | 2312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2313 | fi | 
|  | 2314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2315 | fi | 
|  | 2316 | eval ac_res=\$$4 | 
|  | 2317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2318 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2319 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2320 |  | 
|  | 2321 | } # ac_fn_c_check_member | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2322 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2323 | This file contains any messages produced by compilers while | 
|  | 2324 | running configure, to aid debugging if configure makes a mistake. | 
|  | 2325 |  | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 2326 | It was created by python $as_me 3.6, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2327 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2328 |  | 
|  | 2329 | $ $0 $@ | 
|  | 2330 |  | 
|  | 2331 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2332 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2333 | { | 
|  | 2334 | cat <<_ASUNAME | 
|  | 2335 | ## --------- ## | 
|  | 2336 | ## Platform. ## | 
|  | 2337 | ## --------- ## | 
|  | 2338 |  | 
|  | 2339 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 2340 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 2341 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 2342 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 2343 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 2344 |  | 
|  | 2345 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 2346 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 2347 |  | 
|  | 2348 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 2349 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 2350 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2351 | /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] | 2352 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 2353 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 2354 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 2355 |  | 
|  | 2356 | _ASUNAME | 
|  | 2357 |  | 
|  | 2358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2359 | for as_dir in $PATH | 
|  | 2360 | do | 
|  | 2361 | IFS=$as_save_IFS | 
|  | 2362 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2363 | $as_echo "PATH: $as_dir" | 
|  | 2364 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2365 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2366 |  | 
|  | 2367 | } >&5 | 
|  | 2368 |  | 
|  | 2369 | cat >&5 <<_ACEOF | 
|  | 2370 |  | 
|  | 2371 |  | 
|  | 2372 | ## ----------- ## | 
|  | 2373 | ## Core tests. ## | 
|  | 2374 | ## ----------- ## | 
|  | 2375 |  | 
|  | 2376 | _ACEOF | 
|  | 2377 |  | 
|  | 2378 |  | 
|  | 2379 | # Keep a trace of the command line. | 
|  | 2380 | # 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] | 2381 | # 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] | 2382 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2383 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2384 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2385 | ac_configure_args0= | 
|  | 2386 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2387 | ac_must_keep_next=false | 
|  | 2388 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2389 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2390 | for ac_arg | 
|  | 2391 | do | 
|  | 2392 | case $ac_arg in | 
|  | 2393 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 2394 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 2395 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 2396 | continue ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2397 | *\'*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2398 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2399 | esac | 
|  | 2400 | case $ac_pass in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2401 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2402 | 2) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2403 | as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2404 | if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2405 | ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2406 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2407 | case $ac_arg in | 
|  | 2408 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 2409 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 2410 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 2411 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 2412 | case "$ac_configure_args0 " in | 
|  | 2413 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 2414 | esac | 
|  | 2415 | ;; | 
|  | 2416 | -* ) ac_must_keep_next=true ;; | 
|  | 2417 | esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2418 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2419 | as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2420 | ;; | 
|  | 2421 | esac | 
|  | 2422 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2423 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2424 | { ac_configure_args0=; unset ac_configure_args0;} | 
|  | 2425 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2426 |  | 
|  | 2427 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 2428 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 2429 | # would cause problems or look ugly. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2430 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
|  | 2431 | # 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] | 2432 | trap 'exit_status=$? | 
|  | 2433 | # Save into config.log some information that might help in debugging. | 
|  | 2434 | { | 
|  | 2435 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2436 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2437 | $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2438 | ## Cache variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2439 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2440 | echo | 
|  | 2441 | # The following way of writing the cache mishandles newlines in values, | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2442 | ( | 
|  | 2443 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
|  | 2444 | eval ac_val=\$$ac_var | 
|  | 2445 | case $ac_val in #( | 
|  | 2446 | *${as_nl}*) | 
|  | 2447 | case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2448 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 2449 | $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] | 2450 | esac | 
|  | 2451 | case $ac_var in #( | 
|  | 2452 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2453 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 2454 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2455 | esac ;; | 
|  | 2456 | esac | 
|  | 2457 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2458 | (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2459 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
|  | 2460 | *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2461 | sed -n \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2462 | "s/'\''/'\''\\\\'\'''\''/g; | 
|  | 2463 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
|  | 2464 | ;; #( | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2465 | *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2466 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2467 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2468 | esac | | 
|  | 2469 | sort | 
|  | 2470 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2471 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2472 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2473 | $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2474 | ## Output variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2475 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2476 | echo | 
|  | 2477 | for ac_var in $ac_subst_vars | 
|  | 2478 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2479 | eval ac_val=\$$ac_var | 
|  | 2480 | case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2481 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2482 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2483 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2484 | done | sort | 
|  | 2485 | echo | 
|  | 2486 |  | 
|  | 2487 | if test -n "$ac_subst_files"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2488 | $as_echo "## ------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2489 | ## File substitutions. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2490 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2491 | echo | 
|  | 2492 | for ac_var in $ac_subst_files | 
|  | 2493 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2494 | eval ac_val=\$$ac_var | 
|  | 2495 | case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2496 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2497 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2498 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2499 | done | sort | 
|  | 2500 | echo | 
|  | 2501 | fi | 
|  | 2502 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2503 | if test -s confdefs.h; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2504 | $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2505 | ## confdefs.h. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2506 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2507 | echo | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2508 | cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2509 | echo | 
|  | 2510 | fi | 
|  | 2511 | test "$ac_signal" != 0 && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2512 | $as_echo "$as_me: caught signal $ac_signal" | 
|  | 2513 | $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2514 | } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2515 | rm -f core *.core core.conftest.* && | 
|  | 2516 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2517 | exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2518 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2519 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2520 | 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] | 2521 | done | 
|  | 2522 | ac_signal=0 | 
|  | 2523 |  | 
|  | 2524 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2525 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2526 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2527 | $as_echo "/* confdefs.h */" > confdefs.h | 
|  | 2528 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2529 | # Predefined preprocessor variables. | 
|  | 2530 |  | 
|  | 2531 | cat >>confdefs.h <<_ACEOF | 
|  | 2532 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 2533 | _ACEOF | 
|  | 2534 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | cat >>confdefs.h <<_ACEOF | 
|  | 2536 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 2537 | _ACEOF | 
|  | 2538 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2539 | cat >>confdefs.h <<_ACEOF | 
|  | 2540 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 2541 | _ACEOF | 
|  | 2542 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2543 | cat >>confdefs.h <<_ACEOF | 
|  | 2544 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 2545 | _ACEOF | 
|  | 2546 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2547 | cat >>confdefs.h <<_ACEOF | 
|  | 2548 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 2549 | _ACEOF | 
|  | 2550 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2551 | cat >>confdefs.h <<_ACEOF | 
|  | 2552 | #define PACKAGE_URL "$PACKAGE_URL" | 
|  | 2553 | _ACEOF | 
|  | 2554 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2555 |  | 
|  | 2556 | # 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] | 2557 | # Prefer an explicitly selected file to automatically selected ones. | 
|  | 2558 | ac_site_file1=NONE | 
|  | 2559 | ac_site_file2=NONE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2560 | if test -n "$CONFIG_SITE"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2561 | # We do not want a PATH search for config.site. | 
|  | 2562 | case $CONFIG_SITE in #(( | 
|  | 2563 | -*)  ac_site_file1=./$CONFIG_SITE;; | 
|  | 2564 | */*) ac_site_file1=$CONFIG_SITE;; | 
|  | 2565 | *)   ac_site_file1=./$CONFIG_SITE;; | 
|  | 2566 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2567 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2568 | ac_site_file1=$prefix/share/config.site | 
|  | 2569 | ac_site_file2=$prefix/etc/config.site | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2570 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2571 | ac_site_file1=$ac_default_prefix/share/config.site | 
|  | 2572 | ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2573 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2574 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2575 | do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2576 | test "x$ac_site_file" = xNONE && continue | 
|  | 2577 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
|  | 2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
|  | 2579 | $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] | 2580 | sed 's/^/| /' "$ac_site_file" >&5 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2581 | . "$ac_site_file" \ | 
|  | 2582 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2583 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2584 | as_fn_error $? "failed to load site script $ac_site_file | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2585 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2586 | fi | 
|  | 2587 | done | 
|  | 2588 |  | 
|  | 2589 | if test -r "$cache_file"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2590 | # Some versions of bash will fail to source /dev/null (special files | 
|  | 2591 | # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
|  | 2592 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
|  | 2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
|  | 2594 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2595 | case $cache_file in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2596 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
|  | 2597 | *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2598 | esac | 
|  | 2599 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2600 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
|  | 2602 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2603 | >$cache_file | 
|  | 2604 | fi | 
|  | 2605 |  | 
|  | 2606 | # Check that the precious variables saved in the cache have kept the same | 
|  | 2607 | # value. | 
|  | 2608 | ac_cache_corrupted=false | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2609 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2610 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 2611 | eval ac_new_set=\$ac_env_${ac_var}_set | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2612 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
|  | 2613 | eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 | case $ac_old_set,$ac_new_set in | 
|  | 2615 | set,) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
|  | 2617 | $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] | 2618 | ac_cache_corrupted=: ;; | 
|  | 2619 | ,set) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2620 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
|  | 2621 | $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] | 2622 | ac_cache_corrupted=: ;; | 
|  | 2623 | ,);; | 
|  | 2624 | *) | 
|  | 2625 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2626 | # differences in whitespace do not lead to failure. | 
|  | 2627 | ac_old_val_w=`echo x $ac_old_val` | 
|  | 2628 | ac_new_val_w=`echo x $ac_new_val` | 
|  | 2629 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
|  | 2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
|  | 2631 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
|  | 2632 | ac_cache_corrupted=: | 
|  | 2633 | else | 
|  | 2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
|  | 2635 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
|  | 2636 | eval $ac_var=\$ac_old_val | 
|  | 2637 | fi | 
|  | 2638 | { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
|  | 2639 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
|  | 2640 | { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
|  | 2641 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2642 | fi;; | 
|  | 2643 | esac | 
|  | 2644 | # Pass precious variables to config.status. | 
|  | 2645 | if test "$ac_new_set" = set; then | 
|  | 2646 | case $ac_new_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2647 | *\'*) 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] | 2648 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 2649 | esac | 
|  | 2650 | case " $ac_configure_args " in | 
|  | 2651 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2652 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2653 | esac | 
|  | 2654 | fi | 
|  | 2655 | done | 
|  | 2656 | if $ac_cache_corrupted; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2658 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
|  | 2660 | $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] | 2661 | 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] | 2662 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2663 | ## -------------------- ## | 
|  | 2664 | ## Main body of script. ## | 
|  | 2665 | ## -------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2666 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2667 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2668 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2669 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2670 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2672 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2673 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2674 |  | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2675 |  | 
| Trent Nelson | 5595ab5 | 2012-10-17 04:47:31 -0400 | [diff] [blame] | 2676 | if test "$abs_srcdir" != "$abs_builddir"; then | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2677 | # If we're building out-of-tree, we need to make sure the following | 
|  | 2678 | # resources get picked up before their $srcdir counterparts. | 
|  | 2679 | #   Objects/ -> typeslots.inc | 
|  | 2680 | #   Include/ -> Python-ast.h, graminit.h | 
|  | 2681 | #   Python/  -> importlib.h | 
|  | 2682 | # (A side effect of this is that these resources will automatically be | 
|  | 2683 | #  regenerated when building out-of-tree, regardless of whether or not | 
|  | 2684 | #  the $srcdir counterpart is up-to-date.  This is an acceptable trade | 
|  | 2685 | #  off.) | 
|  | 2686 | BASECPPFLAGS="-IObjects -IInclude -IPython" | 
|  | 2687 | else | 
|  | 2688 | BASECPPFLAGS="" | 
|  | 2689 | fi | 
|  | 2690 |  | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2691 |  | 
|  | 2692 |  | 
|  | 2693 |  | 
|  | 2694 |  | 
| Antoine Pitrou | d3b2aef | 2011-07-27 01:22:41 +0200 | [diff] [blame] | 2695 | if test -e $srcdir/.hg/dirstate | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2696 | then | 
|  | 2697 | # Extract the first word of "hg", so it can be a program name with args. | 
|  | 2698 | set dummy hg; ac_word=$2 | 
|  | 2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 2700 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2701 | if ${ac_cv_prog_HAS_HG+:} false; then : | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2702 | $as_echo_n "(cached) " >&6 | 
|  | 2703 | else | 
|  | 2704 | if test -n "$HAS_HG"; then | 
|  | 2705 | ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. | 
|  | 2706 | else | 
|  | 2707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2708 | for as_dir in $PATH | 
|  | 2709 | do | 
|  | 2710 | IFS=$as_save_IFS | 
|  | 2711 | test -z "$as_dir" && as_dir=. | 
|  | 2712 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 2713 | 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] | 2714 | ac_cv_prog_HAS_HG="found" | 
|  | 2715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2716 | break 2 | 
|  | 2717 | fi | 
|  | 2718 | done | 
|  | 2719 | done | 
|  | 2720 | IFS=$as_save_IFS | 
|  | 2721 |  | 
|  | 2722 | test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" | 
|  | 2723 | fi | 
|  | 2724 | fi | 
|  | 2725 | HAS_HG=$ac_cv_prog_HAS_HG | 
|  | 2726 | if test -n "$HAS_HG"; then | 
|  | 2727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 | 
|  | 2728 | $as_echo "$HAS_HG" >&6; } | 
|  | 2729 | else | 
|  | 2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 2731 | $as_echo "no" >&6; } | 
|  | 2732 | fi | 
|  | 2733 |  | 
|  | 2734 |  | 
|  | 2735 | else | 
|  | 2736 | HAS_HG=no-repository | 
|  | 2737 | fi | 
|  | 2738 | if test $HAS_HG = found | 
|  | 2739 | then | 
|  | 2740 | HGVERSION="hg id -i \$(srcdir)" | 
|  | 2741 | HGTAG="hg id -t \$(srcdir)" | 
|  | 2742 | HGBRANCH="hg id -b \$(srcdir)" | 
|  | 2743 | else | 
|  | 2744 | HGVERSION="" | 
|  | 2745 | HGTAG="" | 
|  | 2746 | HGBRANCH="" | 
|  | 2747 | fi | 
|  | 2748 |  | 
|  | 2749 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2750 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2751 |  | 
|  | 2752 |  | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2753 | ac_aux_dir= | 
|  | 2754 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
|  | 2755 | if test -f "$ac_dir/install-sh"; then | 
|  | 2756 | ac_aux_dir=$ac_dir | 
|  | 2757 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|  | 2758 | break | 
|  | 2759 | elif test -f "$ac_dir/install.sh"; then | 
|  | 2760 | ac_aux_dir=$ac_dir | 
|  | 2761 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|  | 2762 | break | 
|  | 2763 | elif test -f "$ac_dir/shtool"; then | 
|  | 2764 | ac_aux_dir=$ac_dir | 
|  | 2765 | ac_install_sh="$ac_aux_dir/shtool install -c" | 
|  | 2766 | break | 
|  | 2767 | fi | 
|  | 2768 | done | 
|  | 2769 | if test -z "$ac_aux_dir"; then | 
|  | 2770 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
|  | 2771 | fi | 
|  | 2772 |  | 
|  | 2773 | # These three variables are undocumented and unsupported, | 
|  | 2774 | # and are intended to be withdrawn in a future Autoconf release. | 
|  | 2775 | # They can cause serious problems if a builder's source tree is in a directory | 
|  | 2776 | # whose full name contains unusual characters. | 
|  | 2777 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
|  | 2778 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
|  | 2779 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
|  | 2780 |  | 
|  | 2781 |  | 
|  | 2782 | # Make sure we can run config.sub. | 
|  | 2783 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
|  | 2784 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
|  | 2785 |  | 
|  | 2786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
|  | 2787 | $as_echo_n "checking build system type... " >&6; } | 
|  | 2788 | if ${ac_cv_build+:} false; then : | 
|  | 2789 | $as_echo_n "(cached) " >&6 | 
|  | 2790 | else | 
|  | 2791 | ac_build_alias=$build_alias | 
|  | 2792 | test "x$ac_build_alias" = x && | 
|  | 2793 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
|  | 2794 | test "x$ac_build_alias" = x && | 
|  | 2795 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
|  | 2796 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
|  | 2797 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 
|  | 2798 |  | 
|  | 2799 | fi | 
|  | 2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
|  | 2801 | $as_echo "$ac_cv_build" >&6; } | 
|  | 2802 | case $ac_cv_build in | 
|  | 2803 | *-*-*) ;; | 
|  | 2804 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
|  | 2805 | esac | 
|  | 2806 | build=$ac_cv_build | 
|  | 2807 | ac_save_IFS=$IFS; IFS='-' | 
|  | 2808 | set x $ac_cv_build | 
|  | 2809 | shift | 
|  | 2810 | build_cpu=$1 | 
|  | 2811 | build_vendor=$2 | 
|  | 2812 | shift; shift | 
|  | 2813 | # Remember, the first character of IFS is used to create $*, | 
|  | 2814 | # except with old shells: | 
|  | 2815 | build_os=$* | 
|  | 2816 | IFS=$ac_save_IFS | 
|  | 2817 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
|  | 2818 |  | 
|  | 2819 |  | 
|  | 2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
|  | 2821 | $as_echo_n "checking host system type... " >&6; } | 
|  | 2822 | if ${ac_cv_host+:} false; then : | 
|  | 2823 | $as_echo_n "(cached) " >&6 | 
|  | 2824 | else | 
|  | 2825 | if test "x$host_alias" = x; then | 
|  | 2826 | ac_cv_host=$ac_cv_build | 
|  | 2827 | else | 
|  | 2828 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
|  | 2829 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 
|  | 2830 | fi | 
|  | 2831 |  | 
|  | 2832 | fi | 
|  | 2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
|  | 2834 | $as_echo "$ac_cv_host" >&6; } | 
|  | 2835 | case $ac_cv_host in | 
|  | 2836 | *-*-*) ;; | 
|  | 2837 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
|  | 2838 | esac | 
|  | 2839 | host=$ac_cv_host | 
|  | 2840 | ac_save_IFS=$IFS; IFS='-' | 
|  | 2841 | set x $ac_cv_host | 
|  | 2842 | shift | 
|  | 2843 | host_cpu=$1 | 
|  | 2844 | host_vendor=$2 | 
|  | 2845 | shift; shift | 
|  | 2846 | # Remember, the first character of IFS is used to create $*, | 
|  | 2847 | # except with old shells: | 
|  | 2848 | host_os=$* | 
|  | 2849 | IFS=$ac_save_IFS | 
|  | 2850 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
|  | 2851 |  | 
|  | 2852 |  | 
|  | 2853 |  | 
| doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 2854 |  | 
|  | 2855 |  | 
| Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 2856 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile | 
|  | 2857 | rm -f pybuilddir.txt | 
|  | 2858 |  | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2859 | for ac_prog in python$PACKAGE_VERSION python3 python | 
|  | 2860 | do | 
|  | 2861 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 2862 | set dummy $ac_prog; ac_word=$2 | 
|  | 2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 2864 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 2865 | if ${ac_cv_prog_PYTHON_FOR_GEN+:} false; then : | 
|  | 2866 | $as_echo_n "(cached) " >&6 | 
|  | 2867 | else | 
|  | 2868 | if test -n "$PYTHON_FOR_GEN"; then | 
|  | 2869 | ac_cv_prog_PYTHON_FOR_GEN="$PYTHON_FOR_GEN" # Let the user override the test. | 
|  | 2870 | else | 
|  | 2871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2872 | for as_dir in $PATH | 
|  | 2873 | do | 
|  | 2874 | IFS=$as_save_IFS | 
|  | 2875 | test -z "$as_dir" && as_dir=. | 
|  | 2876 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2877 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 2878 | ac_cv_prog_PYTHON_FOR_GEN="$ac_prog" | 
|  | 2879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2880 | break 2 | 
|  | 2881 | fi | 
|  | 2882 | done | 
|  | 2883 | done | 
|  | 2884 | IFS=$as_save_IFS | 
|  | 2885 |  | 
|  | 2886 | fi | 
|  | 2887 | fi | 
|  | 2888 | PYTHON_FOR_GEN=$ac_cv_prog_PYTHON_FOR_GEN | 
|  | 2889 | if test -n "$PYTHON_FOR_GEN"; then | 
|  | 2890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_GEN" >&5 | 
|  | 2891 | $as_echo "$PYTHON_FOR_GEN" >&6; } | 
|  | 2892 | else | 
|  | 2893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 2894 | $as_echo "no" >&6; } | 
|  | 2895 | fi | 
|  | 2896 |  | 
|  | 2897 |  | 
|  | 2898 | test -n "$PYTHON_FOR_GEN" && break | 
|  | 2899 | done | 
|  | 2900 | test -n "$PYTHON_FOR_GEN" || PYTHON_FOR_GEN="not-found" | 
|  | 2901 |  | 
|  | 2902 | if test "$PYTHON_FOR_GEN" = not-found; then | 
|  | 2903 | PYTHON_FOR_GEN='@echo "Cannot generate $@, python not found !" && \ | 
|  | 2904 | echo "To skip re-generation of $@ run <make touch> or <make -t $@>." && \ | 
|  | 2905 | echo "Otherwise, set python in PATH and run configure or run <make PYTHON_FOR_GEN=python>." && false &&' | 
|  | 2906 | fi | 
|  | 2907 |  | 
|  | 2908 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2909 | if test "$cross_compiling" = yes; then | 
|  | 2910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | 
|  | 2911 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | 
|  | 2912 | if test -z "$PYTHON_FOR_BUILD"; then | 
|  | 2913 | for interp in python$PACKAGE_VERSION python3 python; do | 
|  | 2914 | which $interp >/dev/null 2>&1 || continue | 
| Xavier de Gaye | 4afd143 | 2016-07-07 18:00:22 +0200 | [diff] [blame] | 2915 | 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] | 2916 | break | 
|  | 2917 | fi | 
|  | 2918 | interp= | 
|  | 2919 | done | 
|  | 2920 | if test x$interp = x; then | 
|  | 2921 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | 
|  | 2922 | fi | 
|  | 2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | 
|  | 2924 | $as_echo "$interp" >&6; } | 
| doko@python.org | 244b687 | 2013-01-26 12:08:25 +0100 | [diff] [blame] | 2925 | 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:$(srcdir)/Lib/$(PLATDIR) '$interp | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2926 | fi | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 2927 | # Used to comment out stuff for rebuilding generated files | 
|  | 2928 | GENERATED_COMMENT='#' | 
| Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 2929 | elif test "$cross_compiling" = maybe; then | 
|  | 2930 | 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] | 2931 | else | 
|  | 2932 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | 
| Martin Panter | 43a94a7 | 2016-07-29 05:52:32 +0000 | [diff] [blame] | 2933 | GENERATED_COMMENT='' | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2934 | fi | 
|  | 2935 |  | 
|  | 2936 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2937 |  | 
| Martin Panter | eac67be | 2016-07-28 01:28:27 +0000 | [diff] [blame] | 2938 |  | 
| Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2939 | if test "$prefix" != "/"; then | 
|  | 2940 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
|  | 2941 | fi | 
|  | 2942 |  | 
|  | 2943 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2944 |  | 
|  | 2945 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2946 | # We don't use PACKAGE_ variables, and they cause conflicts | 
|  | 2947 | # with other autoconf-based packages that include Python.h | 
|  | 2948 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
|  | 2949 | rm confdefs.h | 
|  | 2950 | mv confdefs.h.new confdefs.h | 
|  | 2951 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2952 |  | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 2953 | VERSION=3.6 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2954 |  | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 2955 | # Version number of Python's own shared library file. | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2956 |  | 
|  | 2957 | SOVERSION=1.0 | 
|  | 2958 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2959 | # The later defininition of _XOPEN_SOURCE disables certain features | 
|  | 2960 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
|  | 2961 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2962 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2963 |  | 
|  | 2964 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2965 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2966 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
|  | 2967 | # them. | 
|  | 2968 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2969 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2970 |  | 
|  | 2971 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2972 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2973 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
|  | 2974 | # them. | 
|  | 2975 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2976 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2977 |  | 
|  | 2978 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2979 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2980 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
|  | 2981 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2982 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2983 |  | 
|  | 2984 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2985 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2986 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
|  | 2987 | # them. | 
|  | 2988 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2989 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2990 |  | 
|  | 2991 |  | 
|  | 2992 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2993 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2994 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2995 | # Arguments passed to configure. | 
|  | 2996 |  | 
|  | 2997 | CONFIG_ARGS="$ac_configure_args" | 
|  | 2998 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
|  | 3000 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3001 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3002 | if test "${enable_universalsdk+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3003 | enableval=$enable_universalsdk; | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3004 | case $enableval in | 
|  | 3005 | yes) | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3006 | # Locate the best usable SDK, see Mac/README.txt for more | 
|  | 3007 | # information | 
|  | 3008 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3009 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3010 | then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3011 | enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
|  | 3012 | if test ! -d "${enableval}" | 
|  | 3013 | then | 
|  | 3014 | enableval=/ | 
|  | 3015 | fi | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3016 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3017 | ;; | 
|  | 3018 | esac | 
|  | 3019 | case $enableval in | 
|  | 3020 | no) | 
|  | 3021 | UNIVERSALSDK= | 
|  | 3022 | enable_universalsdk= | 
|  | 3023 | ;; | 
|  | 3024 | *) | 
|  | 3025 | UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3026 | if test ! -d "${UNIVERSALSDK}" | 
|  | 3027 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3028 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3029 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3030 | ;; | 
|  | 3031 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3032 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3033 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3034 | else | 
|  | 3035 |  | 
|  | 3036 | UNIVERSALSDK= | 
|  | 3037 | enable_universalsdk= | 
|  | 3038 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3039 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3040 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3041 | if test -n "${UNIVERSALSDK}" | 
|  | 3042 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
|  | 3044 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3045 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3047 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3048 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3049 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3050 |  | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3051 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3052 | ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3053 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3054 | # For backward compatibility reasons we prefer to select '32-bit' if available, | 
|  | 3055 | # otherwise use 'intel' | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3056 | UNIVERSAL_ARCHS="32-bit" | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3057 | if test "`uname -s`" = "Darwin" | 
|  | 3058 | then | 
|  | 3059 | if test -n "${UNIVERSALSDK}" | 
|  | 3060 | then | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3061 | 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] | 3062 | then | 
|  | 3063 | UNIVERSAL_ARCHS="intel" | 
|  | 3064 | fi | 
|  | 3065 | fi | 
|  | 3066 | fi | 
|  | 3067 |  | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3068 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
|  | 3070 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3071 |  | 
|  | 3072 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3073 | if test "${with_universal_archs+set}" = set; then : | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3074 | withval=$with_universal_archs; | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3075 | UNIVERSAL_ARCHS="$withval" | 
|  | 3076 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3077 | fi | 
|  | 3078 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3079 | if test -n "${UNIVERSALSDK}" | 
|  | 3080 | then | 
|  | 3081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 | 
|  | 3082 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | 
|  | 3083 | else | 
|  | 3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3085 | $as_echo "no" >&6; } | 
|  | 3086 | fi | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3087 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3088 |  | 
|  | 3089 | # Check whether --with-framework-name was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3090 | if test "${with_framework_name+set}" = set; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3091 | withval=$with_framework_name; | 
|  | 3092 | PYTHONFRAMEWORK=${withval} | 
|  | 3093 | PYTHONFRAMEWORKDIR=${withval}.framework | 
|  | 3094 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
|  | 3095 |  | 
|  | 3096 | else | 
|  | 3097 |  | 
|  | 3098 | PYTHONFRAMEWORK=Python | 
|  | 3099 | PYTHONFRAMEWORKDIR=Python.framework | 
|  | 3100 | PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
|  | 3101 |  | 
|  | 3102 | fi | 
|  | 3103 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3104 | # Check whether --enable-framework was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3105 | if test "${enable_framework+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3106 | enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3107 | case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3108 | yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3109 | enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3110 | esac | 
|  | 3111 | case $enableval in | 
|  | 3112 | no) | 
|  | 3113 | PYTHONFRAMEWORK= | 
|  | 3114 | PYTHONFRAMEWORKDIR=no-framework | 
|  | 3115 | PYTHONFRAMEWORKPREFIX= | 
|  | 3116 | PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3117 | FRAMEWORKINSTALLFIRST= | 
|  | 3118 | FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3119 | FRAMEWORKALTINSTALLFIRST= | 
|  | 3120 | FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3121 | FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3122 | if test "x${prefix}" = "xNONE"; then | 
|  | 3123 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 3124 | else | 
|  | 3125 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3126 | fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3127 | enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3128 | ;; | 
|  | 3129 | *) | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3130 | PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3131 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3132 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3133 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3134 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
|  | 3135 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3136 | FRAMEWORKPYTHONW="frameworkpythonw" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3137 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3138 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3139 | if test "x${prefix}" = "xNONE" ; then | 
|  | 3140 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3141 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3142 | else | 
|  | 3143 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3144 | fi | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3145 |  | 
|  | 3146 | case "${enableval}" in | 
|  | 3147 | /System*) | 
|  | 3148 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3149 | if test "${prefix}" = "NONE" ; then | 
|  | 3150 | # See below | 
|  | 3151 | FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
|  | 3152 | fi | 
|  | 3153 | ;; | 
|  | 3154 |  | 
|  | 3155 | /Library*) | 
|  | 3156 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3157 | ;; | 
|  | 3158 |  | 
|  | 3159 | */Library/Frameworks) | 
|  | 3160 | MDIR="`dirname "${enableval}"`" | 
|  | 3161 | MDIR="`dirname "${MDIR}"`" | 
|  | 3162 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
|  | 3163 |  | 
|  | 3164 | if test "${prefix}" = "NONE"; then | 
|  | 3165 | # User hasn't specified the | 
|  | 3166 | # --prefix option, but wants to install | 
|  | 3167 | # the framework in a non-default location, | 
|  | 3168 | # ensure that the compatibility links get | 
|  | 3169 | # installed relative to that prefix as well | 
|  | 3170 | # instead of in /usr/local. | 
|  | 3171 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
|  | 3172 | fi | 
|  | 3173 | ;; | 
|  | 3174 |  | 
|  | 3175 | *) | 
|  | 3176 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3177 | ;; | 
|  | 3178 | esac | 
|  | 3179 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3180 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3181 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3182 | # Add files for Mac specific code to the list of output | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3183 | # files: | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3184 | ac_config_files="$ac_config_files Mac/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3185 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3186 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| 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 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
|  | 3189 |  | 
|  | 3190 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
|  | 3191 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3192 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3193 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3194 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3195 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3196 | PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3197 | PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3198 | PYTHONFRAMEWORKPREFIX= | 
|  | 3199 | PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3200 | FRAMEWORKINSTALLFIRST= | 
|  | 3201 | FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3202 | FRAMEWORKALTINSTALLFIRST= | 
|  | 3203 | FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3204 | FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3205 | if test "x${prefix}" = "xNONE" ; then | 
|  | 3206 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 3207 | else | 
|  | 3208 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3209 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3210 | enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3211 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3212 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3213 | fi | 
|  | 3214 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3215 |  | 
|  | 3216 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3217 |  | 
|  | 3218 |  | 
|  | 3219 |  | 
|  | 3220 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3221 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3222 |  | 
|  | 3223 |  | 
|  | 3224 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3225 |  | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3226 |  | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3227 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3228 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3229 | ##            AS_HELP_STRING([--with-dyld], | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3230 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3231 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3232 | # Set name for machine-dependent library files | 
|  | 3233 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
|  | 3235 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3236 | if test -z "$MACHDEP" | 
|  | 3237 | then | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3238 | # avoid using uname for cross builds | 
|  | 3239 | if test "$cross_compiling" = yes; then | 
| doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3240 | # ac_sys_system and ac_sys_release are used for setting | 
|  | 3241 | # a lot of different things including 'define_xopen_source' | 
|  | 3242 | # in the case statement below. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3243 | case "$host" in | 
|  | 3244 | *-*-linux*) | 
|  | 3245 | ac_sys_system=Linux | 
|  | 3246 | ;; | 
|  | 3247 | *-*-cygwin*) | 
|  | 3248 | ac_sys_system=Cygwin | 
|  | 3249 | ;; | 
|  | 3250 | *) | 
|  | 3251 | # for now, limit cross builds to known configurations | 
|  | 3252 | MACHDEP="unknown" | 
|  | 3253 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
|  | 3254 | esac | 
|  | 3255 | ac_sys_release= | 
|  | 3256 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3257 | ac_sys_system=`uname -s` | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3258 | if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3259 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3260 | ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3261 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3262 | ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3263 | fi | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3264 | fi | 
|  | 3265 | ac_md_system=`echo $ac_sys_system | | 
|  | 3266 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
|  | 3267 | ac_md_release=`echo $ac_sys_release | | 
|  | 3268 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
|  | 3269 | MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3270 |  | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3271 | case $MACHDEP in | 
| Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3272 | linux*) MACHDEP="linux";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3273 | cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3274 | darwin*) MACHDEP="darwin";; | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 3275 | irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3276 | '')	MACHDEP="unknown";; | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3277 | esac | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3278 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3279 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3280 |  | 
|  | 3281 | if test "$cross_compiling" = yes; then | 
|  | 3282 | case "$host" in | 
|  | 3283 | *-*-linux*) | 
|  | 3284 | case "$host_cpu" in | 
|  | 3285 | arm*) | 
|  | 3286 | _host_cpu=arm | 
|  | 3287 | ;; | 
|  | 3288 | *) | 
|  | 3289 | _host_cpu=$host_cpu | 
|  | 3290 | esac | 
|  | 3291 | ;; | 
|  | 3292 | *-*-cygwin*) | 
|  | 3293 | _host_cpu= | 
|  | 3294 | ;; | 
|  | 3295 | *) | 
|  | 3296 | # for now, limit cross builds to known configurations | 
|  | 3297 | MACHDEP="unknown" | 
|  | 3298 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
|  | 3299 | esac | 
|  | 3300 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | 
|  | 3301 | fi | 
|  | 3302 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3303 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
|  | 3304 | # disable features if it is defined, without any means to access these | 
|  | 3305 | # features as extensions. For these systems, we skip the definition of | 
|  | 3306 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
|  | 3307 | # some feature, make sure there is no alternative way to access this | 
|  | 3308 | # feature. Also, when using wildcards, make sure you have verified the | 
|  | 3309 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
|  | 3310 | # wildcard, and that the wildcard does not include future systems | 
|  | 3311 | # (which may remove their limitations). | 
|  | 3312 | case $ac_sys_system/$ac_sys_release in | 
|  | 3313 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
|  | 3314 | # 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] | 3315 | # 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] | 3316 | # In addition, Stefan Krah confirms that issue #1244610 exists through | 
|  | 3317 | # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3318 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3319 | define_xopen_source=no | 
|  | 3320 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3321 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3322 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3323 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3324 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3325 |  | 
|  | 3326 | ;; | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3327 | OpenBSD/*) | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3328 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3329 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3330 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3331 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3332 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3333 |  | 
|  | 3334 | ;; | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3335 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
|  | 3336 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
|  | 3337 | # Marc Recht | 
| Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3338 | 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] | 3339 | define_xopen_source=no;; | 
| Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3340 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
|  | 3341 | # request to enable features supported by the standard as a request | 
|  | 3342 | # to disable features not supported by the standard.  The best way | 
|  | 3343 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
|  | 3344 | # entirely and define __EXTENSIONS__ instead. | 
|  | 3345 | SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3346 | define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3347 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
|  | 3348 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3349 | # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3350 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3351 | define_xopen_source=no;; | 
|  | 3352 | # 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] | 3353 | # 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] | 3354 | SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3355 | define_xopen_source=no;; | 
| Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3356 | # On FreeBSD 4, the math functions C89 does not cover are never defined | 
|  | 3357 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
|  | 3358 | FreeBSD/4.*) | 
|  | 3359 | define_xopen_source=no;; | 
|  | 3360 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
|  | 3361 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
|  | 3362 | # identifies itself as Darwin/7.* | 
|  | 3363 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3364 | # disables platform specific features beyond repair. | 
|  | 3365 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3366 | # has no effect, don't bother defining them | 
|  | 3367 | Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3368 | define_xopen_source=no;; | 
| Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3369 | Darwin/1[0-9].*) | 
| Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3370 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3371 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
|  | 3372 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
|  | 3373 | # 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] | 3374 | AIX/4) | 
|  | 3375 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3376 | AIX/5) | 
|  | 3377 | if test `uname -r` -eq 1; then | 
|  | 3378 | define_xopen_source=no | 
|  | 3379 | fi | 
|  | 3380 | ;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3381 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
|  | 3382 | # defining NI_NUMERICHOST. | 
|  | 3383 | QNX/6.3.2) | 
|  | 3384 | define_xopen_source=no | 
|  | 3385 | ;; | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3386 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3387 | esac | 
|  | 3388 |  | 
|  | 3389 | if test $define_xopen_source = yes | 
|  | 3390 | then | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3391 | # X/Open 7, incorporating POSIX.1-2008 | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3392 |  | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3393 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3394 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3395 |  | 
|  | 3396 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
|  | 3397 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
|  | 3398 | # several APIs are not declared. Since this is also needed in some | 
|  | 3399 | # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3400 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3401 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3402 |  | 
|  | 3403 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3404 |  | 
| Victor Stinner | d169fdc | 2011-09-08 00:56:17 +0200 | [diff] [blame] | 3405 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3406 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3407 | fi | 
|  | 3408 |  | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3409 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE | 
|  | 3410 | case $ac_sys_system in | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3411 | hp*|HP*) | 
|  | 3412 | define_stdc_a1=yes;; | 
|  | 3413 | *) | 
|  | 3414 | define_stdc_a1=no;; | 
|  | 3415 | esac | 
|  | 3416 |  | 
|  | 3417 | if test $define_stdc_a1 = yes | 
|  | 3418 | then | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3419 |  | 
|  | 3420 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h | 
|  | 3421 |  | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3422 | fi | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3423 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3424 | # | 
|  | 3425 | # SGI compilers allow the specification of the both the ABI and the | 
|  | 3426 | # ISA on the command line.  Depending on the values of these switches, | 
| Martin Panter | 46f5072 | 2016-05-26 05:35:26 +0000 | [diff] [blame] | 3427 | # different and often incompatible code will be generated. | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3428 | # | 
|  | 3429 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
|  | 3430 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
|  | 3431 | # variable is also adjusted. | 
|  | 3432 | # | 
|  | 3433 |  | 
|  | 3434 | if test ! -z "$SGI_ABI" | 
|  | 3435 | then | 
|  | 3436 | CC="cc $SGI_ABI" | 
|  | 3437 | LDFLAGS="$SGI_ABI $LDFLAGS" | 
|  | 3438 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
|  | 3439 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
|  | 3441 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3442 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3443 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
|  | 3444 | # it may influence the way we can build extensions, so distutils | 
|  | 3445 | # needs to check it | 
|  | 3446 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3447 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3448 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3449 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3450 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3451 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3452 |  | 
|  | 3453 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
|  | 3454 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
|  | 3455 | # just to get things to compile and link.  Users are free to override OPT | 
|  | 3456 | # when running configure or make.  The build should not break if they do. | 
|  | 3457 | # BASECFLAGS should generally not be messed with, however. | 
|  | 3458 |  | 
|  | 3459 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
|  | 3460 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
|  | 3462 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3463 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3464 | # Check whether --with-gcc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3465 | if test "${with_gcc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3466 | withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3467 | case $withval in | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3468 | no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3469 | without_gcc=yes;; | 
|  | 3470 | yes)	CC=gcc | 
|  | 3471 | without_gcc=no;; | 
|  | 3472 | *)	CC=$withval | 
|  | 3473 | without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3474 | esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3475 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3476 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3477 | case $ac_sys_system in | 
| Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3478 | AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3479 | without_gcc=;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3480 | *)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3481 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3482 | fi | 
|  | 3483 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
|  | 3485 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3486 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 3487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 | 
|  | 3488 | $as_echo_n "checking for --with-icc... " >&6; } | 
|  | 3489 |  | 
|  | 3490 | # Check whether --with-icc was given. | 
|  | 3491 | if test "${with_icc+set}" = set; then : | 
|  | 3492 | withval=$with_icc; | 
|  | 3493 | case $withval in | 
|  | 3494 | no)	CC=${CC:-cc} | 
|  | 3495 | with_icc=no;; | 
|  | 3496 | yes)	CC=icc | 
|  | 3497 | CXX=icpc | 
|  | 3498 | with_icc=yes;; | 
|  | 3499 | *)	CC=$withval | 
|  | 3500 | with_icc=$withval;; | 
|  | 3501 | esac | 
|  | 3502 | else | 
|  | 3503 |  | 
|  | 3504 | with_icc=no | 
|  | 3505 | fi | 
|  | 3506 |  | 
|  | 3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 | 
|  | 3508 | $as_echo "$with_icc" >&6; } | 
|  | 3509 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3510 | # If the user switches compilers, we can't believe the cache | 
|  | 3511 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
|  | 3512 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3513 | as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3514 | (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] | 3515 | fi | 
|  | 3516 |  | 
| Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3517 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 | 
|  | 3518 | # when the compiler supports them, but we don't always want -O2, and | 
|  | 3519 | # we set -g later. | 
|  | 3520 | if test -z "$CFLAGS"; then | 
|  | 3521 | CFLAGS= | 
|  | 3522 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3523 |  | 
|  | 3524 | if test "$ac_sys_system" = "Darwin" | 
|  | 3525 | then | 
|  | 3526 | # Compiler selection on MacOSX is more complicated than | 
|  | 3527 | # AC_PROG_CC can handle, see Mac/README.txt for more | 
|  | 3528 | # information | 
|  | 3529 | if test -z "${CC}" | 
|  | 3530 | then | 
|  | 3531 | found_gcc= | 
|  | 3532 | found_clang= | 
|  | 3533 | as_save_IFS=$IFS; IFS=: | 
|  | 3534 | for as_dir in $PATH | 
|  | 3535 | do | 
|  | 3536 | IFS=$as_save_IFS | 
|  | 3537 | if test -x $as_dir/gcc; then | 
|  | 3538 | if test -z "${found_gcc}"; then | 
|  | 3539 | found_gcc=$as_dir/gcc | 
|  | 3540 | fi | 
|  | 3541 | fi | 
|  | 3542 | if test -x $as_dir/clang; then | 
|  | 3543 | if test -z "${found_clang}"; then | 
|  | 3544 | found_clang=$as_dir/clang | 
|  | 3545 | fi | 
|  | 3546 | fi | 
|  | 3547 | done | 
|  | 3548 | IFS=$as_save_IFS | 
|  | 3549 |  | 
|  | 3550 | if test -n "$found_gcc" -a -n "$found_clang" | 
|  | 3551 | then | 
|  | 3552 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" | 
|  | 3553 | then | 
|  | 3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 | 
|  | 3555 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | 
|  | 3556 | CC="$found_clang" | 
|  | 3557 | CXX="$found_clang++" | 
|  | 3558 | fi | 
|  | 3559 |  | 
|  | 3560 |  | 
|  | 3561 | elif test -z "$found_gcc" -a -n "$found_clang" | 
|  | 3562 | then | 
|  | 3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 | 
|  | 3564 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | 
|  | 3565 | CC="$found_clang" | 
|  | 3566 | CXX="$found_clang++" | 
|  | 3567 |  | 
|  | 3568 | elif test -z "$found_gcc" -a -z "$found_clang" | 
|  | 3569 | then | 
|  | 3570 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | 
|  | 3571 | if test -n "${found_clang}" | 
|  | 3572 | then | 
|  | 3573 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 | 
|  | 3574 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | 
|  | 3575 | CC="${found_clang}" | 
|  | 3576 | CXX="`/usr/bin/xcrun -find clang++`" | 
|  | 3577 |  | 
|  | 3578 | # else: use default behaviour | 
|  | 3579 | fi | 
|  | 3580 | fi | 
|  | 3581 | fi | 
|  | 3582 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3583 | ac_ext=c | 
|  | 3584 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3588 | if test -n "$ac_tool_prefix"; then | 
|  | 3589 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
|  | 3590 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3592 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3593 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3594 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3595 | else | 
|  | 3596 | if test -n "$CC"; then | 
|  | 3597 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3598 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3600 | for as_dir in $PATH | 
|  | 3601 | do | 
|  | 3602 | IFS=$as_save_IFS | 
|  | 3603 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3604 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3605 | 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] | 3606 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3607 | $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] | 3608 | break 2 | 
|  | 3609 | fi | 
|  | 3610 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3611 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3612 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3613 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3614 | fi | 
|  | 3615 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3616 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3617 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3619 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3620 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3622 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3623 | fi | 
|  | 3624 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3625 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3626 | fi | 
|  | 3627 | if test -z "$ac_cv_prog_CC"; then | 
|  | 3628 | ac_ct_CC=$CC | 
|  | 3629 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 3630 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3632 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3633 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3634 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3635 | else | 
|  | 3636 | if test -n "$ac_ct_CC"; then | 
|  | 3637 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3638 | else | 
|  | 3639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3640 | for as_dir in $PATH | 
|  | 3641 | do | 
|  | 3642 | IFS=$as_save_IFS | 
|  | 3643 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3644 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3645 | 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] | 3646 | ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3647 | $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] | 3648 | break 2 | 
|  | 3649 | fi | 
|  | 3650 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3651 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3652 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 |  | 
|  | 3654 | fi | 
|  | 3655 | fi | 
|  | 3656 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3657 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3659 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3660 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3662 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3663 | fi | 
|  | 3664 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3665 | if test "x$ac_ct_CC" = x; then | 
|  | 3666 | CC="" | 
|  | 3667 | else | 
|  | 3668 | case $cross_compiling:$ac_tool_warned in | 
|  | 3669 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3671 | $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] | 3672 | ac_tool_warned=yes ;; | 
|  | 3673 | esac | 
|  | 3674 | CC=$ac_ct_CC | 
|  | 3675 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3676 | else | 
|  | 3677 | CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3678 | fi | 
|  | 3679 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3680 | if test -z "$CC"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3681 | if test -n "$ac_tool_prefix"; then | 
|  | 3682 | # 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] | 3683 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3685 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3686 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3687 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3688 | else | 
|  | 3689 | if test -n "$CC"; then | 
|  | 3690 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3691 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3693 | for as_dir in $PATH | 
|  | 3694 | do | 
|  | 3695 | IFS=$as_save_IFS | 
|  | 3696 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3697 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3698 | 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] | 3699 | ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3700 | $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] | 3701 | break 2 | 
|  | 3702 | fi | 
|  | 3703 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3704 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3705 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3706 |  | 
|  | 3707 | fi | 
|  | 3708 | fi | 
|  | 3709 | CC=$ac_cv_prog_CC | 
|  | 3710 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3712 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3713 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3715 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3716 | fi | 
|  | 3717 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3718 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3719 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3720 | fi | 
|  | 3721 | if test -z "$CC"; then | 
|  | 3722 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 3723 | set dummy cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3725 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3726 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3727 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3728 | else | 
|  | 3729 | if test -n "$CC"; then | 
|  | 3730 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3731 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3732 | ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3734 | for as_dir in $PATH | 
|  | 3735 | do | 
|  | 3736 | IFS=$as_save_IFS | 
|  | 3737 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3738 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3739 | 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] | 3740 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 3741 | ac_prog_rejected=yes | 
|  | 3742 | continue | 
|  | 3743 | fi | 
|  | 3744 | ac_cv_prog_CC="cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3745 | $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] | 3746 | break 2 | 
|  | 3747 | fi | 
|  | 3748 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3749 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3750 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3751 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3752 | if test $ac_prog_rejected = yes; then | 
|  | 3753 | # We found a bogon in the path, so make sure we never use it. | 
|  | 3754 | set dummy $ac_cv_prog_CC | 
|  | 3755 | shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3756 | if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3757 | # We chose a different compiler from the bogus one. | 
|  | 3758 | # However, it has the same basename, so the bogon will be chosen | 
|  | 3759 | # first if we set CC to just the basename; use the full file name. | 
|  | 3760 | shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3761 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3762 | fi | 
|  | 3763 | fi | 
|  | 3764 | fi | 
|  | 3765 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3766 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3767 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3769 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3770 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3772 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3773 | fi | 
|  | 3774 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3775 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3776 | fi | 
|  | 3777 | if test -z "$CC"; then | 
|  | 3778 | if test -n "$ac_tool_prefix"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3779 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3780 | do | 
|  | 3781 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 3782 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3784 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3785 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3786 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3787 | else | 
|  | 3788 | if test -n "$CC"; then | 
|  | 3789 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3790 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3792 | for as_dir in $PATH | 
|  | 3793 | do | 
|  | 3794 | IFS=$as_save_IFS | 
|  | 3795 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3796 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3797 | 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] | 3798 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3799 | $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] | 3800 | break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3801 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3802 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3803 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3804 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3805 |  | 
|  | 3806 | fi | 
|  | 3807 | fi | 
|  | 3808 | CC=$ac_cv_prog_CC | 
|  | 3809 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3811 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3812 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3814 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3815 | fi | 
|  | 3816 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3817 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3818 | test -n "$CC" && break | 
|  | 3819 | done | 
|  | 3820 | fi | 
|  | 3821 | if test -z "$CC"; then | 
|  | 3822 | ac_ct_CC=$CC | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3823 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3824 | do | 
|  | 3825 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3826 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3828 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3829 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3830 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3831 | else | 
|  | 3832 | if test -n "$ac_ct_CC"; then | 
|  | 3833 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3834 | else | 
|  | 3835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3836 | for as_dir in $PATH | 
|  | 3837 | do | 
|  | 3838 | IFS=$as_save_IFS | 
|  | 3839 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3840 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3841 | 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] | 3842 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3843 | $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] | 3844 | break 2 | 
|  | 3845 | fi | 
|  | 3846 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3847 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3848 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3849 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3850 | fi | 
|  | 3851 | fi | 
|  | 3852 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3853 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3855 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3856 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3858 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3859 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3860 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3861 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3862 | test -n "$ac_ct_CC" && break | 
|  | 3863 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3864 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3865 | if test "x$ac_ct_CC" = x; then | 
|  | 3866 | CC="" | 
|  | 3867 | else | 
|  | 3868 | case $cross_compiling:$ac_tool_warned in | 
|  | 3869 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3871 | $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] | 3872 | ac_tool_warned=yes ;; | 
|  | 3873 | esac | 
|  | 3874 | CC=$ac_ct_CC | 
|  | 3875 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3876 | fi | 
|  | 3877 |  | 
|  | 3878 | fi | 
|  | 3879 |  | 
|  | 3880 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3881 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3882 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3883 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3884 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3885 |  | 
|  | 3886 | # Provide some information about the compiler. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3887 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
|  | 3888 | set X $ac_compile | 
|  | 3889 | ac_compiler=$2 | 
|  | 3890 | for ac_option in --version -v -V -qversion; do | 
|  | 3891 | { { ac_try="$ac_compiler $ac_option >&5" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3892 | case "(($ac_try" in | 
|  | 3893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3894 | *) ac_try_echo=$ac_try;; | 
|  | 3895 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3896 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3897 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 3898 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3899 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3900 | if test -s conftest.err; then | 
|  | 3901 | sed '10a\ | 
|  | 3902 | ... rest of stderr output deleted ... | 
|  | 3903 | 10q' conftest.err >conftest.er1 | 
|  | 3904 | cat conftest.er1 >&5 | 
|  | 3905 | fi | 
|  | 3906 | rm -f conftest.er1 conftest.err | 
|  | 3907 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3908 | test $ac_status = 0; } | 
|  | 3909 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3910 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3912 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3913 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3914 | int | 
|  | 3915 | main () | 
|  | 3916 | { | 
|  | 3917 |  | 
|  | 3918 | ; | 
|  | 3919 | return 0; | 
|  | 3920 | } | 
|  | 3921 | _ACEOF | 
|  | 3922 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3923 | 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] | 3924 | # Try to create an executable without -o first, disregard a.out. | 
|  | 3925 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 3926 | # of exeext. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
|  | 3928 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
|  | 3929 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 3930 |  | 
|  | 3931 | # The possible output files: | 
|  | 3932 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
|  | 3933 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3934 | ac_rmfiles= | 
|  | 3935 | for ac_file in $ac_files | 
|  | 3936 | do | 
|  | 3937 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3938 | *.$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] | 3939 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
|  | 3940 | esac | 
|  | 3941 | done | 
|  | 3942 | rm -f $ac_rmfiles | 
|  | 3943 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3944 | if { { ac_try="$ac_link_default" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3945 | case "(($ac_try" in | 
|  | 3946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3947 | *) ac_try_echo=$ac_try;; | 
|  | 3948 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3949 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3950 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3951 | (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3952 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3954 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3955 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
|  | 3956 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
|  | 3957 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
|  | 3958 | # so that the user can short-circuit this test for compilers unknown to | 
|  | 3959 | # Autoconf. | 
|  | 3960 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3961 | do | 
|  | 3962 | test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3963 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3964 | *.$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] | 3965 | ;; | 
|  | 3966 | [ab].out ) | 
|  | 3967 | # We found the default executable, but exeext='' is most | 
|  | 3968 | # certainly right. | 
|  | 3969 | break;; | 
|  | 3970 | *.* ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3971 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3972 | then :; else | 
|  | 3973 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 3974 | fi | 
|  | 3975 | # We set ac_cv_exeext here because the later test for it is not | 
|  | 3976 | # safe: cross compilers may not add the suffix if given an `-o' | 
|  | 3977 | # argument, so we may need to know it at that point already. | 
|  | 3978 | # Even if this section looks crufty: it has the advantage of | 
|  | 3979 | # actually working. | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3980 | break;; | 
|  | 3981 | * ) | 
|  | 3982 | break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3983 | esac | 
|  | 3984 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3985 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
|  | 3986 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3987 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3988 | ac_file='' | 
|  | 3989 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3990 | if test -z "$ac_file"; then : | 
|  | 3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3992 | $as_echo "no" >&6; } | 
|  | 3993 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3994 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3995 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3996 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3997 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3998 | as_fn_error 77 "C compiler cannot create executables | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3999 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4000 | else | 
|  | 4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 4002 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4003 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
|  | 4005 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
|  | 4006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
|  | 4007 | $as_echo "$ac_file" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4008 | ac_exeext=$ac_cv_exeext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4009 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4010 | 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] | 4011 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
|  | 4013 | $as_echo_n "checking for suffix of executables... " >&6; } | 
|  | 4014 | if { { ac_try="$ac_link" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4015 | case "(($ac_try" in | 
|  | 4016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4017 | *) ac_try_echo=$ac_try;; | 
|  | 4018 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4019 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4020 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4021 | (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4022 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4023 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4024 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4025 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 4026 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 4027 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 4028 | # `rm'. | 
|  | 4029 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 4030 | test -f "$ac_file" || continue | 
|  | 4031 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4032 | *.$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] | 4033 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 4034 | break;; | 
|  | 4035 | * ) break;; | 
|  | 4036 | esac | 
|  | 4037 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4038 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4039 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4040 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4041 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4042 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4043 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4044 | rm -f conftest conftest$ac_cv_exeext | 
|  | 4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
|  | 4046 | $as_echo "$ac_cv_exeext" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4047 |  | 
|  | 4048 | rm -f conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4049 | EXEEXT=$ac_cv_exeext | 
|  | 4050 | ac_exeext=$EXEEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4052 | /* end confdefs.h.  */ | 
|  | 4053 | #include <stdio.h> | 
|  | 4054 | int | 
|  | 4055 | main () | 
|  | 4056 | { | 
|  | 4057 | FILE *f = fopen ("conftest.out", "w"); | 
|  | 4058 | return ferror (f) || fclose (f) != 0; | 
|  | 4059 |  | 
|  | 4060 | ; | 
|  | 4061 | return 0; | 
|  | 4062 | } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4063 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4064 | ac_clean_files="$ac_clean_files conftest.out" | 
|  | 4065 | # Check that the compiler produces executables we can run.  If not, either | 
|  | 4066 | # the compiler is broken, or we cross compile. | 
|  | 4067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
|  | 4068 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
|  | 4069 | if test "$cross_compiling" != yes; then | 
|  | 4070 | { { ac_try="$ac_link" | 
|  | 4071 | case "(($ac_try" in | 
|  | 4072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4073 | *) ac_try_echo=$ac_try;; | 
|  | 4074 | esac | 
|  | 4075 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4076 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4077 | (eval "$ac_link") 2>&5 | 
|  | 4078 | ac_status=$? | 
|  | 4079 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4080 | test $ac_status = 0; } | 
|  | 4081 | if { ac_try='./conftest$ac_cv_exeext' | 
|  | 4082 | { { case "(($ac_try" in | 
|  | 4083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4084 | *) ac_try_echo=$ac_try;; | 
|  | 4085 | esac | 
|  | 4086 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4087 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4088 | (eval "$ac_try") 2>&5 | 
|  | 4089 | ac_status=$? | 
|  | 4090 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4091 | test $ac_status = 0; }; }; then | 
|  | 4092 | cross_compiling=no | 
|  | 4093 | else | 
|  | 4094 | if test "$cross_compiling" = maybe; then | 
|  | 4095 | cross_compiling=yes | 
|  | 4096 | else | 
|  | 4097 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4098 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4099 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4100 | If you meant to cross compile, use \`--host'. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4101 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4102 | fi | 
|  | 4103 | fi | 
|  | 4104 | fi | 
|  | 4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
|  | 4106 | $as_echo "$cross_compiling" >&6; } | 
|  | 4107 |  | 
|  | 4108 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
|  | 4109 | ac_clean_files=$ac_clean_files_save | 
|  | 4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
|  | 4111 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4112 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4113 | $as_echo_n "(cached) " >&6 | 
|  | 4114 | else | 
|  | 4115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4116 | /* end confdefs.h.  */ | 
|  | 4117 |  | 
|  | 4118 | int | 
|  | 4119 | main () | 
|  | 4120 | { | 
|  | 4121 |  | 
|  | 4122 | ; | 
|  | 4123 | return 0; | 
|  | 4124 | } | 
|  | 4125 | _ACEOF | 
|  | 4126 | rm -f conftest.o conftest.obj | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4127 | if { { ac_try="$ac_compile" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4128 | case "(($ac_try" in | 
|  | 4129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4130 | *) ac_try_echo=$ac_try;; | 
|  | 4131 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4132 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4133 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4134 | (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4135 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4136 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4137 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4138 | for ac_file in conftest.o conftest.obj conftest.*; do | 
|  | 4139 | test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4140 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4141 | *.$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] | 4142 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 4143 | break;; | 
|  | 4144 | esac | 
|  | 4145 | done | 
|  | 4146 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4147 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4148 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4149 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4150 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4151 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4152 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4153 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4154 | fi | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4155 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4156 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
|  | 4158 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4159 | OBJEXT=$ac_cv_objext | 
|  | 4160 | ac_objext=$OBJEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
|  | 4162 | $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] | 4163 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4164 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4165 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4167 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4168 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4169 | int | 
|  | 4170 | main () | 
|  | 4171 | { | 
|  | 4172 | #ifndef __GNUC__ | 
|  | 4173 | choke me | 
|  | 4174 | #endif | 
|  | 4175 |  | 
|  | 4176 | ; | 
|  | 4177 | return 0; | 
|  | 4178 | } | 
|  | 4179 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4180 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4181 | ac_compiler_gnu=yes | 
|  | 4182 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4183 | ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4184 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4185 | 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] | 4186 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 4187 |  | 
|  | 4188 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 4190 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
|  | 4191 | if test $ac_compiler_gnu = yes; then | 
|  | 4192 | GCC=yes | 
|  | 4193 | else | 
|  | 4194 | GCC= | 
|  | 4195 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4196 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 4197 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
|  | 4199 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4200 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4201 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4202 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4203 | ac_save_c_werror_flag=$ac_c_werror_flag | 
|  | 4204 | ac_c_werror_flag=yes | 
|  | 4205 | ac_cv_prog_cc_g=no | 
|  | 4206 | CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4208 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4209 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4210 | int | 
|  | 4211 | main () | 
|  | 4212 | { | 
|  | 4213 |  | 
|  | 4214 | ; | 
|  | 4215 | return 0; | 
|  | 4216 | } | 
|  | 4217 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4218 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4219 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4220 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4221 | CFLAGS="" | 
|  | 4222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4223 | /* end confdefs.h.  */ | 
|  | 4224 |  | 
|  | 4225 | int | 
|  | 4226 | main () | 
|  | 4227 | { | 
|  | 4228 |  | 
|  | 4229 | ; | 
|  | 4230 | return 0; | 
|  | 4231 | } | 
|  | 4232 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4233 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4234 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4235 | else | 
|  | 4236 | ac_c_werror_flag=$ac_save_c_werror_flag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4237 | CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4239 | /* end confdefs.h.  */ | 
|  | 4240 |  | 
|  | 4241 | int | 
|  | 4242 | main () | 
|  | 4243 | { | 
|  | 4244 |  | 
|  | 4245 | ; | 
|  | 4246 | return 0; | 
|  | 4247 | } | 
|  | 4248 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4249 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4250 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4251 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4253 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4255 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4257 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 4258 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
|  | 4260 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4261 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4262 | CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4263 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 4264 | if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4265 | CFLAGS="-g -O2" | 
|  | 4266 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4267 | CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4268 | fi | 
|  | 4269 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4270 | if test "$GCC" = yes; then | 
|  | 4271 | CFLAGS="-O2" | 
|  | 4272 | else | 
|  | 4273 | CFLAGS= | 
|  | 4274 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4275 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
|  | 4277 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4278 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4279 | $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4280 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4281 | ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4282 | ac_save_CC=$CC | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4284 | /* end confdefs.h.  */ | 
|  | 4285 | #include <stdarg.h> | 
|  | 4286 | #include <stdio.h> | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4287 | struct stat; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4288 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 4289 | struct buf { int x; }; | 
|  | 4290 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 4291 | static char *e (p, i) | 
|  | 4292 | char **p; | 
|  | 4293 | int i; | 
|  | 4294 | { | 
|  | 4295 | return p[i]; | 
|  | 4296 | } | 
|  | 4297 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 4298 | { | 
|  | 4299 | char *s; | 
|  | 4300 | va_list v; | 
|  | 4301 | va_start (v,p); | 
|  | 4302 | s = g (p, va_arg (v,int)); | 
|  | 4303 | va_end (v); | 
|  | 4304 | return s; | 
|  | 4305 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4306 |  | 
|  | 4307 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 4308 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 4309 | These don't provoke an error unfortunately, instead are silently treated | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4310 | 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] | 4311 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 4312 | 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] | 4313 | that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4314 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 4315 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4316 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 4317 | inside strings and character constants.  */ | 
|  | 4318 | #define FOO(x) 'x' | 
|  | 4319 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 4320 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4321 | int test (int i, double x); | 
|  | 4322 | struct s1 {int (*f) (int a);}; | 
|  | 4323 | struct s2 {int (*f) (double a);}; | 
|  | 4324 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 4325 | int argc; | 
|  | 4326 | char **argv; | 
|  | 4327 | int | 
|  | 4328 | main () | 
|  | 4329 | { | 
|  | 4330 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 4331 | ; | 
|  | 4332 | return 0; | 
|  | 4333 | } | 
|  | 4334 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4335 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 4336 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4337 | do | 
|  | 4338 | CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4339 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4340 | ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4341 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4342 | rm -f core conftest.err conftest.$ac_objext | 
|  | 4343 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4344 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4345 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4346 | CC=$ac_save_CC | 
|  | 4347 |  | 
|  | 4348 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4349 | # AC_CACHE_VAL | 
|  | 4350 | case "x$ac_cv_prog_cc_c89" in | 
|  | 4351 | x) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
|  | 4353 | $as_echo "none needed" >&6; } ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4354 | xno) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
|  | 4356 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4357 | *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4358 | CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
|  | 4360 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4361 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4362 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4363 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4364 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4365 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4366 | ac_ext=c | 
|  | 4367 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4368 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4369 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4370 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4371 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [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 | 
|  | 4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
|  | 4378 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
|  | 4379 | # On Suns, sometimes $CPP names a directory. | 
|  | 4380 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 4381 | CPP= | 
|  | 4382 | fi | 
|  | 4383 | if test -z "$CPP"; then | 
|  | 4384 | if ${ac_cv_prog_CPP+:} false; then : | 
|  | 4385 | $as_echo_n "(cached) " >&6 | 
|  | 4386 | else | 
|  | 4387 | # Double quotes because CPP needs to be expanded | 
|  | 4388 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 4389 | do | 
|  | 4390 | ac_preproc_ok=false | 
|  | 4391 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4392 | do | 
|  | 4393 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4394 | # with a fresh cross-compiler works. | 
|  | 4395 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4396 | # <limits.h> exists even on freestanding compilers. | 
|  | 4397 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4398 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 4399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4400 | /* end confdefs.h.  */ | 
|  | 4401 | #ifdef __STDC__ | 
|  | 4402 | # include <limits.h> | 
|  | 4403 | #else | 
|  | 4404 | # include <assert.h> | 
|  | 4405 | #endif | 
|  | 4406 | Syntax error | 
|  | 4407 | _ACEOF | 
|  | 4408 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4409 |  | 
|  | 4410 | else | 
|  | 4411 | # Broken: fails on valid input. | 
|  | 4412 | continue | 
|  | 4413 | fi | 
|  | 4414 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4415 |  | 
|  | 4416 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 4417 | # can be detected and how. | 
|  | 4418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4419 | /* end confdefs.h.  */ | 
|  | 4420 | #include <ac_nonexistent.h> | 
|  | 4421 | _ACEOF | 
|  | 4422 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4423 | # Broken: success on invalid input. | 
|  | 4424 | continue | 
|  | 4425 | else | 
|  | 4426 | # Passes both tests. | 
|  | 4427 | ac_preproc_ok=: | 
|  | 4428 | break | 
|  | 4429 | fi | 
|  | 4430 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4431 |  | 
|  | 4432 | done | 
|  | 4433 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 4434 | rm -f conftest.i conftest.err conftest.$ac_ext | 
|  | 4435 | if $ac_preproc_ok; then : | 
|  | 4436 | break | 
|  | 4437 | fi | 
|  | 4438 |  | 
|  | 4439 | done | 
|  | 4440 | ac_cv_prog_CPP=$CPP | 
|  | 4441 |  | 
|  | 4442 | fi | 
|  | 4443 | CPP=$ac_cv_prog_CPP | 
|  | 4444 | else | 
|  | 4445 | ac_cv_prog_CPP=$CPP | 
|  | 4446 | fi | 
|  | 4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
|  | 4448 | $as_echo "$CPP" >&6; } | 
|  | 4449 | ac_preproc_ok=false | 
|  | 4450 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4451 | do | 
|  | 4452 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4453 | # with a fresh cross-compiler works. | 
|  | 4454 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4455 | # <limits.h> exists even on freestanding compilers. | 
|  | 4456 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4457 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 4458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4459 | /* end confdefs.h.  */ | 
|  | 4460 | #ifdef __STDC__ | 
|  | 4461 | # include <limits.h> | 
|  | 4462 | #else | 
|  | 4463 | # include <assert.h> | 
|  | 4464 | #endif | 
|  | 4465 | Syntax error | 
|  | 4466 | _ACEOF | 
|  | 4467 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4468 |  | 
|  | 4469 | else | 
|  | 4470 | # Broken: fails on valid input. | 
|  | 4471 | continue | 
|  | 4472 | fi | 
|  | 4473 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4474 |  | 
|  | 4475 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 4476 | # can be detected and how. | 
|  | 4477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4478 | /* end confdefs.h.  */ | 
|  | 4479 | #include <ac_nonexistent.h> | 
|  | 4480 | _ACEOF | 
|  | 4481 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4482 | # Broken: success on invalid input. | 
|  | 4483 | continue | 
|  | 4484 | else | 
|  | 4485 | # Passes both tests. | 
|  | 4486 | ac_preproc_ok=: | 
|  | 4487 | break | 
|  | 4488 | fi | 
|  | 4489 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4490 |  | 
|  | 4491 | done | 
|  | 4492 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 4493 | rm -f conftest.i conftest.err conftest.$ac_ext | 
|  | 4494 | if $ac_preproc_ok; then : | 
|  | 4495 |  | 
|  | 4496 | else | 
|  | 4497 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4498 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 4499 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
|  | 4500 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 4501 | fi | 
|  | 4502 |  | 
|  | 4503 | ac_ext=c | 
|  | 4504 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4505 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4506 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4507 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4508 |  | 
|  | 4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
|  | 4510 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
|  | 4511 | if ${ac_cv_path_GREP+:} false; then : | 
|  | 4512 | $as_echo_n "(cached) " >&6 | 
|  | 4513 | else | 
|  | 4514 | if test -z "$GREP"; then | 
|  | 4515 | ac_path_GREP_found=false | 
|  | 4516 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4518 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 4519 | do | 
|  | 4520 | IFS=$as_save_IFS | 
|  | 4521 | test -z "$as_dir" && as_dir=. | 
|  | 4522 | for ac_prog in grep ggrep; do | 
|  | 4523 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4524 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4525 | as_fn_executable_p "$ac_path_GREP" || continue | 
|  | 4526 | # Check for GNU ac_path_GREP and select it if it is found. | 
|  | 4527 | # Check for GNU $ac_path_GREP | 
|  | 4528 | case `"$ac_path_GREP" --version 2>&1` in | 
|  | 4529 | *GNU*) | 
|  | 4530 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
|  | 4531 | *) | 
|  | 4532 | ac_count=0 | 
|  | 4533 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 4534 | while : | 
|  | 4535 | do | 
|  | 4536 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4537 | mv "conftest.tmp" "conftest.in" | 
|  | 4538 | cp "conftest.in" "conftest.nl" | 
|  | 4539 | $as_echo 'GREP' >> "conftest.nl" | 
|  | 4540 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4541 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
|  | 4542 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
|  | 4543 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
|  | 4544 | # Best one so far, save it but keep looking for a better one | 
|  | 4545 | ac_cv_path_GREP="$ac_path_GREP" | 
|  | 4546 | ac_path_GREP_max=$ac_count | 
|  | 4547 | fi | 
|  | 4548 | # 10*(2^10) chars as input seems more than enough | 
|  | 4549 | test $ac_count -gt 10 && break | 
|  | 4550 | done | 
|  | 4551 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4552 | esac | 
|  | 4553 |  | 
|  | 4554 | $ac_path_GREP_found && break 3 | 
|  | 4555 | done | 
|  | 4556 | done | 
|  | 4557 | done | 
|  | 4558 | IFS=$as_save_IFS | 
|  | 4559 | if test -z "$ac_cv_path_GREP"; then | 
|  | 4560 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
|  | 4561 | fi | 
|  | 4562 | else | 
|  | 4563 | ac_cv_path_GREP=$GREP | 
|  | 4564 | fi | 
|  | 4565 |  | 
|  | 4566 | fi | 
|  | 4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
|  | 4568 | $as_echo "$ac_cv_path_GREP" >&6; } | 
|  | 4569 | GREP="$ac_cv_path_GREP" | 
|  | 4570 |  | 
|  | 4571 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4572 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4573 |  | 
|  | 4574 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
|  | 4576 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4577 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4578 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4579 | if test "${with_cxx_main+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4580 | withval=$with_cxx_main; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4581 |  | 
|  | 4582 | case $withval in | 
|  | 4583 | no)	with_cxx_main=no | 
|  | 4584 | MAINCC='$(CC)';; | 
|  | 4585 | yes)	with_cxx_main=yes | 
|  | 4586 | MAINCC='$(CXX)';; | 
|  | 4587 | *)	with_cxx_main=yes | 
|  | 4588 | MAINCC=$withval | 
|  | 4589 | if test -z "$CXX" | 
|  | 4590 | then | 
|  | 4591 | CXX=$withval | 
|  | 4592 | fi;; | 
|  | 4593 | esac | 
|  | 4594 | else | 
|  | 4595 |  | 
|  | 4596 | with_cxx_main=no | 
|  | 4597 | MAINCC='$(CC)' | 
|  | 4598 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4599 | fi | 
|  | 4600 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
|  | 4602 | $as_echo "$with_cxx_main" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4603 |  | 
|  | 4604 | preset_cxx="$CXX" | 
|  | 4605 | if test -z "$CXX" | 
|  | 4606 | then | 
|  | 4607 | case "$CC" in | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4608 | gcc)    if test -n "$ac_tool_prefix"; then | 
|  | 4609 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | 
|  | 4610 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | 
|  | 4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4612 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4613 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 4614 | $as_echo_n "(cached) " >&6 | 
|  | 4615 | else | 
|  | 4616 | case $CXX in | 
|  | 4617 | [\\/]* | ?:[\\/]*) | 
|  | 4618 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4619 | ;; | 
|  | 4620 | *) | 
|  | 4621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4622 | for as_dir in notfound | 
|  | 4623 | do | 
|  | 4624 | IFS=$as_save_IFS | 
|  | 4625 | test -z "$as_dir" && as_dir=. | 
|  | 4626 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4627 | 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] | 4628 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4630 | break 2 | 
|  | 4631 | fi | 
|  | 4632 | done | 
|  | 4633 | done | 
|  | 4634 | IFS=$as_save_IFS | 
|  | 4635 |  | 
|  | 4636 | ;; | 
|  | 4637 | esac | 
|  | 4638 | fi | 
|  | 4639 | CXX=$ac_cv_path_CXX | 
|  | 4640 | if test -n "$CXX"; then | 
|  | 4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4642 | $as_echo "$CXX" >&6; } | 
|  | 4643 | else | 
|  | 4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4645 | $as_echo "no" >&6; } | 
|  | 4646 | fi | 
|  | 4647 |  | 
|  | 4648 |  | 
|  | 4649 | fi | 
|  | 4650 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4651 | ac_pt_CXX=$CXX | 
|  | 4652 | # 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] | 4653 | set dummy g++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4655 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4656 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 4657 | $as_echo_n "(cached) " >&6 | 
|  | 4658 | else | 
|  | 4659 | case $ac_pt_CXX in | 
|  | 4660 | [\\/]* | ?:[\\/]*) | 
|  | 4661 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 4662 | ;; | 
|  | 4663 | *) | 
|  | 4664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4665 | for as_dir in notfound | 
|  | 4666 | do | 
|  | 4667 | IFS=$as_save_IFS | 
|  | 4668 | test -z "$as_dir" && as_dir=. | 
|  | 4669 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4670 | 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] | 4671 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4673 | break 2 | 
|  | 4674 | fi | 
|  | 4675 | done | 
|  | 4676 | done | 
|  | 4677 | IFS=$as_save_IFS | 
|  | 4678 |  | 
|  | 4679 | ;; | 
|  | 4680 | esac | 
|  | 4681 | fi | 
|  | 4682 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4683 | if test -n "$ac_pt_CXX"; then | 
|  | 4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4685 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 4686 | else | 
|  | 4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4688 | $as_echo "no" >&6; } | 
|  | 4689 | fi | 
|  | 4690 |  | 
|  | 4691 | if test "x$ac_pt_CXX" = x; then | 
|  | 4692 | CXX="g++" | 
|  | 4693 | else | 
|  | 4694 | case $cross_compiling:$ac_tool_warned in | 
|  | 4695 | yes:) | 
|  | 4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4697 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4698 | ac_tool_warned=yes ;; | 
|  | 4699 | esac | 
|  | 4700 | CXX=$ac_pt_CXX | 
|  | 4701 | fi | 
|  | 4702 | else | 
|  | 4703 | CXX="$ac_cv_path_CXX" | 
|  | 4704 | fi | 
|  | 4705 | ;; | 
|  | 4706 | cc)     if test -n "$ac_tool_prefix"; then | 
|  | 4707 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | 
|  | 4708 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | 
|  | 4709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4710 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4711 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4712 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4713 | else | 
|  | 4714 | case $CXX in | 
|  | 4715 | [\\/]* | ?:[\\/]*) | 
|  | 4716 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4717 | ;; | 
|  | 4718 | *) | 
|  | 4719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4720 | for as_dir in notfound | 
|  | 4721 | do | 
|  | 4722 | IFS=$as_save_IFS | 
|  | 4723 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4724 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4725 | 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] | 4726 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4727 | $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] | 4728 | break 2 | 
|  | 4729 | fi | 
|  | 4730 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4731 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4732 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4733 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4734 | ;; | 
|  | 4735 | esac | 
|  | 4736 | fi | 
|  | 4737 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4738 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4740 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4741 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4743 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4744 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4745 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4746 |  | 
|  | 4747 | fi | 
|  | 4748 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4749 | ac_pt_CXX=$CXX | 
|  | 4750 | # 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] | 4751 | set dummy c++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4753 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4754 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4755 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4756 | else | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4757 | case $ac_pt_CXX in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4758 | [\\/]* | ?:[\\/]*) | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4759 | 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] | 4760 | ;; | 
|  | 4761 | *) | 
|  | 4762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4763 | for as_dir in notfound | 
|  | 4764 | do | 
|  | 4765 | IFS=$as_save_IFS | 
|  | 4766 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4767 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4768 | 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] | 4769 | 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] | 4770 | $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] | 4771 | break 2 | 
|  | 4772 | fi | 
|  | 4773 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4774 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4775 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4776 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4777 | ;; | 
|  | 4778 | esac | 
|  | 4779 | fi | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4780 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4781 | if test -n "$ac_pt_CXX"; then | 
|  | 4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4783 | $as_echo "$ac_pt_CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4784 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4786 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4787 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4788 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4789 | if test "x$ac_pt_CXX" = x; then | 
|  | 4790 | CXX="c++" | 
|  | 4791 | else | 
|  | 4792 | case $cross_compiling:$ac_tool_warned in | 
|  | 4793 | yes:) | 
|  | 4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4795 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4796 | ac_tool_warned=yes ;; | 
|  | 4797 | esac | 
|  | 4798 | CXX=$ac_pt_CXX | 
|  | 4799 | fi | 
|  | 4800 | else | 
|  | 4801 | CXX="$ac_cv_path_CXX" | 
|  | 4802 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4803 | ;; | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4804 | clang|*/clang)     if test -n "$ac_tool_prefix"; then | 
|  | 4805 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | 
|  | 4806 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4808 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4809 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 4810 | $as_echo_n "(cached) " >&6 | 
|  | 4811 | else | 
|  | 4812 | case $CXX in | 
|  | 4813 | [\\/]* | ?:[\\/]*) | 
|  | 4814 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4815 | ;; | 
|  | 4816 | *) | 
|  | 4817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4818 | for as_dir in notfound | 
|  | 4819 | do | 
|  | 4820 | IFS=$as_save_IFS | 
|  | 4821 | test -z "$as_dir" && as_dir=. | 
|  | 4822 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4823 | 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] | 4824 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4826 | break 2 | 
|  | 4827 | fi | 
|  | 4828 | done | 
|  | 4829 | done | 
|  | 4830 | IFS=$as_save_IFS | 
|  | 4831 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4832 | ;; | 
|  | 4833 | esac | 
|  | 4834 | fi | 
|  | 4835 | CXX=$ac_cv_path_CXX | 
|  | 4836 | if test -n "$CXX"; then | 
|  | 4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4838 | $as_echo "$CXX" >&6; } | 
|  | 4839 | else | 
|  | 4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4841 | $as_echo "no" >&6; } | 
|  | 4842 | fi | 
|  | 4843 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4844 |  | 
|  | 4845 | fi | 
|  | 4846 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4847 | ac_pt_CXX=$CXX | 
|  | 4848 | # Extract the first word of "clang++", so it can be a program name with args. | 
|  | 4849 | set dummy clang++; ac_word=$2 | 
|  | 4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4851 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4852 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 4853 | $as_echo_n "(cached) " >&6 | 
|  | 4854 | else | 
|  | 4855 | case $ac_pt_CXX in | 
|  | 4856 | [\\/]* | ?:[\\/]*) | 
|  | 4857 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 4858 | ;; | 
|  | 4859 | *) | 
|  | 4860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4861 | for as_dir in notfound | 
|  | 4862 | do | 
|  | 4863 | IFS=$as_save_IFS | 
|  | 4864 | test -z "$as_dir" && as_dir=. | 
|  | 4865 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4866 | 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] | 4867 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4869 | break 2 | 
|  | 4870 | fi | 
|  | 4871 | done | 
|  | 4872 | done | 
|  | 4873 | IFS=$as_save_IFS | 
|  | 4874 |  | 
|  | 4875 | ;; | 
|  | 4876 | esac | 
|  | 4877 | fi | 
|  | 4878 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4879 | if test -n "$ac_pt_CXX"; then | 
|  | 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4881 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 4882 | else | 
|  | 4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4884 | $as_echo "no" >&6; } | 
|  | 4885 | fi | 
|  | 4886 |  | 
|  | 4887 | if test "x$ac_pt_CXX" = x; then | 
|  | 4888 | CXX="clang++" | 
|  | 4889 | else | 
|  | 4890 | case $cross_compiling:$ac_tool_warned in | 
|  | 4891 | yes:) | 
|  | 4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4893 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4894 | ac_tool_warned=yes ;; | 
|  | 4895 | esac | 
|  | 4896 | CXX=$ac_pt_CXX | 
|  | 4897 | fi | 
|  | 4898 | else | 
|  | 4899 | CXX="$ac_cv_path_CXX" | 
|  | 4900 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4901 | ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 4902 | icc|*/icc)         if test -n "$ac_tool_prefix"; then | 
|  | 4903 | # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. | 
|  | 4904 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 | 
|  | 4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4906 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4907 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 4908 | $as_echo_n "(cached) " >&6 | 
|  | 4909 | else | 
|  | 4910 | case $CXX in | 
|  | 4911 | [\\/]* | ?:[\\/]*) | 
|  | 4912 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4913 | ;; | 
|  | 4914 | *) | 
|  | 4915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4916 | for as_dir in notfound | 
|  | 4917 | do | 
|  | 4918 | IFS=$as_save_IFS | 
|  | 4919 | test -z "$as_dir" && as_dir=. | 
|  | 4920 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4922 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4924 | break 2 | 
|  | 4925 | fi | 
|  | 4926 | done | 
|  | 4927 | done | 
|  | 4928 | IFS=$as_save_IFS | 
|  | 4929 |  | 
|  | 4930 | ;; | 
|  | 4931 | esac | 
|  | 4932 | fi | 
|  | 4933 | CXX=$ac_cv_path_CXX | 
|  | 4934 | if test -n "$CXX"; then | 
|  | 4935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4936 | $as_echo "$CXX" >&6; } | 
|  | 4937 | else | 
|  | 4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4939 | $as_echo "no" >&6; } | 
|  | 4940 | fi | 
|  | 4941 |  | 
|  | 4942 |  | 
|  | 4943 | fi | 
|  | 4944 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4945 | ac_pt_CXX=$CXX | 
|  | 4946 | # Extract the first word of "icpc", so it can be a program name with args. | 
|  | 4947 | set dummy icpc; ac_word=$2 | 
|  | 4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4949 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4950 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 4951 | $as_echo_n "(cached) " >&6 | 
|  | 4952 | else | 
|  | 4953 | case $ac_pt_CXX in | 
|  | 4954 | [\\/]* | ?:[\\/]*) | 
|  | 4955 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 4956 | ;; | 
|  | 4957 | *) | 
|  | 4958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4959 | for as_dir in notfound | 
|  | 4960 | do | 
|  | 4961 | IFS=$as_save_IFS | 
|  | 4962 | test -z "$as_dir" && as_dir=. | 
|  | 4963 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4964 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4965 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4967 | break 2 | 
|  | 4968 | fi | 
|  | 4969 | done | 
|  | 4970 | done | 
|  | 4971 | IFS=$as_save_IFS | 
|  | 4972 |  | 
|  | 4973 | ;; | 
|  | 4974 | esac | 
|  | 4975 | fi | 
|  | 4976 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4977 | if test -n "$ac_pt_CXX"; then | 
|  | 4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4979 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 4980 | else | 
|  | 4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4982 | $as_echo "no" >&6; } | 
|  | 4983 | fi | 
|  | 4984 |  | 
|  | 4985 | if test "x$ac_pt_CXX" = x; then | 
|  | 4986 | CXX="icpc" | 
|  | 4987 | else | 
|  | 4988 | case $cross_compiling:$ac_tool_warned in | 
|  | 4989 | yes:) | 
|  | 4990 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4991 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4992 | ac_tool_warned=yes ;; | 
|  | 4993 | esac | 
|  | 4994 | CXX=$ac_pt_CXX | 
|  | 4995 | fi | 
|  | 4996 | else | 
|  | 4997 | CXX="$ac_cv_path_CXX" | 
|  | 4998 | fi | 
|  | 4999 | ;; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5000 | esac | 
|  | 5001 | if test "$CXX" = "notfound" | 
|  | 5002 | then | 
|  | 5003 | CXX="" | 
|  | 5004 | fi | 
|  | 5005 | fi | 
|  | 5006 | if test -z "$CXX" | 
|  | 5007 | then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5008 | if test -n "$ac_tool_prefix"; then | 
|  | 5009 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 5010 | do | 
|  | 5011 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 5012 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5014 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5015 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5016 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5017 | else | 
|  | 5018 | if test -n "$CXX"; then | 
|  | 5019 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 5020 | else | 
|  | 5021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5022 | for as_dir in $PATH | 
|  | 5023 | do | 
|  | 5024 | IFS=$as_save_IFS | 
|  | 5025 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5026 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5027 | 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] | 5028 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5029 | $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] | 5030 | break 2 | 
|  | 5031 | fi | 
|  | 5032 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5033 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5034 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5035 |  | 
|  | 5036 | fi | 
|  | 5037 | fi | 
|  | 5038 | CXX=$ac_cv_prog_CXX | 
|  | 5039 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 5041 | $as_echo "$CXX" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5042 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5044 | $as_echo "no" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5045 | fi | 
|  | 5046 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5047 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5048 | test -n "$CXX" && break | 
|  | 5049 | done | 
|  | 5050 | fi | 
|  | 5051 | if test -z "$CXX"; then | 
|  | 5052 | ac_ct_CXX=$CXX | 
|  | 5053 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 5054 | do | 
|  | 5055 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 5056 | set dummy $ac_prog; ac_word=$2 | 
|  | 5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5058 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5059 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
|  | 5060 | $as_echo_n "(cached) " >&6 | 
|  | 5061 | else | 
|  | 5062 | if test -n "$ac_ct_CXX"; then | 
|  | 5063 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
|  | 5064 | else | 
|  | 5065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5066 | for as_dir in $PATH | 
|  | 5067 | do | 
|  | 5068 | IFS=$as_save_IFS | 
|  | 5069 | test -z "$as_dir" && as_dir=. | 
|  | 5070 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5071 | 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] | 5072 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
|  | 5073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5074 | break 2 | 
|  | 5075 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5076 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5077 | done | 
|  | 5078 | IFS=$as_save_IFS | 
|  | 5079 |  | 
|  | 5080 | fi | 
|  | 5081 | fi | 
|  | 5082 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
|  | 5083 | if test -n "$ac_ct_CXX"; then | 
|  | 5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
|  | 5085 | $as_echo "$ac_ct_CXX" >&6; } | 
|  | 5086 | else | 
|  | 5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5088 | $as_echo "no" >&6; } | 
|  | 5089 | fi | 
|  | 5090 |  | 
|  | 5091 |  | 
|  | 5092 | test -n "$ac_ct_CXX" && break | 
|  | 5093 | done | 
|  | 5094 |  | 
|  | 5095 | if test "x$ac_ct_CXX" = x; then | 
|  | 5096 | CXX="notfound" | 
|  | 5097 | else | 
|  | 5098 | case $cross_compiling:$ac_tool_warned in | 
|  | 5099 | yes:) | 
|  | 5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5101 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 5102 | ac_tool_warned=yes ;; | 
|  | 5103 | esac | 
|  | 5104 | CXX=$ac_ct_CXX | 
|  | 5105 | fi | 
|  | 5106 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5107 |  | 
|  | 5108 | if test "$CXX" = "notfound" | 
|  | 5109 | then | 
|  | 5110 | CXX="" | 
|  | 5111 | fi | 
|  | 5112 | fi | 
|  | 5113 | if test "$preset_cxx" != "$CXX" | 
|  | 5114 | then | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5116 |  | 
|  | 5117 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 5118 | If this is not intended, then set CXX on the configure command line. | 
|  | 5119 | " >&5 | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5120 | $as_echo "$as_me: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5121 |  | 
|  | 5122 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 5123 | 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] | 5124 | " >&6;} | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5125 | fi | 
|  | 5126 |  | 
|  | 5127 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5128 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | 
|  | 5129 |  | 
|  | 5130 |  | 
|  | 5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 | 
|  | 5132 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } | 
|  | 5133 | cat >> conftest.c <<EOF | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5134 | #undef bfin | 
|  | 5135 | #undef cris | 
|  | 5136 | #undef fr30 | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5137 | #undef linux | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5138 | #undef hppa | 
|  | 5139 | #undef hpux | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5140 | #undef i386 | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5141 | #undef mips | 
| doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5142 | #undef powerpc | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5143 | #undef sparc | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5144 | #undef unix | 
| doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5145 | #if defined(__ANDROID__) | 
|  | 5146 | # if defined(__x86_64__) && defined(__LP64__) | 
|  | 5147 | x86_64-linux-android | 
|  | 5148 | # elif defined(__i386__) | 
|  | 5149 | i686-linux-android | 
|  | 5150 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | 
|  | 5151 | #  if defined(__ILP32__) | 
|  | 5152 | aarch64_ilp32-linux-android | 
|  | 5153 | #  else | 
|  | 5154 | aarch64-linux-android | 
|  | 5155 | #  endif | 
|  | 5156 | # elif defined(__ARM_EABI__) && defined(__ARMEL__) | 
|  | 5157 | arm-linux-androideabi | 
|  | 5158 | # elif defined(__mips_hard_float) && defined(_MIPSEL) | 
|  | 5159 | #  if _MIPS_SIM == _ABIO32 | 
|  | 5160 | mipsel-linux-android | 
|  | 5161 | #  elif _MIPS_SIM == _ABI64 | 
|  | 5162 | mips64el-linux-android | 
|  | 5163 | #  else | 
|  | 5164 | #   error unknown platform triplet | 
|  | 5165 | #  endif | 
|  | 5166 | # else | 
|  | 5167 | #   error unknown platform triplet | 
|  | 5168 | # endif | 
|  | 5169 | #elif defined(__linux__) | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5170 | # if defined(__x86_64__) && defined(__LP64__) | 
|  | 5171 | x86_64-linux-gnu | 
|  | 5172 | # elif defined(__x86_64__) && defined(__ILP32__) | 
|  | 5173 | x86_64-linux-gnux32 | 
|  | 5174 | # elif defined(__i386__) | 
|  | 5175 | i386-linux-gnu | 
|  | 5176 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | 
|  | 5177 | #  if defined(__ILP32__) | 
|  | 5178 | aarch64_ilp32-linux-gnu | 
|  | 5179 | #  else | 
|  | 5180 | aarch64-linux-gnu | 
|  | 5181 | #  endif | 
|  | 5182 | # elif defined(__aarch64__) && defined(__AARCH64EB__) | 
|  | 5183 | #  if defined(__ILP32__) | 
|  | 5184 | aarch64_be_ilp32-linux-gnu | 
|  | 5185 | #  else | 
|  | 5186 | aarch64_be-linux-gnu | 
|  | 5187 | #  endif | 
|  | 5188 | # elif defined(__alpha__) | 
|  | 5189 | alpha-linux-gnu | 
|  | 5190 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) | 
|  | 5191 | #  if defined(__ARMEL__) | 
|  | 5192 | arm-linux-gnueabihf | 
|  | 5193 | #  else | 
|  | 5194 | armeb-linux-gnueabihf | 
|  | 5195 | #  endif | 
|  | 5196 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) | 
|  | 5197 | #  if defined(__ARMEL__) | 
|  | 5198 | arm-linux-gnueabi | 
|  | 5199 | #  else | 
|  | 5200 | armeb-linux-gnueabi | 
|  | 5201 | #  endif | 
|  | 5202 | # elif defined(__hppa__) | 
|  | 5203 | hppa-linux-gnu | 
|  | 5204 | # elif defined(__ia64__) | 
|  | 5205 | ia64-linux-gnu | 
|  | 5206 | # elif defined(__m68k__) && !defined(__mcoldfire__) | 
|  | 5207 | m68k-linux-gnu | 
|  | 5208 | # elif defined(__mips_hard_float) && defined(_MIPSEL) | 
|  | 5209 | #  if _MIPS_SIM == _ABIO32 | 
|  | 5210 | mipsel-linux-gnu | 
|  | 5211 | #  elif _MIPS_SIM == _ABIN32 | 
|  | 5212 | mips64el-linux-gnuabin32 | 
|  | 5213 | #  elif _MIPS_SIM == _ABI64 | 
|  | 5214 | mips64el-linux-gnuabi64 | 
|  | 5215 | #  else | 
|  | 5216 | #   error unknown platform triplet | 
|  | 5217 | #  endif | 
|  | 5218 | # elif defined(__mips_hard_float) | 
|  | 5219 | #  if _MIPS_SIM == _ABIO32 | 
|  | 5220 | mips-linux-gnu | 
|  | 5221 | #  elif _MIPS_SIM == _ABIN32 | 
|  | 5222 | mips64-linux-gnuabin32 | 
|  | 5223 | #  elif _MIPS_SIM == _ABI64 | 
|  | 5224 | mips64-linux-gnuabi64 | 
|  | 5225 | #  else | 
|  | 5226 | #   error unknown platform triplet | 
|  | 5227 | #  endif | 
|  | 5228 | # elif defined(__or1k__) | 
|  | 5229 | or1k-linux-gnu | 
|  | 5230 | # elif defined(__powerpc__) && defined(__SPE__) | 
|  | 5231 | powerpc-linux-gnuspe | 
|  | 5232 | # elif defined(__powerpc64__) | 
|  | 5233 | #  if defined(__LITTLE_ENDIAN__) | 
|  | 5234 | powerpc64le-linux-gnu | 
|  | 5235 | #  else | 
|  | 5236 | powerpc64-linux-gnu | 
|  | 5237 | #  endif | 
|  | 5238 | # elif defined(__powerpc__) | 
|  | 5239 | powerpc-linux-gnu | 
|  | 5240 | # elif defined(__s390x__) | 
|  | 5241 | s390x-linux-gnu | 
|  | 5242 | # elif defined(__s390__) | 
|  | 5243 | s390-linux-gnu | 
|  | 5244 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) | 
|  | 5245 | sh4-linux-gnu | 
|  | 5246 | # elif defined(__sparc__) && defined(__arch64__) | 
|  | 5247 | sparc64-linux-gnu | 
|  | 5248 | # elif defined(__sparc__) | 
|  | 5249 | sparc-linux-gnu | 
|  | 5250 | # else | 
|  | 5251 | #   error unknown platform triplet | 
|  | 5252 | # endif | 
|  | 5253 | #elif defined(__FreeBSD_kernel__) | 
|  | 5254 | # if defined(__LP64__) | 
|  | 5255 | x86_64-kfreebsd-gnu | 
|  | 5256 | # elif defined(__i386__) | 
|  | 5257 | i386-kfreebsd-gnu | 
|  | 5258 | # else | 
|  | 5259 | #   error unknown platform triplet | 
|  | 5260 | # endif | 
|  | 5261 | #elif defined(__gnu_hurd__) | 
|  | 5262 | i386-gnu | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5263 | #elif defined(__APPLE__) | 
|  | 5264 | darwin | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5265 | #else | 
|  | 5266 | # error unknown platform triplet | 
|  | 5267 | #endif | 
|  | 5268 |  | 
|  | 5269 | EOF | 
|  | 5270 |  | 
| Xavier de Gaye | 3a32bdf | 2016-07-30 11:28:35 +0200 | [diff] [blame] | 5271 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5272 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' 	'` | 
|  | 5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 | 
|  | 5274 | $as_echo "$PLATFORM_TRIPLET" >&6; } | 
|  | 5275 | else | 
|  | 5276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 5277 | $as_echo "none" >&6; } | 
|  | 5278 | fi | 
|  | 5279 | rm -f conftest.c conftest.out | 
|  | 5280 |  | 
|  | 5281 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then | 
|  | 5282 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then | 
|  | 5283 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 | 
|  | 5284 | fi | 
| doko@ubuntu.com | 75b1cb1 | 2016-08-29 20:03:25 +0200 | [diff] [blame] | 5285 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then | 
|  | 5286 | MULTIARCH=$PLATFORM_TRIPLET | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5287 | fi | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 5288 | if test x$PLATFORM_TRIPLET = x; then | 
|  | 5289 | PLATDIR=plat-$MACHDEP | 
|  | 5290 | else | 
|  | 5291 | PLATDIR=plat-$PLATFORM_TRIPLET | 
|  | 5292 | fi | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5293 |  | 
|  | 5294 |  | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 5295 | if test x$MULTIARCH != x; then | 
|  | 5296 | MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" | 
|  | 5297 | fi | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5298 |  | 
|  | 5299 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 | 
|  | 5301 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | 
|  | 5302 | save_LDFLAGS="$LDFLAGS" | 
|  | 5303 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5304 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5306 | /* end confdefs.h.  */ | 
|  | 5307 |  | 
|  | 5308 | int | 
|  | 5309 | main () | 
|  | 5310 | { | 
|  | 5311 |  | 
|  | 5312 | ; | 
|  | 5313 | return 0; | 
|  | 5314 | } | 
|  | 5315 | _ACEOF | 
|  | 5316 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 5317 | NO_AS_NEEDED="-Wl,--no-as-needed" | 
|  | 5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 5319 | $as_echo "yes" >&6; } | 
|  | 5320 | else | 
|  | 5321 | NO_AS_NEEDED="" | 
|  | 5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5323 | $as_echo "no" >&6; } | 
|  | 5324 | fi | 
|  | 5325 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 5326 | conftest$ac_exeext conftest.$ac_ext | 
|  | 5327 | LDFLAGS="$save_LDFLAGS" | 
|  | 5328 |  | 
|  | 5329 |  | 
|  | 5330 |  | 
|  | 5331 | # checks for UNIX variants that set C preprocessor variables | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5332 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
|  | 5334 | $as_echo_n "checking for egrep... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5335 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5336 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5337 | else | 
|  | 5338 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
|  | 5339 | then ac_cv_path_EGREP="$GREP -E" | 
|  | 5340 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5341 | if test -z "$EGREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5342 | ac_path_EGREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5343 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 5344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5345 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 5346 | do | 
|  | 5347 | IFS=$as_save_IFS | 
|  | 5348 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5349 | for ac_prog in egrep; do | 
|  | 5350 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5351 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5352 | as_fn_executable_p "$ac_path_EGREP" || continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5353 | # 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] | 5354 | # Check for GNU $ac_path_EGREP | 
|  | 5355 | case `"$ac_path_EGREP" --version 2>&1` in | 
|  | 5356 | *GNU*) | 
|  | 5357 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
|  | 5358 | *) | 
|  | 5359 | ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5360 | $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5361 | while : | 
|  | 5362 | do | 
|  | 5363 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 5364 | mv "conftest.tmp" "conftest.in" | 
|  | 5365 | cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5366 | $as_echo 'EGREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5367 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 5368 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5369 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5370 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
|  | 5371 | # Best one so far, save it but keep looking for a better one | 
|  | 5372 | ac_cv_path_EGREP="$ac_path_EGREP" | 
|  | 5373 | ac_path_EGREP_max=$ac_count | 
|  | 5374 | fi | 
|  | 5375 | # 10*(2^10) chars as input seems more than enough | 
|  | 5376 | test $ac_count -gt 10 && break | 
|  | 5377 | done | 
|  | 5378 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 5379 | esac | 
|  | 5380 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5381 | $ac_path_EGREP_found && break 3 | 
|  | 5382 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5383 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5384 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5385 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5386 | if test -z "$ac_cv_path_EGREP"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5387 | 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] | 5388 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5389 | else | 
|  | 5390 | ac_cv_path_EGREP=$EGREP | 
|  | 5391 | fi | 
|  | 5392 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5393 | fi | 
|  | 5394 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
|  | 5396 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5397 | EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5398 |  | 
|  | 5399 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 5401 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5402 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5403 | $as_echo_n "(cached) " >&6 | 
|  | 5404 | else | 
|  | 5405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5406 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5407 | #include <stdlib.h> | 
|  | 5408 | #include <stdarg.h> | 
|  | 5409 | #include <string.h> | 
|  | 5410 | #include <float.h> | 
|  | 5411 |  | 
|  | 5412 | int | 
|  | 5413 | main () | 
|  | 5414 | { | 
|  | 5415 |  | 
|  | 5416 | ; | 
|  | 5417 | return 0; | 
|  | 5418 | } | 
|  | 5419 | _ACEOF | 
|  | 5420 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5421 | ac_cv_header_stdc=yes | 
|  | 5422 | else | 
|  | 5423 | ac_cv_header_stdc=no | 
|  | 5424 | fi | 
|  | 5425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5426 |  | 
|  | 5427 | if test $ac_cv_header_stdc = yes; then | 
|  | 5428 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 5429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5430 | /* end confdefs.h.  */ | 
|  | 5431 | #include <string.h> | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5432 |  | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5433 | _ACEOF | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5434 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5435 | $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5436 |  | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5437 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5438 | ac_cv_header_stdc=no | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5439 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5440 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5441 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5442 | fi | 
|  | 5443 |  | 
|  | 5444 | if test $ac_cv_header_stdc = yes; then | 
|  | 5445 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 5446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5447 | /* end confdefs.h.  */ | 
|  | 5448 | #include <stdlib.h> | 
|  | 5449 |  | 
|  | 5450 | _ACEOF | 
|  | 5451 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 5452 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 5453 |  | 
|  | 5454 | else | 
|  | 5455 | ac_cv_header_stdc=no | 
|  | 5456 | fi | 
|  | 5457 | rm -f conftest* | 
|  | 5458 |  | 
|  | 5459 | fi | 
|  | 5460 |  | 
|  | 5461 | if test $ac_cv_header_stdc = yes; then | 
|  | 5462 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 5463 | if test "$cross_compiling" = yes; then : | 
|  | 5464 | : | 
|  | 5465 | else | 
|  | 5466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5467 | /* end confdefs.h.  */ | 
|  | 5468 | #include <ctype.h> | 
|  | 5469 | #include <stdlib.h> | 
|  | 5470 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 5471 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 5472 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 5473 | #else | 
|  | 5474 | # define ISLOWER(c) \ | 
|  | 5475 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 5476 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 5477 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 5478 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 5479 | #endif | 
|  | 5480 |  | 
|  | 5481 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 5482 | int | 
|  | 5483 | main () | 
|  | 5484 | { | 
|  | 5485 | int i; | 
|  | 5486 | for (i = 0; i < 256; i++) | 
|  | 5487 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 5488 | || toupper (i) != TOUPPER (i)) | 
|  | 5489 | return 2; | 
|  | 5490 | return 0; | 
|  | 5491 | } | 
|  | 5492 | _ACEOF | 
|  | 5493 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 5494 |  | 
|  | 5495 | else | 
|  | 5496 | ac_cv_header_stdc=no | 
|  | 5497 | fi | 
|  | 5498 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5499 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 5500 | fi | 
|  | 5501 |  | 
|  | 5502 | fi | 
|  | 5503 | fi | 
|  | 5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 5505 | $as_echo "$ac_cv_header_stdc" >&6; } | 
|  | 5506 | if test $ac_cv_header_stdc = yes; then | 
|  | 5507 |  | 
|  | 5508 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
|  | 5509 |  | 
|  | 5510 | fi | 
|  | 5511 |  | 
|  | 5512 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
|  | 5513 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
|  | 5514 | inttypes.h stdint.h unistd.h | 
|  | 5515 | do : | 
|  | 5516 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 5517 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
|  | 5518 | " | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5519 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5520 | cat >>confdefs.h <<_ACEOF | 
|  | 5521 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 5522 | _ACEOF | 
|  | 5523 |  | 
|  | 5524 | fi | 
|  | 5525 |  | 
|  | 5526 | done | 
|  | 5527 |  | 
|  | 5528 |  | 
|  | 5529 |  | 
|  | 5530 | 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] | 5531 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5532 | MINIX=yes | 
|  | 5533 | else | 
|  | 5534 | MINIX= | 
|  | 5535 | fi | 
|  | 5536 |  | 
|  | 5537 |  | 
|  | 5538 | if test "$MINIX" = yes; then | 
|  | 5539 |  | 
|  | 5540 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
|  | 5541 |  | 
|  | 5542 |  | 
|  | 5543 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
|  | 5544 |  | 
|  | 5545 |  | 
|  | 5546 | $as_echo "#define _MINIX 1" >>confdefs.h | 
|  | 5547 |  | 
|  | 5548 | fi | 
|  | 5549 |  | 
|  | 5550 |  | 
|  | 5551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
|  | 5552 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5553 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5554 | $as_echo_n "(cached) " >&6 | 
|  | 5555 | else | 
|  | 5556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5557 | /* end confdefs.h.  */ | 
|  | 5558 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5559 | #         define __EXTENSIONS__ 1 | 
|  | 5560 | $ac_includes_default | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5561 | int | 
|  | 5562 | main () | 
|  | 5563 | { | 
|  | 5564 |  | 
|  | 5565 | ; | 
|  | 5566 | return 0; | 
|  | 5567 | } | 
|  | 5568 | _ACEOF | 
|  | 5569 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5570 | ac_cv_safe_to_define___extensions__=yes | 
|  | 5571 | else | 
|  | 5572 | ac_cv_safe_to_define___extensions__=no | 
|  | 5573 | fi | 
|  | 5574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5575 | fi | 
|  | 5576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
|  | 5577 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
|  | 5578 | test $ac_cv_safe_to_define___extensions__ = yes && | 
|  | 5579 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
|  | 5580 |  | 
|  | 5581 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
|  | 5582 |  | 
|  | 5583 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
|  | 5584 |  | 
|  | 5585 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
|  | 5586 |  | 
|  | 5587 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
|  | 5588 |  | 
|  | 5589 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5590 |  | 
| Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 | 
|  | 5592 | $as_echo_n "checking for the Android API level... " >&6; } | 
|  | 5593 | cat >> conftest.c <<EOF | 
|  | 5594 | #ifdef __ANDROID__ | 
|  | 5595 | #include <android/api-level.h> | 
|  | 5596 | __ANDROID_API__ | 
|  | 5597 | #else | 
|  | 5598 | #error not Android | 
|  | 5599 | #endif | 
|  | 5600 | EOF | 
|  | 5601 |  | 
|  | 5602 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
|  | 5603 | ANDROID_API_LEVEL=`grep -v '^#' conftest.out | grep -v '^ *$'` | 
|  | 5604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 | 
|  | 5605 | $as_echo "$ANDROID_API_LEVEL" >&6; } | 
|  | 5606 |  | 
|  | 5607 | cat >>confdefs.h <<_ACEOF | 
|  | 5608 | #define ANDROID_API_LEVEL $ANDROID_API_LEVEL | 
|  | 5609 | _ACEOF | 
|  | 5610 |  | 
|  | 5611 | else | 
|  | 5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 | 
|  | 5613 | $as_echo "not Android" >&6; } | 
|  | 5614 | fi | 
|  | 5615 | rm -f conftest.c conftest.out | 
|  | 5616 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5617 | # Check for unsupported systems | 
|  | 5618 | case $ac_sys_system/$ac_sys_release in | 
|  | 5619 | atheos*|Linux*/1*) | 
|  | 5620 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
|  | 5621 | echo See README for details. | 
|  | 5622 | exit 1;; | 
|  | 5623 | esac | 
|  | 5624 |  | 
|  | 5625 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
|  | 5627 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5628 |  | 
|  | 5629 | # Check whether --with-suffix was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5630 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5631 | withval=$with_suffix; | 
|  | 5632 | case $withval in | 
|  | 5633 | no)	EXEEXT=;; | 
|  | 5634 | yes)	EXEEXT=.exe;; | 
|  | 5635 | *)	EXEEXT=$withval;; | 
|  | 5636 | esac | 
|  | 5637 | fi | 
|  | 5638 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
|  | 5640 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5641 |  | 
|  | 5642 | # Test whether we're running on a non-case-sensitive system, in which | 
|  | 5643 | # case we give a warning if no ext is given | 
|  | 5644 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
|  | 5646 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5647 | if test ! -d CaseSensitiveTestDir; then | 
|  | 5648 | mkdir CaseSensitiveTestDir | 
|  | 5649 | fi | 
|  | 5650 |  | 
|  | 5651 | if test -d casesensitivetestdir | 
|  | 5652 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 5654 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5655 | BUILDEXEEXT=.exe | 
|  | 5656 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5658 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5659 | BUILDEXEEXT=$EXEEXT | 
|  | 5660 | fi | 
|  | 5661 | rmdir CaseSensitiveTestDir | 
|  | 5662 |  | 
|  | 5663 | case $MACHDEP in | 
|  | 5664 | bsdos*) | 
|  | 5665 | case $CC in | 
|  | 5666 | gcc) CC="$CC -D_HAVE_BSDI";; | 
|  | 5667 | esac;; | 
|  | 5668 | esac | 
|  | 5669 |  | 
|  | 5670 | case $ac_sys_system in | 
|  | 5671 | hp*|HP*) | 
|  | 5672 | case $CC in | 
|  | 5673 | cc|*/cc) CC="$CC -Ae";; | 
|  | 5674 | esac;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5675 | esac | 
|  | 5676 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5677 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
|  | 5679 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5680 | if test -z "$LIBRARY" | 
|  | 5681 | then | 
| Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5682 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5683 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
|  | 5685 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5686 |  | 
|  | 5687 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
|  | 5688 | # name of the library into which to insert object files). BLDLIBRARY is also | 
|  | 5689 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
|  | 5690 | # is blank as the main program is not linked directly against LDLIBRARY. | 
|  | 5691 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
|  | 5692 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
|  | 5693 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
|  | 5694 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
|  | 5695 | # | 
|  | 5696 | # RUNSHARED is used to run shared python without installed libraries | 
|  | 5697 | # | 
|  | 5698 | # INSTSONAME is the name of the shared library that will be use to install | 
|  | 5699 | # on the system - some systems like version suffix, others don't | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5700 | # | 
|  | 5701 | # LDVERSION is the shared library version number, normally the Python version | 
|  | 5702 | # with the ABI build flags appended. | 
|  | 5703 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5704 |  | 
|  | 5705 |  | 
|  | 5706 |  | 
|  | 5707 |  | 
|  | 5708 |  | 
|  | 5709 |  | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5710 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5711 | LDLIBRARY="$LIBRARY" | 
|  | 5712 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 5713 | INSTSONAME='$(LDLIBRARY)' | 
|  | 5714 | DLLLIBRARY='' | 
|  | 5715 | LDLIBRARYDIR='' | 
|  | 5716 | RUNSHARED='' | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5717 | LDVERSION="$VERSION" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5718 |  | 
|  | 5719 | # LINKCC is the command that links the python executable -- default is $(CC). | 
|  | 5720 | # If CXX is set, and if it is needed to link a main function that was | 
|  | 5721 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
|  | 5722 | # python might then depend on the C++ runtime | 
|  | 5723 | # This is altered for AIX in order to build the export list before | 
|  | 5724 | # linking. | 
|  | 5725 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
|  | 5727 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5728 | if test -z "$LINKCC" | 
|  | 5729 | then | 
|  | 5730 | LINKCC='$(PURIFY) $(MAINCC)' | 
|  | 5731 | case $ac_sys_system in | 
|  | 5732 | AIX*) | 
|  | 5733 | exp_extra="\"\"" | 
|  | 5734 | if test $ac_sys_release -ge 5 -o \ | 
|  | 5735 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
|  | 5736 | exp_extra="." | 
|  | 5737 | fi | 
|  | 5738 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5739 | QNX*) | 
|  | 5740 | # qcc must be used because the other compilers do not | 
|  | 5741 | # support -N. | 
|  | 5742 | LINKCC=qcc;; | 
|  | 5743 | esac | 
|  | 5744 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
|  | 5746 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5747 |  | 
|  | 5748 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
|  | 5749 | # make sure we default having it set to "no": this is used by | 
|  | 5750 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
|  | 5751 | # to linker command lines, and failing to detect GNU ld simply results | 
|  | 5752 | # in the same bahaviour as before. | 
|  | 5753 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
|  | 5755 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5756 | ac_prog=ld | 
|  | 5757 | if test "$GCC" = yes; then | 
|  | 5758 | ac_prog=`$CC -print-prog-name=ld` | 
|  | 5759 | fi | 
|  | 5760 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
|  | 5761 | *GNU*) | 
|  | 5762 | GNULD=yes;; | 
|  | 5763 | *) | 
|  | 5764 | GNULD=no;; | 
|  | 5765 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
|  | 5767 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5768 |  | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 
|  | 5770 | $as_echo_n "checking for inline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5771 | if ${ac_cv_c_inline+:} false; then : | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5772 | $as_echo_n "(cached) " >&6 | 
|  | 5773 | else | 
|  | 5774 | ac_cv_c_inline=no | 
|  | 5775 | for ac_kw in inline __inline__ __inline; do | 
|  | 5776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5777 | /* end confdefs.h.  */ | 
|  | 5778 | #ifndef __cplusplus | 
|  | 5779 | typedef int foo_t; | 
|  | 5780 | static $ac_kw foo_t static_foo () {return 0; } | 
|  | 5781 | $ac_kw foo_t foo () {return 0; } | 
|  | 5782 | #endif | 
|  | 5783 |  | 
|  | 5784 | _ACEOF | 
|  | 5785 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5786 | ac_cv_c_inline=$ac_kw | 
|  | 5787 | fi | 
|  | 5788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5789 | test "$ac_cv_c_inline" != no && break | 
|  | 5790 | done | 
|  | 5791 |  | 
|  | 5792 | fi | 
|  | 5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 
|  | 5794 | $as_echo "$ac_cv_c_inline" >&6; } | 
|  | 5795 |  | 
|  | 5796 | case $ac_cv_c_inline in | 
|  | 5797 | inline | yes) ;; | 
|  | 5798 | *) | 
|  | 5799 | case $ac_cv_c_inline in | 
|  | 5800 | no) ac_val=;; | 
|  | 5801 | *) ac_val=$ac_cv_c_inline;; | 
|  | 5802 | esac | 
|  | 5803 | cat >>confdefs.h <<_ACEOF | 
|  | 5804 | #ifndef __cplusplus | 
|  | 5805 | #define inline $ac_val | 
|  | 5806 | #endif | 
|  | 5807 | _ACEOF | 
|  | 5808 | ;; | 
|  | 5809 | esac | 
|  | 5810 |  | 
|  | 5811 | if test "$ac_cv_c_inline" != no ; then | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 5812 |  | 
|  | 5813 | $as_echo "#define USE_INLINE 1" >>confdefs.h | 
| Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5814 |  | 
|  | 5815 |  | 
|  | 5816 | fi | 
|  | 5817 |  | 
|  | 5818 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
|  | 5820 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5821 | # Check whether --enable-shared was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5822 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5823 | enableval=$enable_shared; | 
|  | 5824 | fi | 
|  | 5825 |  | 
|  | 5826 |  | 
|  | 5827 | if test -z "$enable_shared" | 
|  | 5828 | then | 
|  | 5829 | case $ac_sys_system in | 
| Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5830 | CYGWIN*) | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5831 | enable_shared="yes";; | 
|  | 5832 | *) | 
|  | 5833 | enable_shared="no";; | 
|  | 5834 | esac | 
|  | 5835 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
|  | 5837 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5838 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
|  | 5840 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5841 | # Check whether --enable-profiling was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5842 | if test "${enable_profiling+set}" = set; then : | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5843 | enableval=$enable_profiling; | 
|  | 5844 | fi | 
|  | 5845 |  | 
|  | 5846 | if test "x$enable_profiling" = xyes; then | 
|  | 5847 | ac_save_cc="$CC" | 
| Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5848 | CC="$CC -pg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5850 | /* end confdefs.h.  */ | 
|  | 5851 | int main() { return 0; } | 
|  | 5852 | _ACEOF | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5853 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 5854 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5855 | else | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5856 | enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5857 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5858 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 5859 | conftest$ac_exeext conftest.$ac_ext | 
|  | 5860 | CC="$ac_save_cc" | 
|  | 5861 | else | 
|  | 5862 | enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5863 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 | 
|  | 5865 | $as_echo "$enable_profiling" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5866 |  | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5867 | if test "x$enable_profiling" = xyes; then | 
|  | 5868 | BASECFLAGS="-pg $BASECFLAGS" | 
|  | 5869 | LDFLAGS="-pg $LDFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5870 | fi | 
|  | 5871 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
|  | 5873 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5874 |  | 
|  | 5875 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
|  | 5876 | # library that we build, but we do not want to link against it (we | 
|  | 5877 | # will find it with a -framework option). For this reason there is an | 
|  | 5878 | # extra variable BLDLIBRARY against which Python and the extension | 
|  | 5879 | # modules are linked, BLDLIBRARY. This is normally the same as | 
|  | 5880 | # LDLIBRARY, but empty for MacOSX framework builds. | 
|  | 5881 | if test "$enable_framework" | 
|  | 5882 | then | 
|  | 5883 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5884 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5885 | BLDLIBRARY='' | 
|  | 5886 | else | 
|  | 5887 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 5888 | fi | 
|  | 5889 |  | 
|  | 5890 | # Other platforms follow | 
|  | 5891 | if test $enable_shared = "yes"; then | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5892 | PY_ENABLE_SHARED=1 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5893 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5894 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5895 |  | 
|  | 5896 | case $ac_sys_system in | 
|  | 5897 | CYGWIN*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5898 | LDLIBRARY='libpython$(LDVERSION).dll.a' | 
|  | 5899 | DLLLIBRARY='libpython$(LDVERSION).dll' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5900 | ;; | 
|  | 5901 | SunOS*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5902 | LDLIBRARY='libpython$(LDVERSION).so' | 
|  | 5903 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5904 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5905 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5906 | if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5907 | then | 
|  | 5908 | PY3LIBRARY=libpython3.so | 
|  | 5909 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5910 | ;; | 
| Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 5911 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5912 | LDLIBRARY='libpython$(LDVERSION).so' | 
|  | 5913 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5914 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5915 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5916 | if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5917 | then | 
|  | 5918 | PY3LIBRARY=libpython3.so | 
|  | 5919 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5920 | ;; | 
|  | 5921 | hp*|HP*) | 
|  | 5922 | case `uname -m` in | 
|  | 5923 | ia64) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5924 | LDLIBRARY='libpython$(LDVERSION).so' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5925 | ;; | 
|  | 5926 | *) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5927 | LDLIBRARY='libpython$(LDVERSION).sl' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5928 | ;; | 
|  | 5929 | esac | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5930 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5931 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5932 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5933 | Darwin*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5934 | LDLIBRARY='libpython$(LDVERSION).dylib' | 
|  | 5935 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5936 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5937 | ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5938 | AIX*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5939 | LDLIBRARY='libpython$(LDVERSION).so' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5940 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5941 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5942 |  | 
|  | 5943 | esac | 
|  | 5944 | else # shared is disabled | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5945 | PY_ENABLE_SHARED=0 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5946 | case $ac_sys_system in | 
|  | 5947 | CYGWIN*) | 
|  | 5948 | BLDLIBRARY='$(LIBRARY)' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5949 | LDLIBRARY='libpython$(LDVERSION).dll.a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5950 | ;; | 
|  | 5951 | esac | 
|  | 5952 | fi | 
|  | 5953 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 5954 | if test "$cross_compiling" = yes; then | 
|  | 5955 | RUNSHARED= | 
|  | 5956 | fi | 
|  | 5957 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
|  | 5959 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5960 |  | 
|  | 5961 | if test -n "$ac_tool_prefix"; then | 
|  | 5962 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 5963 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5965 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5966 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5967 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5968 | else | 
|  | 5969 | if test -n "$RANLIB"; then | 
|  | 5970 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 5971 | else | 
|  | 5972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5973 | for as_dir in $PATH | 
|  | 5974 | do | 
|  | 5975 | IFS=$as_save_IFS | 
|  | 5976 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5977 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5978 | 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] | 5979 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5980 | $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] | 5981 | break 2 | 
|  | 5982 | fi | 
|  | 5983 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5984 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5985 | IFS=$as_save_IFS | 
|  | 5986 |  | 
|  | 5987 | fi | 
|  | 5988 | fi | 
|  | 5989 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 5990 | if test -n "$RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
|  | 5992 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5993 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5995 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5996 | fi | 
|  | 5997 |  | 
|  | 5998 |  | 
|  | 5999 | fi | 
|  | 6000 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 6001 | ac_ct_RANLIB=$RANLIB | 
|  | 6002 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 6003 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6005 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6006 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6007 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6008 | else | 
|  | 6009 | if test -n "$ac_ct_RANLIB"; then | 
|  | 6010 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 6011 | else | 
|  | 6012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6013 | for as_dir in $PATH | 
|  | 6014 | do | 
|  | 6015 | IFS=$as_save_IFS | 
|  | 6016 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6017 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6018 | 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] | 6019 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6020 | $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] | 6021 | break 2 | 
|  | 6022 | fi | 
|  | 6023 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6024 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6025 | IFS=$as_save_IFS | 
|  | 6026 |  | 
|  | 6027 | fi | 
|  | 6028 | fi | 
|  | 6029 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 6030 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
|  | 6032 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6033 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6035 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6036 | fi | 
|  | 6037 |  | 
|  | 6038 | if test "x$ac_ct_RANLIB" = x; then | 
|  | 6039 | RANLIB=":" | 
|  | 6040 | else | 
|  | 6041 | case $cross_compiling:$ac_tool_warned in | 
|  | 6042 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6043 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6044 | $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] | 6045 | ac_tool_warned=yes ;; | 
|  | 6046 | esac | 
|  | 6047 | RANLIB=$ac_ct_RANLIB | 
|  | 6048 | fi | 
|  | 6049 | else | 
|  | 6050 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 6051 | fi | 
|  | 6052 |  | 
|  | 6053 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6054 | if test -n "$ac_tool_prefix"; then | 
|  | 6055 | for ac_prog in ar aal | 
|  | 6056 | do | 
|  | 6057 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 6058 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6060 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6061 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6062 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6063 | else | 
|  | 6064 | if test -n "$AR"; then | 
|  | 6065 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 6066 | else | 
|  | 6067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6068 | for as_dir in $PATH | 
|  | 6069 | do | 
|  | 6070 | IFS=$as_save_IFS | 
|  | 6071 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6072 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6073 | 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] | 6074 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6075 | $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] | 6076 | break 2 | 
|  | 6077 | fi | 
|  | 6078 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6079 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6080 | IFS=$as_save_IFS | 
|  | 6081 |  | 
|  | 6082 | fi | 
|  | 6083 | fi | 
|  | 6084 | AR=$ac_cv_prog_AR | 
|  | 6085 | if test -n "$AR"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
|  | 6087 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6088 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6090 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6091 | fi | 
|  | 6092 |  | 
|  | 6093 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6094 | test -n "$AR" && break | 
|  | 6095 | done | 
|  | 6096 | fi | 
|  | 6097 | if test -z "$AR"; then | 
|  | 6098 | ac_ct_AR=$AR | 
|  | 6099 | for ac_prog in ar aal | 
|  | 6100 | do | 
|  | 6101 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 6102 | set dummy $ac_prog; ac_word=$2 | 
|  | 6103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6104 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6105 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
|  | 6106 | $as_echo_n "(cached) " >&6 | 
|  | 6107 | else | 
|  | 6108 | if test -n "$ac_ct_AR"; then | 
|  | 6109 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
|  | 6110 | else | 
|  | 6111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6112 | for as_dir in $PATH | 
|  | 6113 | do | 
|  | 6114 | IFS=$as_save_IFS | 
|  | 6115 | test -z "$as_dir" && as_dir=. | 
|  | 6116 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 6117 | 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] | 6118 | ac_cv_prog_ac_ct_AR="$ac_prog" | 
|  | 6119 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6120 | break 2 | 
|  | 6121 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6122 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6123 | done | 
|  | 6124 | IFS=$as_save_IFS | 
|  | 6125 |  | 
|  | 6126 | fi | 
|  | 6127 | fi | 
|  | 6128 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
|  | 6129 | if test -n "$ac_ct_AR"; then | 
|  | 6130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
|  | 6131 | $as_echo "$ac_ct_AR" >&6; } | 
|  | 6132 | else | 
|  | 6133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6134 | $as_echo "no" >&6; } | 
|  | 6135 | fi | 
|  | 6136 |  | 
|  | 6137 |  | 
|  | 6138 | test -n "$ac_ct_AR" && break | 
|  | 6139 | done | 
|  | 6140 |  | 
|  | 6141 | if test "x$ac_ct_AR" = x; then | 
|  | 6142 | AR="ar" | 
|  | 6143 | else | 
|  | 6144 | case $cross_compiling:$ac_tool_warned in | 
|  | 6145 | yes:) | 
|  | 6146 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6147 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 6148 | ac_tool_warned=yes ;; | 
|  | 6149 | esac | 
|  | 6150 | AR=$ac_ct_AR | 
|  | 6151 | fi | 
|  | 6152 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6153 |  | 
|  | 6154 |  | 
|  | 6155 | # tweak ARFLAGS only if the user didn't set it on the command line | 
|  | 6156 |  | 
|  | 6157 | if test -z "$ARFLAGS" | 
|  | 6158 | then | 
|  | 6159 | ARFLAGS="rc" | 
|  | 6160 | fi | 
|  | 6161 |  | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6162 | if test -n "$ac_tool_prefix"; then | 
|  | 6163 | for ac_prog in readelf | 
|  | 6164 | do | 
|  | 6165 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 6166 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6168 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6169 | if ${ac_cv_prog_READELF+:} false; then : | 
|  | 6170 | $as_echo_n "(cached) " >&6 | 
|  | 6171 | else | 
|  | 6172 | if test -n "$READELF"; then | 
|  | 6173 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | 
|  | 6174 | else | 
|  | 6175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6176 | for as_dir in $PATH | 
|  | 6177 | do | 
|  | 6178 | IFS=$as_save_IFS | 
|  | 6179 | test -z "$as_dir" && as_dir=. | 
|  | 6180 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6181 | 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] | 6182 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" | 
|  | 6183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6184 | break 2 | 
|  | 6185 | fi | 
|  | 6186 | done | 
|  | 6187 | done | 
|  | 6188 | IFS=$as_save_IFS | 
|  | 6189 |  | 
|  | 6190 | fi | 
|  | 6191 | fi | 
|  | 6192 | READELF=$ac_cv_prog_READELF | 
|  | 6193 | if test -n "$READELF"; then | 
|  | 6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | 
|  | 6195 | $as_echo "$READELF" >&6; } | 
|  | 6196 | else | 
|  | 6197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6198 | $as_echo "no" >&6; } | 
|  | 6199 | fi | 
|  | 6200 |  | 
|  | 6201 |  | 
|  | 6202 | test -n "$READELF" && break | 
|  | 6203 | done | 
|  | 6204 | fi | 
|  | 6205 | if test -z "$READELF"; then | 
|  | 6206 | ac_ct_READELF=$READELF | 
|  | 6207 | for ac_prog in readelf | 
|  | 6208 | do | 
|  | 6209 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 6210 | set dummy $ac_prog; ac_word=$2 | 
|  | 6211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6212 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6213 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | 
|  | 6214 | $as_echo_n "(cached) " >&6 | 
|  | 6215 | else | 
|  | 6216 | if test -n "$ac_ct_READELF"; then | 
|  | 6217 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | 
|  | 6218 | else | 
|  | 6219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6220 | for as_dir in $PATH | 
|  | 6221 | do | 
|  | 6222 | IFS=$as_save_IFS | 
|  | 6223 | test -z "$as_dir" && as_dir=. | 
|  | 6224 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6225 | 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] | 6226 | ac_cv_prog_ac_ct_READELF="$ac_prog" | 
|  | 6227 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6228 | break 2 | 
|  | 6229 | fi | 
|  | 6230 | done | 
|  | 6231 | done | 
|  | 6232 | IFS=$as_save_IFS | 
|  | 6233 |  | 
|  | 6234 | fi | 
|  | 6235 | fi | 
|  | 6236 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | 
|  | 6237 | if test -n "$ac_ct_READELF"; then | 
|  | 6238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | 
|  | 6239 | $as_echo "$ac_ct_READELF" >&6; } | 
|  | 6240 | else | 
|  | 6241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6242 | $as_echo "no" >&6; } | 
|  | 6243 | fi | 
|  | 6244 |  | 
|  | 6245 |  | 
|  | 6246 | test -n "$ac_ct_READELF" && break | 
|  | 6247 | done | 
|  | 6248 |  | 
|  | 6249 | if test "x$ac_ct_READELF" = x; then | 
|  | 6250 | READELF=":" | 
|  | 6251 | else | 
|  | 6252 | case $cross_compiling:$ac_tool_warned in | 
|  | 6253 | yes:) | 
|  | 6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6255 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 6256 | ac_tool_warned=yes ;; | 
|  | 6257 | esac | 
|  | 6258 | READELF=$ac_ct_READELF | 
|  | 6259 | fi | 
|  | 6260 | fi | 
|  | 6261 |  | 
|  | 6262 | if test "$cross_compiling" = yes; then | 
|  | 6263 | case "$READELF" in | 
|  | 6264 | readelf|:) | 
|  | 6265 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | 
|  | 6266 | ;; | 
|  | 6267 | esac | 
|  | 6268 | fi | 
|  | 6269 |  | 
|  | 6270 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6271 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6272 | case $MACHDEP in | 
|  | 6273 | bsdos*|hp*|HP*) | 
|  | 6274 | # install -d does not work on BSDI or HP-UX | 
|  | 6275 | if test -z "$INSTALL" | 
|  | 6276 | then | 
|  | 6277 | INSTALL="${srcdir}/install-sh -c" | 
|  | 6278 | fi | 
|  | 6279 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6280 | # Find a good install program.  We prefer a C program (faster), | 
|  | 6281 | # so one script is as good as another.  But avoid the broken or | 
|  | 6282 | # incompatible versions: | 
|  | 6283 | # SysV /etc/install, /usr/sbin/install | 
|  | 6284 | # SunOS /usr/etc/install | 
|  | 6285 | # IRIX /sbin/install | 
|  | 6286 | # AIX /bin/install | 
|  | 6287 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 6288 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 6289 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 6290 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 6291 | # OS/2's system install, which has a completely different semantic | 
|  | 6292 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6293 | # Reject install programs that cannot install multiple files. | 
|  | 6294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
|  | 6295 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6296 | if test -z "$INSTALL"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6297 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6298 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6299 | else | 
|  | 6300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6301 | for as_dir in $PATH | 
|  | 6302 | do | 
|  | 6303 | IFS=$as_save_IFS | 
|  | 6304 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6305 | # Account for people who put trailing slashes in PATH elements. | 
|  | 6306 | case $as_dir/ in #(( | 
|  | 6307 | ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6308 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6309 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6310 | /usr/ucb/* ) ;; | 
|  | 6311 | *) | 
|  | 6312 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 6313 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 6314 | # by default. | 
|  | 6315 | for ac_prog in ginstall scoinst install; do | 
|  | 6316 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6317 | 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] | 6318 | if test $ac_prog = install && | 
|  | 6319 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 6320 | # AIX install.  It has an incompatible calling convention. | 
|  | 6321 | : | 
|  | 6322 | elif test $ac_prog = install && | 
|  | 6323 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 6324 | # program-specific install script used by HP pwplus--don't use. | 
|  | 6325 | : | 
|  | 6326 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6327 | rm -rf conftest.one conftest.two conftest.dir | 
|  | 6328 | echo one > conftest.one | 
|  | 6329 | echo two > conftest.two | 
|  | 6330 | mkdir conftest.dir | 
|  | 6331 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
|  | 6332 | test -s conftest.one && test -s conftest.two && | 
|  | 6333 | test -s conftest.dir/conftest.one && | 
|  | 6334 | test -s conftest.dir/conftest.two | 
|  | 6335 | then | 
|  | 6336 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 6337 | break 3 | 
|  | 6338 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6339 | fi | 
|  | 6340 | fi | 
|  | 6341 | done | 
|  | 6342 | done | 
|  | 6343 | ;; | 
|  | 6344 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6345 |  | 
|  | 6346 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6347 | IFS=$as_save_IFS | 
|  | 6348 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6349 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6350 |  | 
|  | 6351 | fi | 
|  | 6352 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 6353 | INSTALL=$ac_cv_path_install | 
|  | 6354 | else | 
|  | 6355 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 6356 | # value for INSTALL within a source directory, because that will | 
|  | 6357 | # break other packages using the cache if that directory is | 
|  | 6358 | # removed, or if the value is a relative name. | 
|  | 6359 | INSTALL=$ac_install_sh | 
|  | 6360 | fi | 
|  | 6361 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
|  | 6363 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6364 |  | 
|  | 6365 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 6366 | # It thinks the first close brace ends the variable substitution. | 
|  | 6367 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 6368 |  | 
|  | 6369 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 6370 |  | 
|  | 6371 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 6372 |  | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
|  | 6374 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
|  | 6375 | if test -z "$MKDIR_P"; then | 
|  | 6376 | if ${ac_cv_path_mkdir+:} false; then : | 
|  | 6377 | $as_echo_n "(cached) " >&6 | 
|  | 6378 | else | 
|  | 6379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6380 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
|  | 6381 | do | 
|  | 6382 | IFS=$as_save_IFS | 
|  | 6383 | test -z "$as_dir" && as_dir=. | 
|  | 6384 | for ac_prog in mkdir gmkdir; do | 
|  | 6385 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6386 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6387 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
|  | 6388 | 'mkdir (GNU coreutils) '* | \ | 
|  | 6389 | 'mkdir (coreutils) '* | \ | 
|  | 6390 | 'mkdir (fileutils) '4.1*) | 
|  | 6391 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
|  | 6392 | break 3;; | 
|  | 6393 | esac | 
|  | 6394 | done | 
|  | 6395 | done | 
|  | 6396 | done | 
|  | 6397 | IFS=$as_save_IFS | 
|  | 6398 |  | 
|  | 6399 | fi | 
|  | 6400 |  | 
|  | 6401 | test -d ./--version && rmdir ./--version | 
|  | 6402 | if test "${ac_cv_path_mkdir+set}" = set; then | 
|  | 6403 | MKDIR_P="$ac_cv_path_mkdir -p" | 
|  | 6404 | else | 
|  | 6405 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 6406 | # value for MKDIR_P within a source directory, because that will | 
|  | 6407 | # break other packages using the cache if that directory is | 
|  | 6408 | # removed, or if the value is a relative name. | 
|  | 6409 | MKDIR_P="$ac_install_sh -d" | 
|  | 6410 | fi | 
|  | 6411 | fi | 
|  | 6412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
|  | 6413 | $as_echo "$MKDIR_P" >&6; } | 
|  | 6414 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6415 |  | 
|  | 6416 | # Not every filesystem supports hard links | 
|  | 6417 |  | 
|  | 6418 | if test -z "$LN" ; then | 
|  | 6419 | case $ac_sys_system in | 
|  | 6420 | CYGWIN*) LN="ln -s";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6421 | *) LN=ln;; | 
|  | 6422 | esac | 
|  | 6423 | fi | 
|  | 6424 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6425 | # For calculating the .so ABI tag. | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6426 |  | 
|  | 6427 | ABIFLAGS="" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6428 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6429 | # Check for --with-pydebug | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
|  | 6431 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6432 |  | 
|  | 6433 | # Check whether --with-pydebug was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6434 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6435 | withval=$with_pydebug; | 
|  | 6436 | if test "$withval" != no | 
|  | 6437 | then | 
|  | 6438 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6439 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6440 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 6442 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6443 | Py_DEBUG='true' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6444 | ABIFLAGS="${ABIFLAGS}d" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6445 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6446 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6447 | fi | 
|  | 6448 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6450 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6451 | fi | 
|  | 6452 |  | 
|  | 6453 |  | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame^] | 6454 | # Enable optimization flags | 
|  | 6455 |  | 
|  | 6456 |  | 
|  | 6457 | Py_OPT='false' | 
|  | 6458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-optimizations" >&5 | 
|  | 6459 | $as_echo_n "checking for --with-optimizations... " >&6; } | 
|  | 6460 |  | 
|  | 6461 | # Check whether --with-optimizations was given. | 
|  | 6462 | if test "${with_optimizations+set}" = set; then : | 
|  | 6463 | withval=$with_optimizations; | 
|  | 6464 | if test "$withval" != no | 
|  | 6465 | then | 
|  | 6466 | Py_OPT='true' | 
|  | 6467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 6468 | $as_echo "yes" >&6; }; | 
|  | 6469 | else | 
|  | 6470 | Py_OPT='false' | 
|  | 6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6472 | $as_echo "no" >&6; }; | 
|  | 6473 | fi | 
|  | 6474 | else | 
|  | 6475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6476 | $as_echo "no" >&6; } | 
|  | 6477 | fi | 
|  | 6478 |  | 
|  | 6479 | if test "$Py_OPT" = 'true' ; then | 
|  | 6480 | Py_LTO='true' | 
|  | 6481 | case $ac_sys_system in | 
|  | 6482 | Darwin*) | 
|  | 6483 | # At least on macOS El Capitan, LTO does not work with PGO. | 
|  | 6484 | Py_LTO='false' | 
|  | 6485 | ;; | 
|  | 6486 | esac | 
|  | 6487 | DEF_MAKE_ALL_RULE="profile-opt" | 
|  | 6488 | DEF_MAKE_RULE="build_all" | 
|  | 6489 | else | 
|  | 6490 | DEF_MAKE_ALL_RULE="build_all" | 
|  | 6491 | DEF_MAKE_RULE="all" | 
|  | 6492 | fi | 
|  | 6493 |  | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6494 | # Enable LTO flags | 
|  | 6495 |  | 
|  | 6496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 | 
|  | 6497 | $as_echo_n "checking for --with-lto... " >&6; } | 
|  | 6498 |  | 
|  | 6499 | # Check whether --with-lto was given. | 
|  | 6500 | if test "${with_lto+set}" = set; then : | 
|  | 6501 | withval=$with_lto; | 
|  | 6502 | if test "$withval" != no | 
|  | 6503 | then | 
|  | 6504 | Py_LTO='true' | 
|  | 6505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 6506 | $as_echo "yes" >&6; }; | 
|  | 6507 | else | 
|  | 6508 | Py_LTO='false' | 
|  | 6509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6510 | $as_echo "no" >&6; }; | 
|  | 6511 | fi | 
|  | 6512 | else | 
|  | 6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6514 | $as_echo "no" >&6; } | 
|  | 6515 | fi | 
|  | 6516 |  | 
|  | 6517 | if test "$Py_LTO" = 'true' ; then | 
|  | 6518 | case $CC in | 
|  | 6519 | *clang*) | 
| Ned Deily | 8482ce4 | 2016-09-06 15:09:20 -0700 | [diff] [blame] | 6520 | case $ac_sys_system in | 
|  | 6521 | Darwin*) | 
|  | 6522 | # Any changes made here should be reflected in the GCC+Darwin case below | 
|  | 6523 | LTOFLAGS="-flto -Wl,-export_dynamic" | 
|  | 6524 | ;; | 
|  | 6525 | *) | 
|  | 6526 | LTOFLAGS="-flto" | 
|  | 6527 | ;; | 
|  | 6528 | esac | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6529 | ;; | 
|  | 6530 | *gcc*) | 
|  | 6531 | case $ac_sys_system in | 
|  | 6532 | Darwin*) | 
| Ned Deily | 8482ce4 | 2016-09-06 15:09:20 -0700 | [diff] [blame] | 6533 | LTOFLAGS="-flto -Wl,-export_dynamic" | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6534 | ;; | 
|  | 6535 | *) | 
|  | 6536 | LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" | 
|  | 6537 | ;; | 
|  | 6538 | esac | 
|  | 6539 | ;; | 
|  | 6540 | esac | 
|  | 6541 | fi | 
|  | 6542 |  | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6543 | # Enable PGO flags. | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6544 |  | 
|  | 6545 |  | 
|  | 6546 |  | 
|  | 6547 |  | 
|  | 6548 |  | 
|  | 6549 |  | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6550 | # Extract the first word of "llvm-profdata", so it can be a program name with args. | 
|  | 6551 | set dummy llvm-profdata; ac_word=$2 | 
|  | 6552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6553 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6554 | if ${ac_cv_prog_LLVM_PROF_FOUND+:} false; then : | 
|  | 6555 | $as_echo_n "(cached) " >&6 | 
|  | 6556 | else | 
|  | 6557 | if test -n "$LLVM_PROF_FOUND"; then | 
|  | 6558 | ac_cv_prog_LLVM_PROF_FOUND="$LLVM_PROF_FOUND" # Let the user override the test. | 
|  | 6559 | else | 
|  | 6560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6561 | for as_dir in $PATH | 
|  | 6562 | do | 
|  | 6563 | IFS=$as_save_IFS | 
|  | 6564 | test -z "$as_dir" && as_dir=. | 
|  | 6565 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6566 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 6567 | ac_cv_prog_LLVM_PROF_FOUND="found" | 
|  | 6568 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6569 | break 2 | 
|  | 6570 | fi | 
|  | 6571 | done | 
|  | 6572 | done | 
|  | 6573 | IFS=$as_save_IFS | 
|  | 6574 |  | 
|  | 6575 | test -z "$ac_cv_prog_LLVM_PROF_FOUND" && ac_cv_prog_LLVM_PROF_FOUND="not-found" | 
|  | 6576 | fi | 
|  | 6577 | fi | 
|  | 6578 | LLVM_PROF_FOUND=$ac_cv_prog_LLVM_PROF_FOUND | 
|  | 6579 | if test -n "$LLVM_PROF_FOUND"; then | 
|  | 6580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROF_FOUND" >&5 | 
|  | 6581 | $as_echo "$LLVM_PROF_FOUND" >&6; } | 
|  | 6582 | else | 
|  | 6583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6584 | $as_echo "no" >&6; } | 
|  | 6585 | fi | 
|  | 6586 |  | 
|  | 6587 |  | 
|  | 6588 | LLVM_PROF_ERR=no | 
|  | 6589 | case $CC in | 
|  | 6590 | *clang*) | 
|  | 6591 | # Any changes made here should be reflected in the GCC+Darwin case below | 
|  | 6592 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
|  | 6593 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
|  | 6594 | LLVM_PROF_MERGER="llvm-profdata merge -output=code.profclangd *.profclangr" | 
|  | 6595 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
|  | 6596 | if test $LLVM_PROF_FOUND = not-found | 
|  | 6597 | then | 
|  | 6598 | LLVM_PROF_ERR=yes | 
|  | 6599 | fi | 
|  | 6600 | ;; | 
|  | 6601 | *gcc*) | 
|  | 6602 | case $ac_sys_system in | 
|  | 6603 | Darwin*) | 
|  | 6604 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
|  | 6605 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
|  | 6606 | LLVM_PROF_MERGER="llvm-profdata merge -output=code.profclangd *.profclangr" | 
|  | 6607 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
|  | 6608 | if test $LLVM_PROF_FOUND = not-found | 
|  | 6609 | then | 
|  | 6610 | LLVM_PROF_ERR=yes | 
|  | 6611 | fi | 
|  | 6612 | ;; | 
|  | 6613 | *) | 
|  | 6614 | PGO_PROF_GEN_FLAG="-fprofile-generate" | 
|  | 6615 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | 
|  | 6616 | LLVM_PROF_MERGER="true" | 
|  | 6617 | LLVM_PROF_FILE="" | 
|  | 6618 | ;; | 
|  | 6619 | esac | 
|  | 6620 | ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6621 | *icc*) | 
|  | 6622 | PGO_PROF_GEN_FLAG="-prof-gen" | 
|  | 6623 | PGO_PROF_USE_FLAG="-prof-use" | 
|  | 6624 | LLVM_PROF_MERGER="true" | 
|  | 6625 | LLVM_PROF_FILE="" | 
|  | 6626 | ;; | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6627 | esac | 
|  | 6628 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6629 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
|  | 6630 | # merged with this chunk of code? | 
|  | 6631 |  | 
|  | 6632 | # Optimizer/debugger flags | 
|  | 6633 | # ------------------------ | 
|  | 6634 | # (The following bit of code is complicated enough - please keep things | 
|  | 6635 | # indented properly.  Just pretend you're editing Python code. ;-) | 
|  | 6636 |  | 
|  | 6637 | # There are two parallel sets of case statements below, one that checks to | 
|  | 6638 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
|  | 6639 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
|  | 6640 | # user set OPT. | 
|  | 6641 |  | 
|  | 6642 | # tweak OPT based on compiler and platform, only if the user didn't set | 
|  | 6643 | # it on the command line | 
|  | 6644 |  | 
| Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6645 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6646 | then | 
|  | 6647 | case $GCC in | 
|  | 6648 | yes) | 
|  | 6649 | if test "$CC" != 'g++' ; then | 
|  | 6650 | STRICT_PROTO="-Wstrict-prototypes" | 
|  | 6651 | fi | 
|  | 6652 | # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
|  | 6653 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
|  | 6654 | WRAP="-fwrapv" | 
|  | 6655 | fi | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6656 |  | 
|  | 6657 | # Clang also needs -fwrapv | 
| Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6658 | case $CC in | 
|  | 6659 | *clang*) WRAP="-fwrapv" | 
|  | 6660 | ;; | 
|  | 6661 | esac | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6662 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6663 | case $ac_cv_prog_cc_g in | 
|  | 6664 | yes) | 
|  | 6665 | if test "$Py_DEBUG" = 'true' ; then | 
|  | 6666 | # Optimization messes up debuggers, so turn it off for | 
|  | 6667 | # debug builds. | 
| Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6668 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then | 
|  | 6669 | OPT="-g -Og -Wall $STRICT_PROTO" | 
|  | 6670 | else | 
|  | 6671 | OPT="-g -O0 -Wall $STRICT_PROTO" | 
|  | 6672 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6673 | else | 
|  | 6674 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
|  | 6675 | fi | 
|  | 6676 | ;; | 
|  | 6677 | *) | 
|  | 6678 | OPT="-O3 -Wall $STRICT_PROTO" | 
|  | 6679 | ;; | 
|  | 6680 | esac | 
|  | 6681 | case $ac_sys_system in | 
|  | 6682 | SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
|  | 6683 | ;; | 
|  | 6684 | esac | 
|  | 6685 | ;; | 
|  | 6686 |  | 
|  | 6687 | *) | 
|  | 6688 | OPT="-O" | 
|  | 6689 | ;; | 
|  | 6690 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6691 | fi | 
|  | 6692 |  | 
|  | 6693 |  | 
|  | 6694 |  | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6695 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6696 | # The -arch flags for universal builds on OSX | 
|  | 6697 | UNIVERSAL_ARCH_FLAGS= | 
|  | 6698 |  | 
|  | 6699 |  | 
|  | 6700 | # tweak BASECFLAGS based on compiler and platform | 
|  | 6701 | case $GCC in | 
|  | 6702 | yes) | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6703 | # Python doesn't violate C99 aliasing rules, but older versions of | 
|  | 6704 | # GCC produce warnings for legal Python code.  Enable | 
|  | 6705 | # -fno-strict-aliasing on versions of GCC that support but produce | 
|  | 6706 | # warnings.  See Issue3326 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 | 
|  | 6708 | $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] | 6709 | ac_save_cc="$CC" | 
|  | 6710 | CC="$CC -fno-strict-aliasing" | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6711 | save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6712 | if ${ac_cv_no_strict_aliasing+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6713 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6714 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6716 | /* end confdefs.h.  */ | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6717 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6718 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6719 | int | 
|  | 6720 | main () | 
|  | 6721 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6722 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6723 | ; | 
|  | 6724 | return 0; | 
|  | 6725 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6726 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6727 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6728 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6729 |  | 
|  | 6730 | CC="$ac_save_cc -fstrict-aliasing" | 
|  | 6731 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | 
|  | 6732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6733 | /* end confdefs.h.  */ | 
|  | 6734 |  | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6735 | void f(int **x) {} | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6736 | int | 
|  | 6737 | main () | 
|  | 6738 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6739 | double *x; f((int **) &x); | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6740 | ; | 
|  | 6741 | return 0; | 
|  | 6742 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6743 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6744 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6745 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6746 |  | 
|  | 6747 | ac_cv_no_strict_aliasing=no | 
|  | 6748 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6749 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6750 |  | 
|  | 6751 | ac_cv_no_strict_aliasing=yes | 
|  | 6752 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6753 | fi | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6755 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6756 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6757 |  | 
|  | 6758 | ac_cv_no_strict_aliasing=no | 
|  | 6759 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6760 | fi | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6762 | fi | 
|  | 6763 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6764 | CFLAGS="$save_CFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6765 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 | 
|  | 6767 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6768 | if test $ac_cv_no_strict_aliasing = yes | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6769 | then | 
|  | 6770 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
|  | 6771 | fi | 
|  | 6772 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6773 | # ICC doesn't recognize the option, but only emits a warning | 
|  | 6774 | ## XXX does it emit an unused result warning and can it be disabled? | 
|  | 6775 | case "$CC" in | 
|  | 6776 | *icc*) | 
|  | 6777 | ac_cv_disable_unused_result_warning=no | 
|  | 6778 | ;; | 
|  | 6779 | *) | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 | 
|  | 6781 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | 
|  | 6782 | ac_save_cc="$CC" | 
|  | 6783 | CC="$CC -Wunused-result -Werror" | 
|  | 6784 | save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6785 | if ${ac_cv_disable_unused_result_warning+:} false; then : | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6786 | $as_echo_n "(cached) " >&6 | 
|  | 6787 | else | 
|  | 6788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6789 | /* end confdefs.h.  */ | 
|  | 6790 |  | 
|  | 6791 |  | 
|  | 6792 | int | 
|  | 6793 | main () | 
|  | 6794 | { | 
|  | 6795 |  | 
|  | 6796 | ; | 
|  | 6797 | return 0; | 
|  | 6798 | } | 
|  | 6799 |  | 
|  | 6800 | _ACEOF | 
|  | 6801 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 6802 |  | 
|  | 6803 | ac_cv_disable_unused_result_warning=yes | 
|  | 6804 |  | 
|  | 6805 | else | 
|  | 6806 |  | 
|  | 6807 | ac_cv_disable_unused_result_warning=no | 
|  | 6808 |  | 
|  | 6809 | fi | 
|  | 6810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6811 | fi | 
|  | 6812 |  | 
|  | 6813 | CFLAGS="$save_CFLAGS" | 
|  | 6814 | CC="$ac_save_cc" | 
|  | 6815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 | 
|  | 6816 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6817 | ;; | 
|  | 6818 | esac | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6819 |  | 
|  | 6820 | if test $ac_cv_disable_unused_result_warning = yes | 
|  | 6821 | then | 
|  | 6822 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" | 
|  | 6823 | fi | 
|  | 6824 |  | 
| Benjamin Peterson | cc00e01 | 2013-05-20 08:22:04 -0700 | [diff] [blame] | 6825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror=declaration-after-statement" >&5 | 
|  | 6826 | $as_echo_n "checking for -Werror=declaration-after-statement... " >&6; } | 
|  | 6827 | ac_save_cc="$CC" | 
|  | 6828 | CC="$CC -Werror=declaration-after-statement" | 
|  | 6829 | save_CFLAGS="$CFLAGS" | 
|  | 6830 | if ${ac_cv_declaration_after_statement_warning+:} false; then : | 
|  | 6831 | $as_echo_n "(cached) " >&6 | 
|  | 6832 | else | 
|  | 6833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6834 | /* end confdefs.h.  */ | 
|  | 6835 |  | 
|  | 6836 |  | 
|  | 6837 | int | 
|  | 6838 | main () | 
|  | 6839 | { | 
|  | 6840 |  | 
|  | 6841 | ; | 
|  | 6842 | return 0; | 
|  | 6843 | } | 
|  | 6844 |  | 
|  | 6845 | _ACEOF | 
|  | 6846 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 6847 |  | 
|  | 6848 | ac_cv_declaration_after_statement_warning=yes | 
|  | 6849 |  | 
|  | 6850 | else | 
|  | 6851 |  | 
|  | 6852 | ac_cv_declaration_after_statement_warning=no | 
|  | 6853 |  | 
|  | 6854 | fi | 
|  | 6855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6856 | fi | 
|  | 6857 |  | 
|  | 6858 | CFLAGS="$save_CFLAGS" | 
|  | 6859 | CC="$ac_save_cc" | 
|  | 6860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declaration_after_statement_warning" >&5 | 
|  | 6861 | $as_echo "$ac_cv_declaration_after_statement_warning" >&6; } | 
|  | 6862 |  | 
|  | 6863 | if test $ac_cv_declaration_after_statement_warning = yes | 
|  | 6864 | then | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6865 | CFLAGS_NODIST="$CFLAGS_NODIST -Werror=declaration-after-statement" | 
| Benjamin Peterson | cc00e01 | 2013-05-20 08:22:04 -0700 | [diff] [blame] | 6866 | fi | 
|  | 6867 |  | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 | 
|  | 6869 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } | 
|  | 6870 | ac_save_cc="$CC" | 
|  | 6871 | CC="$CC -Wsign-compare" | 
|  | 6872 | save_CFLAGS="$CFLAGS" | 
|  | 6873 | if ${ac_cv_enable_sign_compare_warning+:} false; then : | 
|  | 6874 | $as_echo_n "(cached) " >&6 | 
|  | 6875 | else | 
|  | 6876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6877 | /* end confdefs.h.  */ | 
|  | 6878 |  | 
|  | 6879 |  | 
|  | 6880 | int | 
|  | 6881 | main () | 
|  | 6882 | { | 
|  | 6883 |  | 
|  | 6884 | ; | 
|  | 6885 | return 0; | 
|  | 6886 | } | 
|  | 6887 |  | 
|  | 6888 | _ACEOF | 
|  | 6889 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 6890 |  | 
|  | 6891 | ac_cv_enable_sign_compare_warning=yes | 
|  | 6892 |  | 
|  | 6893 | else | 
|  | 6894 |  | 
|  | 6895 | ac_cv_enable_sign_compare_warning=no | 
|  | 6896 |  | 
|  | 6897 | fi | 
|  | 6898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6899 | fi | 
|  | 6900 |  | 
|  | 6901 | CFLAGS="$save_CFLAGS" | 
|  | 6902 | CC="$ac_save_cc" | 
|  | 6903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 | 
|  | 6904 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } | 
|  | 6905 |  | 
|  | 6906 | if test $ac_cv_enable_sign_compare_warning = yes | 
|  | 6907 | then | 
|  | 6908 | BASECFLAGS="$BASECFLAGS -Wsign-compare" | 
|  | 6909 | fi | 
|  | 6910 |  | 
|  | 6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 | 
|  | 6912 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } | 
|  | 6913 | ac_save_cc="$CC" | 
|  | 6914 | CC="$CC -Wunreachable-code" | 
|  | 6915 | save_CFLAGS="$CFLAGS" | 
|  | 6916 | if ${ac_cv_enable_unreachable_code_warning+:} false; then : | 
|  | 6917 | $as_echo_n "(cached) " >&6 | 
|  | 6918 | else | 
|  | 6919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6920 | /* end confdefs.h.  */ | 
|  | 6921 |  | 
|  | 6922 |  | 
|  | 6923 | int | 
|  | 6924 | main () | 
|  | 6925 | { | 
|  | 6926 |  | 
|  | 6927 | ; | 
|  | 6928 | return 0; | 
|  | 6929 | } | 
|  | 6930 |  | 
|  | 6931 | _ACEOF | 
|  | 6932 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 6933 |  | 
|  | 6934 | ac_cv_enable_unreachable_code_warning=yes | 
|  | 6935 |  | 
|  | 6936 | else | 
|  | 6937 |  | 
|  | 6938 | ac_cv_enable_unreachable_code_warning=no | 
|  | 6939 |  | 
|  | 6940 | fi | 
|  | 6941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6942 | fi | 
|  | 6943 |  | 
|  | 6944 | CFLAGS="$save_CFLAGS" | 
|  | 6945 | CC="$ac_save_cc" | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 6946 |  | 
|  | 6947 | # Don't enable unreachable code warning in debug mode, since it usually | 
|  | 6948 | # results in non-standard code paths. | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 6949 | # Issue #24324: Unfortunately, the unreachable code warning does not work | 
|  | 6950 | # correctly on gcc and has been silently removed from the compiler. | 
|  | 6951 | # It is supported on clang but on OS X systems gcc may be an alias | 
|  | 6952 | # for clang.  Try to determine if the compiler is not really gcc and, | 
|  | 6953 | # if so, only then enable the warning. | 
|  | 6954 | if test $ac_cv_enable_unreachable_code_warning = yes && \ | 
|  | 6955 | test "$Py_DEBUG" != "true" && \ | 
|  | 6956 | 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] | 6957 | then | 
|  | 6958 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 6959 | else | 
|  | 6960 | ac_cv_enable_unreachable_code_warning=no | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 6961 | fi | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 6962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 | 
|  | 6963 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 6964 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6965 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
|  | 6966 | # support.  Without this, treatment of subnormals doesn't follow | 
|  | 6967 | # the standard. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 6968 | case $host in | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6969 | alpha*) | 
|  | 6970 | BASECFLAGS="$BASECFLAGS -mieee" | 
|  | 6971 | ;; | 
|  | 6972 | esac | 
|  | 6973 |  | 
|  | 6974 | case $ac_sys_system in | 
|  | 6975 | SCO_SV*) | 
|  | 6976 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
|  | 6977 | ;; | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6978 |  | 
|  | 6979 | # is there any other compiler on Darwin besides gcc? | 
|  | 6980 | Darwin*) | 
|  | 6981 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
|  | 6982 | # used to be here, but non-Apple gcc doesn't accept them. | 
|  | 6983 | if test "${CC}" = gcc | 
|  | 6984 | then | 
|  | 6985 | { $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] | 6986 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6987 | case "${UNIVERSALSDK}" in | 
|  | 6988 | */MacOSX10.4u.sdk) | 
|  | 6989 | # Build using 10.4 SDK, force usage of gcc when the | 
|  | 6990 | # compiler is gcc, otherwise the user will get very | 
|  | 6991 | # confusing error messages when building on OSX 10.6 | 
|  | 6992 | CC=gcc-4.0 | 
|  | 6993 | CPP=cpp-4.0 | 
|  | 6994 | ;; | 
|  | 6995 | esac | 
|  | 6996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6997 | $as_echo "$CC" >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6998 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6999 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7000 | if test "${enable_universalsdk}" | 
|  | 7001 | then | 
|  | 7002 | case "$UNIVERSAL_ARCHS" in | 
|  | 7003 | 32-bit) | 
|  | 7004 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
|  | 7005 | LIPO_32BIT_FLAGS="" | 
|  | 7006 | ARCH_RUN_32BIT="" | 
|  | 7007 | ;; | 
|  | 7008 | 64-bit) | 
|  | 7009 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
|  | 7010 | LIPO_32BIT_FLAGS="" | 
|  | 7011 | ARCH_RUN_32BIT="true" | 
|  | 7012 | ;; | 
|  | 7013 | all) | 
|  | 7014 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
|  | 7015 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
|  | 7016 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
|  | 7017 | ;; | 
|  | 7018 | intel) | 
|  | 7019 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
|  | 7020 | LIPO_32BIT_FLAGS="-extract i386" | 
|  | 7021 | ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
|  | 7022 | ;; | 
|  | 7023 | intel-32) | 
|  | 7024 | UNIVERSAL_ARCH_FLAGS="-arch i386" | 
|  | 7025 | LIPO_32BIT_FLAGS="" | 
|  | 7026 | ARCH_RUN_32BIT="" | 
|  | 7027 | ;; | 
|  | 7028 | 3-way) | 
|  | 7029 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
|  | 7030 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
|  | 7031 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
|  | 7032 | ;; | 
|  | 7033 | *) | 
|  | 7034 | as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
|  | 7035 | ;; | 
|  | 7036 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7037 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7038 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
|  | 7039 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
|  | 7040 | if test "${UNIVERSALSDK}" != "/" | 
|  | 7041 | then | 
|  | 7042 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
|  | 7043 | fi | 
|  | 7044 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7045 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7046 | # Calculate an appropriate deployment target for this build: | 
|  | 7047 | # The deployment target value is used explicitly to enable certain | 
|  | 7048 | # features are enabled (such as builtin libedit support for readline) | 
| Raymond Hettinger | 15f44ab | 2016-08-30 10:47:49 -0700 | [diff] [blame] | 7049 | # 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] | 7050 | # component of the string returned by distutils.get_platform(). | 
|  | 7051 | # | 
|  | 7052 | # Use the value from: | 
|  | 7053 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | 
|  | 7054 | # 2. the operating system version of the build machine if >= 10.6 | 
|  | 7055 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests | 
|  | 7056 | #       below to pick either 10.3, 10.4, or 10.5 as the target. | 
|  | 7057 | # 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] | 7058 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 | 
|  | 7060 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7061 | cur_target_major=`sw_vers -productVersion | \ | 
|  | 7062 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
|  | 7063 | cur_target_minor=`sw_vers -productVersion | \ | 
|  | 7064 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
|  | 7065 | cur_target="${cur_target_major}.${cur_target_minor}" | 
|  | 7066 | if test ${cur_target_major} -eq 10 && \ | 
|  | 7067 | test ${cur_target_minor} -ge 3 && \ | 
|  | 7068 | test ${cur_target_minor} -le 5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7069 | then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7070 | # OS X 10.3 through 10.5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7071 | cur_target=10.3 | 
|  | 7072 | if test ${enable_universalsdk} | 
|  | 7073 | then | 
|  | 7074 | case "$UNIVERSAL_ARCHS" in | 
|  | 7075 | all|3-way|intel|64-bit) | 
|  | 7076 | # These configurations were first supported in 10.5 | 
|  | 7077 | cur_target='10.5' | 
|  | 7078 | ;; | 
|  | 7079 | esac | 
|  | 7080 | else | 
|  | 7081 | if test `/usr/bin/arch` = "i386" | 
|  | 7082 | then | 
|  | 7083 | # 10.4 was the first release to support Intel archs | 
|  | 7084 | cur_target="10.4" | 
|  | 7085 | fi | 
|  | 7086 | fi | 
|  | 7087 | fi | 
|  | 7088 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7089 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7090 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
|  | 7091 | # environment with a value that is the same as what we'll use | 
|  | 7092 | # in the Makefile to ensure that we'll get the same compiler | 
|  | 7093 | # environment during configure and build time. | 
|  | 7094 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
|  | 7095 | export MACOSX_DEPLOYMENT_TARGET | 
|  | 7096 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
|  | 7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 | 
|  | 7098 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7099 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7100 | # end of Darwin* tests | 
|  | 7101 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7102 | esac | 
|  | 7103 | ;; | 
|  | 7104 |  | 
|  | 7105 | *) | 
|  | 7106 | case $ac_sys_system in | 
|  | 7107 | OpenUNIX*|UnixWare*) | 
|  | 7108 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
|  | 7109 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7110 | SCO_SV*) | 
|  | 7111 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
|  | 7112 | ;; | 
|  | 7113 | esac | 
|  | 7114 | ;; | 
|  | 7115 | esac | 
|  | 7116 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7117 | # ICC needs -fp-model strict or floats behave badly | 
|  | 7118 | case "$CC" in | 
|  | 7119 | *icc*) | 
|  | 7120 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" | 
|  | 7121 | ;; | 
|  | 7122 | esac | 
|  | 7123 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7124 | if test "$Py_DEBUG" = 'true'; then | 
|  | 7125 | : | 
|  | 7126 | else | 
|  | 7127 | OPT="-DNDEBUG $OPT" | 
|  | 7128 | fi | 
|  | 7129 |  | 
|  | 7130 | if test "$ac_arch_flags" | 
|  | 7131 | then | 
|  | 7132 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
|  | 7133 | fi | 
|  | 7134 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7135 | # On some compilers, pthreads are available without further options | 
|  | 7136 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
|  | 7137 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
|  | 7138 | # So we have to see first whether pthreads are available without | 
|  | 7139 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
|  | 7141 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7142 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7143 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7144 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7145 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7146 | ac_cv_pthread_is_default=no | 
|  | 7147 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7149 | /* end confdefs.h.  */ | 
|  | 7150 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7151 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7152 | #include <pthread.h> | 
|  | 7153 |  | 
|  | 7154 | void* routine(void* p){return NULL;} | 
|  | 7155 |  | 
|  | 7156 | int main(){ | 
|  | 7157 | pthread_t p; | 
|  | 7158 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7159 | return 1; | 
|  | 7160 | (void)pthread_detach(p); | 
|  | 7161 | return 0; | 
|  | 7162 | } | 
|  | 7163 |  | 
|  | 7164 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7165 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7166 |  | 
|  | 7167 | ac_cv_pthread_is_default=yes | 
|  | 7168 | ac_cv_kthread=no | 
|  | 7169 | ac_cv_pthread=no | 
|  | 7170 |  | 
|  | 7171 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7172 | ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7173 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7174 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7175 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7176 | fi | 
|  | 7177 |  | 
|  | 7178 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7179 | fi | 
|  | 7180 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
|  | 7182 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7183 |  | 
|  | 7184 |  | 
|  | 7185 | if test $ac_cv_pthread_is_default = yes | 
|  | 7186 | then | 
|  | 7187 | ac_cv_kpthread=no | 
|  | 7188 | else | 
|  | 7189 | # -Kpthread, if available, provides the right #defines | 
|  | 7190 | # and linker options to make pthread_create available | 
|  | 7191 | # Some compilers won't report that they do not support -Kpthread, | 
|  | 7192 | # so we need to run a program to see whether it really made the | 
|  | 7193 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
|  | 7195 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7196 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7197 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7198 | else | 
|  | 7199 | ac_save_cc="$CC" | 
|  | 7200 | CC="$CC -Kpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7201 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7202 | ac_cv_kpthread=no | 
|  | 7203 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7205 | /* end confdefs.h.  */ | 
|  | 7206 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7207 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7208 | #include <pthread.h> | 
|  | 7209 |  | 
|  | 7210 | void* routine(void* p){return NULL;} | 
|  | 7211 |  | 
|  | 7212 | int main(){ | 
|  | 7213 | pthread_t p; | 
|  | 7214 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7215 | return 1; | 
|  | 7216 | (void)pthread_detach(p); | 
|  | 7217 | return 0; | 
|  | 7218 | } | 
|  | 7219 |  | 
|  | 7220 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7221 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7222 | ac_cv_kpthread=yes | 
|  | 7223 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7224 | ac_cv_kpthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7225 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7226 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7227 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7228 | fi | 
|  | 7229 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7230 | CC="$ac_save_cc" | 
|  | 7231 | fi | 
|  | 7232 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
|  | 7234 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7235 | fi | 
|  | 7236 |  | 
|  | 7237 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
|  | 7238 | then | 
|  | 7239 | # -Kthread, if available, provides the right #defines | 
|  | 7240 | # and linker options to make pthread_create available | 
|  | 7241 | # Some compilers won't report that they do not support -Kthread, | 
|  | 7242 | # so we need to run a program to see whether it really made the | 
|  | 7243 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
|  | 7245 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7246 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7247 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7248 | else | 
|  | 7249 | ac_save_cc="$CC" | 
|  | 7250 | CC="$CC -Kthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7251 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7252 | ac_cv_kthread=no | 
|  | 7253 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7255 | /* end confdefs.h.  */ | 
|  | 7256 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7257 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7258 | #include <pthread.h> | 
|  | 7259 |  | 
|  | 7260 | void* routine(void* p){return NULL;} | 
|  | 7261 |  | 
|  | 7262 | int main(){ | 
|  | 7263 | pthread_t p; | 
|  | 7264 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7265 | return 1; | 
|  | 7266 | (void)pthread_detach(p); | 
|  | 7267 | return 0; | 
|  | 7268 | } | 
|  | 7269 |  | 
|  | 7270 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7271 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7272 | ac_cv_kthread=yes | 
|  | 7273 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7274 | ac_cv_kthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7275 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7276 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7277 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7278 | fi | 
|  | 7279 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7280 | CC="$ac_save_cc" | 
|  | 7281 | fi | 
|  | 7282 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
|  | 7284 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7285 | fi | 
|  | 7286 |  | 
|  | 7287 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
|  | 7288 | then | 
|  | 7289 | # -pthread, if available, provides the right #defines | 
|  | 7290 | # and linker options to make pthread_create available | 
|  | 7291 | # Some compilers won't report that they do not support -pthread, | 
|  | 7292 | # so we need to run a program to see whether it really made the | 
|  | 7293 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
|  | 7295 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 7296 | if ${ac_cv_pthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7297 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7298 | else | 
|  | 7299 | ac_save_cc="$CC" | 
|  | 7300 | CC="$CC -pthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7301 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7302 | ac_cv_pthread=no | 
|  | 7303 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7305 | /* end confdefs.h.  */ | 
|  | 7306 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7307 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7308 | #include <pthread.h> | 
|  | 7309 |  | 
|  | 7310 | void* routine(void* p){return NULL;} | 
|  | 7311 |  | 
|  | 7312 | int main(){ | 
|  | 7313 | pthread_t p; | 
|  | 7314 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7315 | return 1; | 
|  | 7316 | (void)pthread_detach(p); | 
|  | 7317 | return 0; | 
|  | 7318 | } | 
|  | 7319 |  | 
|  | 7320 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7321 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7322 | ac_cv_pthread=yes | 
|  | 7323 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7324 | ac_cv_pthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7325 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7326 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7327 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7328 | fi | 
|  | 7329 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7330 | CC="$ac_save_cc" | 
|  | 7331 | fi | 
|  | 7332 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
|  | 7334 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7335 | fi | 
|  | 7336 |  | 
|  | 7337 | # If we have set a CC compiler flag for thread support then | 
|  | 7338 | # check if it works for CXX, too. | 
|  | 7339 | ac_cv_cxx_thread=no | 
|  | 7340 | if test ! -z "$CXX" | 
|  | 7341 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
|  | 7343 | $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] | 7344 | ac_save_cxx="$CXX" | 
|  | 7345 |  | 
|  | 7346 | if test "$ac_cv_kpthread" = "yes" | 
|  | 7347 | then | 
|  | 7348 | CXX="$CXX -Kpthread" | 
|  | 7349 | ac_cv_cxx_thread=yes | 
|  | 7350 | elif test "$ac_cv_kthread" = "yes" | 
|  | 7351 | then | 
|  | 7352 | CXX="$CXX -Kthread" | 
|  | 7353 | ac_cv_cxx_thread=yes | 
|  | 7354 | elif test "$ac_cv_pthread" = "yes" | 
|  | 7355 | then | 
|  | 7356 | CXX="$CXX -pthread" | 
|  | 7357 | ac_cv_cxx_thread=yes | 
|  | 7358 | fi | 
|  | 7359 |  | 
|  | 7360 | if test $ac_cv_cxx_thread = yes | 
|  | 7361 | then | 
|  | 7362 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
|  | 7363 | $CXX -c conftest.$ac_ext 2>&5 | 
|  | 7364 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
|  | 7365 | && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
|  | 7366 | then | 
|  | 7367 | ac_cv_cxx_thread=yes | 
|  | 7368 | else | 
|  | 7369 | ac_cv_cxx_thread=no | 
|  | 7370 | fi | 
|  | 7371 | rm -fr conftest* | 
|  | 7372 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
|  | 7374 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7375 | fi | 
|  | 7376 | CXX="$ac_save_cxx" | 
|  | 7377 |  | 
|  | 7378 |  | 
|  | 7379 | # checks for header files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 7381 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7382 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7383 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7384 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7386 | /* end confdefs.h.  */ | 
|  | 7387 | #include <stdlib.h> | 
|  | 7388 | #include <stdarg.h> | 
|  | 7389 | #include <string.h> | 
|  | 7390 | #include <float.h> | 
|  | 7391 |  | 
|  | 7392 | int | 
|  | 7393 | main () | 
|  | 7394 | { | 
|  | 7395 |  | 
|  | 7396 | ; | 
|  | 7397 | return 0; | 
|  | 7398 | } | 
|  | 7399 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7400 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7401 | ac_cv_header_stdc=yes | 
|  | 7402 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7403 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7404 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7406 |  | 
|  | 7407 | if test $ac_cv_header_stdc = yes; then | 
|  | 7408 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7410 | /* end confdefs.h.  */ | 
|  | 7411 | #include <string.h> | 
|  | 7412 |  | 
|  | 7413 | _ACEOF | 
|  | 7414 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7415 | $EGREP "memchr" >/dev/null 2>&1; then : | 
|  | 7416 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7417 | else | 
|  | 7418 | ac_cv_header_stdc=no | 
|  | 7419 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7420 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7421 |  | 
|  | 7422 | fi | 
|  | 7423 |  | 
|  | 7424 | if test $ac_cv_header_stdc = yes; then | 
|  | 7425 | # 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] | 7426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7427 | /* end confdefs.h.  */ | 
|  | 7428 | #include <stdlib.h> | 
|  | 7429 |  | 
|  | 7430 | _ACEOF | 
|  | 7431 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7432 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 7433 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7434 | else | 
|  | 7435 | ac_cv_header_stdc=no | 
|  | 7436 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7437 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7438 |  | 
|  | 7439 | fi | 
|  | 7440 |  | 
|  | 7441 | if test $ac_cv_header_stdc = yes; then | 
|  | 7442 | # /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] | 7443 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7444 | : | 
|  | 7445 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7447 | /* end confdefs.h.  */ | 
|  | 7448 | #include <ctype.h> | 
|  | 7449 | #include <stdlib.h> | 
|  | 7450 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 7451 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 7452 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 7453 | #else | 
|  | 7454 | # define ISLOWER(c) \ | 
|  | 7455 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 7456 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 7457 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 7458 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 7459 | #endif | 
|  | 7460 |  | 
|  | 7461 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 7462 | int | 
|  | 7463 | main () | 
|  | 7464 | { | 
|  | 7465 | int i; | 
|  | 7466 | for (i = 0; i < 256; i++) | 
|  | 7467 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 7468 | || toupper (i) != TOUPPER (i)) | 
|  | 7469 | return 2; | 
|  | 7470 | return 0; | 
|  | 7471 | } | 
|  | 7472 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7473 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 7474 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7475 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7476 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7477 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7478 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7479 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7480 | fi | 
|  | 7481 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7482 | fi | 
|  | 7483 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 7485 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7486 | if test $ac_cv_header_stdc = yes; then | 
|  | 7487 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7488 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7489 |  | 
|  | 7490 | fi | 
|  | 7491 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7492 | 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] | 7493 | fcntl.h grp.h \ | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7494 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ | 
| Benjamin Peterson | 4fe5510 | 2016-09-06 11:58:01 -0700 | [diff] [blame] | 7495 | sched.h shadow.h signal.h stropts.h termios.h \ | 
| Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 7496 | unistd.h utime.h \ | 
| Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7497 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ | 
| Antoine Pitrou | bcf2b59 | 2012-02-08 23:28:36 +0100 | [diff] [blame] | 7498 | 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] | 7499 | 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] | 7500 | 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] | 7501 | 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] | 7502 | 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] | 7503 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 7504 | bluetooth/bluetooth.h 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] | 7505 | sys/endian.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7506 | do : | 
|  | 7507 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 7508 | 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] | 7509 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7510 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7511 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7512 | _ACEOF | 
|  | 7513 |  | 
|  | 7514 | fi | 
|  | 7515 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7516 | done | 
|  | 7517 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7518 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7519 | 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] | 7520 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 7521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
|  | 7522 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7523 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7524 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7525 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7527 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7528 | #include <sys/types.h> | 
|  | 7529 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7530 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7531 | int | 
|  | 7532 | main () | 
|  | 7533 | { | 
|  | 7534 | if ((DIR *) 0) | 
|  | 7535 | return 0; | 
|  | 7536 | ; | 
|  | 7537 | return 0; | 
|  | 7538 | } | 
|  | 7539 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7540 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7541 | eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7542 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7543 | eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7544 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7546 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7547 | eval ac_res=\$$as_ac_Header | 
|  | 7548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 7549 | $as_echo "$ac_res" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7550 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7551 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7552 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7553 | _ACEOF | 
|  | 7554 |  | 
|  | 7555 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7556 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7557 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7558 | done | 
|  | 7559 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 7560 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 7562 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7563 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7564 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7565 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7566 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7568 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7569 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7570 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7571 | Use char because int might match the return type of a GCC | 
|  | 7572 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7573 | #ifdef __cplusplus | 
|  | 7574 | extern "C" | 
|  | 7575 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7576 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7577 | int | 
|  | 7578 | main () | 
|  | 7579 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7580 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7581 | ; | 
|  | 7582 | return 0; | 
|  | 7583 | } | 
|  | 7584 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7585 | for ac_lib in '' dir; do | 
|  | 7586 | if test -z "$ac_lib"; then | 
|  | 7587 | ac_res="none required" | 
|  | 7588 | else | 
|  | 7589 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7590 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7591 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7592 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7593 | ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7594 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7595 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7596 | conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7597 | if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7598 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7599 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7600 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7601 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7602 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7603 | else | 
|  | 7604 | ac_cv_search_opendir=no | 
|  | 7605 | fi | 
|  | 7606 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7607 | LIBS=$ac_func_search_save_LIBS | 
|  | 7608 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 7610 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7611 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7612 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7613 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7614 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7615 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7616 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7617 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 7619 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7620 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7621 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7622 | else | 
|  | 7623 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7625 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7626 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7627 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7628 | Use char because int might match the return type of a GCC | 
|  | 7629 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7630 | #ifdef __cplusplus | 
|  | 7631 | extern "C" | 
|  | 7632 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7633 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7634 | int | 
|  | 7635 | main () | 
|  | 7636 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7637 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7638 | ; | 
|  | 7639 | return 0; | 
|  | 7640 | } | 
|  | 7641 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7642 | for ac_lib in '' x; do | 
|  | 7643 | if test -z "$ac_lib"; then | 
|  | 7644 | ac_res="none required" | 
|  | 7645 | else | 
|  | 7646 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7647 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7648 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7649 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7650 | ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7651 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7652 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7653 | conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7654 | if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7655 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7656 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7657 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7658 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7659 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7660 | else | 
|  | 7661 | ac_cv_search_opendir=no | 
|  | 7662 | fi | 
|  | 7663 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7664 | LIBS=$ac_func_search_save_LIBS | 
|  | 7665 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 7667 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7668 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7669 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7670 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7671 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7672 | fi | 
|  | 7673 |  | 
|  | 7674 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7675 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
|  | 7677 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7678 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7679 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7680 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7682 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7683 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7684 | int | 
|  | 7685 | main () | 
|  | 7686 | { | 
|  | 7687 | return makedev(0, 0); | 
|  | 7688 | ; | 
|  | 7689 | return 0; | 
|  | 7690 | } | 
|  | 7691 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7692 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7693 | ac_cv_header_sys_types_h_makedev=yes | 
|  | 7694 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7695 | ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7696 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7697 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7698 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7699 |  | 
|  | 7700 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
|  | 7702 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7703 |  | 
|  | 7704 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7705 | 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] | 7706 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7707 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7708 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7709 |  | 
|  | 7710 | fi | 
|  | 7711 |  | 
|  | 7712 |  | 
|  | 7713 |  | 
|  | 7714 | if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7715 | 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] | 7716 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7717 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7718 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7719 |  | 
|  | 7720 | fi | 
|  | 7721 |  | 
|  | 7722 |  | 
|  | 7723 | fi | 
|  | 7724 | fi | 
|  | 7725 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7726 |  | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7727 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. | 
|  | 7728 | for ac_header in net/if.h | 
|  | 7729 | do : | 
|  | 7730 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | 
|  | 7731 | #ifdef STDC_HEADERS | 
|  | 7732 | # include <stdlib.h> | 
|  | 7733 | # include <stddef.h> | 
|  | 7734 | #else | 
|  | 7735 | # ifdef HAVE_STDLIB_H | 
|  | 7736 | #  include <stdlib.h> | 
|  | 7737 | # endif | 
|  | 7738 | #endif | 
|  | 7739 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 7740 | # include <sys/socket.h> | 
|  | 7741 | #endif | 
|  | 7742 |  | 
|  | 7743 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7744 | if test "x$ac_cv_header_net_if_h" = xyes; then : | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7745 | cat >>confdefs.h <<_ACEOF | 
|  | 7746 | #define HAVE_NET_IF_H 1 | 
|  | 7747 | _ACEOF | 
|  | 7748 |  | 
|  | 7749 | fi | 
|  | 7750 |  | 
|  | 7751 | done | 
|  | 7752 |  | 
|  | 7753 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7754 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7755 | for ac_header in linux/netlink.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7756 | do : | 
|  | 7757 | 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] | 7758 | #ifdef HAVE_ASM_TYPES_H | 
|  | 7759 | #include <asm/types.h> | 
|  | 7760 | #endif | 
|  | 7761 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 7762 | #include <sys/socket.h> | 
|  | 7763 | #endif | 
|  | 7764 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7765 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7766 | 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] | 7767 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7768 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7769 | _ACEOF | 
|  | 7770 |  | 
|  | 7771 | fi | 
|  | 7772 |  | 
|  | 7773 | done | 
|  | 7774 |  | 
|  | 7775 |  | 
| Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 7776 | # 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] | 7777 | 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] | 7778 | do : | 
|  | 7779 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 7780 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | 
|  | 7781 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 7782 | #include <sys/socket.h> | 
|  | 7783 | #endif | 
|  | 7784 |  | 
|  | 7785 | " | 
|  | 7786 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
|  | 7787 | cat >>confdefs.h <<_ACEOF | 
|  | 7788 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 7789 | _ACEOF | 
|  | 7790 |  | 
|  | 7791 | fi | 
|  | 7792 |  | 
|  | 7793 | done | 
|  | 7794 |  | 
|  | 7795 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7796 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7797 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
|  | 7799 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
|  | 7800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7801 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7802 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7803 |  | 
|  | 7804 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7805 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7806 | $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7807 | was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7808 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7809 |  | 
|  | 7810 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7811 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7812 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7813 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7814 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7815 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7816 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 7818 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7819 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
|  | 7821 | $as_echo_n "checking for makedev... " >&6; } | 
|  | 7822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7823 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7824 |  | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 7825 | #if defined(MAJOR_IN_MKDEV) | 
|  | 7826 | #include <sys/mkdev.h> | 
|  | 7827 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 7828 | #include <sys/sysmacros.h> | 
|  | 7829 | #else | 
|  | 7830 | #include <sys/types.h> | 
|  | 7831 | #endif | 
|  | 7832 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7833 | int | 
|  | 7834 | main () | 
|  | 7835 | { | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 7836 |  | 
|  | 7837 | makedev(0, 0) | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7838 | ; | 
|  | 7839 | return 0; | 
|  | 7840 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7841 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7842 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7843 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7844 | ac_cv_has_makedev=yes | 
|  | 7845 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7846 | ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7847 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7848 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7849 | conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
|  | 7851 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7852 | if test "$ac_cv_has_makedev" = "yes"; then | 
|  | 7853 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7854 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7855 |  | 
|  | 7856 | fi | 
|  | 7857 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 7858 | # byte swapping | 
|  | 7859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 | 
|  | 7860 | $as_echo_n "checking for le64toh... " >&6; } | 
|  | 7861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7862 | /* end confdefs.h.  */ | 
|  | 7863 |  | 
|  | 7864 | #ifdef HAVE_ENDIAN_H | 
|  | 7865 | #include <endian.h> | 
|  | 7866 | #elif defined(HAVE_SYS_ENDIAN_H) | 
|  | 7867 | #include <sys/endian.h> | 
|  | 7868 | #endif | 
|  | 7869 |  | 
|  | 7870 | int | 
|  | 7871 | main () | 
|  | 7872 | { | 
|  | 7873 |  | 
|  | 7874 | le64toh(1) | 
|  | 7875 | ; | 
|  | 7876 | return 0; | 
|  | 7877 | } | 
|  | 7878 |  | 
|  | 7879 | _ACEOF | 
|  | 7880 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 7881 | ac_cv_has_le64toh=yes | 
|  | 7882 | else | 
|  | 7883 | ac_cv_has_le64toh=no | 
|  | 7884 | fi | 
|  | 7885 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7886 | conftest$ac_exeext conftest.$ac_ext | 
|  | 7887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 | 
|  | 7888 | $as_echo "$ac_cv_has_le64toh" >&6; } | 
|  | 7889 | if test "$ac_cv_has_le64toh" = "yes"; then | 
|  | 7890 |  | 
|  | 7891 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h | 
|  | 7892 |  | 
|  | 7893 | fi | 
|  | 7894 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7895 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
|  | 7896 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
|  | 7897 | # defined, but the compiler does not support pragma redefine_extname, | 
|  | 7898 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
|  | 7899 | # structures (such as rlimit64) without declaring them. As a | 
|  | 7900 | # work-around, disable LFS on such configurations | 
|  | 7901 |  | 
|  | 7902 | use_lfs=yes | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
|  | 7904 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
|  | 7905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7906 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7907 |  | 
|  | 7908 | #define _LARGEFILE_SOURCE 1 | 
|  | 7909 | #define _FILE_OFFSET_BITS 64 | 
|  | 7910 | #include <sys/resource.h> | 
|  | 7911 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7912 | int | 
|  | 7913 | main () | 
|  | 7914 | { | 
|  | 7915 | struct rlimit foo; | 
|  | 7916 | ; | 
|  | 7917 | return 0; | 
|  | 7918 | } | 
|  | 7919 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7920 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7921 | sol_lfs_bug=no | 
|  | 7922 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7923 | sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7924 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
|  | 7927 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7928 | if test "$sol_lfs_bug" = "yes"; then | 
|  | 7929 | use_lfs=no | 
|  | 7930 | fi | 
|  | 7931 |  | 
| doko@ubuntu.com | 006a56c | 2016-06-14 10:15:25 +0200 | [diff] [blame] | 7932 | # Don't use largefile support for GNU/Hurd | 
|  | 7933 | case $ac_sys_system in GNU*) | 
|  | 7934 | use_lfs=no | 
|  | 7935 | esac | 
|  | 7936 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7937 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7938 | # Two defines needed to enable largefile support on various platforms | 
|  | 7939 | # These may affect some typedefs | 
| Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 7940 | case $ac_sys_system/$ac_sys_release in | 
|  | 7941 | AIX*) | 
|  | 7942 |  | 
|  | 7943 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
|  | 7944 |  | 
|  | 7945 | ;; | 
|  | 7946 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7947 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7948 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7949 |  | 
|  | 7950 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7951 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7952 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7953 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7954 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 7955 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
|  | 7956 | cat >> confdefs.h <<\EOF | 
|  | 7957 | #if defined(SCO_DS) | 
|  | 7958 | #undef _OFF_T | 
|  | 7959 | #endif | 
|  | 7960 | EOF | 
|  | 7961 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7962 | # Type availability checks | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7963 | 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] | 7964 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7965 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7966 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7967 |  | 
|  | 7968 | cat >>confdefs.h <<_ACEOF | 
|  | 7969 | #define mode_t int | 
|  | 7970 | _ACEOF | 
|  | 7971 |  | 
|  | 7972 | fi | 
|  | 7973 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7974 | 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] | 7975 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7976 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7977 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7978 |  | 
|  | 7979 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7980 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7981 | _ACEOF | 
|  | 7982 |  | 
|  | 7983 | fi | 
|  | 7984 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7985 | 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] | 7986 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7987 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7988 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7989 |  | 
|  | 7990 | cat >>confdefs.h <<_ACEOF | 
|  | 7991 | #define pid_t int | 
|  | 7992 | _ACEOF | 
|  | 7993 |  | 
|  | 7994 | fi | 
|  | 7995 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7996 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7997 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 7998 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7999 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8000 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8001 | 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] | 8002 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8003 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8004 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8005 |  | 
|  | 8006 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8007 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8008 | _ACEOF | 
|  | 8009 |  | 
|  | 8010 | fi | 
|  | 8011 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
|  | 8013 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8014 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8015 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8016 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8018 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8019 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8020 |  | 
|  | 8021 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8022 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8023 | $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8024 | ac_cv_type_uid_t=yes | 
|  | 8025 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8026 | ac_cv_type_uid_t=no | 
|  | 8027 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8028 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8029 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8030 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
|  | 8032 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8033 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8034 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8035 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8036 |  | 
|  | 8037 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8038 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8039 |  | 
|  | 8040 | fi | 
|  | 8041 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8042 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8043 | 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] | 8044 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8045 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8046 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8047 |  | 
|  | 8048 | fi | 
|  | 8049 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8050 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" | 
|  | 8051 | if test "x$ac_cv_type___uint128_t" = xyes; then : | 
|  | 8052 |  | 
|  | 8053 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h | 
|  | 8054 |  | 
|  | 8055 | fi | 
|  | 8056 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8057 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8058 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8059 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8060 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8061 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8062 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8063 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
|  | 8065 | $as_echo_n "checking size of int... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8066 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8067 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8068 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8069 | 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] | 8070 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8071 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8072 | if test "$ac_cv_type_int" = yes; then | 
|  | 8073 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8074 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8075 | as_fn_error 77 "cannot compute sizeof (int) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8076 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8077 | else | 
|  | 8078 | ac_cv_sizeof_int=0 | 
|  | 8079 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8080 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8081 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8082 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
|  | 8084 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8085 |  | 
|  | 8086 |  | 
|  | 8087 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8088 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8089 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8090 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8091 |  | 
|  | 8092 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8093 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8094 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8095 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8096 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
|  | 8098 | $as_echo_n "checking size of long... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8099 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8100 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8101 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8102 | 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] | 8103 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8104 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8105 | if test "$ac_cv_type_long" = yes; then | 
|  | 8106 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8107 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8108 | as_fn_error 77 "cannot compute sizeof (long) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8109 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8110 | else | 
|  | 8111 | ac_cv_sizeof_long=0 | 
|  | 8112 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8113 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8114 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8115 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
|  | 8117 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8118 |  | 
|  | 8119 |  | 
|  | 8120 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8121 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8122 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8123 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8124 |  | 
|  | 8125 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8126 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8127 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8128 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8129 | # This bug is HP SR number 8606223364. | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
|  | 8131 | $as_echo_n "checking size of long long... " >&6; } | 
|  | 8132 | if ${ac_cv_sizeof_long_long+:} false; then : | 
|  | 8133 | $as_echo_n "(cached) " >&6 | 
|  | 8134 | else | 
|  | 8135 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then : | 
|  | 8136 |  | 
|  | 8137 | else | 
|  | 8138 | if test "$ac_cv_type_long_long" = yes; then | 
|  | 8139 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8140 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 8141 | as_fn_error 77 "cannot compute sizeof (long long) | 
|  | 8142 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 8143 | else | 
|  | 8144 | ac_cv_sizeof_long_long=0 | 
|  | 8145 | fi | 
|  | 8146 | fi | 
|  | 8147 |  | 
|  | 8148 | fi | 
|  | 8149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
|  | 8150 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
|  | 8151 |  | 
|  | 8152 |  | 
|  | 8153 |  | 
|  | 8154 | cat >>confdefs.h <<_ACEOF | 
|  | 8155 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
|  | 8156 | _ACEOF | 
|  | 8157 |  | 
|  | 8158 |  | 
|  | 8159 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8160 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8161 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8162 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
|  | 8164 | $as_echo_n "checking size of void *... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8165 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8166 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8167 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8168 | 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] | 8169 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8170 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8171 | if test "$ac_cv_type_void_p" = yes; then | 
|  | 8172 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8173 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8174 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8175 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8176 | else | 
|  | 8177 | ac_cv_sizeof_void_p=0 | 
|  | 8178 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8180 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8181 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
|  | 8183 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8184 |  | 
|  | 8185 |  | 
|  | 8186 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8187 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8188 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8189 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8190 |  | 
|  | 8191 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8192 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8193 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8194 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8195 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
|  | 8197 | $as_echo_n "checking size of short... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8198 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8199 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8200 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8201 | 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] | 8202 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8203 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8204 | if test "$ac_cv_type_short" = yes; then | 
|  | 8205 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8206 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8207 | as_fn_error 77 "cannot compute sizeof (short) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8208 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8209 | else | 
|  | 8210 | ac_cv_sizeof_short=0 | 
|  | 8211 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8212 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8213 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8214 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
|  | 8216 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8217 |  | 
|  | 8218 |  | 
|  | 8219 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8220 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8221 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8222 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8223 |  | 
|  | 8224 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8225 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8226 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8227 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8228 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
|  | 8230 | $as_echo_n "checking size of float... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8231 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8232 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8233 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8234 | 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] | 8235 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8236 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8237 | if test "$ac_cv_type_float" = yes; then | 
|  | 8238 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8239 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8240 | as_fn_error 77 "cannot compute sizeof (float) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8241 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8242 | else | 
|  | 8243 | ac_cv_sizeof_float=0 | 
|  | 8244 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8245 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8246 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8247 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
|  | 8249 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8250 |  | 
|  | 8251 |  | 
|  | 8252 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8253 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8254 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8255 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8256 |  | 
|  | 8257 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8258 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8259 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8260 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8261 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
|  | 8263 | $as_echo_n "checking size of double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8264 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8265 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8266 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8267 | 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] | 8268 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8269 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8270 | if test "$ac_cv_type_double" = yes; then | 
|  | 8271 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8272 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8273 | as_fn_error 77 "cannot compute sizeof (double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8274 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8275 | else | 
|  | 8276 | ac_cv_sizeof_double=0 | 
|  | 8277 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8278 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8279 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8280 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
|  | 8282 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8283 |  | 
|  | 8284 |  | 
|  | 8285 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8287 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8288 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8289 |  | 
|  | 8290 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8291 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8292 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8293 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8294 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
|  | 8296 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8297 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8298 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8299 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8300 | 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] | 8301 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8302 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8303 | if test "$ac_cv_type_fpos_t" = yes; then | 
|  | 8304 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8305 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8306 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8307 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8308 | else | 
|  | 8309 | ac_cv_sizeof_fpos_t=0 | 
|  | 8310 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8311 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8312 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8313 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
|  | 8315 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8316 |  | 
|  | 8317 |  | 
|  | 8318 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8319 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8320 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8321 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8322 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8323 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8324 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8325 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8326 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8327 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
|  | 8329 | $as_echo_n "checking size of size_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8330 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8331 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8332 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8333 | 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] | 8334 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8335 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8336 | if test "$ac_cv_type_size_t" = yes; then | 
|  | 8337 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8338 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8339 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8340 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8341 | else | 
|  | 8342 | ac_cv_sizeof_size_t=0 | 
|  | 8343 | fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8344 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8345 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8346 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
|  | 8348 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8349 |  | 
|  | 8350 |  | 
|  | 8351 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8352 | cat >>confdefs.h <<_ACEOF | 
|  | 8353 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
|  | 8354 | _ACEOF | 
|  | 8355 |  | 
|  | 8356 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8357 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8358 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8359 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8360 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
|  | 8362 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8363 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8364 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8365 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8366 | 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] | 8367 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8368 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8369 | if test "$ac_cv_type_pid_t" = yes; then | 
|  | 8370 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8371 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8372 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8373 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8374 | else | 
|  | 8375 | ac_cv_sizeof_pid_t=0 | 
|  | 8376 | fi | 
|  | 8377 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8378 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8379 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
|  | 8381 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8382 |  | 
|  | 8383 |  | 
|  | 8384 |  | 
|  | 8385 | cat >>confdefs.h <<_ACEOF | 
|  | 8386 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
|  | 8387 | _ACEOF | 
|  | 8388 |  | 
|  | 8389 |  | 
| Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 8390 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8391 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8392 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8393 | # This bug is HP SR number 8606223364. | 
|  | 8394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
|  | 8395 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
|  | 8396 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
|  | 8397 | $as_echo_n "(cached) " >&6 | 
|  | 8398 | else | 
|  | 8399 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t"        "$ac_includes_default"; then : | 
|  | 8400 |  | 
|  | 8401 | else | 
|  | 8402 | if test "$ac_cv_type_uintptr_t" = yes; then | 
|  | 8403 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8404 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 8405 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
|  | 8406 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 8407 | else | 
|  | 8408 | ac_cv_sizeof_uintptr_t=0 | 
|  | 8409 | fi | 
|  | 8410 | fi | 
|  | 8411 |  | 
|  | 8412 | fi | 
|  | 8413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
|  | 8414 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
|  | 8415 |  | 
|  | 8416 |  | 
|  | 8417 |  | 
|  | 8418 | cat >>confdefs.h <<_ACEOF | 
|  | 8419 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
|  | 8420 | _ACEOF | 
|  | 8421 |  | 
|  | 8422 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8423 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
|  | 8425 | $as_echo_n "checking for long double support... " >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8426 | have_long_double=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8428 | /* end confdefs.h.  */ | 
|  | 8429 |  | 
|  | 8430 | int | 
|  | 8431 | main () | 
|  | 8432 | { | 
|  | 8433 | long double x; x = (long double)0; | 
|  | 8434 | ; | 
|  | 8435 | return 0; | 
|  | 8436 | } | 
|  | 8437 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8438 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8439 |  | 
|  | 8440 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8441 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8442 |  | 
|  | 8443 | have_long_double=yes | 
|  | 8444 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8445 | fi | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
|  | 8448 | $as_echo "$have_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8449 | if test "$have_long_double" = yes ; then | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8450 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8451 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8452 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8453 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
|  | 8455 | $as_echo_n "checking size of long double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8456 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8457 | $as_echo_n "(cached) " >&6 | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8458 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8459 | 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] | 8460 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8461 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8462 | if test "$ac_cv_type_long_double" = yes; then | 
|  | 8463 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8464 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8465 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8466 | See \`config.log' for more details" "$LINENO" 5; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8467 | else | 
|  | 8468 | ac_cv_sizeof_long_double=0 | 
|  | 8469 | fi | 
|  | 8470 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8471 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8472 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
|  | 8474 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8475 |  | 
|  | 8476 |  | 
|  | 8477 |  | 
|  | 8478 | cat >>confdefs.h <<_ACEOF | 
|  | 8479 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
|  | 8480 | _ACEOF | 
|  | 8481 |  | 
|  | 8482 |  | 
|  | 8483 | fi | 
|  | 8484 |  | 
|  | 8485 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
|  | 8487 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8488 | have_c99_bool=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8490 | /* end confdefs.h.  */ | 
|  | 8491 |  | 
|  | 8492 | int | 
|  | 8493 | main () | 
|  | 8494 | { | 
|  | 8495 | _Bool x; x = (_Bool)0; | 
|  | 8496 | ; | 
|  | 8497 | return 0; | 
|  | 8498 | } | 
|  | 8499 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8500 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8501 |  | 
|  | 8502 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8503 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8504 |  | 
|  | 8505 | have_c99_bool=yes | 
|  | 8506 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8507 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
|  | 8510 | $as_echo "$have_c99_bool" >&6; } | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8511 | if test "$have_c99_bool" = yes ; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8512 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8513 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8514 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8515 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
|  | 8517 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8518 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8519 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8520 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8521 | 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] | 8522 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8523 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8524 | if test "$ac_cv_type__Bool" = yes; then | 
|  | 8525 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8526 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8527 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8528 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8529 | else | 
|  | 8530 | ac_cv_sizeof__Bool=0 | 
|  | 8531 | fi | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8532 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8533 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8534 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
|  | 8536 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8537 |  | 
|  | 8538 |  | 
|  | 8539 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8540 | cat >>confdefs.h <<_ACEOF | 
|  | 8541 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
|  | 8542 | _ACEOF | 
|  | 8543 |  | 
|  | 8544 |  | 
|  | 8545 | fi | 
|  | 8546 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8547 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8548 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8549 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8550 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
|  | 8552 | $as_echo_n "checking size of off_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8553 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8554 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8555 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8556 | 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] | 8557 | #ifdef HAVE_SYS_TYPES_H | 
|  | 8558 | #include <sys/types.h> | 
|  | 8559 | #endif | 
|  | 8560 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8561 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8562 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8563 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8564 | if test "$ac_cv_type_off_t" = yes; then | 
|  | 8565 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8566 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8567 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8568 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8569 | else | 
|  | 8570 | ac_cv_sizeof_off_t=0 | 
|  | 8571 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8572 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8573 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8574 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
|  | 8576 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8577 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8578 |  | 
|  | 8579 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8580 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8581 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8582 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8583 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8584 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8585 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
|  | 8587 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8588 | 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] | 8589 | "$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] | 8590 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8591 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8592 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 8594 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8595 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8597 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8598 | fi | 
|  | 8599 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8600 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8601 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8602 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8603 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
|  | 8605 | $as_echo_n "checking size of time_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8606 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8607 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8608 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8609 | 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] | 8610 | #ifdef HAVE_SYS_TYPES_H | 
|  | 8611 | #include <sys/types.h> | 
|  | 8612 | #endif | 
|  | 8613 | #ifdef HAVE_TIME_H | 
|  | 8614 | #include <time.h> | 
|  | 8615 | #endif | 
|  | 8616 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8617 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8618 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8619 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8620 | if test "$ac_cv_type_time_t" = yes; then | 
|  | 8621 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8622 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8623 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8624 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8625 | else | 
|  | 8626 | ac_cv_sizeof_time_t=0 | 
|  | 8627 | fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8628 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8629 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8630 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
|  | 8632 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8633 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8634 |  | 
|  | 8635 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8636 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8637 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8638 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8639 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8640 |  | 
|  | 8641 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8642 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8643 | ac_save_cc="$CC" | 
|  | 8644 | if test "$ac_cv_kpthread" = "yes" | 
|  | 8645 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8646 | elif test "$ac_cv_kthread" = "yes" | 
|  | 8647 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8648 | elif test "$ac_cv_pthread" = "yes" | 
|  | 8649 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8650 | fi | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8651 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
|  | 8653 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8654 | have_pthread_t=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8656 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8657 |  | 
|  | 8658 | #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8659 | int | 
|  | 8660 | main () | 
|  | 8661 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8662 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8663 | ; | 
|  | 8664 | return 0; | 
|  | 8665 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8666 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8668 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8669 | have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8670 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
|  | 8673 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8674 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8675 | # 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] | 8676 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8677 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8678 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
|  | 8680 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8681 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8682 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8683 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8684 | 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] | 8685 | #ifdef HAVE_PTHREAD_H | 
|  | 8686 | #include <pthread.h> | 
|  | 8687 | #endif | 
|  | 8688 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8689 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8690 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8691 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8692 | if test "$ac_cv_type_pthread_t" = yes; then | 
|  | 8693 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8694 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8695 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8696 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8697 | else | 
|  | 8698 | ac_cv_sizeof_pthread_t=0 | 
|  | 8699 | fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8700 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8701 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8702 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
|  | 8704 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8705 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8706 |  | 
|  | 8707 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8708 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8709 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8710 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8711 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8712 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8713 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8714 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8715 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8716 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8717 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8718 | Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8719 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
|  | 8720 | ;; | 
|  | 8721 | Darwin/*) | 
|  | 8722 | OTHER_LIBTOOL_OPT="" | 
|  | 8723 | ;; | 
|  | 8724 | esac | 
|  | 8725 |  | 
|  | 8726 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8727 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8728 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8729 | Darwin/[01567]\..*) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8730 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
|  | 8731 | if test "${enable_universalsdk}"; then | 
|  | 8732 | : | 
|  | 8733 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8734 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8735 | fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8736 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8737 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8738 | Darwin/*) | 
| Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 8739 | gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8740 | if test ${gcc_version} '<' 4.0 | 
|  | 8741 | then | 
|  | 8742 | LIBTOOL_CRUFT="-lcc_dynamic" | 
|  | 8743 | else | 
|  | 8744 | LIBTOOL_CRUFT="" | 
|  | 8745 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8746 | if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8747 | ac_osx_32bit=yes | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8748 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8750 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8751 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8752 | #include <unistd.h> | 
|  | 8753 | int main(int argc, char*argv[]) | 
|  | 8754 | { | 
|  | 8755 | if (sizeof(long) == 4) { | 
|  | 8756 | return 0; | 
|  | 8757 | } else { | 
|  | 8758 | return 1; | 
|  | 8759 | } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8760 | } | 
|  | 8761 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8762 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8763 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8764 | ac_osx_32bit=yes | 
|  | 8765 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8766 | ac_osx_32bit=no | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8767 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8768 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 8769 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8770 | fi | 
|  | 8771 |  | 
|  | 8772 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8773 | if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8774 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8775 | i386) | 
|  | 8776 | MACOSX_DEFAULT_ARCH="i386" | 
|  | 8777 | ;; | 
|  | 8778 | ppc) | 
|  | 8779 | MACOSX_DEFAULT_ARCH="ppc" | 
|  | 8780 | ;; | 
|  | 8781 | *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8782 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8783 | ;; | 
|  | 8784 | esac | 
|  | 8785 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8786 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8787 | i386) | 
|  | 8788 | MACOSX_DEFAULT_ARCH="x86_64" | 
|  | 8789 | ;; | 
|  | 8790 | ppc) | 
|  | 8791 | MACOSX_DEFAULT_ARCH="ppc64" | 
|  | 8792 | ;; | 
|  | 8793 | *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8794 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8795 | ;; | 
|  | 8796 | esac | 
|  | 8797 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8798 | fi | 
|  | 8799 |  | 
|  | 8800 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8801 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8802 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8803 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
|  | 8805 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8806 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8807 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8808 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8809 | # -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8810 | # in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8811 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8812 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8813 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 8815 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 8816 | if test $enable_shared = "yes" | 
|  | 8817 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8818 | 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] | 8819 | fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8820 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8822 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8823 | fi | 
|  | 8824 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
|  | 8826 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8827 | case $ac_sys_system/$ac_sys_release in | 
|  | 8828 | Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8829 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8830 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8831 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
|  | 8833 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8834 | ;; | 
|  | 8835 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8837 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8838 | ;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8839 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8840 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8841 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8842 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8843 |  | 
|  | 8844 |  | 
|  | 8845 |  | 
|  | 8846 |  | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8847 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8848 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 8849 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) | 
|  | 8850 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
|  | 8851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 | 
|  | 8852 | $as_echo_n "checking the extension of shared libraries... " >&6; } | 
|  | 8853 | if test -z "$SHLIB_SUFFIX"; then | 
|  | 8854 | case $ac_sys_system in | 
|  | 8855 | hp*|HP*) | 
|  | 8856 | case `uname -m` in | 
|  | 8857 | ia64) SHLIB_SUFFIX=.so;; | 
|  | 8858 | *)    SHLIB_SUFFIX=.sl;; | 
|  | 8859 | esac | 
|  | 8860 | ;; | 
|  | 8861 | CYGWIN*)   SHLIB_SUFFIX=.dll;; | 
|  | 8862 | *)	   SHLIB_SUFFIX=.so;; | 
|  | 8863 | esac | 
|  | 8864 | fi | 
|  | 8865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 | 
|  | 8866 | $as_echo "$SHLIB_SUFFIX" >&6; } | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8867 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8868 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 8869 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8870 | # (Shared libraries in this instance are shared modules to be loaded into | 
|  | 8871 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
|  | 8873 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8874 | if test -z "$LDSHARED" | 
|  | 8875 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8876 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8877 | AIX*) | 
| Georg Brandl | 9a829be | 2011-02-15 15:44:51 +0000 | [diff] [blame] | 8878 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp" | 
| Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 8879 | LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8880 | ;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8881 | IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8882 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8883 | SunOS/5*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8884 | if test "$GCC" = "yes" ; then | 
|  | 8885 | LDSHARED='$(CC) -shared' | 
|  | 8886 | LDCXXSHARED='$(CXX) -shared' | 
|  | 8887 | else | 
|  | 8888 | LDSHARED='$(CC) -G' | 
|  | 8889 | LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8890 | fi ;; | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 8891 | hp*|HP*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8892 | if test "$GCC" = "yes" ; then | 
|  | 8893 | LDSHARED='$(CC) -shared' | 
|  | 8894 | LDCXXSHARED='$(CXX) -shared' | 
|  | 8895 | else | 
|  | 8896 | LDSHARED='ld -b' | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 8897 | fi ;; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8898 | Darwin/1.3*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8899 | LDSHARED='$(CC) -bundle' | 
|  | 8900 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8901 | if test "$enable_framework" ; then | 
|  | 8902 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8903 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 8904 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8905 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8906 | else | 
|  | 8907 | # No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8908 | LDSHARED="$LDSHARED -undefined suppress" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8909 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8910 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8911 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8912 | LDSHARED='$(CC) -bundle' | 
|  | 8913 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8914 | if test "$enable_framework" ; then | 
|  | 8915 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8916 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 8917 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8918 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8919 | else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8920 | # No framework, use the Python app as bundle-loader | 
|  | 8921 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 8922 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8923 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8924 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8925 | Darwin/*) | 
|  | 8926 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
|  | 8927 | # This allows an extension to be used in any Python | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 8928 |  | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 8929 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
|  | 8930 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
|  | 8931 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
|  | 8932 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
|  | 8933 | if test ${dep_target_major} -eq 10 && \ | 
|  | 8934 | test ${dep_target_minor} -le 2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8935 | then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 8936 | # building for OS X 10.0 through 10.2 | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8937 | LDSHARED='$(CC) -bundle' | 
|  | 8938 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8939 | if test "$enable_framework" ; then | 
|  | 8940 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 8941 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 8942 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8943 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8944 | else | 
|  | 8945 | # No framework, use the Python app as bundle-loader | 
|  | 8946 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
|  | 8947 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8948 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8949 | fi | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 8950 | else | 
|  | 8951 | # building for OS X 10.3 and later | 
|  | 8952 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
|  | 8953 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
|  | 8954 | BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 8955 | fi | 
|  | 8956 | ;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8957 | Linux*|GNU*|QNX*) | 
|  | 8958 | LDSHARED='$(CC) -shared' | 
|  | 8959 | LDCXXSHARED='$(CXX) -shared';; | 
|  | 8960 | BSD/OS*/4*) | 
|  | 8961 | LDSHARED="gcc -shared" | 
|  | 8962 | LDCXXSHARED="g++ -shared";; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8963 | FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8964 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8965 | then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8966 | LDSHARED='$(CC) -shared' | 
|  | 8967 | LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8968 | else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8969 | LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8970 | fi;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8971 | OpenBSD*) | 
|  | 8972 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 8973 | then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8974 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 8975 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8976 | else | 
|  | 8977 | case `uname -r` in | 
|  | 8978 | [01].* | 2.[0-7] | 2.[0-7].*) | 
|  | 8979 | LDSHARED="ld -Bshareable ${LDFLAGS}" | 
|  | 8980 | ;; | 
|  | 8981 | *) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 8982 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 8983 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8984 | ;; | 
|  | 8985 | esac | 
|  | 8986 | fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8987 | NetBSD*|DragonFly*) | 
| Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 8988 | LDSHARED='$(CC) -shared' | 
|  | 8989 | LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8990 | OpenUNIX*|UnixWare*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8991 | if test "$GCC" = "yes" ; then | 
|  | 8992 | LDSHARED='$(CC) -shared' | 
|  | 8993 | LDCXXSHARED='$(CXX) -shared' | 
|  | 8994 | else | 
|  | 8995 | LDSHARED='$(CC) -G' | 
|  | 8996 | LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8997 | fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 8998 | SCO_SV*) | 
|  | 8999 | LDSHARED='$(CC) -Wl,-G,-Bexport' | 
|  | 9000 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
|  | 9001 | CYGWIN*) | 
|  | 9002 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
|  | 9003 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9004 | *)	LDSHARED="ld";; | 
|  | 9005 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9006 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
|  | 9008 | $as_echo "$LDSHARED" >&6; } | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9009 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9010 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9011 | # 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] | 9012 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
|  | 9014 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9015 | if test -z "$CCSHARED" | 
|  | 9016 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9017 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9018 | SunOS*) if test "$GCC" = yes; | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9019 | then CCSHARED="-fPIC"; | 
|  | 9020 | elif test `uname -p` = sparc; | 
|  | 9021 | then CCSHARED="-xcode=pic32"; | 
|  | 9022 | else CCSHARED="-Kpic"; | 
|  | 9023 | fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9024 | hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9025 | then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9026 | else CCSHARED="+z"; | 
|  | 9027 | fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9028 | Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9029 | BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9030 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9031 | OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9032 | if test "$GCC" = "yes" | 
|  | 9033 | then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9034 | else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9035 | fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9036 | SCO_SV*) | 
|  | 9037 | if test "$GCC" = "yes" | 
|  | 9038 | then CCSHARED="-fPIC" | 
|  | 9039 | else CCSHARED="-Kpic -belf" | 
|  | 9040 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9041 | IRIX*/6*)  case $CC in | 
|  | 9042 | *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9043 | *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9044 | esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9045 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9046 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
|  | 9048 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9049 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9050 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
|  | 9052 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9053 | if test -z "$LINKFORSHARED" | 
|  | 9054 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9055 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9056 | AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9057 | hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9058 | LINKFORSHARED="-Wl,-E -Wl,+s";; | 
|  | 9059 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9060 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9061 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9062 | # -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9063 | Darwin/*) | 
| Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9064 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" | 
| Łukasz Langa | 335ab5b | 2013-05-30 20:58:53 +0200 | [diff] [blame] | 9065 |  | 
|  | 9066 | # Issue #18075: the default maximum stack size (8MBytes) is too | 
|  | 9067 | # small for the default recursion limit. Increase the stack size | 
|  | 9068 | # to ensure that tests don't crash | 
|  | 9069 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" | 
|  | 9070 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9071 | if test "$enable_framework" | 
|  | 9072 | then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9073 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9074 | fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9075 | LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9076 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9077 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9078 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9079 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9080 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 9081 | then | 
|  | 9082 | LINKFORSHARED="-Wl,--export-dynamic" | 
|  | 9083 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9084 | SunOS/5*) case $CC in | 
|  | 9085 | *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9086 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9087 | then | 
|  | 9088 | LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9089 | fi;; | 
|  | 9090 | esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9091 | CYGWIN*) | 
|  | 9092 | if test $enable_shared = "no" | 
|  | 9093 | then | 
|  | 9094 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
|  | 9095 | fi;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9096 | QNX*) | 
|  | 9097 | # -Wl,-E causes the symbols to be added to the dynamic | 
|  | 9098 | # symbol table so that they can be found when a module | 
|  | 9099 | # is loaded.  -N 2048K causes the stack size to be set | 
|  | 9100 | # to 2048 kilobytes so that the stack doesn't overflow | 
|  | 9101 | # when running test_compile.py. | 
|  | 9102 | LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9103 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9104 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
|  | 9106 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9107 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9108 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9109 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
|  | 9111 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9112 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
|  | 9113 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9114 | case $ac_sys_system in | 
|  | 9115 | CYGWIN*) | 
|  | 9116 | # Cygwin needs CCSHARED when building extension DLLs | 
|  | 9117 | # but not when building the interpreter DLL. | 
|  | 9118 | CFLAGSFORSHARED='';; | 
|  | 9119 | *) | 
|  | 9120 | CFLAGSFORSHARED='$(CCSHARED)' | 
|  | 9121 | esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9122 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
|  | 9124 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9125 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9126 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
|  | 9127 | # library (with --enable-shared). | 
|  | 9128 | # 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] | 9129 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
|  | 9130 | # if it is not required, since it creates a dependency of the shared library | 
|  | 9131 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
|  | 9132 | # don't need to link LIBS explicitly. The default should be only changed | 
|  | 9133 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9134 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
|  | 9136 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9137 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9138 | *) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9139 | SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9140 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
|  | 9142 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9143 |  | 
|  | 9144 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9145 | # checks for libraries | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 | 
|  | 9147 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9148 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9149 | $as_echo_n "(cached) " >&6 | 
|  | 9150 | else | 
|  | 9151 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9152 | LIBS="-lsendfile  $LIBS" | 
|  | 9153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9154 | /* end confdefs.h.  */ | 
|  | 9155 |  | 
|  | 9156 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9157 | Use char because int might match the return type of a GCC | 
|  | 9158 | builtin and then its argument prototype would still apply.  */ | 
|  | 9159 | #ifdef __cplusplus | 
|  | 9160 | extern "C" | 
|  | 9161 | #endif | 
|  | 9162 | char sendfile (); | 
|  | 9163 | int | 
|  | 9164 | main () | 
|  | 9165 | { | 
|  | 9166 | return sendfile (); | 
|  | 9167 | ; | 
|  | 9168 | return 0; | 
|  | 9169 | } | 
|  | 9170 | _ACEOF | 
|  | 9171 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 9172 | ac_cv_lib_sendfile_sendfile=yes | 
|  | 9173 | else | 
|  | 9174 | ac_cv_lib_sendfile_sendfile=no | 
|  | 9175 | fi | 
|  | 9176 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9177 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9178 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9179 | fi | 
|  | 9180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 | 
|  | 9181 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9182 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9183 | cat >>confdefs.h <<_ACEOF | 
|  | 9184 | #define HAVE_LIBSENDFILE 1 | 
|  | 9185 | _ACEOF | 
|  | 9186 |  | 
|  | 9187 | LIBS="-lsendfile $LIBS" | 
|  | 9188 |  | 
|  | 9189 | fi | 
|  | 9190 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
|  | 9192 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9193 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9194 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9195 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9196 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9197 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9199 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9200 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9201 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9202 | Use char because int might match the return type of a GCC | 
|  | 9203 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9204 | #ifdef __cplusplus | 
|  | 9205 | extern "C" | 
|  | 9206 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9207 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9208 | int | 
|  | 9209 | main () | 
|  | 9210 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9211 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9212 | ; | 
|  | 9213 | return 0; | 
|  | 9214 | } | 
|  | 9215 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9216 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9217 | ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9218 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9219 | ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9220 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9221 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9222 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9223 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9224 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 9226 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9227 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9228 | cat >>confdefs.h <<_ACEOF | 
|  | 9229 | #define HAVE_LIBDL 1 | 
|  | 9230 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9231 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9232 | LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9233 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9234 | fi | 
|  | 9235 | # Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
|  | 9237 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9238 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9239 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9240 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9241 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9242 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9244 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9245 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9246 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9247 | Use char because int might match the return type of a GCC | 
|  | 9248 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9249 | #ifdef __cplusplus | 
|  | 9250 | extern "C" | 
|  | 9251 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9252 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9253 | int | 
|  | 9254 | main () | 
|  | 9255 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9256 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9257 | ; | 
|  | 9258 | return 0; | 
|  | 9259 | } | 
|  | 9260 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9261 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9262 | ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9263 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9264 | ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9265 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9266 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9267 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9268 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9269 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 9271 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9272 | 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] | 9273 | cat >>confdefs.h <<_ACEOF | 
|  | 9274 | #define HAVE_LIBDLD 1 | 
|  | 9275 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9276 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9277 | LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9278 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9279 | fi | 
|  | 9280 | # Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9281 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 9282 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9283 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
|  | 9285 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9286 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9287 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9288 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9289 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9291 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9292 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9293 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9294 | Use char because int might match the return type of a GCC | 
|  | 9295 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9296 | #ifdef __cplusplus | 
|  | 9297 | extern "C" | 
|  | 9298 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9299 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9300 | int | 
|  | 9301 | main () | 
|  | 9302 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9303 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9304 | ; | 
|  | 9305 | return 0; | 
|  | 9306 | } | 
|  | 9307 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9308 | for ac_lib in '' pthread rt posix4; do | 
|  | 9309 | if test -z "$ac_lib"; then | 
|  | 9310 | ac_res="none required" | 
|  | 9311 | else | 
|  | 9312 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9313 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9314 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9315 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9316 | ac_cv_search_sem_init=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9317 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9318 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9319 | conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9320 | if ${ac_cv_search_sem_init+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9321 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9322 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9323 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9324 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9325 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9326 | else | 
|  | 9327 | ac_cv_search_sem_init=no | 
|  | 9328 | fi | 
|  | 9329 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9330 | LIBS=$ac_func_search_save_LIBS | 
|  | 9331 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
|  | 9333 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9334 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9335 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9336 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9337 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9338 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9339 | # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9340 | # posix4 on Solaris 2.6 | 
|  | 9341 | # pthread (first!) on Linux | 
|  | 9342 | fi | 
|  | 9343 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9344 | # check if we need libintl for locale functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
|  | 9346 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9347 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9348 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9349 | else | 
|  | 9350 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9351 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9353 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9354 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9355 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9356 | Use char because int might match the return type of a GCC | 
|  | 9357 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9358 | #ifdef __cplusplus | 
|  | 9359 | extern "C" | 
|  | 9360 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9361 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9362 | int | 
|  | 9363 | main () | 
|  | 9364 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9365 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9366 | ; | 
|  | 9367 | return 0; | 
|  | 9368 | } | 
|  | 9369 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9370 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9371 | ac_cv_lib_intl_textdomain=yes | 
|  | 9372 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9373 | ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9374 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9375 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9376 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9377 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9378 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
|  | 9380 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9381 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9382 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9383 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9384 |  | 
| Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 9385 | LIBS="-lintl $LIBS" | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9386 | fi | 
|  | 9387 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9388 |  | 
|  | 9389 | # checks for system dependent C++ extensions support | 
|  | 9390 | case "$ac_sys_system" in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9391 | AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
|  | 9392 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
|  | 9393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9394 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9395 |  | 
| Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 9396 | #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9397 | int | 
|  | 9398 | main () | 
|  | 9399 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9400 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9401 | ; | 
|  | 9402 | return 0; | 
|  | 9403 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9404 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9405 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9406 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9407 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9408 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9409 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9410 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9412 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9413 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9414 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9415 |  | 
|  | 9416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9417 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9418 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9419 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9420 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9421 | conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9422 | *) ;; | 
|  | 9423 | esac | 
|  | 9424 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9425 | # check for systems that require aligned memory access | 
|  | 9426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 | 
|  | 9427 | $as_echo_n "checking aligned memory access is required... " >&6; } | 
|  | 9428 | if test "$cross_compiling" = yes; then : | 
|  | 9429 | aligned_required=yes | 
|  | 9430 | else | 
|  | 9431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9432 | /* end confdefs.h.  */ | 
|  | 9433 |  | 
|  | 9434 | int main() | 
|  | 9435 | { | 
|  | 9436 | char s[16]; | 
|  | 9437 | int i, *p1, *p2; | 
|  | 9438 | for (i=0; i < 16; i++) | 
|  | 9439 | s[i] = i; | 
|  | 9440 | p1 = (int*)(s+1); | 
|  | 9441 | p2 = (int*)(s+2); | 
|  | 9442 | if (*p1 == *p2) | 
|  | 9443 | return 1; | 
|  | 9444 | return 0; | 
|  | 9445 | } | 
|  | 9446 |  | 
|  | 9447 | _ACEOF | 
|  | 9448 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 9449 | aligned_required=no | 
|  | 9450 | else | 
|  | 9451 | aligned_required=yes | 
|  | 9452 | fi | 
|  | 9453 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9454 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 9455 | fi | 
|  | 9456 |  | 
|  | 9457 |  | 
|  | 9458 | if test "$aligned_required" = yes ; then | 
|  | 9459 |  | 
|  | 9460 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h | 
|  | 9461 |  | 
|  | 9462 | fi | 
|  | 9463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aligned_required" >&5 | 
|  | 9464 | $as_echo "$aligned_required" >&6; } | 
|  | 9465 |  | 
|  | 9466 |  | 
|  | 9467 | # str, bytes and memoryview hash algorithm | 
|  | 9468 |  | 
|  | 9469 |  | 
|  | 9470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 | 
|  | 9471 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | 
|  | 9472 |  | 
|  | 9473 | # Check whether --with-hash_algorithm was given. | 
|  | 9474 | if test "${with_hash_algorithm+set}" = set; then : | 
|  | 9475 | withval=$with_hash_algorithm; | 
|  | 9476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9477 | $as_echo "$withval" >&6; } | 
|  | 9478 | case "$withval" in | 
|  | 9479 | siphash24) | 
|  | 9480 | $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h | 
|  | 9481 |  | 
|  | 9482 | ;; | 
|  | 9483 | fnv) | 
|  | 9484 | $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h | 
|  | 9485 |  | 
|  | 9486 | ;; | 
|  | 9487 | *) | 
|  | 9488 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | 
|  | 9489 | ;; | 
|  | 9490 | esac | 
|  | 9491 |  | 
|  | 9492 | else | 
|  | 9493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | 
|  | 9494 | $as_echo "default" >&6; } | 
|  | 9495 | fi | 
|  | 9496 |  | 
|  | 9497 |  | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 9498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 | 
|  | 9499 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } | 
|  | 9500 |  | 
|  | 9501 | # Check whether --with-address_sanitizer was given. | 
|  | 9502 | if test "${with_address_sanitizer+set}" = set; then : | 
|  | 9503 | withval=$with_address_sanitizer; | 
|  | 9504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9505 | $as_echo "$withval" >&6; } | 
|  | 9506 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" | 
|  | 9507 | LDFLAGS="-fsanitize=address $LDFLAGS" | 
|  | 9508 |  | 
|  | 9509 | else | 
|  | 9510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9511 | $as_echo "no" >&6; } | 
|  | 9512 | fi | 
|  | 9513 |  | 
|  | 9514 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9515 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
|  | 9517 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9518 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9519 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9520 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9521 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9522 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9524 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9525 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9526 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9527 | Use char because int might match the return type of a GCC | 
|  | 9528 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9529 | #ifdef __cplusplus | 
|  | 9530 | extern "C" | 
|  | 9531 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9532 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9533 | int | 
|  | 9534 | main () | 
|  | 9535 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9536 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9537 | ; | 
|  | 9538 | return 0; | 
|  | 9539 | } | 
|  | 9540 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9541 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9542 | ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9543 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9544 | ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9545 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9546 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9547 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9548 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9549 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
|  | 9551 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9552 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9553 | LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9554 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9555 | # SVR4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
|  | 9557 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9558 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9559 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9560 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9561 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9562 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9564 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9565 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9566 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9567 | Use char because int might match the return type of a GCC | 
|  | 9568 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9569 | #ifdef __cplusplus | 
|  | 9570 | extern "C" | 
|  | 9571 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9572 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9573 | int | 
|  | 9574 | main () | 
|  | 9575 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9576 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9577 | ; | 
|  | 9578 | return 0; | 
|  | 9579 | } | 
|  | 9580 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9581 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9582 | ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9583 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9584 | ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9585 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9586 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9587 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9588 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9589 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
|  | 9591 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9592 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9593 | LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9594 | fi | 
|  | 9595 | # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 9596 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
|  | 9598 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9599 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9600 | # Check whether --with-libs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9601 | if test "${with_libs+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9602 | withval=$with_libs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9604 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9605 | LIBS="$withval $LIBS" | 
|  | 9606 |  | 
|  | 9607 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9609 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9610 | fi | 
|  | 9611 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9612 |  | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 9613 |  | 
|  | 9614 |  | 
|  | 9615 |  | 
|  | 9616 |  | 
|  | 9617 |  | 
|  | 9618 |  | 
|  | 9619 |  | 
|  | 9620 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 
|  | 9621 | if test -n "$ac_tool_prefix"; then | 
|  | 9622 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
|  | 9623 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
|  | 9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9625 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 9626 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
|  | 9627 | $as_echo_n "(cached) " >&6 | 
|  | 9628 | else | 
|  | 9629 | case $PKG_CONFIG in | 
|  | 9630 | [\\/]* | ?:[\\/]*) | 
|  | 9631 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
|  | 9632 | ;; | 
|  | 9633 | *) | 
|  | 9634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9635 | for as_dir in $PATH | 
|  | 9636 | do | 
|  | 9637 | IFS=$as_save_IFS | 
|  | 9638 | test -z "$as_dir" && as_dir=. | 
|  | 9639 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 9640 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 9641 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
|  | 9642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 9643 | break 2 | 
|  | 9644 | fi | 
|  | 9645 | done | 
|  | 9646 | done | 
|  | 9647 | IFS=$as_save_IFS | 
|  | 9648 |  | 
|  | 9649 | ;; | 
|  | 9650 | esac | 
|  | 9651 | fi | 
|  | 9652 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
|  | 9653 | if test -n "$PKG_CONFIG"; then | 
|  | 9654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
|  | 9655 | $as_echo "$PKG_CONFIG" >&6; } | 
|  | 9656 | else | 
|  | 9657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9658 | $as_echo "no" >&6; } | 
|  | 9659 | fi | 
|  | 9660 |  | 
|  | 9661 |  | 
|  | 9662 | fi | 
|  | 9663 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
|  | 9664 | ac_pt_PKG_CONFIG=$PKG_CONFIG | 
|  | 9665 | # Extract the first word of "pkg-config", so it can be a program name with args. | 
|  | 9666 | set dummy pkg-config; ac_word=$2 | 
|  | 9667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9668 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 9669 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
|  | 9670 | $as_echo_n "(cached) " >&6 | 
|  | 9671 | else | 
|  | 9672 | case $ac_pt_PKG_CONFIG in | 
|  | 9673 | [\\/]* | ?:[\\/]*) | 
|  | 9674 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
|  | 9675 | ;; | 
|  | 9676 | *) | 
|  | 9677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9678 | for as_dir in $PATH | 
|  | 9679 | do | 
|  | 9680 | IFS=$as_save_IFS | 
|  | 9681 | test -z "$as_dir" && as_dir=. | 
|  | 9682 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 9683 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 9684 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
|  | 9685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 9686 | break 2 | 
|  | 9687 | fi | 
|  | 9688 | done | 
|  | 9689 | done | 
|  | 9690 | IFS=$as_save_IFS | 
|  | 9691 |  | 
|  | 9692 | ;; | 
|  | 9693 | esac | 
|  | 9694 | fi | 
|  | 9695 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
|  | 9696 | if test -n "$ac_pt_PKG_CONFIG"; then | 
|  | 9697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
|  | 9698 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
|  | 9699 | else | 
|  | 9700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9701 | $as_echo "no" >&6; } | 
|  | 9702 | fi | 
|  | 9703 |  | 
|  | 9704 | if test "x$ac_pt_PKG_CONFIG" = x; then | 
|  | 9705 | PKG_CONFIG="" | 
|  | 9706 | else | 
|  | 9707 | case $cross_compiling:$ac_tool_warned in | 
|  | 9708 | yes:) | 
|  | 9709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 9710 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 9711 | ac_tool_warned=yes ;; | 
|  | 9712 | esac | 
|  | 9713 | PKG_CONFIG=$ac_pt_PKG_CONFIG | 
|  | 9714 | fi | 
|  | 9715 | else | 
|  | 9716 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
|  | 9717 | fi | 
|  | 9718 |  | 
|  | 9719 | fi | 
|  | 9720 | if test -n "$PKG_CONFIG"; then | 
|  | 9721 | _pkg_min_version=0.9.0 | 
|  | 9722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | 
|  | 9723 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | 
|  | 9724 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 
|  | 9725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9726 | $as_echo "yes" >&6; } | 
|  | 9727 | else | 
|  | 9728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9729 | $as_echo "no" >&6; } | 
|  | 9730 | PKG_CONFIG="" | 
|  | 9731 | fi | 
|  | 9732 | fi | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9733 |  | 
|  | 9734 | # Check for use of the system expat library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
|  | 9736 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9737 |  | 
|  | 9738 | # Check whether --with-system_expat was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9739 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9740 | withval=$with_system_expat; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 9741 | else | 
|  | 9742 | with_system_expat="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9743 | fi | 
|  | 9744 |  | 
|  | 9745 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
|  | 9747 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9748 |  | 
|  | 9749 | # Check for use of the system libffi library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
|  | 9751 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9752 |  | 
|  | 9753 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9754 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9755 | withval=$with_system_ffi; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 9756 | else | 
|  | 9757 | with_system_ffi="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9758 | fi | 
|  | 9759 |  | 
|  | 9760 |  | 
|  | 9761 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9762 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
|  | 9763 | else | 
|  | 9764 | LIBFFI_INCLUDEDIR="" | 
|  | 9765 | fi | 
|  | 9766 |  | 
|  | 9767 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
|  | 9769 | $as_echo "$with_system_ffi" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9770 |  | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 9771 | # Check for use of the system libmpdec library | 
|  | 9772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 | 
|  | 9773 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | 
|  | 9774 |  | 
|  | 9775 | # Check whether --with-system_libmpdec was given. | 
|  | 9776 | if test "${with_system_libmpdec+set}" = set; then : | 
|  | 9777 | withval=$with_system_libmpdec; | 
|  | 9778 | else | 
|  | 9779 | with_system_libmpdec="no" | 
|  | 9780 | fi | 
|  | 9781 |  | 
|  | 9782 |  | 
|  | 9783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 | 
|  | 9784 | $as_echo "$with_system_libmpdec" >&6; } | 
|  | 9785 |  | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 9786 | # Check for support for loadable sqlite extensions | 
|  | 9787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | 
|  | 9788 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | 
|  | 9789 | # Check whether --enable-loadable-sqlite-extensions was given. | 
|  | 9790 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | 
|  | 9791 | enableval=$enable_loadable_sqlite_extensions; | 
|  | 9792 | else | 
|  | 9793 | enable_loadable_sqlite_extensions="no" | 
|  | 9794 | fi | 
|  | 9795 |  | 
|  | 9796 |  | 
|  | 9797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | 
|  | 9798 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | 
|  | 9799 |  | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 9800 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path | 
|  | 9801 |  | 
|  | 9802 |  | 
|  | 9803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | 
|  | 9804 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | 
|  | 9805 |  | 
|  | 9806 | # Check whether --with-tcltk-includes was given. | 
|  | 9807 | if test "${with_tcltk_includes+set}" = set; then : | 
|  | 9808 | withval=$with_tcltk_includes; | 
|  | 9809 | else | 
|  | 9810 | with_tcltk_includes="default" | 
|  | 9811 | fi | 
|  | 9812 |  | 
|  | 9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | 
|  | 9814 | $as_echo "$with_tcltk_includes" >&6; } | 
|  | 9815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | 
|  | 9816 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | 
|  | 9817 |  | 
|  | 9818 | # Check whether --with-tcltk-libs was given. | 
|  | 9819 | if test "${with_tcltk_libs+set}" = set; then : | 
|  | 9820 | withval=$with_tcltk_libs; | 
|  | 9821 | else | 
|  | 9822 | with_tcltk_libs="default" | 
|  | 9823 | fi | 
|  | 9824 |  | 
|  | 9825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | 
|  | 9826 | $as_echo "$with_tcltk_libs" >&6; } | 
|  | 9827 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | 
|  | 9828 | then | 
|  | 9829 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | 
|  | 9830 | then | 
|  | 9831 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | 
|  | 9832 | fi | 
|  | 9833 | TCLTK_INCLUDES="" | 
|  | 9834 | TCLTK_LIBS="" | 
|  | 9835 | else | 
|  | 9836 | TCLTK_INCLUDES="$with_tcltk_includes" | 
|  | 9837 | TCLTK_LIBS="$with_tcltk_libs" | 
|  | 9838 | fi | 
|  | 9839 |  | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9840 | # Check for --with-dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
|  | 9842 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9843 |  | 
|  | 9844 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9845 | if test "${with_dbmliborder+set}" = set; then : | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9846 | withval=$with_dbmliborder; | 
|  | 9847 | if test x$with_dbmliborder = xyes | 
|  | 9848 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9849 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9850 | else | 
|  | 9851 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
|  | 9852 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
|  | 9853 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9854 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9855 | fi | 
|  | 9856 | done | 
|  | 9857 | fi | 
|  | 9858 | fi | 
|  | 9859 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
|  | 9861 | $as_echo "$with_dbmliborder" >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 9862 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9863 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9864 |  | 
|  | 9865 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
|  | 9867 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9868 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9869 | # Check whether --with-signal-module was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9870 | if test "${with_signal_module+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9871 | withval=$with_signal_module; | 
|  | 9872 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9873 |  | 
|  | 9874 |  | 
|  | 9875 | if test -z "$with_signal_module" | 
|  | 9876 | then with_signal_module="yes" | 
|  | 9877 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
|  | 9879 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9880 |  | 
|  | 9881 | if test "${with_signal_module}" = "yes"; then | 
|  | 9882 | USE_SIGNAL_MODULE="" | 
|  | 9883 | SIGNAL_OBJS="" | 
|  | 9884 | else | 
|  | 9885 | USE_SIGNAL_MODULE="#" | 
|  | 9886 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
|  | 9887 | fi | 
|  | 9888 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9889 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9890 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9891 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9892 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9893 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9894 |  | 
|  | 9895 | # Templates for things AC_DEFINEd more than once. | 
|  | 9896 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9897 |  | 
|  | 9898 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9899 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
|  | 9901 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9902 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9903 | # Check whether --with-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9904 | if test "${with_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9905 | withval=$with_threads; | 
|  | 9906 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9907 |  | 
|  | 9908 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9909 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9910 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9911 | # Check whether --with-thread was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9912 | if test "${with_thread+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9913 | withval=$with_thread; with_threads=$with_thread | 
|  | 9914 | fi | 
|  | 9915 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9916 |  | 
|  | 9917 | if test -z "$with_threads" | 
|  | 9918 | then with_threads="yes" | 
|  | 9919 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
|  | 9921 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9922 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9923 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9924 | if test "$with_threads" = "no" | 
|  | 9925 | then | 
|  | 9926 | USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9927 | elif test "$ac_cv_pthread_is_default" = yes | 
|  | 9928 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9929 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9930 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9931 | # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9932 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9933 |  | 
|  | 9934 | posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9935 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9936 | elif test "$ac_cv_kpthread" = "yes" | 
|  | 9937 | then | 
|  | 9938 | CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9939 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 9940 | CXX="$CXX -Kpthread" | 
|  | 9941 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9942 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9943 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9944 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9945 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9946 | elif test "$ac_cv_kthread" = "yes" | 
|  | 9947 | then | 
|  | 9948 | CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9949 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 9950 | CXX="$CXX -Kthread" | 
|  | 9951 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9952 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9953 |  | 
|  | 9954 | posix_threads=yes | 
|  | 9955 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9956 | elif test "$ac_cv_pthread" = "yes" | 
|  | 9957 | then | 
|  | 9958 | CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9959 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 9960 | CXX="$CXX -pthread" | 
|  | 9961 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9962 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9963 |  | 
|  | 9964 | posix_threads=yes | 
|  | 9965 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9966 | else | 
|  | 9967 | if test ! -z "$with_threads" -a -d "$with_threads" | 
|  | 9968 | then LDFLAGS="$LDFLAGS -L$with_threads" | 
|  | 9969 | fi | 
|  | 9970 | if test ! -z "$withval" -a -d "$withval" | 
|  | 9971 | then LDFLAGS="$LDFLAGS -L$withval" | 
|  | 9972 | fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9973 |  | 
|  | 9974 | # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 9975 | # define _POSIX_THREADS in unistd.h. Some apparently don't | 
|  | 9976 | # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
|  | 9978 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
|  | 9979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9980 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9981 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9982 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9983 | #ifdef _POSIX_THREADS | 
|  | 9984 | yes | 
|  | 9985 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9986 |  | 
|  | 9987 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9988 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9989 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9990 | unistd_defines_pthreads=yes | 
|  | 9991 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9992 | unistd_defines_pthreads=no | 
|  | 9993 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 9994 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9995 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
|  | 9997 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9998 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9999 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10000 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10001 | # Just looking for pthread_create in libpthread is not enough: | 
|  | 10002 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
|  | 10003 | # So we really have to include pthread.h, and then link. | 
|  | 10004 | _libs=$LIBS | 
|  | 10005 | LIBS="$LIBS -lpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
|  | 10007 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
|  | 10008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10009 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10010 |  | 
|  | 10011 | #include <stdio.h> | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10012 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10013 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10014 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10015 | int | 
|  | 10016 | main () | 
|  | 10017 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10018 |  | 
|  | 10019 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10020 | ; | 
|  | 10021 | return 0; | 
|  | 10022 | } | 
|  | 10023 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10024 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10025 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10027 | $as_echo "yes" >&6; } | 
|  | 10028 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10029 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10030 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10031 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10032 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10033 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10034 | LIBS=$_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10035 | 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] | 10036 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10037 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10038 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10039 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10040 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10041 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10042 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
|  | 10044 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10045 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10046 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10047 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10048 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10049 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10051 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10052 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10053 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10054 | Use char because int might match the return type of a GCC | 
|  | 10055 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10056 | #ifdef __cplusplus | 
|  | 10057 | extern "C" | 
|  | 10058 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10059 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10060 | int | 
|  | 10061 | main () | 
|  | 10062 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10063 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10064 | ; | 
|  | 10065 | return 0; | 
|  | 10066 | } | 
|  | 10067 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10068 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10069 | ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10070 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10071 | ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10072 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10073 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10074 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10075 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10076 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
|  | 10078 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10079 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10080 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10081 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10082 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10083 | LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10084 | THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10085 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10086 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
|  | 10088 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10089 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10090 | $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10091 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10092 | ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10093 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10095 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10096 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10097 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10098 | Use char because int might match the return type of a GCC | 
|  | 10099 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10100 | #ifdef __cplusplus | 
|  | 10101 | extern "C" | 
|  | 10102 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10103 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10104 | int | 
|  | 10105 | main () | 
|  | 10106 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10107 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10108 | ; | 
|  | 10109 | return 0; | 
|  | 10110 | } | 
|  | 10111 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10112 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10113 | ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10114 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10115 | ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10116 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10117 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10118 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10120 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
|  | 10122 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10123 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10124 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10125 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10126 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10127 | LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10128 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10129 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10130 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
|  | 10132 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10133 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10134 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10135 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10136 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10137 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10139 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10140 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10141 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10142 | Use char because int might match the return type of a GCC | 
|  | 10143 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10144 | #ifdef __cplusplus | 
|  | 10145 | extern "C" | 
|  | 10146 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10147 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10148 | int | 
|  | 10149 | main () | 
|  | 10150 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10151 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10152 | ; | 
|  | 10153 | return 0; | 
|  | 10154 | } | 
|  | 10155 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10156 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10157 | ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10158 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10159 | ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10160 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10161 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10162 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10163 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10164 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
|  | 10166 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10167 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10168 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10169 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10170 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10171 | LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10172 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10173 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10174 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
|  | 10176 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10177 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10178 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10179 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10180 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10181 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10183 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10184 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10185 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10186 | Use char because int might match the return type of a GCC | 
|  | 10187 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10188 | #ifdef __cplusplus | 
|  | 10189 | extern "C" | 
|  | 10190 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10191 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10192 | int | 
|  | 10193 | main () | 
|  | 10194 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10195 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10196 | ; | 
|  | 10197 | return 0; | 
|  | 10198 | } | 
|  | 10199 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10200 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10201 | ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10202 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10203 | ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10204 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10205 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10206 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10207 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10208 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
|  | 10210 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10211 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10212 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10213 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10214 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10215 | LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10216 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10217 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10218 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10219 | USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10220 | fi | 
|  | 10221 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10222 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10223 | fi | 
|  | 10224 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10225 | fi | 
|  | 10226 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10227 | fi | 
|  | 10228 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10229 | fi | 
|  | 10230 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10231 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10232 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10233 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10234 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
|  | 10236 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10237 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10238 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10239 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10240 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10241 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10243 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10244 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10245 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10246 | Use char because int might match the return type of a GCC | 
|  | 10247 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10248 | #ifdef __cplusplus | 
|  | 10249 | extern "C" | 
|  | 10250 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10251 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10252 | int | 
|  | 10253 | main () | 
|  | 10254 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10255 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10256 | ; | 
|  | 10257 | return 0; | 
|  | 10258 | } | 
|  | 10259 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10260 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10261 | ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10262 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10263 | ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10264 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10265 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10266 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10267 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10268 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
|  | 10270 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10271 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10272 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10273 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10274 | LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10275 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10276 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10277 | fi | 
|  | 10278 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10279 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 10280 | if test "$posix_threads" != "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
|  | 10282 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10283 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10284 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10285 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10286 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10287 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10289 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10290 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10291 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10292 | Use char because int might match the return type of a GCC | 
|  | 10293 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10294 | #ifdef __cplusplus | 
|  | 10295 | extern "C" | 
|  | 10296 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10297 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10298 | int | 
|  | 10299 | main () | 
|  | 10300 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10301 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10302 | ; | 
|  | 10303 | return 0; | 
|  | 10304 | } | 
|  | 10305 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10306 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10307 | ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10308 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10309 | ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10310 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10311 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10312 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10313 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10314 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
|  | 10316 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10317 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10318 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10319 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10320 | LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10321 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10322 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10323 | fi | 
|  | 10324 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10325 | fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10326 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10327 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10328 | if test "$posix_threads" = "yes"; then | 
|  | 10329 | if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10330 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10331 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10332 |  | 
|  | 10333 | fi | 
|  | 10334 |  | 
|  | 10335 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
|  | 10336 | case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10337 | SunOS/5.6) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10338 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10339 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10340 | ;; | 
|  | 10341 | SunOS/5.8) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10342 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10343 |  | 
|  | 10344 | ;; | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10345 | AIX/*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10346 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 10347 |  | 
|  | 10348 | ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10349 | esac | 
|  | 10350 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
|  | 10352 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10353 | if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10354 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10355 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10356 | if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10357 | ac_cv_pthread_system_supported=no | 
|  | 10358 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10360 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10361 |  | 
|  | 10362 | #include <stdio.h> | 
|  | 10363 | #include <pthread.h> | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10364 | void *foo(void *parm) { | 
|  | 10365 | return NULL; | 
|  | 10366 | } | 
|  | 10367 | main() { | 
|  | 10368 | pthread_attr_t attr; | 
|  | 10369 | pthread_t id; | 
|  | 10370 | if (pthread_attr_init(&attr)) exit(-1); | 
|  | 10371 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
|  | 10372 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
|  | 10373 | exit(0); | 
|  | 10374 | } | 
|  | 10375 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10376 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10377 | ac_cv_pthread_system_supported=yes | 
|  | 10378 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10379 | ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10380 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10381 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 10382 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10383 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10384 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10385 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10386 | fi | 
|  | 10387 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
|  | 10389 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10390 | if test "$ac_cv_pthread_system_supported" = "yes"; then | 
|  | 10391 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10392 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10393 |  | 
|  | 10394 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10395 | for ac_func in pthread_sigmask | 
|  | 10396 | do : | 
|  | 10397 | 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] | 10398 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10399 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10400 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10401 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10402 | case $ac_sys_system in | 
|  | 10403 | CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10404 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10405 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10406 |  | 
|  | 10407 | ;; | 
|  | 10408 | esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10409 | fi | 
|  | 10410 | done | 
|  | 10411 |  | 
| Christian Heimes | f77b4b2 | 2013-08-21 13:26:05 +0200 | [diff] [blame] | 10412 | for ac_func in pthread_atfork | 
|  | 10413 | do : | 
|  | 10414 | ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" | 
|  | 10415 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : | 
|  | 10416 | cat >>confdefs.h <<_ACEOF | 
|  | 10417 | #define HAVE_PTHREAD_ATFORK 1 | 
|  | 10418 | _ACEOF | 
|  | 10419 |  | 
|  | 10420 | fi | 
|  | 10421 | done | 
|  | 10422 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10423 | fi | 
|  | 10424 |  | 
|  | 10425 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10426 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10427 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
|  | 10429 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10430 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10431 | if test "${enable_ipv6+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10432 | enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10433 | no) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10435 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10436 | ipv6=no | 
|  | 10437 | ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10438 | *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10439 | $as_echo "yes" >&6; } | 
|  | 10440 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10441 |  | 
|  | 10442 | ipv6=yes | 
|  | 10443 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10444 | esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10445 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10446 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10448 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10449 | /* AF_INET6 available check */ | 
|  | 10450 | #include <sys/types.h> | 
|  | 10451 | #include <sys/socket.h> | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10452 | int | 
|  | 10453 | main () | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10454 | { | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10455 | int domain = AF_INET6; | 
|  | 10456 | ; | 
|  | 10457 | return 0; | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10458 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10459 | _ACEOF | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10460 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10461 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10463 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10464 | ipv6=yes | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10465 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10466 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10467 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10469 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10470 | ipv6=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10471 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10472 | fi | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10474 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10475 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
|  | 10477 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
|  | 10478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10479 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10480 |  | 
|  | 10481 | #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10482 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10483 | int | 
|  | 10484 | main () | 
|  | 10485 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10486 | struct sockaddr_in6 x; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10487 | x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10488 | ; | 
|  | 10489 | return 0; | 
|  | 10490 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10491 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10492 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10493 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10494 |  | 
|  | 10495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10496 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10497 | ipv6=yes | 
|  | 10498 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10499 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10500 |  | 
|  | 10501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10502 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10503 | ipv6=no | 
|  | 10504 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10505 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10506 | 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] | 10507 | fi | 
|  | 10508 |  | 
|  | 10509 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10510 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10511 |  | 
|  | 10512 | fi | 
|  | 10513 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10514 | fi | 
|  | 10515 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10516 |  | 
|  | 10517 | ipv6type=unknown | 
|  | 10518 | ipv6lib=none | 
|  | 10519 | ipv6trylibc=no | 
|  | 10520 |  | 
|  | 10521 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
|  | 10523 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10524 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
|  | 10525 | do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10526 | case $i in | 
|  | 10527 | inria) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10529 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10530 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10531 | #include <netinet/in.h> | 
|  | 10532 | #ifdef IPV6_INRIA_VERSION | 
|  | 10533 | yes | 
|  | 10534 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10535 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10536 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10537 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10538 | ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10539 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10540 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10541 |  | 
|  | 10542 | ;; | 
|  | 10543 | kame) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10545 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10546 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10547 | #include <netinet/in.h> | 
|  | 10548 | #ifdef __KAME__ | 
|  | 10549 | yes | 
|  | 10550 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10551 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10552 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10553 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10554 | ipv6type=$i; | 
|  | 10555 | ipv6lib=inet6 | 
|  | 10556 | ipv6libdir=/usr/local/v6/lib | 
|  | 10557 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10558 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10559 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10560 |  | 
|  | 10561 | ;; | 
|  | 10562 | linux-glibc) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10564 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10565 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10566 | #include <features.h> | 
|  | 10567 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
|  | 10568 | yes | 
|  | 10569 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10570 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10571 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10572 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10573 | ipv6type=$i; | 
|  | 10574 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10575 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10576 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10577 |  | 
|  | 10578 | ;; | 
|  | 10579 | linux-inet6) | 
|  | 10580 | if test -d /usr/inet6; then | 
|  | 10581 | ipv6type=$i | 
|  | 10582 | ipv6lib=inet6 | 
|  | 10583 | ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10584 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10585 | fi | 
|  | 10586 | ;; | 
|  | 10587 | solaris) | 
|  | 10588 | if test -f /etc/netconfig; then | 
| Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 10589 | if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10590 | ipv6type=$i | 
|  | 10591 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10592 | fi | 
|  | 10593 | fi | 
|  | 10594 | ;; | 
|  | 10595 | toshiba) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10597 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10598 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10599 | #include <sys/param.h> | 
|  | 10600 | #ifdef _TOSHIBA_INET6 | 
|  | 10601 | yes | 
|  | 10602 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10603 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10604 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10605 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10606 | ipv6type=$i; | 
|  | 10607 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10608 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10609 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10610 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10611 |  | 
|  | 10612 | ;; | 
|  | 10613 | v6d) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10615 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10616 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10617 | #include </usr/local/v6/include/sys/v6config.h> | 
|  | 10618 | #ifdef __V6D__ | 
|  | 10619 | yes | 
|  | 10620 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10621 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10622 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10623 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10624 | ipv6type=$i; | 
|  | 10625 | ipv6lib=v6; | 
|  | 10626 | ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10627 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10628 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10629 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10630 |  | 
|  | 10631 | ;; | 
|  | 10632 | zeta) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10634 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10635 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10636 | #include <sys/param.h> | 
|  | 10637 | #ifdef _ZETA_MINAMI_INET6 | 
|  | 10638 | yes | 
|  | 10639 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10640 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10642 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10643 | ipv6type=$i; | 
|  | 10644 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10645 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10646 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10647 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10648 |  | 
|  | 10649 | ;; | 
|  | 10650 | esac | 
|  | 10651 | if test "$ipv6type" != "unknown"; then | 
|  | 10652 | break | 
|  | 10653 | fi | 
|  | 10654 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
|  | 10656 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10657 | fi | 
|  | 10658 |  | 
|  | 10659 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
|  | 10660 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
|  | 10661 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
|  | 10662 | echo "using lib$ipv6lib" | 
|  | 10663 | else | 
|  | 10664 | if test $ipv6trylibc = "yes"; then | 
|  | 10665 | echo "using libc" | 
|  | 10666 | else | 
|  | 10667 | echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
|  | 10668 | echo "You need to fetch lib$ipv6lib.a from appropriate" | 
|  | 10669 | echo 'ipv6 kit and compile beforehand.' | 
|  | 10670 | exit 1 | 
|  | 10671 | fi | 
|  | 10672 | fi | 
|  | 10673 | fi | 
|  | 10674 |  | 
| Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 10675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 | 
|  | 10676 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } | 
|  | 10677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 10678 | /* end confdefs.h.  */ | 
|  | 10679 | /* CAN_RAW_FD_FRAMES available check */ | 
|  | 10680 | #include <linux/can/raw.h> | 
|  | 10681 | int | 
|  | 10682 | main () | 
|  | 10683 | { | 
|  | 10684 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; | 
|  | 10685 | ; | 
|  | 10686 | return 0; | 
|  | 10687 | } | 
|  | 10688 | _ACEOF | 
|  | 10689 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 10690 |  | 
|  | 10691 |  | 
|  | 10692 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h | 
|  | 10693 |  | 
|  | 10694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10695 | $as_echo "yes" >&6; } | 
|  | 10696 |  | 
|  | 10697 | else | 
|  | 10698 |  | 
|  | 10699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10700 | $as_echo "no" >&6; } | 
|  | 10701 |  | 
|  | 10702 | fi | 
|  | 10703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10704 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
|  | 10706 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
|  | 10707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10708 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10709 |  | 
|  | 10710 | #include <Carbon/Carbon.h> | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10711 | int | 
|  | 10712 | main () | 
|  | 10713 | { | 
|  | 10714 | FSIORefNum fRef = 0 | 
|  | 10715 | ; | 
|  | 10716 | return 0; | 
|  | 10717 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10718 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10719 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10720 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10721 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10722 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10723 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10724 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10726 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10727 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10728 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10729 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10731 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10732 |  | 
|  | 10733 | fi | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10735 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10736 | # Check for --with-doc-strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
|  | 10738 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10739 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10740 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10741 | if test "${with_doc_strings+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10742 | withval=$with_doc_strings; | 
|  | 10743 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10744 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10745 |  | 
|  | 10746 | if test -z "$with_doc_strings" | 
|  | 10747 | then with_doc_strings="yes" | 
|  | 10748 | fi | 
|  | 10749 | if test "$with_doc_strings" != "no" | 
|  | 10750 | then | 
|  | 10751 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10752 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10753 |  | 
|  | 10754 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
|  | 10756 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10757 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 10758 | # Check if eval loop should use timestamp counter profiling | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
|  | 10760 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10761 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10762 | # Check whether --with-tsc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10763 | if test "${with_tsc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10764 | withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10765 | if test "$withval" != no | 
|  | 10766 | then | 
|  | 10767 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10768 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10769 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10771 | $as_echo "yes" >&6; } | 
|  | 10772 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10773 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10774 | fi | 
|  | 10775 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10777 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10778 | fi | 
|  | 10779 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10780 |  | 
|  | 10781 | # Check for Python-specific malloc support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
|  | 10783 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10784 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10785 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10786 | if test "${with_pymalloc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10787 | withval=$with_pymalloc; | 
|  | 10788 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10789 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10790 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10791 | if test -z "$with_pymalloc" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 10792 | then | 
|  | 10793 | with_pymalloc="yes" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10794 | fi | 
|  | 10795 | if test "$with_pymalloc" != "no" | 
|  | 10796 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10797 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10798 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10799 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 10800 | ABIFLAGS="${ABIFLAGS}m" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10801 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
|  | 10803 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10804 |  | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10805 | # Check for Valgrind support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
|  | 10807 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10808 |  | 
|  | 10809 | # Check whether --with-valgrind was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10810 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10811 | withval=$with_valgrind; | 
|  | 10812 | else | 
|  | 10813 | with_valgrind=no | 
|  | 10814 | fi | 
|  | 10815 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
|  | 10817 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10818 | if test "$with_valgrind" != no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10819 | 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] | 10820 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10821 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10822 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10823 |  | 
|  | 10824 | else | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10825 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10826 |  | 
|  | 10827 | fi | 
|  | 10828 |  | 
|  | 10829 |  | 
| Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 10830 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10831 | fi | 
|  | 10832 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10833 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10834 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 10835 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10836 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10837 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
|  | 10838 | # 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] | 10839 | for ac_func in dlopen | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10840 | do : | 
|  | 10841 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10842 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10843 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10844 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10845 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10846 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10847 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10848 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10849 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10850 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10851 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
|  | 10852 | # loading of modules. | 
|  | 10853 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
|  | 10855 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10856 | if test -z "$DYNLOADFILE" | 
|  | 10857 | then | 
|  | 10858 | case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 10859 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
|  | 10860 | if test "$ac_cv_func_dlopen" = yes | 
|  | 10861 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 10862 | else DYNLOADFILE="dynload_aix.o" | 
|  | 10863 | fi | 
|  | 10864 | ;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10865 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 10866 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
|  | 10867 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10868 | *) | 
|  | 10869 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
|  | 10870 | # out any dynamic loading | 
|  | 10871 | if test "$ac_cv_func_dlopen" = yes | 
|  | 10872 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 10873 | else DYNLOADFILE="dynload_stub.o" | 
|  | 10874 | fi | 
|  | 10875 | ;; | 
|  | 10876 | esac | 
|  | 10877 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
|  | 10879 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10880 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
|  | 10881 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10882 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10883 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 10884 |  | 
|  | 10885 | fi | 
|  | 10886 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10887 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
|  | 10888 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10889 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
|  | 10891 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10892 | if test -z "$MACHDEP_OBJS" | 
|  | 10893 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10894 | MACHDEP_OBJS=$extra_machdep_objs | 
|  | 10895 | else | 
|  | 10896 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10897 | fi | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 10898 | if test -z "$MACHDEP_OBJS"; then | 
|  | 10899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 10900 | $as_echo "none" >&6; } | 
|  | 10901 | else | 
|  | 10902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 | 
|  | 10903 | $as_echo "$MACHDEP_OBJS" >&6; } | 
|  | 10904 | fi | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 10905 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10906 | # checks for library functions | 
| Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 10907 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | 
| Victor Stinner | daf4555 | 2013-08-28 00:53:59 +0200 | [diff] [blame] | 10908 | clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 10909 | fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ | 
| Victor Stinner | 4d6a3d6 | 2014-12-21 01:16:38 +0100 | [diff] [blame] | 10910 | futimens futimes gai_strerror getentropy \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10911 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 10912 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 10913 | if_nameindex \ | 
| Antoine Pitrou | f0effe6 | 2011-11-26 01:11:02 +0100 | [diff] [blame] | 10914 | initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \ | 
|  | 10915 | memrchr mbrtowc mkdirat mkfifo \ | 
| Charles-François Natali | daafdd5 | 2011-05-29 20:07:40 +0200 | [diff] [blame] | 10916 | mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 10917 | posix_fallocate posix_fadvise pread \ | 
| Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 10918 | pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 10919 | select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ | 
| Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 10920 | setgid sethostname \ | 
| Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 10921 | 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] | 10922 | sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ | 
|  | 10923 | sched_rr_get_interval \ | 
| Ross Lagerwall | bc80822 | 2011-06-25 12:13:40 +0200 | [diff] [blame] | 10924 | sigaction sigaltstack siginterrupt sigpending sigrelse \ | 
|  | 10925 | sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 10926 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 10927 | truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ | 
| Victor Stinner | cd777ea | 2013-04-08 22:43:44 +0200 | [diff] [blame] | 10928 | wcscoll wcsftime wcsxfrm wmemcmp writev _getpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10929 | do : | 
|  | 10930 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 10931 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10932 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10933 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10934 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10935 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10936 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10937 | fi | 
|  | 10938 | done | 
|  | 10939 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10940 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 10941 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> | 
|  | 10942 | #include <dirent.h> | 
|  | 10943 | " | 
|  | 10944 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | 
|  | 10945 |  | 
|  | 10946 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | 
|  | 10947 |  | 
|  | 10948 | fi | 
|  | 10949 |  | 
|  | 10950 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10951 | # For some functions, having a definition is not sufficient, since | 
|  | 10952 | # we want to take their address. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
|  | 10954 | $as_echo_n "checking for chroot... " >&6; } | 
|  | 10955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10956 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10957 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10958 | int | 
|  | 10959 | main () | 
|  | 10960 | { | 
|  | 10961 | void *x=chroot | 
|  | 10962 | ; | 
|  | 10963 | return 0; | 
|  | 10964 | } | 
|  | 10965 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10966 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10967 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10968 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10969 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10971 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10972 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10974 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10975 |  | 
|  | 10976 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
|  | 10979 | $as_echo_n "checking for link... " >&6; } | 
|  | 10980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10981 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10982 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10983 | int | 
|  | 10984 | main () | 
|  | 10985 | { | 
|  | 10986 | void *x=link | 
|  | 10987 | ; | 
|  | 10988 | return 0; | 
|  | 10989 | } | 
|  | 10990 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10991 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10992 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10993 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10994 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10996 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 10997 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10999 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11000 |  | 
|  | 11001 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
|  | 11004 | $as_echo_n "checking for symlink... " >&6; } | 
|  | 11005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11006 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11007 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11008 | int | 
|  | 11009 | main () | 
|  | 11010 | { | 
|  | 11011 | void *x=symlink | 
|  | 11012 | ; | 
|  | 11013 | return 0; | 
|  | 11014 | } | 
|  | 11015 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11016 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11017 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11018 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11019 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11021 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11022 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11024 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11025 |  | 
|  | 11026 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
|  | 11029 | $as_echo_n "checking for fchdir... " >&6; } | 
|  | 11030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11031 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11032 | #include <unistd.h> | 
|  | 11033 | int | 
|  | 11034 | main () | 
|  | 11035 | { | 
|  | 11036 | void *x=fchdir | 
|  | 11037 | ; | 
|  | 11038 | return 0; | 
|  | 11039 | } | 
|  | 11040 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11041 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11042 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11043 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11044 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11046 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11047 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11049 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11050 |  | 
|  | 11051 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
|  | 11054 | $as_echo_n "checking for fsync... " >&6; } | 
|  | 11055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11056 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11057 | #include <unistd.h> | 
|  | 11058 | int | 
|  | 11059 | main () | 
|  | 11060 | { | 
|  | 11061 | void *x=fsync | 
|  | 11062 | ; | 
|  | 11063 | return 0; | 
|  | 11064 | } | 
|  | 11065 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11066 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11067 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11068 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11069 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11071 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11072 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11074 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11075 |  | 
|  | 11076 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
|  | 11079 | $as_echo_n "checking for fdatasync... " >&6; } | 
|  | 11080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11081 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11082 | #include <unistd.h> | 
|  | 11083 | int | 
|  | 11084 | main () | 
|  | 11085 | { | 
|  | 11086 | void *x=fdatasync | 
|  | 11087 | ; | 
|  | 11088 | return 0; | 
|  | 11089 | } | 
|  | 11090 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11091 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11092 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11093 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11094 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11096 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11097 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11099 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11100 |  | 
|  | 11101 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
|  | 11104 | $as_echo_n "checking for epoll... " >&6; } | 
|  | 11105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11106 | /* end confdefs.h.  */ | 
|  | 11107 | #include <sys/epoll.h> | 
|  | 11108 | int | 
|  | 11109 | main () | 
|  | 11110 | { | 
|  | 11111 | void *x=epoll_create | 
|  | 11112 | ; | 
|  | 11113 | return 0; | 
|  | 11114 | } | 
|  | 11115 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11116 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11117 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11118 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11119 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11121 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11122 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11124 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11125 |  | 
|  | 11126 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 | 
|  | 11129 | $as_echo_n "checking for epoll_create1... " >&6; } | 
|  | 11130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11131 | /* end confdefs.h.  */ | 
|  | 11132 | #include <sys/epoll.h> | 
|  | 11133 | int | 
|  | 11134 | main () | 
|  | 11135 | { | 
|  | 11136 | void *x=epoll_create1 | 
|  | 11137 | ; | 
|  | 11138 | return 0; | 
|  | 11139 | } | 
|  | 11140 | _ACEOF | 
|  | 11141 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11142 |  | 
|  | 11143 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h | 
|  | 11144 |  | 
|  | 11145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11146 | $as_echo "yes" >&6; } | 
|  | 11147 | else | 
|  | 11148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11149 | $as_echo "no" >&6; } | 
|  | 11150 |  | 
|  | 11151 | fi | 
|  | 11152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
|  | 11154 | $as_echo_n "checking for kqueue... " >&6; } | 
|  | 11155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11156 | /* end confdefs.h.  */ | 
|  | 11157 |  | 
|  | 11158 | #include <sys/types.h> | 
|  | 11159 | #include <sys/event.h> | 
|  | 11160 |  | 
|  | 11161 | int | 
|  | 11162 | main () | 
|  | 11163 | { | 
|  | 11164 | int x=kqueue() | 
|  | 11165 | ; | 
|  | 11166 | return 0; | 
|  | 11167 | } | 
|  | 11168 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11169 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11170 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11171 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11172 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11174 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11175 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11177 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11178 |  | 
|  | 11179 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 11181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 | 
|  | 11182 | $as_echo_n "checking for prlimit... " >&6; } | 
|  | 11183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11184 | /* end confdefs.h.  */ | 
|  | 11185 |  | 
|  | 11186 | #include <sys/time.h> | 
|  | 11187 | #include <sys/resource.h> | 
|  | 11188 |  | 
|  | 11189 | int | 
|  | 11190 | main () | 
|  | 11191 | { | 
|  | 11192 | void *x=prlimit | 
|  | 11193 | ; | 
|  | 11194 | return 0; | 
|  | 11195 | } | 
|  | 11196 | _ACEOF | 
|  | 11197 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11198 |  | 
|  | 11199 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h | 
|  | 11200 |  | 
|  | 11201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11202 | $as_echo "yes" >&6; } | 
|  | 11203 | else | 
|  | 11204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11205 | $as_echo "no" >&6; } | 
|  | 11206 |  | 
|  | 11207 | fi | 
|  | 11208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11209 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11210 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
|  | 11211 | # functions ctermid_r, setgroups in the library, but no prototype | 
|  | 11212 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
|  | 11213 | # address to avoid compiler warnings and potential miscompilations | 
|  | 11214 | # because of the missing prototypes. | 
|  | 11215 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
|  | 11217 | $as_echo_n "checking for ctermid_r... " >&6; } | 
|  | 11218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11219 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11220 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11221 | #include <stdio.h> | 
|  | 11222 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11223 | int | 
|  | 11224 | main () | 
|  | 11225 | { | 
|  | 11226 | void* p = ctermid_r | 
|  | 11227 | ; | 
|  | 11228 | return 0; | 
|  | 11229 | } | 
|  | 11230 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11231 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11232 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11233 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11234 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11236 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11237 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11239 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11240 |  | 
|  | 11241 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11243 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
|  | 11245 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11246 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11247 | $as_echo_n "(cached) " >&6 | 
|  | 11248 | else | 
|  | 11249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11250 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11251 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11252 | int | 
|  | 11253 | main () | 
|  | 11254 | { | 
|  | 11255 | void* p = flock | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11256 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11257 | ; | 
|  | 11258 | return 0; | 
|  | 11259 | } | 
|  | 11260 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11261 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11262 | ac_cv_flock_decl=yes | 
|  | 11263 | else | 
|  | 11264 | ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11265 |  | 
|  | 11266 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11268 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11269 | fi | 
|  | 11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
|  | 11271 | $as_echo "$ac_cv_flock_decl" >&6; } | 
|  | 11272 | if test "x${ac_cv_flock_decl}" = xyes; then | 
|  | 11273 | for ac_func in flock | 
|  | 11274 | do : | 
|  | 11275 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11276 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11277 | cat >>confdefs.h <<_ACEOF | 
|  | 11278 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11279 | _ACEOF | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11280 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11281 | else | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11282 | { $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] | 11283 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11284 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11285 | $as_echo_n "(cached) " >&6 | 
|  | 11286 | else | 
|  | 11287 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11288 | LIBS="-lbsd  $LIBS" | 
|  | 11289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11290 | /* end confdefs.h.  */ | 
|  | 11291 |  | 
|  | 11292 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11293 | Use char because int might match the return type of a GCC | 
|  | 11294 | builtin and then its argument prototype would still apply.  */ | 
|  | 11295 | #ifdef __cplusplus | 
|  | 11296 | extern "C" | 
|  | 11297 | #endif | 
|  | 11298 | char flock (); | 
|  | 11299 | int | 
|  | 11300 | main () | 
|  | 11301 | { | 
|  | 11302 | return flock (); | 
|  | 11303 | ; | 
|  | 11304 | return 0; | 
|  | 11305 | } | 
|  | 11306 | _ACEOF | 
|  | 11307 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 11308 | ac_cv_lib_bsd_flock=yes | 
|  | 11309 | else | 
|  | 11310 | ac_cv_lib_bsd_flock=no | 
|  | 11311 | fi | 
|  | 11312 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11313 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11314 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11315 | fi | 
|  | 11316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
|  | 11317 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11318 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11319 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11320 |  | 
|  | 11321 |  | 
|  | 11322 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
|  | 11323 |  | 
|  | 11324 |  | 
|  | 11325 | fi | 
|  | 11326 |  | 
|  | 11327 |  | 
|  | 11328 | fi | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11329 | done | 
|  | 11330 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11331 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11332 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
|  | 11334 | $as_echo_n "checking for getpagesize... " >&6; } | 
|  | 11335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11336 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11337 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11338 | #include <unistd.h> | 
|  | 11339 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11340 | int | 
|  | 11341 | main () | 
|  | 11342 | { | 
|  | 11343 | void* p = getpagesize | 
|  | 11344 | ; | 
|  | 11345 | return 0; | 
|  | 11346 | } | 
|  | 11347 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11348 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11349 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11350 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11351 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11353 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11354 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11356 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11357 |  | 
|  | 11358 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11359 | 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] | 11360 |  | 
| Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 11361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
|  | 11362 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
|  | 11363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11364 | /* end confdefs.h.  */ | 
|  | 11365 |  | 
|  | 11366 | #include <stdlib.h> | 
|  | 11367 |  | 
|  | 11368 | int | 
|  | 11369 | main () | 
|  | 11370 | { | 
|  | 11371 | int res = unsetenv("DUMMY") | 
|  | 11372 | ; | 
|  | 11373 | return 0; | 
|  | 11374 | } | 
|  | 11375 | _ACEOF | 
|  | 11376 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11378 | $as_echo "no" >&6; } | 
|  | 11379 | else | 
|  | 11380 |  | 
|  | 11381 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
|  | 11382 |  | 
|  | 11383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11384 | $as_echo "yes" >&6; } | 
|  | 11385 |  | 
|  | 11386 | fi | 
|  | 11387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11388 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11389 | for ac_prog in true | 
|  | 11390 | do | 
|  | 11391 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 11392 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11394 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11395 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11396 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11397 | else | 
|  | 11398 | if test -n "$TRUE"; then | 
|  | 11399 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
|  | 11400 | else | 
|  | 11401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11402 | for as_dir in $PATH | 
|  | 11403 | do | 
|  | 11404 | IFS=$as_save_IFS | 
|  | 11405 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11406 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11407 | 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] | 11408 | ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11409 | $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] | 11410 | break 2 | 
|  | 11411 | fi | 
|  | 11412 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11413 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11414 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11415 |  | 
|  | 11416 | fi | 
|  | 11417 | fi | 
|  | 11418 | TRUE=$ac_cv_prog_TRUE | 
|  | 11419 | if test -n "$TRUE"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
|  | 11421 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11422 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11424 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11425 | fi | 
|  | 11426 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11427 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11428 | test -n "$TRUE" && break | 
|  | 11429 | done | 
|  | 11430 | test -n "$TRUE" || TRUE="/bin/true" | 
|  | 11431 |  | 
|  | 11432 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
|  | 11434 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11435 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11436 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11437 | else | 
|  | 11438 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11439 | LIBS="-lc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11441 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11442 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11443 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11444 | Use char because int might match the return type of a GCC | 
|  | 11445 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11446 | #ifdef __cplusplus | 
|  | 11447 | extern "C" | 
|  | 11448 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11449 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11450 | int | 
|  | 11451 | main () | 
|  | 11452 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11453 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11454 | ; | 
|  | 11455 | return 0; | 
|  | 11456 | } | 
|  | 11457 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11458 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11459 | ac_cv_lib_c_inet_aton=yes | 
|  | 11460 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11461 | ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11462 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11463 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11464 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11465 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11466 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
|  | 11468 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11469 | 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] | 11470 | $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11471 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
|  | 11473 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11474 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11475 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11476 | else | 
|  | 11477 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11478 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11480 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11481 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11482 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11483 | Use char because int might match the return type of a GCC | 
|  | 11484 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11485 | #ifdef __cplusplus | 
|  | 11486 | extern "C" | 
|  | 11487 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11488 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11489 | int | 
|  | 11490 | main () | 
|  | 11491 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11492 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11493 | ; | 
|  | 11494 | return 0; | 
|  | 11495 | } | 
|  | 11496 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11497 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11498 | ac_cv_lib_resolv_inet_aton=yes | 
|  | 11499 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11500 | ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11501 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11502 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11503 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11504 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11505 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
|  | 11507 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11508 | 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] | 11509 | cat >>confdefs.h <<_ACEOF | 
|  | 11510 | #define HAVE_LIBRESOLV 1 | 
|  | 11511 | _ACEOF | 
|  | 11512 |  | 
|  | 11513 | LIBS="-lresolv $LIBS" | 
|  | 11514 |  | 
|  | 11515 | fi | 
|  | 11516 |  | 
|  | 11517 |  | 
|  | 11518 | fi | 
|  | 11519 |  | 
|  | 11520 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11521 | # On Tru64, chflags seems to be present, but calling it will | 
|  | 11522 | # exit Python | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
|  | 11524 | $as_echo_n "checking for chflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11525 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11526 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11527 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11528 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11529 | ac_cv_have_chflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11530 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11532 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11533 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11534 | #include <sys/stat.h> | 
|  | 11535 | #include <unistd.h> | 
|  | 11536 | int main(int argc, char*argv[]) | 
|  | 11537 | { | 
|  | 11538 | if(chflags(argv[0], 0) != 0) | 
|  | 11539 | return 1; | 
|  | 11540 | return 0; | 
|  | 11541 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11542 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11543 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11544 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11545 | ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11546 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11547 | ac_cv_have_chflags=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11548 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11549 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11550 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 11551 | fi | 
|  | 11552 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11553 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11554 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
|  | 11556 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11557 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11558 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11559 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11560 | ac_cv_have_chflags="yes" | 
|  | 11561 | else | 
|  | 11562 | ac_cv_have_chflags="no" | 
|  | 11563 | fi | 
|  | 11564 |  | 
|  | 11565 | fi | 
|  | 11566 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11567 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11568 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11569 |  | 
|  | 11570 | fi | 
|  | 11571 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
|  | 11573 | $as_echo_n "checking for lchflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11574 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11575 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11576 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11577 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11578 | ac_cv_have_lchflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11579 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11581 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11582 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11583 | #include <sys/stat.h> | 
|  | 11584 | #include <unistd.h> | 
|  | 11585 | int main(int argc, char*argv[]) | 
|  | 11586 | { | 
|  | 11587 | if(lchflags(argv[0], 0) != 0) | 
|  | 11588 | return 1; | 
|  | 11589 | return 0; | 
|  | 11590 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11591 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11592 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11593 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11594 | ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11595 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11596 | ac_cv_have_lchflags=no | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11597 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11598 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11599 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11600 | fi | 
|  | 11601 |  | 
|  | 11602 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11603 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
|  | 11605 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11606 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11607 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11608 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11609 | ac_cv_have_lchflags="yes" | 
|  | 11610 | else | 
|  | 11611 | ac_cv_have_lchflags="no" | 
|  | 11612 | fi | 
|  | 11613 |  | 
|  | 11614 | fi | 
|  | 11615 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11616 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11617 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11618 |  | 
|  | 11619 | fi | 
|  | 11620 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11621 | case $ac_sys_system/$ac_sys_release in | 
|  | 11622 | Darwin/*) | 
|  | 11623 | _CUR_CFLAGS="${CFLAGS}" | 
|  | 11624 | _CUR_LDFLAGS="${LDFLAGS}" | 
|  | 11625 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
|  | 11626 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
|  | 11627 | ;; | 
|  | 11628 | esac | 
|  | 11629 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
|  | 11631 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11632 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11633 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11634 | else | 
|  | 11635 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11636 | LIBS="-lz  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11638 | /* end confdefs.h.  */ | 
|  | 11639 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11640 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11641 | Use char because int might match the return type of a GCC | 
|  | 11642 | builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11643 | #ifdef __cplusplus | 
|  | 11644 | extern "C" | 
|  | 11645 | #endif | 
|  | 11646 | char inflateCopy (); | 
|  | 11647 | int | 
|  | 11648 | main () | 
|  | 11649 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11650 | return inflateCopy (); | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11651 | ; | 
|  | 11652 | return 0; | 
|  | 11653 | } | 
|  | 11654 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11655 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11656 | ac_cv_lib_z_inflateCopy=yes | 
|  | 11657 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11658 | ac_cv_lib_z_inflateCopy=no | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11659 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11660 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11661 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11662 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11663 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
|  | 11665 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11666 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11667 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11668 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11669 |  | 
|  | 11670 | fi | 
|  | 11671 |  | 
|  | 11672 |  | 
|  | 11673 | case $ac_sys_system/$ac_sys_release in | 
|  | 11674 | Darwin/*) | 
|  | 11675 | CFLAGS="${_CUR_CFLAGS}" | 
|  | 11676 | LDFLAGS="${_CUR_LDFLAGS}" | 
|  | 11677 | ;; | 
|  | 11678 | esac | 
|  | 11679 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
|  | 11681 | $as_echo_n "checking for hstrerror... " >&6; } | 
|  | 11682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11683 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11684 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11685 | #include <netdb.h> | 
|  | 11686 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11687 | int | 
|  | 11688 | main () | 
|  | 11689 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11690 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11691 | ; | 
|  | 11692 | return 0; | 
|  | 11693 | } | 
|  | 11694 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11695 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11696 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11697 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11698 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11700 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11701 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11703 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11704 |  | 
|  | 11705 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11706 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11707 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11708 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
|  | 11710 | $as_echo_n "checking for inet_aton... " >&6; } | 
|  | 11711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11712 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11713 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11714 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11715 | #include <sys/socket.h> | 
|  | 11716 | #include <netinet/in.h> | 
|  | 11717 | #include <arpa/inet.h> | 
|  | 11718 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11719 | int | 
|  | 11720 | main () | 
|  | 11721 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11722 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11723 | ; | 
|  | 11724 | return 0; | 
|  | 11725 | } | 
|  | 11726 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11727 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11728 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11729 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11730 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11732 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +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 | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11736 |  | 
|  | 11737 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11738 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11739 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11740 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
|  | 11742 | $as_echo_n "checking for inet_pton... " >&6; } | 
|  | 11743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11744 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11745 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11746 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11747 | #include <sys/socket.h> | 
|  | 11748 | #include <netinet/in.h> | 
|  | 11749 | #include <arpa/inet.h> | 
|  | 11750 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11751 | int | 
|  | 11752 | main () | 
|  | 11753 | { | 
|  | 11754 | void* p = inet_pton | 
|  | 11755 | ; | 
|  | 11756 | return 0; | 
|  | 11757 | } | 
|  | 11758 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11759 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11760 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11761 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11762 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11764 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11765 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11767 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11768 |  | 
|  | 11769 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11770 | 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] | 11771 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11772 | # 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] | 11773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
|  | 11774 | $as_echo_n "checking for setgroups... " >&6; } | 
|  | 11775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11776 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11777 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11778 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11779 | #ifdef HAVE_GRP_H | 
|  | 11780 | #include <grp.h> | 
|  | 11781 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11782 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11783 | int | 
|  | 11784 | main () | 
|  | 11785 | { | 
|  | 11786 | void* p = setgroups | 
|  | 11787 | ; | 
|  | 11788 | return 0; | 
|  | 11789 | } | 
|  | 11790 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11791 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11792 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11793 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11794 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11796 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11797 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11799 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11800 |  | 
|  | 11801 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11802 | 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] | 11803 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11804 | # check for openpty and forkpty | 
|  | 11805 |  | 
|  | 11806 | for ac_func in openpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11807 | do : | 
|  | 11808 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11809 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11810 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11811 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11812 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11813 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11814 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
|  | 11816 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11817 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11818 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11819 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11820 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11821 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11823 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11824 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11825 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11826 | Use char because int might match the return type of a GCC | 
|  | 11827 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11828 | #ifdef __cplusplus | 
|  | 11829 | extern "C" | 
|  | 11830 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11831 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11832 | int | 
|  | 11833 | main () | 
|  | 11834 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11835 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11836 | ; | 
|  | 11837 | return 0; | 
|  | 11838 | } | 
|  | 11839 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11840 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11841 | ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11842 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11843 | ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11844 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11845 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11846 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11847 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11848 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
|  | 11850 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11851 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11852 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11853 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11854 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
|  | 11856 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11857 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11858 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11859 | else | 
|  | 11860 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11861 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11863 | /* end confdefs.h.  */ | 
|  | 11864 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11865 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11866 | Use char because int might match the return type of a GCC | 
|  | 11867 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11868 | #ifdef __cplusplus | 
|  | 11869 | extern "C" | 
|  | 11870 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11871 | char openpty (); | 
|  | 11872 | int | 
|  | 11873 | main () | 
|  | 11874 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11875 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11876 | ; | 
|  | 11877 | return 0; | 
|  | 11878 | } | 
|  | 11879 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11880 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11881 | ac_cv_lib_bsd_openpty=yes | 
|  | 11882 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11883 | ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11884 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11885 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11886 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11887 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11888 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
|  | 11890 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11891 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11892 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11893 | LIBS="$LIBS -lbsd" | 
|  | 11894 | fi | 
|  | 11895 |  | 
|  | 11896 |  | 
|  | 11897 | fi | 
|  | 11898 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11899 |  | 
|  | 11900 | fi | 
|  | 11901 | done | 
|  | 11902 |  | 
|  | 11903 | for ac_func in forkpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11904 | do : | 
|  | 11905 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11906 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11907 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11908 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11909 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11910 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11911 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
|  | 11913 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11914 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11915 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11916 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11917 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11918 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11920 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11921 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11922 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11923 | Use char because int might match the return type of a GCC | 
|  | 11924 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11925 | #ifdef __cplusplus | 
|  | 11926 | extern "C" | 
|  | 11927 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11928 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11929 | int | 
|  | 11930 | main () | 
|  | 11931 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11932 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11933 | ; | 
|  | 11934 | return 0; | 
|  | 11935 | } | 
|  | 11936 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11937 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11938 | ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11939 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11940 | ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11941 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11942 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11943 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11944 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11945 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
|  | 11947 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11948 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11949 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11950 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11951 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
|  | 11953 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11954 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11955 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11956 | else | 
|  | 11957 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11958 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11960 | /* end confdefs.h.  */ | 
|  | 11961 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11962 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11963 | Use char because int might match the return type of a GCC | 
|  | 11964 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11965 | #ifdef __cplusplus | 
|  | 11966 | extern "C" | 
|  | 11967 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11968 | char forkpty (); | 
|  | 11969 | int | 
|  | 11970 | main () | 
|  | 11971 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11972 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11973 | ; | 
|  | 11974 | return 0; | 
|  | 11975 | } | 
|  | 11976 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11977 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11978 | ac_cv_lib_bsd_forkpty=yes | 
|  | 11979 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11980 | ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11981 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11982 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11983 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11984 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11985 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
|  | 11987 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11988 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11989 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 11990 | LIBS="$LIBS -lbsd" | 
|  | 11991 | fi | 
|  | 11992 |  | 
|  | 11993 |  | 
|  | 11994 | fi | 
|  | 11995 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11996 |  | 
|  | 11997 | fi | 
|  | 11998 | done | 
|  | 11999 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12000 |  | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12001 | # Stuff for expat. | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12002 | for ac_func in memmove | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12003 | do : | 
|  | 12004 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12005 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12006 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12007 | #define HAVE_MEMMOVE 1 | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12008 | _ACEOF | 
|  | 12009 |  | 
|  | 12010 | fi | 
|  | 12011 | done | 
|  | 12012 |  | 
|  | 12013 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12014 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12015 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12016 | do : | 
|  | 12017 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 12018 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12019 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12020 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12021 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12022 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12023 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12024 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12025 | done | 
|  | 12026 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12027 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12028 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12029 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12030 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12031 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12032 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12033 | case " $LIBOBJS " in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12034 | *" dup2.$ac_objext "* ) ;; | 
|  | 12035 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12036 | ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12037 | esac | 
|  | 12038 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12039 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12040 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12041 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12042 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12043 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
|  | 12044 |  | 
|  | 12045 | else | 
|  | 12046 | case " $LIBOBJS " in | 
|  | 12047 | *" strdup.$ac_objext "* ) ;; | 
|  | 12048 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
|  | 12049 | ;; | 
|  | 12050 | esac | 
|  | 12051 |  | 
|  | 12052 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12053 |  | 
|  | 12054 |  | 
|  | 12055 | for ac_func in getpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12056 | do : | 
|  | 12057 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12058 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12059 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12060 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12061 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12063 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12064 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12065 | int | 
|  | 12066 | main () | 
|  | 12067 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12068 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12069 | ; | 
|  | 12070 | return 0; | 
|  | 12071 | } | 
|  | 12072 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12073 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12074 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12075 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12076 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12077 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12078 | 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] | 12079 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12080 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12081 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12082 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12083 | for ac_func in setpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12084 | do : | 
|  | 12085 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12086 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12087 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12088 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12089 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12091 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12092 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12093 | int | 
|  | 12094 | main () | 
|  | 12095 | { | 
|  | 12096 | setpgrp(0,0); | 
|  | 12097 | ; | 
|  | 12098 | return 0; | 
|  | 12099 | } | 
|  | 12100 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12101 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12102 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12103 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12104 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12105 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12107 |  | 
|  | 12108 | fi | 
|  | 12109 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12110 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12111 | for ac_func in gettimeofday | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12112 | do : | 
|  | 12113 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12114 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12115 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12116 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12117 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12119 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12120 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12121 | int | 
|  | 12122 | main () | 
|  | 12123 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12124 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12125 | ; | 
|  | 12126 | return 0; | 
|  | 12127 | } | 
|  | 12128 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12129 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12130 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12131 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12132 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12133 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12134 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12135 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12136 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12137 | 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] | 12138 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12139 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12140 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12141 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12142 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12143 | for ac_func in clock_gettime | 
|  | 12144 | do : | 
|  | 12145 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | 
|  | 12146 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | 
|  | 12147 | cat >>confdefs.h <<_ACEOF | 
|  | 12148 | #define HAVE_CLOCK_GETTIME 1 | 
|  | 12149 | _ACEOF | 
|  | 12150 |  | 
|  | 12151 | else | 
|  | 12152 |  | 
|  | 12153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | 
|  | 12154 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | 
|  | 12155 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | 
|  | 12156 | $as_echo_n "(cached) " >&6 | 
|  | 12157 | else | 
|  | 12158 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12159 | LIBS="-lrt  $LIBS" | 
|  | 12160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12161 | /* end confdefs.h.  */ | 
|  | 12162 |  | 
|  | 12163 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12164 | Use char because int might match the return type of a GCC | 
|  | 12165 | builtin and then its argument prototype would still apply.  */ | 
|  | 12166 | #ifdef __cplusplus | 
|  | 12167 | extern "C" | 
|  | 12168 | #endif | 
|  | 12169 | char clock_gettime (); | 
|  | 12170 | int | 
|  | 12171 | main () | 
|  | 12172 | { | 
|  | 12173 | return clock_gettime (); | 
|  | 12174 | ; | 
|  | 12175 | return 0; | 
|  | 12176 | } | 
|  | 12177 | _ACEOF | 
|  | 12178 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 12179 | ac_cv_lib_rt_clock_gettime=yes | 
|  | 12180 | else | 
|  | 12181 | ac_cv_lib_rt_clock_gettime=no | 
|  | 12182 | fi | 
|  | 12183 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12184 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12185 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12186 | fi | 
|  | 12187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | 
|  | 12188 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | 
|  | 12189 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | 
|  | 12190 |  | 
| Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 12191 | LIBS="$LIBS -lrt" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12192 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | 
|  | 12193 |  | 
|  | 12194 |  | 
|  | 12195 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h | 
|  | 12196 |  | 
|  | 12197 |  | 
|  | 12198 | fi | 
|  | 12199 |  | 
|  | 12200 |  | 
|  | 12201 | fi | 
|  | 12202 | done | 
|  | 12203 |  | 
|  | 12204 |  | 
|  | 12205 | for ac_func in clock_getres | 
|  | 12206 | do : | 
|  | 12207 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | 
|  | 12208 | if test "x$ac_cv_func_clock_getres" = xyes; then : | 
|  | 12209 | cat >>confdefs.h <<_ACEOF | 
|  | 12210 | #define HAVE_CLOCK_GETRES 1 | 
|  | 12211 | _ACEOF | 
|  | 12212 |  | 
|  | 12213 | else | 
|  | 12214 |  | 
|  | 12215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 | 
|  | 12216 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | 
|  | 12217 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | 
|  | 12218 | $as_echo_n "(cached) " >&6 | 
|  | 12219 | else | 
|  | 12220 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12221 | LIBS="-lrt  $LIBS" | 
|  | 12222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12223 | /* end confdefs.h.  */ | 
|  | 12224 |  | 
|  | 12225 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12226 | Use char because int might match the return type of a GCC | 
|  | 12227 | builtin and then its argument prototype would still apply.  */ | 
|  | 12228 | #ifdef __cplusplus | 
|  | 12229 | extern "C" | 
|  | 12230 | #endif | 
|  | 12231 | char clock_getres (); | 
|  | 12232 | int | 
|  | 12233 | main () | 
|  | 12234 | { | 
|  | 12235 | return clock_getres (); | 
|  | 12236 | ; | 
|  | 12237 | return 0; | 
|  | 12238 | } | 
|  | 12239 | _ACEOF | 
|  | 12240 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 12241 | ac_cv_lib_rt_clock_getres=yes | 
|  | 12242 | else | 
|  | 12243 | ac_cv_lib_rt_clock_getres=no | 
|  | 12244 | fi | 
|  | 12245 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12246 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12247 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12248 | fi | 
|  | 12249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 | 
|  | 12250 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | 
|  | 12251 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | 
|  | 12252 |  | 
|  | 12253 | $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h | 
|  | 12254 |  | 
|  | 12255 |  | 
|  | 12256 | fi | 
|  | 12257 |  | 
|  | 12258 |  | 
|  | 12259 | fi | 
|  | 12260 | done | 
|  | 12261 |  | 
|  | 12262 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
|  | 12264 | $as_echo_n "checking for major... " >&6; } | 
|  | 12265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12266 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12267 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12268 | #if defined(MAJOR_IN_MKDEV) | 
|  | 12269 | #include <sys/mkdev.h> | 
|  | 12270 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 12271 | #include <sys/sysmacros.h> | 
|  | 12272 | #else | 
|  | 12273 | #include <sys/types.h> | 
|  | 12274 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12275 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12276 | int | 
|  | 12277 | main () | 
|  | 12278 | { | 
|  | 12279 |  | 
|  | 12280 | makedev(major(0),minor(0)); | 
|  | 12281 |  | 
|  | 12282 | ; | 
|  | 12283 | return 0; | 
|  | 12284 | } | 
|  | 12285 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12286 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12287 |  | 
|  | 12288 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12289 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12290 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 12292 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12293 |  | 
|  | 12294 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12295 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12297 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12298 |  | 
|  | 12299 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12300 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12301 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12302 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12303 | # 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] | 12304 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
|  | 12306 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
|  | 12307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12308 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12309 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12310 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12311 | #include <sys/socket.h> | 
|  | 12312 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12313 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12314 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12315 | int | 
|  | 12316 | main () | 
|  | 12317 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12318 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12319 | ; | 
|  | 12320 | return 0; | 
|  | 12321 | } | 
|  | 12322 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12323 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12324 | have_getaddrinfo=yes | 
|  | 12325 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12326 | have_getaddrinfo=no | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12327 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12328 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12329 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
|  | 12331 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12332 | if test $have_getaddrinfo = yes | 
|  | 12333 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
|  | 12335 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12336 | if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12337 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12338 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12339 | if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12340 |  | 
|  | 12341 | if test "${enable_ipv6+set}" = set; then | 
|  | 12342 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | 
|  | 12343 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12344 | ac_cv_buggy_getaddrinfo=yes | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12345 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12346 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12348 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12349 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 12350 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12351 | #include <sys/types.h> | 
|  | 12352 | #include <netdb.h> | 
|  | 12353 | #include <string.h> | 
|  | 12354 | #include <sys/socket.h> | 
|  | 12355 | #include <netinet/in.h> | 
|  | 12356 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12357 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12358 | { | 
|  | 12359 | int passive, gaierr, inet4 = 0, inet6 = 0; | 
|  | 12360 | struct addrinfo hints, *ai, *aitop; | 
|  | 12361 | char straddr[INET6_ADDRSTRLEN], strport[16]; | 
|  | 12362 |  | 
|  | 12363 | for (passive = 0; passive <= 1; passive++) { | 
|  | 12364 | memset(&hints, 0, sizeof(hints)); | 
|  | 12365 | hints.ai_family = AF_UNSPEC; | 
|  | 12366 | hints.ai_flags = passive ? AI_PASSIVE : 0; | 
|  | 12367 | hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 12368 | hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12369 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
|  | 12370 | (void)gai_strerror(gaierr); | 
|  | 12371 | goto bad; | 
|  | 12372 | } | 
|  | 12373 | for (ai = aitop; ai; ai = ai->ai_next) { | 
|  | 12374 | if (ai->ai_addr == NULL || | 
|  | 12375 | ai->ai_addrlen == 0 || | 
|  | 12376 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
|  | 12377 | straddr, sizeof(straddr), strport, sizeof(strport), | 
|  | 12378 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
|  | 12379 | goto bad; | 
|  | 12380 | } | 
|  | 12381 | switch (ai->ai_family) { | 
|  | 12382 | case AF_INET: | 
|  | 12383 | if (strcmp(strport, "54321") != 0) { | 
|  | 12384 | goto bad; | 
|  | 12385 | } | 
|  | 12386 | if (passive) { | 
|  | 12387 | if (strcmp(straddr, "0.0.0.0") != 0) { | 
|  | 12388 | goto bad; | 
|  | 12389 | } | 
|  | 12390 | } else { | 
|  | 12391 | if (strcmp(straddr, "127.0.0.1") != 0) { | 
|  | 12392 | goto bad; | 
|  | 12393 | } | 
|  | 12394 | } | 
|  | 12395 | inet4++; | 
|  | 12396 | break; | 
|  | 12397 | case AF_INET6: | 
|  | 12398 | if (strcmp(strport, "54321") != 0) { | 
|  | 12399 | goto bad; | 
|  | 12400 | } | 
|  | 12401 | if (passive) { | 
|  | 12402 | if (strcmp(straddr, "::") != 0) { | 
|  | 12403 | goto bad; | 
|  | 12404 | } | 
|  | 12405 | } else { | 
|  | 12406 | if (strcmp(straddr, "::1") != 0) { | 
|  | 12407 | goto bad; | 
|  | 12408 | } | 
|  | 12409 | } | 
|  | 12410 | inet6++; | 
|  | 12411 | break; | 
|  | 12412 | case AF_UNSPEC: | 
|  | 12413 | goto bad; | 
|  | 12414 | break; | 
|  | 12415 | default: | 
|  | 12416 | /* another family support? */ | 
|  | 12417 | break; | 
|  | 12418 | } | 
|  | 12419 | } | 
| Benjamin Peterson | 01c340d | 2016-09-06 15:54:24 -0700 | [diff] [blame] | 12420 | freeaddrinfo(aitop); | 
|  | 12421 | aitop = NULL; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12422 | } | 
|  | 12423 |  | 
|  | 12424 | if (!(inet4 == 0 || inet4 == 2)) | 
|  | 12425 | goto bad; | 
|  | 12426 | if (!(inet6 == 0 || inet6 == 2)) | 
|  | 12427 | goto bad; | 
|  | 12428 |  | 
|  | 12429 | if (aitop) | 
|  | 12430 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12431 | return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12432 |  | 
|  | 12433 | bad: | 
|  | 12434 | if (aitop) | 
|  | 12435 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12436 | return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12437 | } | 
|  | 12438 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12439 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12440 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12441 | ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12442 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12443 | ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12444 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12445 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12446 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12447 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12448 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12449 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12450 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12451 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12452 |  | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
|  | 12454 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
|  | 12455 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12456 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12457 | then | 
|  | 12458 | if test $ipv6 = yes | 
|  | 12459 | then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12460 | echo 'Fatal: You must get working getaddrinfo() function.' | 
|  | 12461 | echo '       or you can specify "--disable-ipv6"'. | 
|  | 12462 | exit 1 | 
|  | 12463 | fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12464 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12465 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12466 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12467 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12468 | fi | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12469 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12470 | for ac_func in getnameinfo | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12471 | do : | 
|  | 12472 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12473 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12474 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12475 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12476 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12477 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12478 | fi | 
|  | 12479 | done | 
|  | 12480 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12481 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12482 | # checks for structures | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
|  | 12484 | $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] | 12485 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12486 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12487 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12489 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12490 | #include <sys/types.h> | 
|  | 12491 | #include <sys/time.h> | 
|  | 12492 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12493 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12494 | int | 
|  | 12495 | main () | 
|  | 12496 | { | 
|  | 12497 | if ((struct tm *) 0) | 
|  | 12498 | return 0; | 
|  | 12499 | ; | 
|  | 12500 | return 0; | 
|  | 12501 | } | 
|  | 12502 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12503 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12504 | ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12505 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12506 | ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12507 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12509 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
|  | 12511 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12512 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12513 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12514 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12515 |  | 
|  | 12516 | fi | 
|  | 12517 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|  | 12519 | $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] | 12520 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12521 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12522 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12524 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12525 | #include <sys/types.h> | 
|  | 12526 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12527 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12528 | int | 
|  | 12529 | main () | 
|  | 12530 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12531 | struct tm tm; | 
|  | 12532 | int *p = &tm.tm_sec; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12533 | return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12534 | ; | 
|  | 12535 | return 0; | 
|  | 12536 | } | 
|  | 12537 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12538 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12539 | ac_cv_struct_tm=time.h | 
|  | 12540 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12541 | ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12542 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12544 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
|  | 12546 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12547 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12548 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12549 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12550 |  | 
|  | 12551 | fi | 
|  | 12552 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12553 | 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] | 12554 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12555 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12556 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12557 | 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] | 12558 |  | 
|  | 12559 | cat >>confdefs.h <<_ACEOF | 
|  | 12560 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 12561 | _ACEOF | 
|  | 12562 |  | 
|  | 12563 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12564 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12565 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12566 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 12567 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12568 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12569 |  | 
|  | 12570 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12571 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 12572 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12573 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12574 | ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12575 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12576 | ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12577 | fi | 
|  | 12578 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12579 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12580 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12581 | _ACEOF | 
|  | 12582 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 12584 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12585 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12586 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12587 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12589 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12590 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12591 | #if !HAVE_DECL_TZNAME | 
|  | 12592 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12593 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12594 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12595 | int | 
|  | 12596 | main () | 
|  | 12597 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12598 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12599 | ; | 
|  | 12600 | return 0; | 
|  | 12601 | } | 
|  | 12602 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12603 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12604 | ac_cv_var_tzname=yes | 
|  | 12605 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12606 | ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12607 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12608 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12609 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12610 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 12612 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12613 | if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12614 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12615 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12616 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12617 | fi | 
|  | 12618 | fi | 
|  | 12619 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12620 | 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] | 12621 | 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] | 12622 |  | 
|  | 12623 | cat >>confdefs.h <<_ACEOF | 
|  | 12624 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
|  | 12625 | _ACEOF | 
|  | 12626 |  | 
|  | 12627 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12628 | fi | 
|  | 12629 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12630 | 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] | 12631 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12632 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12633 | cat >>confdefs.h <<_ACEOF | 
|  | 12634 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
|  | 12635 | _ACEOF | 
|  | 12636 |  | 
|  | 12637 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12638 | fi | 
|  | 12639 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12640 | 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] | 12641 | 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] | 12642 |  | 
|  | 12643 | cat >>confdefs.h <<_ACEOF | 
|  | 12644 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
|  | 12645 | _ACEOF | 
|  | 12646 |  | 
|  | 12647 |  | 
|  | 12648 | fi | 
|  | 12649 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12650 | 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] | 12651 | 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] | 12652 |  | 
|  | 12653 | cat >>confdefs.h <<_ACEOF | 
|  | 12654 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
|  | 12655 | _ACEOF | 
|  | 12656 |  | 
|  | 12657 |  | 
|  | 12658 | fi | 
|  | 12659 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12660 | 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] | 12661 | 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] | 12662 |  | 
|  | 12663 | cat >>confdefs.h <<_ACEOF | 
|  | 12664 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
|  | 12665 | _ACEOF | 
|  | 12666 |  | 
|  | 12667 |  | 
|  | 12668 | fi | 
|  | 12669 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12670 | 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] | 12671 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12672 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12673 | cat >>confdefs.h <<_ACEOF | 
|  | 12674 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
|  | 12675 | _ACEOF | 
|  | 12676 |  | 
|  | 12677 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12678 | fi | 
|  | 12679 |  | 
| Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 12680 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " | 
|  | 12681 | #include <sys/types.h> | 
|  | 12682 | #include <pwd.h> | 
|  | 12683 |  | 
|  | 12684 | " | 
|  | 12685 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | 
|  | 12686 |  | 
|  | 12687 | cat >>confdefs.h <<_ACEOF | 
|  | 12688 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | 
|  | 12689 | _ACEOF | 
|  | 12690 |  | 
|  | 12691 |  | 
|  | 12692 | fi | 
|  | 12693 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " | 
|  | 12694 | #include <sys/types.h> | 
|  | 12695 | #include <pwd.h> | 
|  | 12696 |  | 
|  | 12697 | " | 
|  | 12698 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : | 
|  | 12699 |  | 
|  | 12700 | cat >>confdefs.h <<_ACEOF | 
|  | 12701 | #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 | 
|  | 12702 | _ACEOF | 
|  | 12703 |  | 
|  | 12704 |  | 
|  | 12705 | fi | 
|  | 12706 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12707 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
|  | 12709 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12710 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12711 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12712 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12713 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12715 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12716 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12717 | int | 
|  | 12718 | main () | 
|  | 12719 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12720 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12721 | ; | 
|  | 12722 | return 0; | 
|  | 12723 | } | 
|  | 12724 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12725 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12726 | ac_cv_header_time_altzone=yes | 
|  | 12727 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12728 | ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12729 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12731 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12732 | fi | 
|  | 12733 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
|  | 12735 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12736 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12737 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12738 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12739 |  | 
|  | 12740 | fi | 
|  | 12741 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12742 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
|  | 12744 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
|  | 12745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12746 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12747 |  | 
|  | 12748 | #include <sys/types.h> | 
|  | 12749 | #include <sys/select.h> | 
|  | 12750 | #include <sys/time.h> | 
|  | 12751 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12752 | int | 
|  | 12753 | main () | 
|  | 12754 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12755 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12756 | ; | 
|  | 12757 | return 0; | 
|  | 12758 | } | 
|  | 12759 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12760 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12761 |  | 
|  | 12762 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12763 | $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] | 12764 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12765 | was_it_defined=yes | 
|  | 12766 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12767 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 12770 | $as_echo "$was_it_defined" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12771 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
|  | 12773 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12774 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12775 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12776 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12778 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12779 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12780 | int | 
|  | 12781 | main () | 
|  | 12782 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12783 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12784 | ; | 
|  | 12785 | return 0; | 
|  | 12786 | } | 
|  | 12787 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12788 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12789 | ac_cv_struct_addrinfo=yes | 
|  | 12790 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12791 | ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12792 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12794 | fi | 
|  | 12795 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
|  | 12797 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12798 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12799 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12800 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12801 |  | 
|  | 12802 | fi | 
|  | 12803 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
|  | 12805 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12806 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12807 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12808 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12810 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12811 |  | 
|  | 12812 | #		include <sys/types.h> | 
|  | 12813 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12814 | int | 
|  | 12815 | main () | 
|  | 12816 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12817 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12818 | ; | 
|  | 12819 | return 0; | 
|  | 12820 | } | 
|  | 12821 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12822 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12823 | ac_cv_struct_sockaddr_storage=yes | 
|  | 12824 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12825 | ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12826 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12828 | fi | 
|  | 12829 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
|  | 12831 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12832 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12833 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12834 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12835 |  | 
|  | 12836 | fi | 
|  | 12837 |  | 
| Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 12838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 | 
|  | 12839 | $as_echo_n "checking for sockaddr_alg... " >&6; } | 
|  | 12840 | if ${ac_cv_struct_sockaddr_alg+:} false; then : | 
|  | 12841 | $as_echo_n "(cached) " >&6 | 
|  | 12842 | else | 
|  | 12843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12844 | /* end confdefs.h.  */ | 
|  | 12845 |  | 
|  | 12846 | #		include <sys/types.h> | 
|  | 12847 | #		include <sys/socket.h> | 
|  | 12848 | #		include <linux/if_alg.h> | 
|  | 12849 | int | 
|  | 12850 | main () | 
|  | 12851 | { | 
|  | 12852 | struct sockaddr_alg s | 
|  | 12853 | ; | 
|  | 12854 | return 0; | 
|  | 12855 | } | 
|  | 12856 | _ACEOF | 
|  | 12857 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12858 | ac_cv_struct_sockaddr_alg=yes | 
|  | 12859 | else | 
|  | 12860 | ac_cv_struct_sockaddr_alg=no | 
|  | 12861 | fi | 
|  | 12862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12863 | fi | 
|  | 12864 |  | 
|  | 12865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 | 
|  | 12866 | $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } | 
|  | 12867 | if test $ac_cv_struct_sockaddr_alg = yes; then | 
|  | 12868 |  | 
|  | 12869 | $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h | 
|  | 12870 |  | 
|  | 12871 | fi | 
|  | 12872 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12873 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12874 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
|  | 12876 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12877 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12878 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12879 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12881 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12882 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12883 | int | 
|  | 12884 | main () | 
|  | 12885 | { | 
|  | 12886 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12887 | test_array [0] = 0; | 
|  | 12888 | return test_array [0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12889 |  | 
|  | 12890 | ; | 
|  | 12891 | return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12892 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12893 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12894 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12895 | ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12896 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12897 | ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12898 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12900 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
|  | 12902 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12903 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12904 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12905 |  | 
|  | 12906 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12907 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
|  | 12909 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12910 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12911 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12912 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12914 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12915 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12916 | int | 
|  | 12917 | main () | 
|  | 12918 | { | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12919 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12920 | #ifndef __cplusplus | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12921 | /* Ultrix mips cc rejects this sort of thing.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12922 | typedef int charset[2]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12923 | const charset cs = { 0, 0 }; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12924 | /* SunOS 4.1.1 cc rejects this.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12925 | char const *const *pcpcc; | 
|  | 12926 | char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12927 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|  | 12928 | struct point {int x, y;}; | 
|  | 12929 | static struct point const zero = {0,0}; | 
|  | 12930 | /* AIX XL C 1.02.0.0 rejects this. | 
|  | 12931 | It does not let you subtract one const X* pointer from another in | 
|  | 12932 | an arm of an if-expression whose if-part is not a constant | 
|  | 12933 | expression */ | 
|  | 12934 | const char *g = "string"; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12935 | pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12936 | /* HPUX 7.0 cc rejects these. */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12937 | ++pcpcc; | 
|  | 12938 | ppc = (char**) pcpcc; | 
|  | 12939 | pcpcc = (char const *const *) ppc; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12940 | { /* SCO 3.2v4 cc rejects this sort of thing.  */ | 
|  | 12941 | char tx; | 
|  | 12942 | char *t = &tx; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12943 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12944 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12945 | *t++ = 0; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12946 | if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12947 | } | 
|  | 12948 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|  | 12949 | int x[] = {25, 17}; | 
|  | 12950 | const int *foo = &x[0]; | 
|  | 12951 | ++foo; | 
|  | 12952 | } | 
|  | 12953 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|  | 12954 | typedef const int *iptr; | 
|  | 12955 | iptr p = 0; | 
|  | 12956 | ++p; | 
|  | 12957 | } | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 12958 | { /* 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] | 12959 | "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] | 12960 | struct s { int j; const int *ap[3]; } bx; | 
|  | 12961 | struct s *b = &bx; b->j = 5; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12962 | } | 
|  | 12963 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|  | 12964 | const int foo = 10; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12965 | if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12966 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12967 | return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12968 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12969 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12970 | ; | 
|  | 12971 | return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12972 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12973 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12974 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12975 | ac_cv_c_const=yes | 
|  | 12976 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12977 | ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12978 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12980 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
|  | 12982 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12983 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12984 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12985 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12986 |  | 
|  | 12987 | fi | 
|  | 12988 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12989 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12990 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
|  | 12992 | $as_echo_n "checking for working volatile... " >&6; } | 
|  | 12993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12994 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12995 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12996 | int | 
|  | 12997 | main () | 
|  | 12998 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12999 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13000 | ; | 
|  | 13001 | return 0; | 
|  | 13002 | } | 
|  | 13003 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13004 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13005 | works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13006 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13007 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13008 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13009 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13010 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13011 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 13014 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13015 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13016 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
|  | 13018 | $as_echo_n "checking for working signed char... " >&6; } | 
|  | 13019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13020 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13021 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13022 | int | 
|  | 13023 | main () | 
|  | 13024 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13025 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13026 | ; | 
|  | 13027 | return 0; | 
|  | 13028 | } | 
|  | 13029 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13030 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13031 | works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13032 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13033 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13034 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13035 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13036 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13037 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 13040 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13041 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13042 | have_prototypes=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
|  | 13044 | $as_echo_n "checking for prototypes... " >&6; } | 
|  | 13045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13046 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13047 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13048 | int | 
|  | 13049 | main () | 
|  | 13050 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13051 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13052 | ; | 
|  | 13053 | return 0; | 
|  | 13054 | } | 
|  | 13055 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13056 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13057 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13058 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13059 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13060 | have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13061 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
|  | 13064 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13065 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13066 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
|  | 13068 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
|  | 13069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13070 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13071 |  | 
|  | 13072 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13073 | int foo(int x, ...) { | 
|  | 13074 | va_list va; | 
|  | 13075 | va_start(va, x); | 
|  | 13076 | va_arg(va, int); | 
|  | 13077 | va_arg(va, char *); | 
|  | 13078 | va_arg(va, double); | 
|  | 13079 | return 0; | 
|  | 13080 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13081 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13082 | int | 
|  | 13083 | main () | 
|  | 13084 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13085 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13086 | ; | 
|  | 13087 | return 0; | 
|  | 13088 | } | 
|  | 13089 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13090 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13091 |  | 
|  | 13092 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13093 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13094 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13095 | works=yes | 
|  | 13096 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13097 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 13100 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13101 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13102 | # check for socketpair | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
|  | 13104 | $as_echo_n "checking for socketpair... " >&6; } | 
|  | 13105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13106 | /* end confdefs.h.  */ | 
|  | 13107 |  | 
|  | 13108 | #include <sys/types.h> | 
|  | 13109 | #include <sys/socket.h> | 
|  | 13110 |  | 
|  | 13111 | int | 
|  | 13112 | main () | 
|  | 13113 | { | 
|  | 13114 | void *x=socketpair | 
|  | 13115 | ; | 
|  | 13116 | return 0; | 
|  | 13117 | } | 
|  | 13118 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13119 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13120 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13121 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13122 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13124 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13125 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13127 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13128 |  | 
|  | 13129 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13130 | 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] | 13131 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13132 | # check if sockaddr has sa_len member | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
|  | 13134 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
|  | 13135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13136 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13137 | #include <sys/types.h> | 
|  | 13138 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13139 | int | 
|  | 13140 | main () | 
|  | 13141 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13142 | struct sockaddr x; | 
|  | 13143 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13144 | ; | 
|  | 13145 | return 0; | 
|  | 13146 | } | 
|  | 13147 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13148 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13150 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13151 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13152 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13153 |  | 
|  | 13154 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13156 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13157 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13158 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13159 | 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] | 13160 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13161 | va_list_is_array=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
|  | 13163 | $as_echo_n "checking whether va_list is an array... " >&6; } | 
|  | 13164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13165 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13166 |  | 
|  | 13167 | #ifdef HAVE_STDARG_PROTOTYPES | 
|  | 13168 | #include <stdarg.h> | 
|  | 13169 | #else | 
|  | 13170 | #include <varargs.h> | 
|  | 13171 | #endif | 
|  | 13172 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13173 | int | 
|  | 13174 | main () | 
|  | 13175 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13176 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13177 | ; | 
|  | 13178 | return 0; | 
|  | 13179 | } | 
|  | 13180 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13181 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13182 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13183 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13184 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13185 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13186 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13187 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13188 | va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13189 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13190 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
|  | 13193 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13194 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13195 | # 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] | 13196 |  | 
|  | 13197 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13198 | 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] | 13199 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13200 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13201 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13202 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
|  | 13204 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13205 | OLD_CFLAGS=$CFLAGS | 
|  | 13206 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13208 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13209 |  | 
|  | 13210 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13211 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13212 | int | 
|  | 13213 | main () | 
|  | 13214 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13215 |  | 
|  | 13216 | char *name; | 
|  | 13217 | struct hostent *he, *res; | 
|  | 13218 | char buffer[2048]; | 
|  | 13219 | int buflen = 2048; | 
|  | 13220 | int h_errnop; | 
|  | 13221 |  | 
|  | 13222 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13223 |  | 
|  | 13224 | ; | 
|  | 13225 | return 0; | 
|  | 13226 | } | 
|  | 13227 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13228 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13229 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13230 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13231 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13232 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13233 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13234 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13236 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13237 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13238 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13239 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13241 | $as_echo "no" >&6; } | 
|  | 13242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
|  | 13243 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
|  | 13244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13245 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13246 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13247 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13248 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13249 | int | 
|  | 13250 | main () | 
|  | 13251 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13252 |  | 
|  | 13253 | char *name; | 
|  | 13254 | struct hostent *he; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13255 | char buffer[2048]; | 
|  | 13256 | int buflen = 2048; | 
|  | 13257 | int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13258 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13259 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13260 |  | 
|  | 13261 | ; | 
|  | 13262 | return 0; | 
|  | 13263 | } | 
|  | 13264 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13265 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13266 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13267 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13268 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13269 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13270 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13271 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13273 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13274 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13275 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13276 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13278 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
|  | 13280 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
|  | 13281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13282 | /* end confdefs.h.  */ | 
|  | 13283 |  | 
|  | 13284 | #           include <netdb.h> | 
|  | 13285 |  | 
|  | 13286 | int | 
|  | 13287 | main () | 
|  | 13288 | { | 
|  | 13289 |  | 
|  | 13290 | char *name; | 
|  | 13291 | struct hostent *he; | 
|  | 13292 | struct hostent_data data; | 
|  | 13293 |  | 
|  | 13294 | (void) gethostbyname_r(name, he, &data); | 
|  | 13295 |  | 
|  | 13296 | ; | 
|  | 13297 | return 0; | 
|  | 13298 | } | 
|  | 13299 | _ACEOF | 
|  | 13300 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13301 |  | 
|  | 13302 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
|  | 13303 |  | 
|  | 13304 |  | 
|  | 13305 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
|  | 13306 |  | 
|  | 13307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13308 | $as_echo "yes" >&6; } | 
|  | 13309 |  | 
|  | 13310 | else | 
|  | 13311 |  | 
|  | 13312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13313 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13314 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13315 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13316 | 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] | 13317 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13318 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13319 | 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] | 13320 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13321 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13323 | CFLAGS=$OLD_CFLAGS | 
|  | 13324 |  | 
|  | 13325 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13326 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13327 | for ac_func in gethostbyname | 
|  | 13328 | do : | 
|  | 13329 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13330 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13331 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13332 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13333 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13334 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13335 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13336 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13337 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13338 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13339 | fi | 
|  | 13340 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13341 |  | 
|  | 13342 |  | 
|  | 13343 |  | 
|  | 13344 |  | 
|  | 13345 |  | 
|  | 13346 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13347 | # checks for system services | 
|  | 13348 | # (none yet) | 
|  | 13349 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13350 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13351 | 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] | 13352 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13353 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13354 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
|  | 13356 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13357 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13358 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13359 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13360 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13361 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13363 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13364 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13365 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13366 | Use char because int might match the return type of a GCC | 
|  | 13367 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13368 | #ifdef __cplusplus | 
|  | 13369 | extern "C" | 
|  | 13370 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13371 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13372 | int | 
|  | 13373 | main () | 
|  | 13374 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13375 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13376 | ; | 
|  | 13377 | return 0; | 
|  | 13378 | } | 
|  | 13379 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13380 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13381 | ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13382 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13383 | ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13384 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13385 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13386 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13387 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13388 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
|  | 13390 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13391 | 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] | 13392 | cat >>confdefs.h <<_ACEOF | 
|  | 13393 | #define HAVE_LIBIEEE 1 | 
|  | 13394 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13395 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13396 | LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13397 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13398 | fi | 
|  | 13399 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13400 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13401 | fi | 
|  | 13402 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13403 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13404 | # Check for --with-fpectl | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
|  | 13406 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13407 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13408 | # Check whether --with-fpectl was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13409 | if test "${with_fpectl+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13410 | withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13411 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13412 | then | 
|  | 13413 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13414 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13415 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13417 | $as_echo "yes" >&6; } | 
|  | 13418 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13419 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13420 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13421 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13423 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13424 | fi | 
|  | 13425 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13426 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13427 | # check for --with-libm=... | 
|  | 13428 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13429 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 13430 | Darwin) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13431 | *) LIBM=-lm | 
|  | 13432 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
|  | 13434 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13435 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13436 | # Check whether --with-libm was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13437 | if test "${with_libm+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13438 | withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13439 | if test "$withval" = no | 
|  | 13440 | then LIBM= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
|  | 13442 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13443 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13444 | then LIBM=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
|  | 13446 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13447 | 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] | 13448 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13449 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
|  | 13451 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13452 | fi | 
|  | 13453 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13454 |  | 
|  | 13455 | # check for --with-libc=... | 
|  | 13456 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
|  | 13458 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13459 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13460 | # Check whether --with-libc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13461 | if test "${with_libc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13462 | withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13463 | if test "$withval" = no | 
|  | 13464 | then LIBC= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
|  | 13466 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13467 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13468 | then LIBC=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
|  | 13470 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13471 | 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] | 13472 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13473 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
|  | 13475 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13476 | fi | 
|  | 13477 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13478 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13479 | # ************************************** | 
|  | 13480 | # * Check for gcc x64 inline assembler * | 
|  | 13481 | # ************************************** | 
|  | 13482 |  | 
|  | 13483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 | 
|  | 13484 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | 
|  | 13485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13486 | /* end confdefs.h.  */ | 
|  | 13487 |  | 
|  | 13488 | int | 
|  | 13489 | main () | 
|  | 13490 | { | 
|  | 13491 |  | 
|  | 13492 | __asm__ __volatile__ ("movq %rcx, %rax"); | 
|  | 13493 |  | 
|  | 13494 | ; | 
|  | 13495 | return 0; | 
|  | 13496 | } | 
|  | 13497 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13498 | if ac_fn_c_try_link "$LINENO"; then : | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13499 | have_gcc_asm_for_x64=yes | 
|  | 13500 | else | 
|  | 13501 | have_gcc_asm_for_x64=no | 
|  | 13502 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13503 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13504 | conftest$ac_exeext conftest.$ac_ext | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 | 
|  | 13506 | $as_echo "$have_gcc_asm_for_x64" >&6; } | 
|  | 13507 | if test "$have_gcc_asm_for_x64" = yes | 
|  | 13508 | then | 
|  | 13509 |  | 
|  | 13510 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h | 
|  | 13511 |  | 
|  | 13512 | fi | 
|  | 13513 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13514 | # ************************************************** | 
|  | 13515 | # * Check for various properties of floating point * | 
|  | 13516 | # ************************************************** | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13517 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
|  | 13519 | $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] | 13520 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13521 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13522 | else | 
|  | 13523 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13524 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13525 | ac_cv_little_endian_double=no | 
|  | 13526 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13528 | /* end confdefs.h.  */ | 
|  | 13529 |  | 
|  | 13530 | #include <string.h> | 
|  | 13531 | int main() { | 
|  | 13532 | double x = 9006104071832581.0; | 
|  | 13533 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
|  | 13534 | return 0; | 
|  | 13535 | else | 
|  | 13536 | return 1; | 
|  | 13537 | } | 
|  | 13538 |  | 
|  | 13539 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13540 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13541 | ac_cv_little_endian_double=yes | 
|  | 13542 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13543 | ac_cv_little_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13544 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13545 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13546 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13547 | fi | 
|  | 13548 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13549 | fi | 
|  | 13550 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
|  | 13552 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13553 | if test "$ac_cv_little_endian_double" = yes | 
|  | 13554 | then | 
|  | 13555 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13556 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13557 |  | 
|  | 13558 | fi | 
|  | 13559 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
|  | 13561 | $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] | 13562 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13563 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13564 | else | 
|  | 13565 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13566 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13567 | ac_cv_big_endian_double=no | 
|  | 13568 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13570 | /* end confdefs.h.  */ | 
|  | 13571 |  | 
|  | 13572 | #include <string.h> | 
|  | 13573 | int main() { | 
|  | 13574 | double x = 9006104071832581.0; | 
|  | 13575 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
|  | 13576 | return 0; | 
|  | 13577 | else | 
|  | 13578 | return 1; | 
|  | 13579 | } | 
|  | 13580 |  | 
|  | 13581 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13582 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13583 | ac_cv_big_endian_double=yes | 
|  | 13584 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13585 | ac_cv_big_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13586 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13587 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13588 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13589 | fi | 
|  | 13590 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13591 | fi | 
|  | 13592 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
|  | 13594 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13595 | if test "$ac_cv_big_endian_double" = yes | 
|  | 13596 | then | 
|  | 13597 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13598 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13599 |  | 
|  | 13600 | fi | 
|  | 13601 |  | 
|  | 13602 | # Some ARM platforms use a mixed-endian representation for doubles. | 
|  | 13603 | # While Python doesn't currently have full support for these platforms | 
|  | 13604 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
|  | 13605 | # conversions work. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
|  | 13607 | $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] | 13608 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13609 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13610 | else | 
|  | 13611 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13612 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13613 | ac_cv_mixed_endian_double=no | 
|  | 13614 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13616 | /* end confdefs.h.  */ | 
|  | 13617 |  | 
|  | 13618 | #include <string.h> | 
|  | 13619 | int main() { | 
|  | 13620 | double x = 9006104071832581.0; | 
|  | 13621 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
|  | 13622 | return 0; | 
|  | 13623 | else | 
|  | 13624 | return 1; | 
|  | 13625 | } | 
|  | 13626 |  | 
|  | 13627 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13628 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13629 | ac_cv_mixed_endian_double=yes | 
|  | 13630 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13631 | ac_cv_mixed_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13632 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13633 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13634 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13635 | fi | 
|  | 13636 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13637 | fi | 
|  | 13638 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
|  | 13640 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13641 | if test "$ac_cv_mixed_endian_double" = yes | 
|  | 13642 | then | 
|  | 13643 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13644 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13645 |  | 
|  | 13646 | fi | 
|  | 13647 |  | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13648 | # The short float repr introduced in Python 3.1 requires the | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13649 | # correctly-rounded string <-> double conversion functions from | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13650 | # 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] | 13651 | # 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] | 13652 | # 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] | 13653 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13654 |  | 
|  | 13655 | # This inline assembler syntax may also work for suncc and icc, | 
|  | 13656 | # so we try it on all platforms. | 
|  | 13657 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
|  | 13659 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
|  | 13660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13661 | /* end confdefs.h.  */ | 
|  | 13662 |  | 
|  | 13663 | int | 
|  | 13664 | main () | 
|  | 13665 | { | 
|  | 13666 |  | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13667 | unsigned short cw; | 
|  | 13668 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
|  | 13669 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13670 |  | 
|  | 13671 | ; | 
|  | 13672 | return 0; | 
|  | 13673 | } | 
|  | 13674 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13675 | if ac_fn_c_try_link "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13676 | have_gcc_asm_for_x87=yes | 
|  | 13677 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13678 | have_gcc_asm_for_x87=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13679 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13680 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13681 | conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
|  | 13683 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13684 | if test "$have_gcc_asm_for_x87" = yes | 
|  | 13685 | then | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13686 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13687 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13688 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13689 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13690 |  | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 | 
|  | 13692 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } | 
|  | 13693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13694 | /* end confdefs.h.  */ | 
|  | 13695 |  | 
|  | 13696 | int | 
|  | 13697 | main () | 
|  | 13698 | { | 
|  | 13699 |  | 
|  | 13700 | unsigned int fpcr; | 
|  | 13701 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); | 
|  | 13702 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); | 
|  | 13703 |  | 
|  | 13704 | ; | 
|  | 13705 | return 0; | 
|  | 13706 | } | 
|  | 13707 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13708 | if ac_fn_c_try_link "$LINENO"; then : | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13709 | have_gcc_asm_for_mc68881=yes | 
|  | 13710 | else | 
|  | 13711 | have_gcc_asm_for_mc68881=no | 
|  | 13712 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13713 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13714 | conftest$ac_exeext conftest.$ac_ext | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 | 
|  | 13716 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } | 
|  | 13717 | if test "$have_gcc_asm_for_mc68881" = yes | 
|  | 13718 | then | 
|  | 13719 |  | 
|  | 13720 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h | 
|  | 13721 |  | 
|  | 13722 | fi | 
|  | 13723 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13724 | # Detect whether system arithmetic is subject to x87-style double | 
|  | 13725 | # rounding issues.  The result of this test has little meaning on non | 
|  | 13726 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
|  | 13727 | # mode is round-to-nearest and double rounding issues are present, and | 
|  | 13728 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
|  | 13730 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13731 | # $BASECFLAGS may affect the result | 
|  | 13732 | ac_save_cc="$CC" | 
|  | 13733 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13734 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13735 | ac_cv_x87_double_rounding=no | 
|  | 13736 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13738 | /* end confdefs.h.  */ | 
|  | 13739 |  | 
|  | 13740 | #include <stdlib.h> | 
|  | 13741 | #include <math.h> | 
|  | 13742 | int main() { | 
|  | 13743 | volatile double x, y, z; | 
|  | 13744 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
|  | 13745 | x = 0.99999999999999989; /* 1-2**-53 */ | 
|  | 13746 | y = 1./x; | 
|  | 13747 | if (y != 1.) | 
|  | 13748 | exit(0); | 
|  | 13749 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
|  | 13750 | x = 1e16; | 
|  | 13751 | y = 2.99999; | 
|  | 13752 | z = x + y; | 
|  | 13753 | if (z != 1e16+4.) | 
|  | 13754 | exit(0); | 
|  | 13755 | /* both tests show evidence of double rounding */ | 
|  | 13756 | exit(1); | 
|  | 13757 | } | 
|  | 13758 |  | 
|  | 13759 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13760 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13761 | ac_cv_x87_double_rounding=no | 
|  | 13762 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13763 | ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13764 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13765 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13766 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13767 | fi | 
|  | 13768 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13769 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
|  | 13771 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13772 | if test "$ac_cv_x87_double_rounding" = yes | 
|  | 13773 | then | 
|  | 13774 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13775 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13776 |  | 
|  | 13777 | fi | 
|  | 13778 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13779 | # ************************************ | 
|  | 13780 | # * Check for mathematical functions * | 
|  | 13781 | # ************************************ | 
|  | 13782 |  | 
|  | 13783 | LIBS_SAVE=$LIBS | 
|  | 13784 | LIBS="$LIBS $LIBM" | 
|  | 13785 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13786 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
|  | 13787 | do : | 
|  | 13788 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 13789 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13790 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13791 | cat >>confdefs.h <<_ACEOF | 
|  | 13792 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 13793 | _ACEOF | 
|  | 13794 |  | 
|  | 13795 | fi | 
|  | 13796 | done | 
|  | 13797 |  | 
| Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 13798 | for ac_func in hypot lgamma log1p log2 round tgamma | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13799 | do : | 
|  | 13800 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 13801 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13802 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13803 | cat >>confdefs.h <<_ACEOF | 
|  | 13804 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 13805 | _ACEOF | 
|  | 13806 |  | 
|  | 13807 | fi | 
|  | 13808 | done | 
|  | 13809 |  | 
|  | 13810 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
|  | 13811 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13812 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13813 | ac_have_decl=1 | 
|  | 13814 | else | 
|  | 13815 | ac_have_decl=0 | 
|  | 13816 | fi | 
|  | 13817 |  | 
|  | 13818 | cat >>confdefs.h <<_ACEOF | 
|  | 13819 | #define HAVE_DECL_ISINF $ac_have_decl | 
|  | 13820 | _ACEOF | 
|  | 13821 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
|  | 13822 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13823 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13824 | ac_have_decl=1 | 
|  | 13825 | else | 
|  | 13826 | ac_have_decl=0 | 
|  | 13827 | fi | 
|  | 13828 |  | 
|  | 13829 | cat >>confdefs.h <<_ACEOF | 
|  | 13830 | #define HAVE_DECL_ISNAN $ac_have_decl | 
|  | 13831 | _ACEOF | 
|  | 13832 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
|  | 13833 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13834 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13835 | ac_have_decl=1 | 
|  | 13836 | else | 
|  | 13837 | ac_have_decl=0 | 
|  | 13838 | fi | 
|  | 13839 |  | 
|  | 13840 | cat >>confdefs.h <<_ACEOF | 
|  | 13841 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
|  | 13842 | _ACEOF | 
|  | 13843 |  | 
|  | 13844 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13845 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
|  | 13846 | # -0. on some architectures. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
|  | 13848 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13849 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13850 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13851 | else | 
|  | 13852 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13853 | if test "$cross_compiling" = yes; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13854 | ac_cv_tanh_preserves_zero_sign=no | 
|  | 13855 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13857 | /* end confdefs.h.  */ | 
|  | 13858 |  | 
|  | 13859 | #include <math.h> | 
|  | 13860 | #include <stdlib.h> | 
|  | 13861 | int main() { | 
|  | 13862 | /* return 0 if either negative zeros don't exist | 
|  | 13863 | on this platform or if negative zeros exist | 
|  | 13864 | and tanh(-0.) == -0. */ | 
|  | 13865 | if (atan2(0., -1.) == atan2(-0., -1.) || | 
|  | 13866 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
|  | 13867 | else exit(1); | 
|  | 13868 | } | 
|  | 13869 |  | 
|  | 13870 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13871 | if ac_fn_c_try_run "$LINENO"; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13872 | ac_cv_tanh_preserves_zero_sign=yes | 
|  | 13873 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13874 | ac_cv_tanh_preserves_zero_sign=no | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13875 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13876 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13877 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13878 | fi | 
|  | 13879 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13880 | fi | 
|  | 13881 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
|  | 13883 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13884 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
|  | 13885 | then | 
|  | 13886 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13887 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13888 |  | 
|  | 13889 | fi | 
|  | 13890 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13891 | if test "$ac_cv_func_log1p" = yes | 
|  | 13892 | then | 
|  | 13893 | # On some versions of AIX, log1p(-0.) returns 0. instead of | 
|  | 13894 | # -0.  See issue #9920. | 
|  | 13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | 
|  | 13896 | $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] | 13897 | if ${ac_cv_log1p_drops_zero_sign+:} false; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13898 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13899 | else | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13900 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13901 | if test "$cross_compiling" = yes; then : | 
|  | 13902 | ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13903 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13905 | /* end confdefs.h.  */ | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13906 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13907 | #include <math.h> | 
|  | 13908 | #include <stdlib.h> | 
|  | 13909 | int main() { | 
|  | 13910 | /* Fail if the signs of log1p(-0.) and -0. can be | 
|  | 13911 | distinguished. */ | 
|  | 13912 | if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | 
|  | 13913 | return 0; | 
|  | 13914 | else | 
|  | 13915 | return 1; | 
|  | 13916 | } | 
|  | 13917 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13918 | _ACEOF | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13919 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 13920 | ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13921 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13922 | ac_cv_log1p_drops_zero_sign=yes | 
|  | 13923 | fi | 
|  | 13924 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13925 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13926 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13927 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13928 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13929 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 | 
|  | 13931 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | 
|  | 13932 | fi | 
|  | 13933 | if test "$ac_cv_log1p_drops_zero_sign" = yes | 
|  | 13934 | then | 
|  | 13935 |  | 
|  | 13936 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | 
|  | 13937 |  | 
|  | 13938 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13939 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 13940 | LIBS=$LIBS_SAVE | 
|  | 13941 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13942 | # For multiprocessing module, check that sem_open | 
|  | 13943 | # actually works.  For FreeBSD versions <= 7.2, | 
|  | 13944 | # the kernel module that provides POSIX semaphores | 
|  | 13945 | # isn't loaded by default, so an attempt to call | 
|  | 13946 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
|  | 13948 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13949 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13950 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13951 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13952 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13953 | ac_cv_posix_semaphores_enabled=yes | 
|  | 13954 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13956 | /* end confdefs.h.  */ | 
|  | 13957 |  | 
|  | 13958 | #include <unistd.h> | 
|  | 13959 | #include <fcntl.h> | 
|  | 13960 | #include <stdio.h> | 
|  | 13961 | #include <semaphore.h> | 
|  | 13962 | #include <sys/stat.h> | 
|  | 13963 |  | 
|  | 13964 | int main(void) { | 
|  | 13965 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
|  | 13966 | if (a == SEM_FAILED) { | 
|  | 13967 | perror("sem_open"); | 
|  | 13968 | return 1; | 
|  | 13969 | } | 
|  | 13970 | sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 13971 | sem_unlink("/autoconf"); | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13972 | return 0; | 
|  | 13973 | } | 
|  | 13974 |  | 
|  | 13975 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13976 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13977 | ac_cv_posix_semaphores_enabled=yes | 
|  | 13978 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13979 | ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13980 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13981 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13982 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13983 | fi | 
|  | 13984 |  | 
|  | 13985 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13986 | fi | 
|  | 13987 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
|  | 13989 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13990 | if test $ac_cv_posix_semaphores_enabled = no | 
|  | 13991 | then | 
|  | 13992 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13993 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 13994 |  | 
|  | 13995 | fi | 
|  | 13996 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13997 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
|  | 13999 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14000 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14001 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14002 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14003 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14004 | ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14005 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14007 | /* end confdefs.h.  */ | 
|  | 14008 |  | 
|  | 14009 | #include <unistd.h> | 
|  | 14010 | #include <fcntl.h> | 
|  | 14011 | #include <stdio.h> | 
|  | 14012 | #include <semaphore.h> | 
|  | 14013 | #include <sys/stat.h> | 
|  | 14014 |  | 
|  | 14015 | int main(void){ | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14016 | 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] | 14017 | int count; | 
|  | 14018 | int res; | 
|  | 14019 | if(a==SEM_FAILED){ | 
|  | 14020 | perror("sem_open"); | 
|  | 14021 | return 1; | 
|  | 14022 |  | 
|  | 14023 | } | 
|  | 14024 | res = sem_getvalue(a, &count); | 
|  | 14025 | sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14026 | sem_unlink("/autocftw"); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14027 | return res==-1 ? 1 : 0; | 
|  | 14028 | } | 
|  | 14029 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14030 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14031 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14032 | ac_cv_broken_sem_getvalue=no | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14033 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14034 | ac_cv_broken_sem_getvalue=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14035 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14036 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14037 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14038 | fi | 
|  | 14039 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14040 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14041 | fi | 
|  | 14042 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
|  | 14044 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14045 | if test $ac_cv_broken_sem_getvalue = yes | 
|  | 14046 | then | 
|  | 14047 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14048 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14049 |  | 
|  | 14050 | fi | 
|  | 14051 |  | 
| Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14052 | ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> | 
|  | 14053 | " | 
|  | 14054 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : | 
|  | 14055 | ac_have_decl=1 | 
|  | 14056 | else | 
|  | 14057 | ac_have_decl=0 | 
|  | 14058 | fi | 
|  | 14059 |  | 
|  | 14060 | cat >>confdefs.h <<_ACEOF | 
|  | 14061 | #define HAVE_DECL_RTLD_LAZY $ac_have_decl | 
|  | 14062 | _ACEOF | 
|  | 14063 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | 
|  | 14064 | " | 
|  | 14065 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : | 
|  | 14066 | ac_have_decl=1 | 
|  | 14067 | else | 
|  | 14068 | ac_have_decl=0 | 
|  | 14069 | fi | 
|  | 14070 |  | 
|  | 14071 | cat >>confdefs.h <<_ACEOF | 
|  | 14072 | #define HAVE_DECL_RTLD_NOW $ac_have_decl | 
|  | 14073 | _ACEOF | 
|  | 14074 | ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> | 
|  | 14075 | " | 
|  | 14076 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : | 
|  | 14077 | ac_have_decl=1 | 
|  | 14078 | else | 
|  | 14079 | ac_have_decl=0 | 
|  | 14080 | fi | 
|  | 14081 |  | 
|  | 14082 | cat >>confdefs.h <<_ACEOF | 
|  | 14083 | #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl | 
|  | 14084 | _ACEOF | 
|  | 14085 | ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> | 
|  | 14086 | " | 
|  | 14087 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : | 
|  | 14088 | ac_have_decl=1 | 
|  | 14089 | else | 
|  | 14090 | ac_have_decl=0 | 
|  | 14091 | fi | 
|  | 14092 |  | 
|  | 14093 | cat >>confdefs.h <<_ACEOF | 
|  | 14094 | #define HAVE_DECL_RTLD_LOCAL $ac_have_decl | 
|  | 14095 | _ACEOF | 
|  | 14096 | ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> | 
|  | 14097 | " | 
|  | 14098 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : | 
|  | 14099 | ac_have_decl=1 | 
|  | 14100 | else | 
|  | 14101 | ac_have_decl=0 | 
|  | 14102 | fi | 
|  | 14103 |  | 
|  | 14104 | cat >>confdefs.h <<_ACEOF | 
|  | 14105 | #define HAVE_DECL_RTLD_NODELETE $ac_have_decl | 
|  | 14106 | _ACEOF | 
|  | 14107 | ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> | 
|  | 14108 | " | 
|  | 14109 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : | 
|  | 14110 | ac_have_decl=1 | 
|  | 14111 | else | 
|  | 14112 | ac_have_decl=0 | 
|  | 14113 | fi | 
|  | 14114 |  | 
|  | 14115 | cat >>confdefs.h <<_ACEOF | 
|  | 14116 | #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl | 
|  | 14117 | _ACEOF | 
|  | 14118 | ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> | 
|  | 14119 | " | 
|  | 14120 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : | 
|  | 14121 | ac_have_decl=1 | 
|  | 14122 | else | 
|  | 14123 | ac_have_decl=0 | 
|  | 14124 | fi | 
|  | 14125 |  | 
|  | 14126 | cat >>confdefs.h <<_ACEOF | 
|  | 14127 | #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl | 
|  | 14128 | _ACEOF | 
|  | 14129 |  | 
|  | 14130 |  | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14131 | # determine what size digit to use for Python's longs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
|  | 14133 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14134 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14135 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14136 | enableval=$enable_big_digits; case $enable_big_digits in | 
|  | 14137 | yes) | 
|  | 14138 | enable_big_digits=30 ;; | 
|  | 14139 | no) | 
|  | 14140 | enable_big_digits=15 ;; | 
|  | 14141 | 15|30) | 
|  | 14142 | ;; | 
|  | 14143 | *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14144 | 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] | 14145 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
|  | 14147 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14148 |  | 
|  | 14149 | cat >>confdefs.h <<_ACEOF | 
|  | 14150 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
|  | 14151 | _ACEOF | 
|  | 14152 |  | 
|  | 14153 |  | 
|  | 14154 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 14156 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14157 | fi | 
|  | 14158 |  | 
|  | 14159 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14160 | # check for wchar.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14161 | 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] | 14162 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14163 |  | 
|  | 14164 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14165 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14166 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14167 | wchar_h="yes" | 
|  | 14168 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14169 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14170 | wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14171 |  | 
|  | 14172 | fi | 
|  | 14173 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14174 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14175 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14176 | # determine wchar_t size | 
|  | 14177 | if test "$wchar_h" = yes | 
|  | 14178 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14179 | # 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] | 14180 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 14181 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 14182 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
|  | 14184 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14185 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14186 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14187 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14188 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
|  | 14189 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14190 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14191 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14192 | if test "$ac_cv_type_wchar_t" = yes; then | 
|  | 14193 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 14194 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14195 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14196 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14197 | else | 
|  | 14198 | ac_cv_sizeof_wchar_t=0 | 
|  | 14199 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14200 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14201 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14202 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
|  | 14204 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14205 |  | 
|  | 14206 |  | 
|  | 14207 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14208 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14209 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14210 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14211 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14212 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14213 | fi | 
|  | 14214 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
|  | 14216 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14217 | have_ucs4_tcl=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14219 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14220 |  | 
|  | 14221 | #include <tcl.h> | 
|  | 14222 | #if TCL_UTF_MAX != 6 | 
|  | 14223 | # error "NOT UCS4_TCL" | 
|  | 14224 | #endif | 
|  | 14225 | int | 
|  | 14226 | main () | 
|  | 14227 | { | 
|  | 14228 |  | 
|  | 14229 | ; | 
|  | 14230 | return 0; | 
|  | 14231 | } | 
|  | 14232 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14233 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14234 |  | 
|  | 14235 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14236 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14237 |  | 
|  | 14238 | have_ucs4_tcl=yes | 
|  | 14239 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14240 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
|  | 14243 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14244 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14245 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14246 | if test "$wchar_h" = yes | 
|  | 14247 | then | 
|  | 14248 | # check whether wchar_t is signed or not | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
|  | 14250 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14251 | if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14252 | $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14253 | else | 
|  | 14254 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14255 | if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14256 | ac_cv_wchar_t_signed=yes | 
|  | 14257 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14259 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14260 |  | 
|  | 14261 | #include <wchar.h> | 
|  | 14262 | int main() | 
|  | 14263 | { | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14264 | /* Success: exit code 0 */ | 
|  | 14265 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14266 | } | 
|  | 14267 |  | 
|  | 14268 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14269 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14270 | ac_cv_wchar_t_signed=yes | 
|  | 14271 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14272 | ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14273 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14274 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14275 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14276 | fi | 
|  | 14277 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14278 | fi | 
|  | 14279 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
|  | 14281 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14282 | fi | 
|  | 14283 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14284 | # 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] | 14285 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 14286 | -a "$ac_cv_wchar_t_signed" = "no" | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14287 | then | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14288 | HAVE_USABLE_WCHAR_T="yes" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14289 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14290 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14291 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14292 | else | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14293 | HAVE_USABLE_WCHAR_T="no usable wchar_t found" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14294 | fi | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 | 
|  | 14296 | $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14297 |  | 
|  | 14298 | # check for endianness | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
|  | 14300 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14301 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14302 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14303 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14304 | ac_cv_c_bigendian=unknown | 
|  | 14305 | # See if we're dealing with a universal compiler. | 
|  | 14306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14307 | /* end confdefs.h.  */ | 
|  | 14308 | #ifndef __APPLE_CC__ | 
|  | 14309 | not a universal capable compiler | 
|  | 14310 | #endif | 
|  | 14311 | typedef int dummy; | 
|  | 14312 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14313 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14314 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14315 |  | 
|  | 14316 | # Check for potential -arch flags.  It is not universal unless | 
|  | 14317 | # there are at least two -arch flags with different values. | 
|  | 14318 | ac_arch= | 
|  | 14319 | ac_prev= | 
|  | 14320 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
|  | 14321 | if test -n "$ac_prev"; then | 
|  | 14322 | case $ac_word in | 
|  | 14323 | i?86 | x86_64 | ppc | ppc64) | 
|  | 14324 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
|  | 14325 | ac_arch=$ac_word | 
|  | 14326 | else | 
|  | 14327 | ac_cv_c_bigendian=universal | 
|  | 14328 | break | 
|  | 14329 | fi | 
|  | 14330 | ;; | 
|  | 14331 | esac | 
|  | 14332 | ac_prev= | 
|  | 14333 | elif test "x$ac_word" = "x-arch"; then | 
|  | 14334 | ac_prev=arch | 
|  | 14335 | fi | 
|  | 14336 | done | 
|  | 14337 | fi | 
|  | 14338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14339 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 14340 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 14341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14342 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14343 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14344 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14345 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14346 | int | 
|  | 14347 | main () | 
|  | 14348 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14349 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
|  | 14350 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
|  | 14351 | && LITTLE_ENDIAN) | 
|  | 14352 | bogus endian macros | 
|  | 14353 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14354 |  | 
|  | 14355 | ; | 
|  | 14356 | return 0; | 
|  | 14357 | } | 
|  | 14358 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14359 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14360 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14362 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14363 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14364 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14365 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14366 | int | 
|  | 14367 | main () | 
|  | 14368 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14369 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14370 | not big endian | 
|  | 14371 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14372 |  | 
|  | 14373 | ; | 
|  | 14374 | return 0; | 
|  | 14375 | } | 
|  | 14376 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14377 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14378 | ac_cv_c_bigendian=yes | 
|  | 14379 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14380 | ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14381 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14383 | fi | 
|  | 14384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14385 | fi | 
|  | 14386 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 14387 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
|  | 14388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14389 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14390 | #include <limits.h> | 
|  | 14391 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14392 | int | 
|  | 14393 | main () | 
|  | 14394 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14395 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
|  | 14396 | bogus endian macros | 
|  | 14397 | #endif | 
|  | 14398 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14399 | ; | 
|  | 14400 | return 0; | 
|  | 14401 | } | 
|  | 14402 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14403 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14404 | # It does; now see whether it defined to _BIG_ENDIAN or not. | 
|  | 14405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14406 | /* end confdefs.h.  */ | 
|  | 14407 | #include <limits.h> | 
|  | 14408 |  | 
|  | 14409 | int | 
|  | 14410 | main () | 
|  | 14411 | { | 
|  | 14412 | #ifndef _BIG_ENDIAN | 
|  | 14413 | not big endian | 
|  | 14414 | #endif | 
|  | 14415 |  | 
|  | 14416 | ; | 
|  | 14417 | return 0; | 
|  | 14418 | } | 
|  | 14419 | _ACEOF | 
|  | 14420 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14421 | ac_cv_c_bigendian=yes | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14422 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14423 | ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14424 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14426 | fi | 
|  | 14427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14428 | fi | 
|  | 14429 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 14430 | # Compile a test program. | 
|  | 14431 | if test "$cross_compiling" = yes; then : | 
|  | 14432 | # Try to guess by grepping values from an object file. | 
|  | 14433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14434 | /* end confdefs.h.  */ | 
|  | 14435 | short int ascii_mm[] = | 
|  | 14436 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 14437 | short int ascii_ii[] = | 
|  | 14438 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 14439 | int use_ascii (int i) { | 
|  | 14440 | return ascii_mm[i] + ascii_ii[i]; | 
|  | 14441 | } | 
|  | 14442 | short int ebcdic_ii[] = | 
|  | 14443 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 14444 | short int ebcdic_mm[] = | 
|  | 14445 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 14446 | int use_ebcdic (int i) { | 
|  | 14447 | return ebcdic_mm[i] + ebcdic_ii[i]; | 
|  | 14448 | } | 
|  | 14449 | extern int foo; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14450 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14451 | int | 
|  | 14452 | main () | 
|  | 14453 | { | 
|  | 14454 | return use_ascii (foo) == use_ebcdic (foo); | 
|  | 14455 | ; | 
|  | 14456 | return 0; | 
|  | 14457 | } | 
|  | 14458 | _ACEOF | 
|  | 14459 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14460 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
|  | 14461 | ac_cv_c_bigendian=yes | 
|  | 14462 | fi | 
|  | 14463 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 14464 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 14465 | ac_cv_c_bigendian=no | 
|  | 14466 | else | 
|  | 14467 | # finding both strings is unlikely to happen, but who knows? | 
|  | 14468 | ac_cv_c_bigendian=unknown | 
|  | 14469 | fi | 
|  | 14470 | fi | 
|  | 14471 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14472 | 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] | 14473 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14475 | /* end confdefs.h.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14476 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14477 | int | 
|  | 14478 | main () | 
|  | 14479 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14480 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14481 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 14482 | union | 
|  | 14483 | { | 
|  | 14484 | long int l; | 
|  | 14485 | char c[sizeof (long int)]; | 
|  | 14486 | } u; | 
|  | 14487 | u.l = 1; | 
|  | 14488 | return u.c[sizeof (long int) - 1] == 1; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14489 |  | 
|  | 14490 | ; | 
|  | 14491 | return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14492 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14493 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14494 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14495 | ac_cv_c_bigendian=no | 
|  | 14496 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14497 | ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14498 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14499 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14500 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14501 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14502 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14503 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14504 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
|  | 14506 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
|  | 14507 | case $ac_cv_c_bigendian in #( | 
|  | 14508 | yes) | 
|  | 14509 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
|  | 14510 | ;; #( | 
|  | 14511 | no) | 
|  | 14512 | ;; #( | 
|  | 14513 | universal) | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14514 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14515 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14516 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14517 | ;; #( | 
|  | 14518 | *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14519 | as_fn_error $? "unknown endianness | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14520 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14521 | esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14522 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14523 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14524 | # ABI version string for Python extension modules.  This appears between the | 
|  | 14525 | # periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated | 
|  | 14526 | # from the following attributes which affect the ABI of this Python build (in | 
|  | 14527 | # this order): | 
|  | 14528 | # | 
|  | 14529 | # * The Python implementation (always 'cpython-' for us) | 
|  | 14530 | # * The major and minor version numbers | 
|  | 14531 | # * --with-pydebug (adds a 'd') | 
|  | 14532 | # * --with-pymalloc (adds a 'm') | 
|  | 14533 | # * --with-wide-unicode (adds a 'u') | 
|  | 14534 | # | 
|  | 14535 | # 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] | 14536 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared | 
|  | 14537 | # libraries would be named 'foo.cpython-32dmu.so'. | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14538 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 | 
|  | 14540 | $as_echo_n "checking ABIFLAGS... " >&6; } | 
|  | 14541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | 
|  | 14542 | $as_echo "$ABIFLAGS" >&6; } | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | 
|  | 14544 | $as_echo_n "checking SOABI... " >&6; } | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 14545 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 | 
|  | 14547 | $as_echo "$SOABI" >&6; } | 
|  | 14548 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14549 |  | 
|  | 14550 | case $ac_sys_system in | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 14551 | Linux*|GNU*|Darwin) | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14552 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; | 
|  | 14553 | *) | 
|  | 14554 | EXT_SUFFIX=${SHLIB_SUFFIX};; | 
|  | 14555 | esac | 
|  | 14556 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 | 
|  | 14558 | $as_echo_n "checking LDVERSION... " >&6; } | 
|  | 14559 | LDVERSION='$(VERSION)$(ABIFLAGS)' | 
|  | 14560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | 
|  | 14561 | $as_echo "$LDVERSION" >&6; } | 
|  | 14562 |  | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14563 |  | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 14564 | if test x$PLATFORM_TRIPLET = x; then | 
|  | 14565 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" | 
|  | 14566 | else | 
|  | 14567 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | 
|  | 14568 | fi | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14569 |  | 
|  | 14570 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14571 | # Check whether right shifting a negative integer extends the sign bit | 
|  | 14572 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
|  | 14574 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14575 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14576 | $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14577 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14578 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14579 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14580 | ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14581 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14583 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14584 |  | 
|  | 14585 | int main() | 
|  | 14586 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14587 | exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14588 | } | 
|  | 14589 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14590 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14591 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14592 | ac_cv_rshift_extends_sign=yes | 
|  | 14593 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14594 | ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14595 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14596 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14597 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14598 | fi | 
|  | 14599 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14600 | fi | 
|  | 14601 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
|  | 14603 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14604 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14605 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14606 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14607 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14608 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14609 | fi | 
|  | 14610 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14611 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
|  | 14613 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14614 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14615 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14616 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14617 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14619 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14620 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14621 | int | 
|  | 14622 | main () | 
|  | 14623 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14624 |  | 
|  | 14625 | FILE *f = fopen("/dev/null", "r"); | 
|  | 14626 | flockfile(f); | 
|  | 14627 | getc_unlocked(f); | 
|  | 14628 | funlockfile(f); | 
|  | 14629 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14630 | ; | 
|  | 14631 | return 0; | 
|  | 14632 | } | 
|  | 14633 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14634 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14635 | ac_cv_have_getc_unlocked=yes | 
|  | 14636 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14637 | ac_cv_have_getc_unlocked=no | 
|  | 14638 | fi | 
|  | 14639 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14640 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14641 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14642 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
|  | 14644 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14645 | if test "$ac_cv_have_getc_unlocked" = yes | 
|  | 14646 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14647 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14648 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14649 |  | 
|  | 14650 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14651 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14652 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 14653 | # save the value of LIBS so we don't actually link Python with readline | 
|  | 14654 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14655 |  | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14656 | # On some systems we need to link readline to a termcap compatible | 
|  | 14657 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
|  | 14658 | # with setup.py. | 
|  | 14659 | py_cv_lib_readline=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
|  | 14661 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| doko@ubuntu.com | f2967c7 | 2012-06-30 17:32:23 +0200 | [diff] [blame] | 14662 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14663 | if test -z "$py_libtermcap"; then | 
|  | 14664 | READLINE_LIBS="-lreadline" | 
|  | 14665 | else | 
|  | 14666 | READLINE_LIBS="-lreadline -l$py_libtermcap" | 
|  | 14667 | fi | 
|  | 14668 | LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14670 | /* end confdefs.h.  */ | 
|  | 14671 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14672 | /* Override any GCC internal prototype to avoid an error. | 
|  | 14673 | Use char because int might match the return type of a GCC | 
|  | 14674 | builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14675 | #ifdef __cplusplus | 
|  | 14676 | extern "C" | 
|  | 14677 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14678 | char readline (); | 
|  | 14679 | int | 
|  | 14680 | main () | 
|  | 14681 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14682 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14683 | ; | 
|  | 14684 | return 0; | 
|  | 14685 | } | 
|  | 14686 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14687 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14688 | py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14689 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14690 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14691 | conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14692 | if test $py_cv_lib_readline = yes; then | 
|  | 14693 | break | 
|  | 14694 | fi | 
|  | 14695 | done | 
|  | 14696 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
|  | 14697 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 14698 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 14700 | $as_echo "none" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14701 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
|  | 14703 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14704 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14705 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14706 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14707 | fi | 
|  | 14708 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14709 | # check for readline 2.1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
|  | 14711 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14712 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14713 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14714 | else | 
|  | 14715 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14716 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14718 | /* end confdefs.h.  */ | 
|  | 14719 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14720 | /* Override any GCC internal prototype to avoid an error. | 
|  | 14721 | Use char because int might match the return type of a GCC | 
|  | 14722 | builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14723 | #ifdef __cplusplus | 
|  | 14724 | extern "C" | 
|  | 14725 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14726 | char rl_callback_handler_install (); | 
|  | 14727 | int | 
|  | 14728 | main () | 
|  | 14729 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14730 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14731 | ; | 
|  | 14732 | return 0; | 
|  | 14733 | } | 
|  | 14734 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14735 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14736 | ac_cv_lib_readline_rl_callback_handler_install=yes | 
|  | 14737 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14738 | ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14739 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14740 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14741 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14742 | LIBS=$ac_check_lib_save_LIBS | 
|  | 14743 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
|  | 14745 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14746 | 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] | 14747 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14748 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14749 |  | 
|  | 14750 | fi | 
|  | 14751 |  | 
|  | 14752 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14753 | # check for readline 2.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14755 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14756 | #include <readline/readline.h> | 
|  | 14757 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14758 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14759 | have_readline=yes | 
|  | 14760 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14761 | have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14762 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14763 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14764 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14765 | if test $have_readline = yes | 
|  | 14766 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14768 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14769 | #include <readline/readline.h> | 
|  | 14770 |  | 
|  | 14771 | _ACEOF | 
|  | 14772 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14773 | $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] | 14774 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14775 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14776 |  | 
|  | 14777 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14778 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14779 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14781 | /* end confdefs.h.  */ | 
|  | 14782 | #include <readline/readline.h> | 
|  | 14783 |  | 
|  | 14784 | _ACEOF | 
|  | 14785 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14786 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14787 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14788 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14789 |  | 
|  | 14790 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14791 | rm -f conftest* | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14792 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14793 | fi | 
|  | 14794 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14795 | # check for readline 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
|  | 14797 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14798 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14799 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14800 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14801 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14802 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14804 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14805 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14806 | /* Override any GCC internal prototype to avoid an error. | 
|  | 14807 | Use char because int might match the return type of a GCC | 
|  | 14808 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14809 | #ifdef __cplusplus | 
|  | 14810 | extern "C" | 
|  | 14811 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14812 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14813 | int | 
|  | 14814 | main () | 
|  | 14815 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14816 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14817 | ; | 
|  | 14818 | return 0; | 
|  | 14819 | } | 
|  | 14820 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14821 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14822 | ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14823 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14824 | ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14825 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14826 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14827 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14828 | LIBS=$ac_check_lib_save_LIBS | 
|  | 14829 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
|  | 14831 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14832 | 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] | 14833 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14834 | $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] | 14835 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14836 | fi | 
|  | 14837 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14838 |  | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14839 | # also in 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
|  | 14841 | $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] | 14842 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14843 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14844 | else | 
|  | 14845 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14846 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14848 | /* end confdefs.h.  */ | 
|  | 14849 |  | 
|  | 14850 | /* Override any GCC internal prototype to avoid an error. | 
|  | 14851 | Use char because int might match the return type of a GCC | 
|  | 14852 | builtin and then its argument prototype would still apply.  */ | 
|  | 14853 | #ifdef __cplusplus | 
|  | 14854 | extern "C" | 
|  | 14855 | #endif | 
|  | 14856 | char rl_completion_display_matches_hook (); | 
|  | 14857 | int | 
|  | 14858 | main () | 
|  | 14859 | { | 
|  | 14860 | return rl_completion_display_matches_hook (); | 
|  | 14861 | ; | 
|  | 14862 | return 0; | 
|  | 14863 | } | 
|  | 14864 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14865 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14866 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
|  | 14867 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14868 | ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14869 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14870 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14871 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14872 | LIBS=$ac_check_lib_save_LIBS | 
|  | 14873 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
|  | 14875 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14876 | 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] | 14877 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14878 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14879 |  | 
|  | 14880 | fi | 
|  | 14881 |  | 
|  | 14882 |  | 
| Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 14883 | # also in 4.0, but not in editline | 
|  | 14884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 | 
|  | 14885 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } | 
|  | 14886 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : | 
|  | 14887 | $as_echo_n "(cached) " >&6 | 
|  | 14888 | else | 
|  | 14889 | ac_check_lib_save_LIBS=$LIBS | 
|  | 14890 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
|  | 14891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14892 | /* end confdefs.h.  */ | 
|  | 14893 |  | 
|  | 14894 | /* Override any GCC internal prototype to avoid an error. | 
|  | 14895 | Use char because int might match the return type of a GCC | 
|  | 14896 | builtin and then its argument prototype would still apply.  */ | 
|  | 14897 | #ifdef __cplusplus | 
|  | 14898 | extern "C" | 
|  | 14899 | #endif | 
|  | 14900 | char rl_resize_terminal (); | 
|  | 14901 | int | 
|  | 14902 | main () | 
|  | 14903 | { | 
|  | 14904 | return rl_resize_terminal (); | 
|  | 14905 | ; | 
|  | 14906 | return 0; | 
|  | 14907 | } | 
|  | 14908 | _ACEOF | 
|  | 14909 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 14910 | ac_cv_lib_readline_rl_resize_terminal=yes | 
|  | 14911 | else | 
|  | 14912 | ac_cv_lib_readline_rl_resize_terminal=no | 
|  | 14913 | fi | 
|  | 14914 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14915 | conftest$ac_exeext conftest.$ac_ext | 
|  | 14916 | LIBS=$ac_check_lib_save_LIBS | 
|  | 14917 | fi | 
|  | 14918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 | 
|  | 14919 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } | 
|  | 14920 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : | 
|  | 14921 |  | 
|  | 14922 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h | 
|  | 14923 |  | 
|  | 14924 | fi | 
|  | 14925 |  | 
|  | 14926 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14927 | # check for readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
|  | 14929 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14930 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14931 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14932 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14933 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14934 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14936 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14937 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14938 | /* Override any GCC internal prototype to avoid an error. | 
|  | 14939 | Use char because int might match the return type of a GCC | 
|  | 14940 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14941 | #ifdef __cplusplus | 
|  | 14942 | extern "C" | 
|  | 14943 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14944 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14945 | int | 
|  | 14946 | main () | 
|  | 14947 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14948 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14949 | ; | 
|  | 14950 | return 0; | 
|  | 14951 | } | 
|  | 14952 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14953 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14954 | ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14955 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14956 | ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14957 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14958 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14959 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14960 | LIBS=$ac_check_lib_save_LIBS | 
|  | 14961 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
|  | 14963 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14964 | 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] | 14965 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14966 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14967 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14968 | fi | 
|  | 14969 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14970 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14971 | # also in readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14973 | /* end confdefs.h.  */ | 
|  | 14974 | #include <readline/readline.h> | 
|  | 14975 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14976 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14977 | have_readline=yes | 
|  | 14978 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14979 | have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14980 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14981 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14982 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14983 | if test $have_readline = yes | 
|  | 14984 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14986 | /* end confdefs.h.  */ | 
|  | 14987 | #include <readline/readline.h> | 
|  | 14988 |  | 
|  | 14989 | _ACEOF | 
|  | 14990 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14991 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14992 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14993 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14994 |  | 
|  | 14995 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14996 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14997 |  | 
|  | 14998 | fi | 
|  | 14999 |  | 
| Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 | 
|  | 15001 | $as_echo_n "checking for append_history in -lreadline... " >&6; } | 
|  | 15002 | if ${ac_cv_lib_readline_append_history+:} false; then : | 
|  | 15003 | $as_echo_n "(cached) " >&6 | 
|  | 15004 | else | 
|  | 15005 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15006 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
|  | 15007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15008 | /* end confdefs.h.  */ | 
|  | 15009 |  | 
|  | 15010 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15011 | Use char because int might match the return type of a GCC | 
|  | 15012 | builtin and then its argument prototype would still apply.  */ | 
|  | 15013 | #ifdef __cplusplus | 
|  | 15014 | extern "C" | 
|  | 15015 | #endif | 
|  | 15016 | char append_history (); | 
|  | 15017 | int | 
|  | 15018 | main () | 
|  | 15019 | { | 
|  | 15020 | return append_history (); | 
|  | 15021 | ; | 
|  | 15022 | return 0; | 
|  | 15023 | } | 
|  | 15024 | _ACEOF | 
|  | 15025 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 15026 | ac_cv_lib_readline_append_history=yes | 
|  | 15027 | else | 
|  | 15028 | ac_cv_lib_readline_append_history=no | 
|  | 15029 | fi | 
|  | 15030 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15031 | conftest$ac_exeext conftest.$ac_ext | 
|  | 15032 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15033 | fi | 
|  | 15034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 | 
|  | 15035 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } | 
|  | 15036 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : | 
|  | 15037 |  | 
|  | 15038 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h | 
|  | 15039 |  | 
|  | 15040 | fi | 
|  | 15041 |  | 
|  | 15042 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15043 | # End of readline checks: restore LIBS | 
|  | 15044 | LIBS=$LIBS_no_readline | 
|  | 15045 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
|  | 15047 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15048 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15049 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15050 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15051 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15052 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15053 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15054 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15056 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15057 |  | 
|  | 15058 | int main() | 
|  | 15059 | { | 
|  | 15060 | int val1 = nice(1); | 
|  | 15061 | if (val1 != -1 && val1 == nice(2)) | 
|  | 15062 | exit(0); | 
|  | 15063 | exit(1); | 
|  | 15064 | } | 
|  | 15065 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15066 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15067 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15068 | ac_cv_broken_nice=yes | 
|  | 15069 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15070 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15071 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15072 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15073 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15074 | fi | 
|  | 15075 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15076 | fi | 
|  | 15077 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
|  | 15079 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15080 | if test "$ac_cv_broken_nice" = yes | 
|  | 15081 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15082 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15083 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15084 |  | 
|  | 15085 | fi | 
|  | 15086 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
|  | 15088 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15089 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15090 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15091 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15092 | if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15093 | ac_cv_broken_poll=no | 
|  | 15094 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15096 | /* end confdefs.h.  */ | 
|  | 15097 |  | 
|  | 15098 | #include <poll.h> | 
|  | 15099 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15100 | int main() | 
|  | 15101 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15102 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15103 | int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15104 |  | 
|  | 15105 | close (42); | 
|  | 15106 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15107 | poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15108 | if (poll_test < 0) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15109 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15110 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15111 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15112 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15113 | return 1; | 
|  | 15114 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15115 |  | 
|  | 15116 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15117 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15118 | ac_cv_broken_poll=yes | 
|  | 15119 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15120 | ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15121 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15122 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15123 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15124 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15125 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15126 | fi | 
|  | 15127 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
|  | 15129 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15130 | if test "$ac_cv_broken_poll" = yes | 
|  | 15131 | then | 
|  | 15132 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15133 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15134 |  | 
|  | 15135 | fi | 
|  | 15136 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15137 | # 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] | 15138 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
|  | 15139 | # tzname[] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15140 | 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] | 15141 | #include <$ac_cv_struct_tm> | 
|  | 15142 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15143 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15144 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15145 |  | 
|  | 15146 | cat >>confdefs.h <<_ACEOF | 
|  | 15147 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 15148 | _ACEOF | 
|  | 15149 |  | 
|  | 15150 |  | 
|  | 15151 | fi | 
|  | 15152 |  | 
|  | 15153 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 15154 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15155 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15156 |  | 
|  | 15157 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15158 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 15159 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15160 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15161 | ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15162 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15163 | ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15164 | fi | 
|  | 15165 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15166 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15167 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15168 | _ACEOF | 
|  | 15169 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 15171 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15172 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15173 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15174 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15176 | /* end confdefs.h.  */ | 
|  | 15177 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15178 | #if !HAVE_DECL_TZNAME | 
|  | 15179 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15180 | #endif | 
|  | 15181 |  | 
|  | 15182 | int | 
|  | 15183 | main () | 
|  | 15184 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15185 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15186 | ; | 
|  | 15187 | return 0; | 
|  | 15188 | } | 
|  | 15189 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15190 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15191 | ac_cv_var_tzname=yes | 
|  | 15192 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15193 | ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15194 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15195 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15196 | conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15197 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 15199 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15200 | if test $ac_cv_var_tzname = yes; then | 
|  | 15201 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15202 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15203 |  | 
|  | 15204 | fi | 
|  | 15205 | fi | 
|  | 15206 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15207 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15208 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
|  | 15210 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15211 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15212 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15213 | else | 
|  | 15214 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15215 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15216 | ac_cv_working_tzset=no | 
|  | 15217 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15219 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15220 |  | 
|  | 15221 | #include <stdlib.h> | 
|  | 15222 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15223 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15224 |  | 
|  | 15225 | #if HAVE_TZNAME | 
|  | 15226 | extern char *tzname[]; | 
|  | 15227 | #endif | 
|  | 15228 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15229 | int main() | 
|  | 15230 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15231 | /* Note that we need to ensure that not only does tzset(3) | 
|  | 15232 | do 'something' with localtime, but it works as documented | 
|  | 15233 | 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] | 15234 | This includes making sure that tzname is set properly if | 
|  | 15235 | tm->tm_zone does not exist since it is the alternative way | 
|  | 15236 | of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15237 |  | 
|  | 15238 | Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15239 | after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15240 | */ | 
|  | 15241 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15242 | time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15243 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
|  | 15244 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15245 | putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15246 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15247 | if (localtime(&groundhogday)->tm_hour != 0) | 
|  | 15248 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15249 | #if HAVE_TZNAME | 
|  | 15250 | /* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
|  | 15251 | if (strcmp(tzname[0], "UTC") || | 
|  | 15252 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
|  | 15253 | exit(1); | 
|  | 15254 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15255 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15256 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15257 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15258 | if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15259 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15260 | #if HAVE_TZNAME | 
|  | 15261 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
|  | 15262 | exit(1); | 
|  | 15263 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15264 |  | 
|  | 15265 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
|  | 15266 | tzset(); | 
|  | 15267 | if (localtime(&groundhogday)->tm_hour != 11) | 
|  | 15268 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15269 | #if HAVE_TZNAME | 
|  | 15270 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
|  | 15271 | exit(1); | 
|  | 15272 | #endif | 
|  | 15273 |  | 
|  | 15274 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15275 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
|  | 15276 | exit(1); | 
|  | 15277 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
|  | 15278 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15279 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15280 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15281 | exit(0); | 
|  | 15282 | } | 
|  | 15283 |  | 
|  | 15284 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15285 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15286 | ac_cv_working_tzset=yes | 
|  | 15287 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15288 | ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15289 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15290 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15291 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15292 | fi | 
|  | 15293 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15294 | fi | 
|  | 15295 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
|  | 15297 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15298 | if test "$ac_cv_working_tzset" = yes | 
|  | 15299 | then | 
|  | 15300 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15301 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15302 |  | 
|  | 15303 | fi | 
|  | 15304 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15305 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
|  | 15307 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15308 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15309 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15310 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15312 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15313 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15314 | int | 
|  | 15315 | main () | 
|  | 15316 | { | 
|  | 15317 |  | 
|  | 15318 | struct stat st; | 
|  | 15319 | st.st_mtim.tv_nsec = 1; | 
|  | 15320 |  | 
|  | 15321 | ; | 
|  | 15322 | return 0; | 
|  | 15323 | } | 
|  | 15324 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15325 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 15326 | ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15327 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15328 | ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15329 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15331 | fi | 
|  | 15332 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
|  | 15334 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15335 | if test "$ac_cv_stat_tv_nsec" = yes | 
|  | 15336 | then | 
|  | 15337 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15338 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15339 |  | 
|  | 15340 | fi | 
|  | 15341 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15342 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
|  | 15344 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15345 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15346 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15347 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15349 | /* end confdefs.h.  */ | 
|  | 15350 | #include <sys/stat.h> | 
|  | 15351 | int | 
|  | 15352 | main () | 
|  | 15353 | { | 
|  | 15354 |  | 
|  | 15355 | struct stat st; | 
|  | 15356 | st.st_mtimespec.tv_nsec = 1; | 
|  | 15357 |  | 
|  | 15358 | ; | 
|  | 15359 | return 0; | 
|  | 15360 | } | 
|  | 15361 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15362 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15363 | ac_cv_stat_tv_nsec2=yes | 
|  | 15364 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15365 | ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15366 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15368 | fi | 
|  | 15369 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
|  | 15371 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15372 | if test "$ac_cv_stat_tv_nsec2" = yes | 
|  | 15373 | then | 
|  | 15374 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15375 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15376 |  | 
|  | 15377 | fi | 
|  | 15378 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15379 | # first curses header check | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15380 | ac_save_cppflags="$CPPFLAGS" | 
|  | 15381 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15382 |  | 
|  | 15383 | for ac_header in curses.h ncurses.h | 
|  | 15384 | do : | 
|  | 15385 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15386 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
|  | 15387 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
|  | 15388 | cat >>confdefs.h <<_ACEOF | 
|  | 15389 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 15390 | _ACEOF | 
|  | 15391 |  | 
|  | 15392 | fi | 
|  | 15393 |  | 
|  | 15394 | done | 
|  | 15395 |  | 
|  | 15396 |  | 
|  | 15397 | # On Solaris, term.h requires curses.h | 
|  | 15398 | for ac_header in term.h | 
|  | 15399 | do : | 
|  | 15400 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
|  | 15401 | #ifdef HAVE_CURSES_H | 
|  | 15402 | #include <curses.h> | 
|  | 15403 | #endif | 
|  | 15404 |  | 
|  | 15405 | " | 
|  | 15406 | if test "x$ac_cv_header_term_h" = xyes; then : | 
|  | 15407 | cat >>confdefs.h <<_ACEOF | 
|  | 15408 | #define HAVE_TERM_H 1 | 
|  | 15409 | _ACEOF | 
|  | 15410 |  | 
|  | 15411 | fi | 
|  | 15412 |  | 
|  | 15413 | done | 
|  | 15414 |  | 
|  | 15415 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15416 | # 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] | 15417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
|  | 15418 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15419 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15420 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15421 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15423 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15424 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15425 | int | 
|  | 15426 | main () | 
|  | 15427 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15428 |  | 
|  | 15429 | int rtn; | 
|  | 15430 | rtn = mvwdelch(0,0,0); | 
|  | 15431 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15432 | ; | 
|  | 15433 | return 0; | 
|  | 15434 | } | 
|  | 15435 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15436 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15437 | ac_cv_mvwdelch_is_expression=yes | 
|  | 15438 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15439 | ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15440 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15442 | fi | 
|  | 15443 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
|  | 15445 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15446 |  | 
|  | 15447 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
|  | 15448 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15449 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15450 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15451 |  | 
|  | 15452 | fi | 
|  | 15453 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
|  | 15455 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15456 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15457 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15458 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15460 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15461 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15462 | int | 
|  | 15463 | main () | 
|  | 15464 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15465 |  | 
|  | 15466 | WINDOW *w; | 
|  | 15467 | w->_flags = 0; | 
|  | 15468 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15469 | ; | 
|  | 15470 | return 0; | 
|  | 15471 | } | 
|  | 15472 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15473 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15474 | ac_cv_window_has_flags=yes | 
|  | 15475 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15476 | ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15477 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15479 | fi | 
|  | 15480 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
|  | 15482 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15483 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15484 |  | 
|  | 15485 | if test "$ac_cv_window_has_flags" = yes | 
|  | 15486 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15487 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15488 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15489 |  | 
|  | 15490 | fi | 
|  | 15491 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
|  | 15493 | $as_echo_n "checking for is_term_resized... " >&6; } | 
|  | 15494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15495 | /* end confdefs.h.  */ | 
|  | 15496 | #include <curses.h> | 
|  | 15497 | int | 
|  | 15498 | main () | 
|  | 15499 | { | 
|  | 15500 | void *x=is_term_resized | 
|  | 15501 | ; | 
|  | 15502 | return 0; | 
|  | 15503 | } | 
|  | 15504 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15505 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15506 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15507 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15508 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15510 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15511 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 15513 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15514 |  | 
|  | 15515 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15517 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
|  | 15519 | $as_echo_n "checking for resize_term... " >&6; } | 
|  | 15520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15521 | /* end confdefs.h.  */ | 
|  | 15522 | #include <curses.h> | 
|  | 15523 | int | 
|  | 15524 | main () | 
|  | 15525 | { | 
|  | 15526 | void *x=resize_term | 
|  | 15527 | ; | 
|  | 15528 | return 0; | 
|  | 15529 | } | 
|  | 15530 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15531 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15532 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15533 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15534 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15536 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15537 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 15539 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15540 |  | 
|  | 15541 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15543 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
|  | 15545 | $as_echo_n "checking for resizeterm... " >&6; } | 
|  | 15546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15547 | /* end confdefs.h.  */ | 
|  | 15548 | #include <curses.h> | 
|  | 15549 | int | 
|  | 15550 | main () | 
|  | 15551 | { | 
|  | 15552 | void *x=resizeterm | 
|  | 15553 | ; | 
|  | 15554 | return 0; | 
|  | 15555 | } | 
|  | 15556 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15557 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15558 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15559 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15560 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15562 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15563 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 15565 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15566 |  | 
|  | 15567 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15569 | # last curses configure check | 
|  | 15570 | CPPFLAGS=$ac_save_cppflags | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15571 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 | 
|  | 15573 | $as_echo "$as_me: checking for device files" >&6;} | 
|  | 15574 |  | 
|  | 15575 | if test "x$cross_compiling" = xyes; then | 
|  | 15576 | if test "${ac_cv_file__dev_ptmx+set}" != set; then | 
|  | 15577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
|  | 15578 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
|  | 15579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
|  | 15580 | $as_echo "not set" >&6; } | 
|  | 15581 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
|  | 15582 | fi | 
|  | 15583 | if test "${ac_cv_file__dev_ptc+set}" != set; then | 
|  | 15584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
|  | 15585 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
|  | 15586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
|  | 15587 | $as_echo "not set" >&6; } | 
|  | 15588 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
|  | 15589 | fi | 
|  | 15590 | fi | 
|  | 15591 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
|  | 15593 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15594 | if ${ac_cv_file__dev_ptmx+:} false; then : | 
|  | 15595 | $as_echo_n "(cached) " >&6 | 
|  | 15596 | else | 
|  | 15597 | test "$cross_compiling" = yes && | 
|  | 15598 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
|  | 15599 | if test -r "/dev/ptmx"; then | 
|  | 15600 | ac_cv_file__dev_ptmx=yes | 
|  | 15601 | else | 
|  | 15602 | ac_cv_file__dev_ptmx=no | 
|  | 15603 | fi | 
|  | 15604 | fi | 
|  | 15605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | 
|  | 15606 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | 
|  | 15607 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15608 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15609 | fi | 
|  | 15610 |  | 
|  | 15611 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15612 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15613 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15614 |  | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15615 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
|  | 15617 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15618 | if ${ac_cv_file__dev_ptc+:} false; then : | 
|  | 15619 | $as_echo_n "(cached) " >&6 | 
|  | 15620 | else | 
|  | 15621 | test "$cross_compiling" = yes && | 
|  | 15622 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
|  | 15623 | if test -r "/dev/ptc"; then | 
|  | 15624 | ac_cv_file__dev_ptc=yes | 
|  | 15625 | else | 
|  | 15626 | ac_cv_file__dev_ptc=no | 
|  | 15627 | fi | 
|  | 15628 | fi | 
|  | 15629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | 
|  | 15630 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | 
|  | 15631 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15632 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15633 | fi | 
|  | 15634 |  | 
|  | 15635 | if test "x$ac_cv_file__dev_ptc" = xyes; then | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15636 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15637 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15638 |  | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15639 | fi | 
|  | 15640 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15642 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15643 | if ${ac_cv_have_long_long_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15644 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15645 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15646 | if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 3b739b1 | 2012-03-15 19:31:06 +0100 | [diff] [blame] | 15647 | ac_cv_have_long_long_format="cross -- assuming no" | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15648 | if test x$GCC = xyes; then | 
|  | 15649 | save_CFLAGS=$CFLAGS | 
|  | 15650 | CFLAGS="$CFLAGS -Werror -Wformat" | 
|  | 15651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Matthias Klose | 3b739b1 | 2012-03-15 19:31:06 +0100 | [diff] [blame] | 15652 | /* end confdefs.h.  */ | 
|  | 15653 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15654 | #include <stdio.h> | 
|  | 15655 | #include <stddef.h> | 
| Matthias Klose | 3b739b1 | 2012-03-15 19:31:06 +0100 | [diff] [blame] | 15656 |  | 
|  | 15657 | int | 
|  | 15658 | main () | 
|  | 15659 | { | 
|  | 15660 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15661 | char *buffer; | 
|  | 15662 | sprintf(buffer, "%lld", (long long)123); | 
|  | 15663 | sprintf(buffer, "%lld", (long long)-123); | 
|  | 15664 | sprintf(buffer, "%llu", (unsigned long long)123); | 
| Matthias Klose | 3b739b1 | 2012-03-15 19:31:06 +0100 | [diff] [blame] | 15665 |  | 
|  | 15666 | ; | 
|  | 15667 | return 0; | 
|  | 15668 | } | 
|  | 15669 | _ACEOF | 
|  | 15670 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 15671 | ac_cv_have_long_long_format=yes | 
|  | 15672 |  | 
|  | 15673 | fi | 
|  | 15674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15675 | CFLAGS=$save_CFLAGS | 
|  | 15676 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15677 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15679 | /* end confdefs.h.  */ | 
|  | 15680 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15681 | #include <stdio.h> | 
|  | 15682 | #include <stddef.h> | 
|  | 15683 | #include <string.h> | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15684 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15685 | #ifdef HAVE_SYS_TYPES_H | 
|  | 15686 | #include <sys/types.h> | 
|  | 15687 | #endif | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15688 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15689 | int main() | 
|  | 15690 | { | 
|  | 15691 | char buffer[256]; | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15692 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15693 | if (sprintf(buffer, "%lld", (long long)123) < 0) | 
|  | 15694 | return 1; | 
|  | 15695 | if (strcmp(buffer, "123")) | 
|  | 15696 | return 1; | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15697 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15698 | if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
|  | 15699 | return 1; | 
|  | 15700 | if (strcmp(buffer, "-123")) | 
|  | 15701 | return 1; | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15702 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15703 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
|  | 15704 | return 1; | 
|  | 15705 | if (strcmp(buffer, "123")) | 
|  | 15706 | return 1; | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15707 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15708 | return 0; | 
|  | 15709 | } | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15710 |  | 
|  | 15711 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15712 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15713 | ac_cv_have_long_long_format=yes | 
|  | 15714 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15715 | ac_cv_have_long_long_format=no | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15716 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15717 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15718 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15719 | fi | 
|  | 15720 |  | 
|  | 15721 |  | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15722 | fi | 
|  | 15723 |  | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 15724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15725 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15726 |  | 
| Mark Dickinson | 89d7d41 | 2009-12-31 20:50:59 +0000 | [diff] [blame] | 15727 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15728 | then | 
|  | 15729 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15730 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15731 |  | 
|  | 15732 | fi | 
|  | 15733 |  | 
| Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 15734 | if test $ac_sys_system = Darwin | 
|  | 15735 | then | 
|  | 15736 | LIBS="$LIBS -framework CoreFoundation" | 
|  | 15737 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15738 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
|  | 15740 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15741 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15742 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15743 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15744 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 15745 | ac_cv_have_size_t_format="cross -- assuming yes" | 
|  | 15746 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15747 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15749 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15750 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15751 | #include <stdio.h> | 
|  | 15752 | #include <stddef.h> | 
|  | 15753 | #include <string.h> | 
|  | 15754 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15755 | #ifdef HAVE_SYS_TYPES_H | 
|  | 15756 | #include <sys/types.h> | 
|  | 15757 | #endif | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15758 |  | 
|  | 15759 | #ifdef HAVE_SSIZE_T | 
|  | 15760 | typedef ssize_t Py_ssize_t; | 
|  | 15761 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
|  | 15762 | typedef long Py_ssize_t; | 
|  | 15763 | #else | 
|  | 15764 | typedef int Py_ssize_t; | 
|  | 15765 | #endif | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15766 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15767 | int main() | 
|  | 15768 | { | 
|  | 15769 | char buffer[256]; | 
|  | 15770 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15771 | if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
|  | 15772 | return 1; | 
|  | 15773 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15774 | if (strcmp(buffer, "123")) | 
|  | 15775 | return 1; | 
|  | 15776 |  | 
|  | 15777 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
|  | 15778 | return 1; | 
|  | 15779 |  | 
|  | 15780 | if (strcmp(buffer, "-123")) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15781 | return 1; | 
|  | 15782 |  | 
|  | 15783 | return 0; | 
|  | 15784 | } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15785 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15786 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15787 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15788 | ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15789 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15790 | ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15791 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15792 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15793 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 15794 | fi | 
|  | 15795 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15796 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
|  | 15798 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 15799 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15800 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15801 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15802 |  | 
|  | 15803 | fi | 
|  | 15804 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15805 | 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] | 15806 | #ifdef HAVE_SYS_TYPES_H | 
|  | 15807 | #include <sys/types.h> | 
|  | 15808 | #endif | 
|  | 15809 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 15810 | #include <sys/socket.h> | 
|  | 15811 | #endif | 
|  | 15812 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15813 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15814 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 15815 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15816 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15817 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15818 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15819 |  | 
|  | 15820 | fi | 
|  | 15821 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15822 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 | 
|  | 15824 | $as_echo_n "checking for broken mbstowcs... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15825 | if ${ac_cv_broken_mbstowcs+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15826 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15827 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15828 | if test "$cross_compiling" = yes; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15829 | ac_cv_broken_mbstowcs=no | 
|  | 15830 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15832 | /* end confdefs.h.  */ | 
|  | 15833 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 15834 | #include <stdio.h> | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15835 | #include<stdlib.h> | 
|  | 15836 | int main() { | 
|  | 15837 | size_t len = -1; | 
|  | 15838 | const char *str = "text"; | 
|  | 15839 | len = mbstowcs(NULL, str, 0); | 
|  | 15840 | return (len != 4); | 
|  | 15841 | } | 
|  | 15842 |  | 
|  | 15843 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15844 | if ac_fn_c_try_run "$LINENO"; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15845 | ac_cv_broken_mbstowcs=no | 
|  | 15846 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15847 | ac_cv_broken_mbstowcs=yes | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15848 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15849 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15850 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15851 | fi | 
|  | 15852 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15853 | fi | 
|  | 15854 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 | 
|  | 15856 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15857 | if test "$ac_cv_broken_mbstowcs" = yes | 
|  | 15858 | then | 
|  | 15859 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15860 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15861 |  | 
|  | 15862 | fi | 
|  | 15863 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15864 | # Check for --with-computed-gotos | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
|  | 15866 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15867 |  | 
|  | 15868 | # Check whether --with-computed-gotos was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15869 | if test "${with_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15870 | withval=$with_computed_gotos; | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 15871 | if test "$withval" = yes | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15872 | then | 
|  | 15873 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15874 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15875 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 15877 | $as_echo "yes" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15878 | fi | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 15879 | if test "$withval" = no | 
|  | 15880 | then | 
|  | 15881 |  | 
|  | 15882 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
|  | 15883 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 15885 | $as_echo "no" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15886 | fi | 
|  | 15887 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 15888 | else | 
|  | 15889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 15890 | $as_echo "no value specified" >&6; } | 
|  | 15891 | fi | 
|  | 15892 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15893 |  | 
| Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 15894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
|  | 15895 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
|  | 15896 | if ${ac_cv_computed_gotos+:} false; then : | 
|  | 15897 | $as_echo_n "(cached) " >&6 | 
|  | 15898 | else | 
|  | 15899 | if test "$cross_compiling" = yes; then : | 
|  | 15900 | if test "${with_computed_gotos+set}" = set; then | 
|  | 15901 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | 
|  | 15902 | else | 
|  | 15903 | ac_cv_computed_gotos=no | 
|  | 15904 | fi | 
|  | 15905 | else | 
|  | 15906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15907 | /* end confdefs.h.  */ | 
|  | 15908 |  | 
|  | 15909 | int main(int argc, char **argv) | 
|  | 15910 | { | 
|  | 15911 | static void *targets[1] = { &&LABEL1 }; | 
|  | 15912 | goto LABEL2; | 
|  | 15913 | LABEL1: | 
|  | 15914 | return 0; | 
|  | 15915 | LABEL2: | 
|  | 15916 | goto *targets[0]; | 
|  | 15917 | return 1; | 
|  | 15918 | } | 
|  | 15919 |  | 
|  | 15920 | _ACEOF | 
|  | 15921 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 15922 | ac_cv_computed_gotos=yes | 
|  | 15923 | else | 
|  | 15924 | ac_cv_computed_gotos=no | 
|  | 15925 | fi | 
|  | 15926 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15927 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 15928 | fi | 
|  | 15929 |  | 
|  | 15930 | fi | 
|  | 15931 |  | 
|  | 15932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
|  | 15933 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
|  | 15934 | case "$ac_cv_computed_gotos" in yes*) | 
|  | 15935 |  | 
|  | 15936 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
|  | 15937 |  | 
|  | 15938 | esac | 
|  | 15939 |  | 
| Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 15940 | case $ac_sys_system in | 
|  | 15941 | AIX*) | 
|  | 15942 |  | 
|  | 15943 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
|  | 15944 | ;; | 
|  | 15945 | esac | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15946 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15947 |  | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 15948 |  | 
|  | 15949 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 15950 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
|  | 15951 | do | 
|  | 15952 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
|  | 15953 | done | 
|  | 15954 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15955 |  | 
| Ned Deily | 0db50cf | 2014-07-25 12:41:31 -0700 | [diff] [blame] | 15956 | SRCDIRS="Parser Grammar Objects Python Modules Mac Programs" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
|  | 15958 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15959 | for dir in $SRCDIRS; do | 
|  | 15960 | if test ! -d $dir; then | 
|  | 15961 | mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 15962 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15963 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
|  | 15965 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 15966 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 15967 | # Availability of -O2: | 
|  | 15968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 | 
|  | 15969 | $as_echo_n "checking for -O2... " >&6; } | 
|  | 15970 | saved_cflags="$CFLAGS" | 
|  | 15971 | CFLAGS="-O2" | 
|  | 15972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15973 | /* end confdefs.h.  */ | 
|  | 15974 |  | 
|  | 15975 | int | 
|  | 15976 | main () | 
|  | 15977 | { | 
|  | 15978 |  | 
|  | 15979 |  | 
|  | 15980 | ; | 
|  | 15981 | return 0; | 
|  | 15982 | } | 
|  | 15983 | _ACEOF | 
|  | 15984 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 15985 | have_O2=yes | 
|  | 15986 | else | 
|  | 15987 | have_O2=no | 
|  | 15988 | fi | 
|  | 15989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | 
|  | 15991 | $as_echo "$have_O2" >&6; } | 
|  | 15992 | CFLAGS="$saved_cflags" | 
|  | 15993 |  | 
|  | 15994 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | 
|  | 15995 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | 
|  | 15996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 | 
|  | 15997 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | 
|  | 15998 | saved_cflags="$CFLAGS" | 
|  | 15999 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | 
|  | 16000 | if test "$have_O2" = no; then | 
|  | 16001 | CFLAGS="" | 
|  | 16002 | fi | 
|  | 16003 | if test "$cross_compiling" = yes; then : | 
|  | 16004 | have_glibc_memmove_bug=undefined | 
|  | 16005 | else | 
|  | 16006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16007 | /* end confdefs.h.  */ | 
|  | 16008 |  | 
|  | 16009 | #include <stdio.h> | 
|  | 16010 | #include <stdlib.h> | 
|  | 16011 | #include <string.h> | 
|  | 16012 | void foo(void *p, void *q) { memmove(p, q, 19); } | 
|  | 16013 | int main() { | 
|  | 16014 | char a[32] = "123456789000000000"; | 
|  | 16015 | foo(&a[9], a); | 
|  | 16016 | if (strcmp(a, "123456789123456789000000000") != 0) | 
|  | 16017 | return 1; | 
|  | 16018 | foo(a, &a[9]); | 
|  | 16019 | if (strcmp(a, "123456789000000000") != 0) | 
|  | 16020 | return 1; | 
|  | 16021 | return 0; | 
|  | 16022 | } | 
|  | 16023 |  | 
|  | 16024 | _ACEOF | 
|  | 16025 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 16026 | have_glibc_memmove_bug=no | 
|  | 16027 | else | 
|  | 16028 | have_glibc_memmove_bug=yes | 
|  | 16029 | fi | 
|  | 16030 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16031 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 16032 | fi | 
|  | 16033 |  | 
|  | 16034 | CFLAGS="$saved_cflags" | 
|  | 16035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 | 
|  | 16036 | $as_echo "$have_glibc_memmove_bug" >&6; } | 
|  | 16037 | if test "$have_glibc_memmove_bug" = yes; then | 
|  | 16038 |  | 
|  | 16039 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h | 
|  | 16040 |  | 
|  | 16041 | fi | 
|  | 16042 |  | 
|  | 16043 | if test "$have_gcc_asm_for_x87" = yes; then | 
|  | 16044 | # Some versions of gcc miscompile inline asm: | 
|  | 16045 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | 
|  | 16046 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | 
|  | 16047 | case $CC in | 
|  | 16048 | *gcc*) | 
|  | 16049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 | 
|  | 16050 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | 
|  | 16051 | saved_cflags="$CFLAGS" | 
|  | 16052 | CFLAGS="-O2" | 
|  | 16053 | if test "$cross_compiling" = yes; then : | 
|  | 16054 | have_ipa_pure_const_bug=undefined | 
|  | 16055 | else | 
|  | 16056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16057 | /* end confdefs.h.  */ | 
|  | 16058 |  | 
|  | 16059 | __attribute__((noinline)) int | 
|  | 16060 | foo(int *p) { | 
|  | 16061 | int r; | 
|  | 16062 | asm ( "movl \$6, (%1)\n\t" | 
|  | 16063 | "xorl %0, %0\n\t" | 
|  | 16064 | : "=r" (r) : "r" (p) : "memory" | 
|  | 16065 | ); | 
|  | 16066 | return r; | 
|  | 16067 | } | 
|  | 16068 | int main() { | 
|  | 16069 | int p = 8; | 
|  | 16070 | if ((foo(&p) ? : p) != 6) | 
|  | 16071 | return 1; | 
|  | 16072 | return 0; | 
|  | 16073 | } | 
|  | 16074 |  | 
|  | 16075 | _ACEOF | 
|  | 16076 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 16077 | have_ipa_pure_const_bug=no | 
|  | 16078 | else | 
|  | 16079 | have_ipa_pure_const_bug=yes | 
|  | 16080 | fi | 
|  | 16081 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16082 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 16083 | fi | 
|  | 16084 |  | 
|  | 16085 | CFLAGS="$saved_cflags" | 
|  | 16086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 | 
|  | 16087 | $as_echo "$have_ipa_pure_const_bug" >&6; } | 
|  | 16088 | if test "$have_ipa_pure_const_bug" = yes; then | 
|  | 16089 |  | 
|  | 16090 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h | 
|  | 16091 |  | 
|  | 16092 | fi | 
|  | 16093 | ;; | 
|  | 16094 | esac | 
|  | 16095 | fi | 
|  | 16096 |  | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16097 | # Check for stdatomic.h | 
|  | 16098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 | 
|  | 16099 | $as_echo_n "checking for stdatomic.h... " >&6; } | 
|  | 16100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16101 | /* end confdefs.h.  */ | 
|  | 16102 |  | 
|  | 16103 |  | 
|  | 16104 | #include <stdatomic.h> | 
| Victor Stinner | 923e06f | 2015-01-14 16:01:46 +0100 | [diff] [blame] | 16105 | atomic_int value = ATOMIC_VAR_INIT(1); | 
|  | 16106 | _Atomic void *py_atomic_address = (void*) &value; | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16107 | int main() { | 
|  | 16108 | int loaded_value = atomic_load(&value); | 
|  | 16109 | return 0; | 
|  | 16110 | } | 
|  | 16111 |  | 
|  | 16112 |  | 
|  | 16113 | _ACEOF | 
|  | 16114 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16115 | have_stdatomic_h=yes | 
|  | 16116 | else | 
|  | 16117 | have_stdatomic_h=no | 
|  | 16118 | fi | 
|  | 16119 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16120 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16121 |  | 
|  | 16122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 | 
|  | 16123 | $as_echo "$have_stdatomic_h" >&6; } | 
|  | 16124 |  | 
|  | 16125 | if test "$have_stdatomic_h" = yes; then | 
|  | 16126 |  | 
|  | 16127 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h | 
|  | 16128 |  | 
|  | 16129 | fi | 
|  | 16130 |  | 
|  | 16131 | # Check for GCC >= 4.7 __atomic builtins | 
|  | 16132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 | 
|  | 16133 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } | 
|  | 16134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16135 | /* end confdefs.h.  */ | 
|  | 16136 |  | 
|  | 16137 |  | 
|  | 16138 | volatile int val = 1; | 
|  | 16139 | int main() { | 
|  | 16140 | __atomic_load_n(&val, __ATOMIC_SEQ_CST); | 
|  | 16141 | return 0; | 
|  | 16142 | } | 
|  | 16143 |  | 
|  | 16144 |  | 
|  | 16145 | _ACEOF | 
|  | 16146 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16147 | have_builtin_atomic=yes | 
|  | 16148 | else | 
|  | 16149 | have_builtin_atomic=no | 
|  | 16150 | fi | 
|  | 16151 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16152 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16153 |  | 
|  | 16154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 | 
|  | 16155 | $as_echo "$have_builtin_atomic" >&6; } | 
|  | 16156 |  | 
|  | 16157 | if test "$have_builtin_atomic" = yes; then | 
|  | 16158 |  | 
|  | 16159 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h | 
|  | 16160 |  | 
|  | 16161 | fi | 
|  | 16162 |  | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 16163 | # ensurepip option | 
|  | 16164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | 
|  | 16165 | $as_echo_n "checking for ensurepip... " >&6; } | 
|  | 16166 |  | 
|  | 16167 | # Check whether --with-ensurepip was given. | 
|  | 16168 | if test "${with_ensurepip+set}" = set; then : | 
|  | 16169 | withval=$with_ensurepip; | 
|  | 16170 | else | 
|  | 16171 | with_ensurepip=upgrade | 
|  | 16172 | fi | 
|  | 16173 |  | 
|  | 16174 | case $with_ensurepip in #( | 
|  | 16175 | yes|upgrade) : | 
|  | 16176 | ENSUREPIP=upgrade ;; #( | 
|  | 16177 | install) : | 
|  | 16178 | ENSUREPIP=install ;; #( | 
|  | 16179 | no) : | 
|  | 16180 | ENSUREPIP=no ;; #( | 
|  | 16181 | *) : | 
|  | 16182 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | 
|  | 16183 | esac | 
|  | 16184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | 
|  | 16185 | $as_echo "$ENSUREPIP" >&6; } | 
|  | 16186 |  | 
|  | 16187 |  | 
| Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 16188 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined | 
|  | 16189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 | 
|  | 16190 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } | 
|  | 16191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16192 | /* end confdefs.h.  */ | 
|  | 16193 |  | 
|  | 16194 |  | 
|  | 16195 | #include <dirent.h> | 
|  | 16196 |  | 
|  | 16197 | int main() { | 
|  | 16198 | struct dirent entry; | 
|  | 16199 | return entry.d_type == DT_UNKNOWN; | 
|  | 16200 | } | 
|  | 16201 |  | 
|  | 16202 |  | 
|  | 16203 | _ACEOF | 
|  | 16204 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16205 | have_dirent_d_type=yes | 
|  | 16206 | else | 
|  | 16207 | have_dirent_d_type=no | 
|  | 16208 | fi | 
|  | 16209 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16210 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 | 
|  | 16212 | $as_echo "$have_dirent_d_type" >&6; } | 
|  | 16213 |  | 
|  | 16214 | if test "$have_dirent_d_type" = yes; then | 
|  | 16215 |  | 
|  | 16216 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h | 
|  | 16217 |  | 
|  | 16218 | fi | 
|  | 16219 |  | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16220 | # check if the Linux getrandom() syscall is available | 
|  | 16221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 | 
|  | 16222 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } | 
|  | 16223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16224 | /* end confdefs.h.  */ | 
|  | 16225 |  | 
|  | 16226 |  | 
| Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 16227 | #include <unistd.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16228 | #include <sys/syscall.h> | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16229 | #include <linux/random.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16230 |  | 
|  | 16231 | int main() { | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16232 | char buffer[1]; | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16233 | const size_t buflen = sizeof(buffer); | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16234 | const int flags = GRND_NONBLOCK; | 
|  | 16235 | /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16236 | (void)syscall(SYS_getrandom, buffer, buflen, flags); | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16237 | return 0; | 
|  | 16238 | } | 
|  | 16239 |  | 
|  | 16240 |  | 
|  | 16241 | _ACEOF | 
|  | 16242 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16243 | have_getrandom_syscall=yes | 
|  | 16244 | else | 
|  | 16245 | have_getrandom_syscall=no | 
|  | 16246 | fi | 
|  | 16247 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16248 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 | 
|  | 16250 | $as_echo "$have_getrandom_syscall" >&6; } | 
|  | 16251 |  | 
|  | 16252 | if test "$have_getrandom_syscall" = yes; then | 
|  | 16253 |  | 
|  | 16254 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h | 
|  | 16255 |  | 
|  | 16256 | fi | 
|  | 16257 |  | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16258 | # check if the getrandom() function is available | 
|  | 16259 | # the test was written for the Solaris function of <sys/random.h> | 
|  | 16260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 | 
|  | 16261 | $as_echo_n "checking for the getrandom() function... " >&6; } | 
|  | 16262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16263 | /* end confdefs.h.  */ | 
|  | 16264 |  | 
|  | 16265 |  | 
|  | 16266 | #include <sys/random.h> | 
|  | 16267 |  | 
|  | 16268 | int main() { | 
|  | 16269 | char buffer[1]; | 
|  | 16270 | const size_t buflen = sizeof(buffer); | 
|  | 16271 | const int flags = 0; | 
|  | 16272 | /* ignore the result, Python checks for ENOSYS at runtime */ | 
|  | 16273 | (void)getrandom(buffer, buflen, flags); | 
|  | 16274 | return 0; | 
|  | 16275 | } | 
|  | 16276 |  | 
|  | 16277 |  | 
|  | 16278 | _ACEOF | 
|  | 16279 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16280 | have_getrandom=yes | 
|  | 16281 | else | 
|  | 16282 | have_getrandom=no | 
|  | 16283 | fi | 
|  | 16284 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16285 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 | 
|  | 16287 | $as_echo "$have_getrandom" >&6; } | 
|  | 16288 |  | 
|  | 16289 | if test "$have_getrandom" = yes; then | 
|  | 16290 |  | 
|  | 16291 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h | 
|  | 16292 |  | 
|  | 16293 | fi | 
|  | 16294 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16295 | # generate output files | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 16296 | 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] | 16297 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 16298 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
|  | 16299 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16300 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16301 | # This file is a shell script that caches the results of configure | 
|  | 16302 | # 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] | 16303 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 16304 | # It is not useful on other systems.  If it contains results you don't | 
|  | 16305 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16306 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16307 | # config.status only pays attention to the cache file if you give it | 
|  | 16308 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16309 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16310 | # `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] | 16311 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 16312 | # following values. | 
|  | 16313 |  | 
|  | 16314 | _ACEOF | 
|  | 16315 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16316 | # The following way of writing the cache mishandles newlines in values, | 
|  | 16317 | # but we know of no workaround that is simple, portable, and efficient. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16318 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16319 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 16320 | # 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] | 16321 | ( | 
|  | 16322 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
|  | 16323 | eval ac_val=\$$ac_var | 
|  | 16324 | case $ac_val in #( | 
|  | 16325 | *${as_nl}*) | 
|  | 16326 | case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16327 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 16328 | $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] | 16329 | esac | 
|  | 16330 | case $ac_var in #( | 
|  | 16331 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16332 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 16333 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16334 | esac ;; | 
|  | 16335 | esac | 
|  | 16336 | done | 
|  | 16337 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16338 | (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16339 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
|  | 16340 | *${as_nl}ac_space=\ *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16341 | # `set' does not quote correctly, so add quotes: double-quote | 
|  | 16342 | # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16343 | sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16344 | "s/'/'\\\\''/g; | 
|  | 16345 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16346 | ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16347 | *) | 
|  | 16348 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16349 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16350 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16351 | esac | | 
|  | 16352 | sort | 
|  | 16353 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16354 | sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16355 | /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16356 | t clear | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16357 | :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16358 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 16359 | t end | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16360 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 16361 | :end' >>confcache | 
|  | 16362 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
|  | 16363 | if test -w "$cache_file"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16364 | if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16365 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
|  | 16366 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16367 | if test ! -f "$cache_file" || test -h "$cache_file"; then | 
|  | 16368 | cat confcache >"$cache_file" | 
|  | 16369 | else | 
|  | 16370 | case $cache_file in #( | 
|  | 16371 | */* | ?:*) | 
|  | 16372 | mv -f confcache "$cache_file"$$ && | 
|  | 16373 | mv -f "$cache_file"$$ "$cache_file" ;; #( | 
|  | 16374 | *) | 
|  | 16375 | mv -f confcache "$cache_file" ;; | 
|  | 16376 | esac | 
|  | 16377 | fi | 
|  | 16378 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16379 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16380 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
|  | 16381 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16382 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16383 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16384 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16385 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16386 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 16387 | # Let make expand exec_prefix. | 
|  | 16388 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16389 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16390 | DEFS=-DHAVE_CONFIG_H | 
|  | 16391 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16392 | ac_libobjs= | 
|  | 16393 | ac_ltlibobjs= | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16394 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16395 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 16396 | # 1. Remove the extension, and $U if already installed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16397 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16398 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16399 | # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
|  | 16400 | #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16401 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
|  | 16402 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16403 | done | 
|  | 16404 | LIBOBJS=$ac_libobjs | 
|  | 16405 |  | 
|  | 16406 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 16407 |  | 
|  | 16408 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16409 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16410 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16411 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16412 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16413 | ac_clean_files_save=$ac_clean_files | 
|  | 16414 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16415 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
|  | 16416 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
|  | 16417 | as_write_fail=0 | 
|  | 16418 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16419 | #! $SHELL | 
|  | 16420 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16421 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16422 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16423 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16424 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16425 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16426 | ac_cs_recheck=false | 
|  | 16427 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16428 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16429 | SHELL=\${CONFIG_SHELL-$SHELL} | 
|  | 16430 | export SHELL | 
|  | 16431 | _ASEOF | 
|  | 16432 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
|  | 16433 | ## -------------------- ## | 
|  | 16434 | ## M4sh Initialization. ## | 
|  | 16435 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16436 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16437 | # Be more Bourne compatible | 
|  | 16438 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16439 | 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] | 16440 | emulate sh | 
|  | 16441 | NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16442 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16443 | # is contrary to our usage.  Disable this feature. | 
|  | 16444 | alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16445 | setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 16446 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16447 | case `(set -o) 2>/dev/null` in #( | 
|  | 16448 | *posix*) : | 
|  | 16449 | set -o posix ;; #( | 
|  | 16450 | *) : | 
|  | 16451 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16452 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16453 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16454 |  | 
|  | 16455 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16456 | as_nl=' | 
|  | 16457 | ' | 
|  | 16458 | export as_nl | 
|  | 16459 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 16460 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 16461 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 16462 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 16463 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 16464 | # but without wasting forks for bash or zsh. | 
|  | 16465 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 16466 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 16467 | as_echo='print -r --' | 
|  | 16468 | as_echo_n='print -rn --' | 
|  | 16469 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 16470 | as_echo='printf %s\n' | 
|  | 16471 | as_echo_n='printf %s' | 
|  | 16472 | else | 
|  | 16473 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 16474 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 16475 | as_echo_n='/usr/ucb/echo -n' | 
|  | 16476 | else | 
|  | 16477 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 16478 | as_echo_n_body='eval | 
|  | 16479 | arg=$1; | 
|  | 16480 | case $arg in #( | 
|  | 16481 | *"$as_nl"*) | 
|  | 16482 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 16483 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 16484 | esac; | 
|  | 16485 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 16486 | ' | 
|  | 16487 | export as_echo_n_body | 
|  | 16488 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 16489 | fi | 
|  | 16490 | export as_echo_body | 
|  | 16491 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 16492 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16493 |  | 
|  | 16494 | # The user is always right. | 
|  | 16495 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16496 | PATH_SEPARATOR=: | 
|  | 16497 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 16498 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 16499 | PATH_SEPARATOR=';' | 
|  | 16500 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16501 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16502 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16503 |  | 
|  | 16504 | # IFS | 
|  | 16505 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 16506 | # there to prevent editors from complaining about space-tab. | 
|  | 16507 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 16508 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16509 | IFS=" ""	$as_nl" | 
|  | 16510 |  | 
|  | 16511 | # 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] | 16512 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16513 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16514 | *[\\/]* ) as_myself=$0 ;; | 
|  | 16515 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16516 | for as_dir in $PATH | 
|  | 16517 | do | 
|  | 16518 | IFS=$as_save_IFS | 
|  | 16519 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16520 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 16521 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16522 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16523 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16524 | ;; | 
|  | 16525 | esac | 
|  | 16526 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 16527 | # in which case we are not to be found in the path. | 
|  | 16528 | if test "x$as_myself" = x; then | 
|  | 16529 | as_myself=$0 | 
|  | 16530 | fi | 
|  | 16531 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16532 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 16533 | exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16534 | fi | 
|  | 16535 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16536 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 16537 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 16538 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 16539 | # trigger a bug in pdksh 5.2.14. | 
|  | 16540 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 16541 | do eval test x\${$as_var+set} = xset \ | 
|  | 16542 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16543 | done | 
|  | 16544 | PS1='$ ' | 
|  | 16545 | PS2='> ' | 
|  | 16546 | PS4='+ ' | 
|  | 16547 |  | 
|  | 16548 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16549 | LC_ALL=C | 
|  | 16550 | export LC_ALL | 
|  | 16551 | LANGUAGE=C | 
|  | 16552 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16553 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16554 | # CDPATH. | 
|  | 16555 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 16556 |  | 
|  | 16557 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16558 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
|  | 16559 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16560 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 16561 | # 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] | 16562 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16563 | as_fn_error () | 
|  | 16564 | { | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16565 | as_status=$1; test $as_status -eq 0 && as_status=1 | 
|  | 16566 | if test "$4"; then | 
|  | 16567 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 16568 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16569 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16570 | $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16571 | as_fn_exit $as_status | 
|  | 16572 | } # as_fn_error | 
|  | 16573 |  | 
|  | 16574 |  | 
|  | 16575 | # as_fn_set_status STATUS | 
|  | 16576 | # ----------------------- | 
|  | 16577 | # Set $? to STATUS, without forking. | 
|  | 16578 | as_fn_set_status () | 
|  | 16579 | { | 
|  | 16580 | return $1 | 
|  | 16581 | } # as_fn_set_status | 
|  | 16582 |  | 
|  | 16583 | # as_fn_exit STATUS | 
|  | 16584 | # ----------------- | 
|  | 16585 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 16586 | as_fn_exit () | 
|  | 16587 | { | 
|  | 16588 | set +e | 
|  | 16589 | as_fn_set_status $1 | 
|  | 16590 | exit $1 | 
|  | 16591 | } # as_fn_exit | 
|  | 16592 |  | 
|  | 16593 | # as_fn_unset VAR | 
|  | 16594 | # --------------- | 
|  | 16595 | # Portably unset VAR. | 
|  | 16596 | as_fn_unset () | 
|  | 16597 | { | 
|  | 16598 | { eval $1=; unset $1;} | 
|  | 16599 | } | 
|  | 16600 | as_unset=as_fn_unset | 
|  | 16601 | # as_fn_append VAR VALUE | 
|  | 16602 | # ---------------------- | 
|  | 16603 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 16604 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 16605 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 16606 | # implementations. | 
|  | 16607 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 16608 | eval 'as_fn_append () | 
|  | 16609 | { | 
|  | 16610 | eval $1+=\$2 | 
|  | 16611 | }' | 
|  | 16612 | else | 
|  | 16613 | as_fn_append () | 
|  | 16614 | { | 
|  | 16615 | eval $1=\$$1\$2 | 
|  | 16616 | } | 
|  | 16617 | fi # as_fn_append | 
|  | 16618 |  | 
|  | 16619 | # as_fn_arith ARG... | 
|  | 16620 | # ------------------ | 
|  | 16621 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 16622 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 16623 | # must be portable across $(()) and expr. | 
|  | 16624 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 16625 | eval 'as_fn_arith () | 
|  | 16626 | { | 
|  | 16627 | as_val=$(( $* )) | 
|  | 16628 | }' | 
|  | 16629 | else | 
|  | 16630 | as_fn_arith () | 
|  | 16631 | { | 
|  | 16632 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 16633 | } | 
|  | 16634 | fi # as_fn_arith | 
|  | 16635 |  | 
|  | 16636 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16637 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 16638 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 16639 | as_expr=expr | 
|  | 16640 | else | 
|  | 16641 | as_expr=false | 
|  | 16642 | fi | 
|  | 16643 |  | 
|  | 16644 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 16645 | as_basename=basename | 
|  | 16646 | else | 
|  | 16647 | as_basename=false | 
|  | 16648 | fi | 
|  | 16649 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16650 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 16651 | as_dirname=dirname | 
|  | 16652 | else | 
|  | 16653 | as_dirname=false | 
|  | 16654 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16655 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16656 | as_me=`$as_basename -- "$0" || | 
|  | 16657 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 16658 | X"$0" : 'X\(//\)$' \| \ | 
|  | 16659 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16660 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16661 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 16662 | s//\1/ | 
|  | 16663 | q | 
|  | 16664 | } | 
|  | 16665 | /^X\/\(\/\/\)$/{ | 
|  | 16666 | s//\1/ | 
|  | 16667 | q | 
|  | 16668 | } | 
|  | 16669 | /^X\/\(\/\).*/{ | 
|  | 16670 | s//\1/ | 
|  | 16671 | q | 
|  | 16672 | } | 
|  | 16673 | s/.*/./; q'` | 
|  | 16674 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16675 | # Avoid depending upon Character Ranges. | 
|  | 16676 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 16677 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 16678 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 16679 | as_cr_digits='0123456789' | 
|  | 16680 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16681 |  | 
|  | 16682 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16683 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16684 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16685 | case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16686 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16687 | xy)  ECHO_C='\c';; | 
|  | 16688 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 16689 | ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16690 | esac;; | 
|  | 16691 | *) | 
|  | 16692 | ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16693 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 16694 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16695 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16696 | if test -d conf$$.dir; then | 
|  | 16697 | rm -f conf$$.dir/conf$$.file | 
|  | 16698 | else | 
|  | 16699 | rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16700 | mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16701 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16702 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 16703 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 16704 | as_ln_s='ln -s' | 
|  | 16705 | # ... but there are two gotchas: | 
|  | 16706 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 16707 | # 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] | 16708 | # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16709 | 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] | 16710 | as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16711 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 16712 | as_ln_s=ln | 
|  | 16713 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16714 | as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16715 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16716 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16717 | as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16718 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16719 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 16720 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16721 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16722 |  | 
|  | 16723 | # as_fn_mkdir_p | 
|  | 16724 | # ------------- | 
|  | 16725 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 16726 | as_fn_mkdir_p () | 
|  | 16727 | { | 
|  | 16728 |  | 
|  | 16729 | case $as_dir in #( | 
|  | 16730 | -*) as_dir=./$as_dir;; | 
|  | 16731 | esac | 
|  | 16732 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 16733 | as_dirs= | 
|  | 16734 | while :; do | 
|  | 16735 | case $as_dir in #( | 
|  | 16736 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 16737 | *) as_qdir=$as_dir;; | 
|  | 16738 | esac | 
|  | 16739 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 16740 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 16741 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 16742 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 16743 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 16744 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 16745 | $as_echo X"$as_dir" | | 
|  | 16746 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 16747 | s//\1/ | 
|  | 16748 | q | 
|  | 16749 | } | 
|  | 16750 | /^X\(\/\/\)[^/].*/{ | 
|  | 16751 | s//\1/ | 
|  | 16752 | q | 
|  | 16753 | } | 
|  | 16754 | /^X\(\/\/\)$/{ | 
|  | 16755 | s//\1/ | 
|  | 16756 | q | 
|  | 16757 | } | 
|  | 16758 | /^X\(\/\).*/{ | 
|  | 16759 | s//\1/ | 
|  | 16760 | q | 
|  | 16761 | } | 
|  | 16762 | s/.*/./; q'` | 
|  | 16763 | test -d "$as_dir" && break | 
|  | 16764 | done | 
|  | 16765 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16766 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16767 |  | 
|  | 16768 |  | 
|  | 16769 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16770 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16771 | as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16772 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16773 | test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16774 | as_mkdir_p=false | 
|  | 16775 | fi | 
|  | 16776 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16777 |  | 
|  | 16778 | # as_fn_executable_p FILE | 
|  | 16779 | # ----------------------- | 
|  | 16780 | # Test if FILE is an executable regular file. | 
|  | 16781 | as_fn_executable_p () | 
|  | 16782 | { | 
|  | 16783 | test -f "$1" && test -x "$1" | 
|  | 16784 | } # as_fn_executable_p | 
|  | 16785 | as_test_x='test -x' | 
|  | 16786 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16787 |  | 
|  | 16788 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16789 | 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] | 16790 |  | 
|  | 16791 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16792 | 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] | 16793 |  | 
|  | 16794 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16795 | exec 6>&1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16796 | ## ----------------------------------- ## | 
|  | 16797 | ## Main body of $CONFIG_STATUS script. ## | 
|  | 16798 | ## ----------------------------------- ## | 
|  | 16799 | _ASEOF | 
|  | 16800 | 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] | 16801 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16802 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 16803 | # 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] | 16804 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16805 | # values after options handling. | 
|  | 16806 | ac_log=" | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 16807 | This file was extended by python $as_me 3.6, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16808 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16809 |  | 
|  | 16810 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 16811 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 16812 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 16813 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 16814 | $ $0 $@ | 
|  | 16815 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16816 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 16817 | " | 
|  | 16818 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16819 | _ACEOF | 
|  | 16820 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16821 | case $ac_config_files in *" | 
|  | 16822 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
|  | 16823 | esac | 
|  | 16824 |  | 
|  | 16825 | case $ac_config_headers in *" | 
|  | 16826 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
|  | 16827 | esac | 
|  | 16828 |  | 
|  | 16829 |  | 
|  | 16830 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16831 | # Files that config.status was made for. | 
| Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 16832 | config_files="$ac_config_files" | 
|  | 16833 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16834 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16835 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16836 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16837 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16838 | ac_cs_usage="\ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16839 | \`$as_me' instantiates files and other configuration actions | 
|  | 16840 | from templates according to the current configuration.  Unless the files | 
|  | 16841 | 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] | 16842 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16843 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16844 |  | 
|  | 16845 | -h, --help       print this help, then exit | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16846 | -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16847 | --config     print configuration, then exit | 
|  | 16848 | -q, --quiet, --silent | 
|  | 16849 | do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16850 | -d, --debug      don't remove temporary files | 
|  | 16851 | --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16852 | --file=FILE[:TEMPLATE] | 
|  | 16853 | instantiate the configuration file FILE | 
|  | 16854 | --header=FILE[:TEMPLATE] | 
|  | 16855 | instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16856 |  | 
|  | 16857 | Configuration files: | 
|  | 16858 | $config_files | 
|  | 16859 |  | 
|  | 16860 | Configuration headers: | 
|  | 16861 | $config_headers | 
|  | 16862 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 16863 | Report bugs to <https://bugs.python.org/>." | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 16864 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16865 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16866 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 16867 | 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] | 16868 | ac_cs_version="\\ | 
| Benjamin Peterson | a8c22a0 | 2015-05-27 23:29:00 -0500 | [diff] [blame] | 16869 | python config.status 3.6 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16870 | configured by $0, generated by GNU Autoconf 2.69, | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16871 | with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16872 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16873 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16874 | This config.status script is free software; the Free Software Foundation | 
|  | 16875 | gives unlimited permission to copy, distribute and modify it." | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16876 |  | 
|  | 16877 | ac_pwd='$ac_pwd' | 
|  | 16878 | srcdir='$srcdir' | 
|  | 16879 | INSTALL='$INSTALL' | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 16880 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16881 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16882 | _ACEOF | 
|  | 16883 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16884 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 16885 | # 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] | 16886 | ac_need_defaults=: | 
|  | 16887 | while test $# != 0 | 
|  | 16888 | do | 
|  | 16889 | case $1 in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16890 | --*=?*) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16891 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 16892 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16893 | ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16894 | ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16895 | --*=) | 
|  | 16896 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 16897 | ac_optarg= | 
|  | 16898 | ac_shift=: | 
|  | 16899 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16900 | *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16901 | ac_option=$1 | 
|  | 16902 | ac_optarg=$2 | 
|  | 16903 | ac_shift=shift | 
|  | 16904 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16905 | esac | 
|  | 16906 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16907 | case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16908 | # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16909 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 16910 | ac_cs_recheck=: ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16911 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16912 | $as_echo "$ac_cs_version"; exit ;; | 
|  | 16913 | --config | --confi | --conf | --con | --co | --c ) | 
|  | 16914 | $as_echo "$ac_cs_config"; exit ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16915 | --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16916 | debug=: ;; | 
|  | 16917 | --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16918 | $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16919 | case $ac_optarg in | 
|  | 16920 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16921 | '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16922 | esac | 
|  | 16923 | as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16924 | ac_need_defaults=false;; | 
|  | 16925 | --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16926 | $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16927 | case $ac_optarg in | 
|  | 16928 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 16929 | esac | 
|  | 16930 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16931 | ac_need_defaults=false;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16932 | --he | --h) | 
|  | 16933 | # Conflict between --help and --header | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16934 | as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16935 | Try \`$0 --help' for more information.";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16936 | --help | --hel | -h ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16937 | $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16938 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 16939 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 16940 | ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16941 |  | 
|  | 16942 | # This is an error. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16943 | -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16944 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16945 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16946 | *) as_fn_append ac_config_targets " $1" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16947 | ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16948 |  | 
|  | 16949 | esac | 
|  | 16950 | shift | 
|  | 16951 | done | 
|  | 16952 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16953 | ac_configure_extra_args= | 
|  | 16954 |  | 
|  | 16955 | if $ac_cs_silent; then | 
|  | 16956 | exec 6>/dev/null | 
|  | 16957 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 16958 | fi | 
|  | 16959 |  | 
|  | 16960 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16961 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16962 | if \$ac_cs_recheck; then | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16963 | 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] | 16964 | shift | 
|  | 16965 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
|  | 16966 | CONFIG_SHELL='$SHELL' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16967 | export CONFIG_SHELL | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16968 | exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16969 | fi | 
|  | 16970 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16971 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16972 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16973 | exec 5>>config.log | 
|  | 16974 | { | 
|  | 16975 | echo | 
|  | 16976 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 16977 | ## Running $as_me. ## | 
|  | 16978 | _ASBOX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16979 | $as_echo "$ac_log" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16980 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16981 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16982 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16983 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16984 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16985 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16986 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16987 |  | 
|  | 16988 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16989 | for ac_config_target in $ac_config_targets | 
|  | 16990 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16991 | case $ac_config_target in | 
|  | 16992 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
|  | 16993 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
|  | 16994 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 16995 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
|  | 16996 | "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] | 16997 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
|  | 16998 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 16999 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17000 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17001 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17002 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17003 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17004 | esac | 
|  | 17005 | done | 
|  | 17006 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17007 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17008 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 17009 | # then the envvar interface is used.  Set only those that are not. | 
|  | 17010 | # We use the long form for the default assignment because of an extremely | 
|  | 17011 | # bizarre bug on SunOS 4.1.3. | 
|  | 17012 | if $ac_need_defaults; then | 
|  | 17013 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 17014 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
|  | 17015 | fi | 
|  | 17016 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17017 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17018 | # 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] | 17019 | # creating and moving files from /tmp can sometimes cause problems. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17020 | # Hook for its removal unless debugging. | 
|  | 17021 | # Note that there is a small window in which the directory will not be cleaned: | 
|  | 17022 | # 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] | 17023 | $debug || | 
|  | 17024 | { | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17025 | tmp= ac_tmp= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17026 | trap 'exit_status=$? | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17027 | : "${ac_tmp:=$tmp}" | 
|  | 17028 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17029 | ' 0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17030 | trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17031 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17032 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17033 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17034 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17035 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17036 | test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17037 | }  || | 
|  | 17038 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17039 | tmp=./conf$$-$RANDOM | 
|  | 17040 | (umask 077 && mkdir "$tmp") | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17041 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17042 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17043 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17044 | # Set up the scripts for CONFIG_FILES section. | 
|  | 17045 | # No need to generate them if there are no CONFIG_FILES. | 
|  | 17046 | # This happens for instance with `./config.status config.h'. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17047 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17048 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17049 |  | 
|  | 17050 | ac_cr=`echo X | tr X '\015'` | 
|  | 17051 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
|  | 17052 | # But we know of no other shell where ac_cr would be empty at this | 
|  | 17053 | # point, so we can use a bashism as a fallback. | 
|  | 17054 | if test "x$ac_cr" = x; then | 
|  | 17055 | eval ac_cr=\$\'\\r\' | 
|  | 17056 | fi | 
|  | 17057 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
|  | 17058 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17059 | ac_cs_awk_cr='\\r' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17060 | else | 
|  | 17061 | ac_cs_awk_cr=$ac_cr | 
|  | 17062 | fi | 
|  | 17063 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17064 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17065 | _ACEOF | 
|  | 17066 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17067 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17068 | { | 
|  | 17069 | echo "cat >conf$$subs.awk <<_ACEOF" && | 
|  | 17070 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
|  | 17071 | echo "_ACEOF" | 
|  | 17072 | } >conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17073 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
|  | 17074 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17075 | ac_delim='%!_!# ' | 
|  | 17076 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17077 | . ./conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17078 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17079 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17080 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
|  | 17081 | if test $ac_delim_n = $ac_delim_num; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17082 | break | 
|  | 17083 | elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17084 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17085 | else | 
|  | 17086 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17087 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17088 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17089 | rm -f conf$$subs.sh | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17090 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17091 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17092 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17093 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17094 | sed -n ' | 
|  | 17095 | h | 
|  | 17096 | s/^/S["/; s/!.*/"]=/ | 
|  | 17097 | p | 
|  | 17098 | g | 
|  | 17099 | s/^[^!]*!// | 
|  | 17100 | :repl | 
|  | 17101 | t repl | 
|  | 17102 | s/'"$ac_delim"'$// | 
|  | 17103 | t delim | 
|  | 17104 | :nl | 
|  | 17105 | h | 
|  | 17106 | s/\(.\{148\}\)..*/\1/ | 
|  | 17107 | t more1 | 
|  | 17108 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
|  | 17109 | p | 
|  | 17110 | n | 
|  | 17111 | b repl | 
|  | 17112 | :more1 | 
|  | 17113 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 17114 | p | 
|  | 17115 | g | 
|  | 17116 | s/.\{148\}// | 
|  | 17117 | t nl | 
|  | 17118 | :delim | 
|  | 17119 | h | 
|  | 17120 | s/\(.\{148\}\)..*/\1/ | 
|  | 17121 | t more2 | 
|  | 17122 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
|  | 17123 | p | 
|  | 17124 | b | 
|  | 17125 | :more2 | 
|  | 17126 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 17127 | p | 
|  | 17128 | g | 
|  | 17129 | s/.\{148\}// | 
|  | 17130 | t delim | 
|  | 17131 | ' <conf$$subs.awk | sed ' | 
|  | 17132 | /^[^""]/{ | 
|  | 17133 | N | 
|  | 17134 | s/\n// | 
|  | 17135 | } | 
|  | 17136 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 17137 | rm -f conf$$subs.awk | 
|  | 17138 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17139 | _ACAWK | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17140 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17141 | for (key in S) S_is_set[key] = 1 | 
|  | 17142 | FS = "" | 
|  | 17143 |  | 
|  | 17144 | } | 
|  | 17145 | { | 
|  | 17146 | line = $ 0 | 
|  | 17147 | nfields = split(line, field, "@") | 
|  | 17148 | substed = 0 | 
|  | 17149 | len = length(field[1]) | 
|  | 17150 | for (i = 2; i < nfields; i++) { | 
|  | 17151 | key = field[i] | 
|  | 17152 | keylen = length(key) | 
|  | 17153 | if (S_is_set[key]) { | 
|  | 17154 | value = S[key] | 
|  | 17155 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
|  | 17156 | len += length(value) + length(field[++i]) | 
|  | 17157 | substed = 1 | 
|  | 17158 | } else | 
|  | 17159 | len += 1 + keylen | 
|  | 17160 | } | 
|  | 17161 |  | 
|  | 17162 | print line | 
|  | 17163 | } | 
|  | 17164 |  | 
|  | 17165 | _ACAWK | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17166 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17167 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 17168 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
|  | 17169 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
|  | 17170 | else | 
|  | 17171 | cat | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17172 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17173 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17174 | _ACEOF | 
|  | 17175 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17176 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
|  | 17177 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17178 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 17179 | # (actually we leave an empty line to preserve line numbers). | 
|  | 17180 | if test "x$srcdir" = x.; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17181 | ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
|  | 17182 | h | 
|  | 17183 | s/// | 
|  | 17184 | s/^/:/ | 
|  | 17185 | s/[	 ]*$/:/ | 
|  | 17186 | s/:\$(srcdir):/:/g | 
|  | 17187 | s/:\${srcdir}:/:/g | 
|  | 17188 | s/:@srcdir@:/:/g | 
|  | 17189 | s/^:*// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17190 | s/:*$// | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17191 | x | 
|  | 17192 | s/\(=[	 ]*\).*/\1/ | 
|  | 17193 | G | 
|  | 17194 | s/\n// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17195 | s/^[^=]*=[	 ]*$// | 
|  | 17196 | }' | 
|  | 17197 | fi | 
|  | 17198 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17199 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17200 | fi # test -n "$CONFIG_FILES" | 
|  | 17201 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17202 | # Set up the scripts for CONFIG_HEADERS section. | 
|  | 17203 | # No need to generate them if there are no CONFIG_HEADERS. | 
|  | 17204 | # This happens for instance with `./config.status Makefile'. | 
|  | 17205 | if test -n "$CONFIG_HEADERS"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17206 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17207 | BEGIN { | 
|  | 17208 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17209 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17210 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
|  | 17211 | # here-document in config.status, that substitutes the proper values into | 
|  | 17212 | # config.h.in to produce config.h. | 
|  | 17213 |  | 
|  | 17214 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
|  | 17215 | # handling of long lines. | 
|  | 17216 | ac_delim='%!_!# ' | 
|  | 17217 | for ac_last_try in false false :; do | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17218 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
|  | 17219 | if test -z "$ac_tt"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17220 | break | 
|  | 17221 | elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17222 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17223 | else | 
|  | 17224 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 17225 | fi | 
|  | 17226 | done | 
|  | 17227 |  | 
|  | 17228 | # For the awk script, D is an array of macro values keyed by name, | 
|  | 17229 | # likewise P contains macro parameters if any.  Preserve backslash | 
|  | 17230 | # newline sequences. | 
|  | 17231 |  | 
|  | 17232 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
|  | 17233 | sed -n ' | 
|  | 17234 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 17235 | t rset | 
|  | 17236 | :rset | 
|  | 17237 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
|  | 17238 | t def | 
|  | 17239 | d | 
|  | 17240 | :def | 
|  | 17241 | s/\\$// | 
|  | 17242 | t bsnl | 
|  | 17243 | s/["\\]/\\&/g | 
|  | 17244 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 17245 | D["\1"]=" \3"/p | 
|  | 17246 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
|  | 17247 | d | 
|  | 17248 | :bsnl | 
|  | 17249 | s/["\\]/\\&/g | 
|  | 17250 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 17251 | D["\1"]=" \3\\\\\\n"\\/p | 
|  | 17252 | t cont | 
|  | 17253 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
|  | 17254 | t cont | 
|  | 17255 | d | 
|  | 17256 | :cont | 
|  | 17257 | n | 
|  | 17258 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 17259 | t clear | 
|  | 17260 | :clear | 
|  | 17261 | s/\\$// | 
|  | 17262 | t bsnlc | 
|  | 17263 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
|  | 17264 | d | 
|  | 17265 | :bsnlc | 
|  | 17266 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
|  | 17267 | b cont | 
|  | 17268 | ' <confdefs.h | sed ' | 
|  | 17269 | s/'"$ac_delim"'/"\\\ | 
|  | 17270 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 17271 |  | 
|  | 17272 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17273 | for (key in D) D_is_set[key] = 1 | 
|  | 17274 | FS = "" | 
|  | 17275 | } | 
|  | 17276 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
|  | 17277 | line = \$ 0 | 
|  | 17278 | split(line, arg, " ") | 
|  | 17279 | if (arg[1] == "#") { | 
|  | 17280 | defundef = arg[2] | 
|  | 17281 | mac1 = arg[3] | 
|  | 17282 | } else { | 
|  | 17283 | defundef = substr(arg[1], 2) | 
|  | 17284 | mac1 = arg[2] | 
|  | 17285 | } | 
|  | 17286 | split(mac1, mac2, "(") #) | 
|  | 17287 | macro = mac2[1] | 
|  | 17288 | prefix = substr(line, 1, index(line, defundef) - 1) | 
|  | 17289 | if (D_is_set[macro]) { | 
|  | 17290 | # Preserve the white space surrounding the "#". | 
|  | 17291 | print prefix "define", macro P[macro] D[macro] | 
|  | 17292 | next | 
|  | 17293 | } else { | 
|  | 17294 | # Replace #undef with comments.  This is necessary, for example, | 
|  | 17295 | # in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 17296 | # on some systems where configure will not decide to define it. | 
|  | 17297 | if (defundef == "undef") { | 
|  | 17298 | print "/*", prefix defundef, macro, "*/" | 
|  | 17299 | next | 
|  | 17300 | } | 
|  | 17301 | } | 
|  | 17302 | } | 
|  | 17303 | { print } | 
|  | 17304 | _ACAWK | 
|  | 17305 | _ACEOF | 
|  | 17306 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17307 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17308 | fi # test -n "$CONFIG_HEADERS" | 
|  | 17309 |  | 
|  | 17310 |  | 
|  | 17311 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
|  | 17312 | shift | 
|  | 17313 | for ac_tag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17314 | do | 
|  | 17315 | case $ac_tag in | 
|  | 17316 | :[FHLC]) ac_mode=$ac_tag; continue;; | 
|  | 17317 | esac | 
|  | 17318 | case $ac_mode$ac_tag in | 
|  | 17319 | :[FHL]*:*);; | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17320 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17321 | :[FH]-) ac_tag=-:-;; | 
|  | 17322 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
|  | 17323 | esac | 
|  | 17324 | ac_save_IFS=$IFS | 
|  | 17325 | IFS=: | 
|  | 17326 | set x $ac_tag | 
|  | 17327 | IFS=$ac_save_IFS | 
|  | 17328 | shift | 
|  | 17329 | ac_file=$1 | 
|  | 17330 | shift | 
|  | 17331 |  | 
|  | 17332 | case $ac_mode in | 
|  | 17333 | :L) ac_source=$1;; | 
|  | 17334 | :[FH]) | 
|  | 17335 | ac_file_inputs= | 
|  | 17336 | for ac_f | 
|  | 17337 | do | 
|  | 17338 | case $ac_f in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17339 | -) ac_f="$ac_tmp/stdin";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17340 | *) # Look for the file first in the build tree, then in the source tree | 
|  | 17341 | # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
|  | 17342 | # because $ac_f cannot contain `:'. | 
|  | 17343 | test -f "$ac_f" || | 
|  | 17344 | case $ac_f in | 
|  | 17345 | [\\/$]*) false;; | 
|  | 17346 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
|  | 17347 | esac || | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17348 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17349 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17350 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
|  | 17351 | as_fn_append ac_file_inputs " '$ac_f'" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17352 | done | 
|  | 17353 |  | 
|  | 17354 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 17355 | # use $as_me), people would be surprised to read: | 
|  | 17356 | #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17357 | configure_input='Generated from '` | 
|  | 17358 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
|  | 17359 | `' by configure.' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17360 | if test x"$ac_file" != x-; then | 
|  | 17361 | configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17362 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
|  | 17363 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17364 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17365 | # Neutralize special characters interpreted by sed in replacement strings. | 
|  | 17366 | case $configure_input in #( | 
|  | 17367 | *\&* | *\|* | *\\* ) | 
|  | 17368 | ac_sed_conf_input=`$as_echo "$configure_input" | | 
|  | 17369 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
|  | 17370 | *) ac_sed_conf_input=$configure_input;; | 
|  | 17371 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17372 |  | 
|  | 17373 | case $ac_tag in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17374 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
|  | 17375 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17376 | esac | 
|  | 17377 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17378 | esac | 
|  | 17379 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17380 | ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17381 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17382 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 17383 | X"$ac_file" : 'X\(//\)$' \| \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17384 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17385 | $as_echo X"$ac_file" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17386 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 17387 | s//\1/ | 
|  | 17388 | q | 
|  | 17389 | } | 
|  | 17390 | /^X\(\/\/\)[^/].*/{ | 
|  | 17391 | s//\1/ | 
|  | 17392 | q | 
|  | 17393 | } | 
|  | 17394 | /^X\(\/\/\)$/{ | 
|  | 17395 | s//\1/ | 
|  | 17396 | q | 
|  | 17397 | } | 
|  | 17398 | /^X\(\/\).*/{ | 
|  | 17399 | s//\1/ | 
|  | 17400 | q | 
|  | 17401 | } | 
|  | 17402 | s/.*/./; q'` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17403 | as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17404 | ac_builddir=. | 
|  | 17405 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17406 | case "$ac_dir" in | 
|  | 17407 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 17408 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17409 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17410 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17411 | 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] | 17412 | case $ac_top_builddir_sub in | 
|  | 17413 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 17414 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 17415 | esac ;; | 
|  | 17416 | esac | 
|  | 17417 | ac_abs_top_builddir=$ac_pwd | 
|  | 17418 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 17419 | # for backward compatibility: | 
|  | 17420 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17421 |  | 
|  | 17422 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17423 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17424 | ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17425 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 17426 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 17427 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17428 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17429 | ac_top_srcdir=$srcdir | 
|  | 17430 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 17431 | *) # Relative name. | 
|  | 17432 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 17433 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 17434 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17435 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17436 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17437 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17438 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17439 | case $ac_mode in | 
|  | 17440 | :F) | 
|  | 17441 | # | 
|  | 17442 | # CONFIG_FILE | 
|  | 17443 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17444 |  | 
|  | 17445 | case $INSTALL in | 
|  | 17446 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17447 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17448 | esac | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17449 | ac_MKDIR_P=$MKDIR_P | 
|  | 17450 | case $MKDIR_P in | 
|  | 17451 | [\\/$]* | ?:[\\/]* ) ;; | 
|  | 17452 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
|  | 17453 | esac | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17454 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17455 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17456 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17457 | # If the template does not know about datarootdir, expand it. | 
|  | 17458 | # FIXME: This hack should be removed a few years after 2.60. | 
|  | 17459 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17460 | ac_sed_dataroot=' | 
|  | 17461 | /datarootdir/ { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17462 | p | 
|  | 17463 | q | 
|  | 17464 | } | 
|  | 17465 | /@datadir@/p | 
|  | 17466 | /@docdir@/p | 
|  | 17467 | /@infodir@/p | 
|  | 17468 | /@localedir@/p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17469 | /@mandir@/p' | 
|  | 17470 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17471 | *datarootdir*) ac_datarootdir_seen=yes;; | 
|  | 17472 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17473 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
|  | 17474 | $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] | 17475 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17476 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17477 | ac_datarootdir_hack=' | 
|  | 17478 | s&@datadir@&$datadir&g | 
|  | 17479 | s&@docdir@&$docdir&g | 
|  | 17480 | s&@infodir@&$infodir&g | 
|  | 17481 | s&@localedir@&$localedir&g | 
|  | 17482 | s&@mandir@&$mandir&g | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17483 | s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17484 | esac | 
|  | 17485 | _ACEOF | 
|  | 17486 |  | 
|  | 17487 | # Neutralize VPATH when `$srcdir' = `.'. | 
|  | 17488 | # Shell code in configure.ac might set extrasub. | 
|  | 17489 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17490 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17491 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17492 | $extrasub | 
|  | 17493 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17494 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17495 | :t | 
|  | 17496 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17497 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17498 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17499 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17500 | s&@srcdir@&$ac_srcdir&;t t | 
|  | 17501 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
|  | 17502 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
|  | 17503 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
|  | 17504 | s&@builddir@&$ac_builddir&;t t | 
|  | 17505 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
|  | 17506 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
|  | 17507 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17508 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17509 | $ac_datarootdir_hack | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17510 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17511 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
|  | 17512 | >$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] | 17513 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17514 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17515 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
|  | 17516 | { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
|  | 17517 | "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17518 | { $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] | 17519 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17520 | $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] | 17521 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17522 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17523 | rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17524 | case $ac_file in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17525 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
|  | 17526 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17527 | esac \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17528 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17529 | ;; | 
|  | 17530 | :H) | 
|  | 17531 | # | 
|  | 17532 | # CONFIG_HEADER | 
|  | 17533 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17534 | if test x"$ac_file" != x-; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17535 | { | 
|  | 17536 | $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17537 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
|  | 17538 | } >"$ac_tmp/config.h" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17539 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17540 | 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] | 17541 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
|  | 17542 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17543 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17544 | rm -f "$ac_file" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17545 | mv "$ac_tmp/config.h" "$ac_file" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17546 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17547 | fi | 
|  | 17548 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17549 | $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17550 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17551 | || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17552 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17553 | ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17554 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17555 |  | 
|  | 17556 | esac | 
|  | 17557 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17558 |  | 
|  | 17559 | case $ac_file$ac_mode in | 
|  | 17560 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
|  | 17561 |  | 
|  | 17562 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17563 | done # for ac_tag | 
|  | 17564 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17565 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17566 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17567 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17568 | ac_clean_files=$ac_clean_files_save | 
|  | 17569 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17570 | test $ac_write_fail = 0 || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17571 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17572 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17573 |  | 
|  | 17574 | # configure is writing to config.log, and then calls config.status. | 
|  | 17575 | # config.status does its own redirection, appending to config.log. | 
|  | 17576 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 17577 | # by configure, so config.status won't be able to write to it; its | 
|  | 17578 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 17579 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 17580 | # appended to by config.status.  When coming back to configure, we | 
|  | 17581 | # need to make the FD available again. | 
|  | 17582 | if test "$no_create" != yes; then | 
|  | 17583 | ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17584 | ac_config_status_args= | 
|  | 17585 | test "$silent" = yes && | 
|  | 17586 | ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17587 | exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17588 | $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] | 17589 | exec 5>>config.log | 
|  | 17590 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 17591 | # would make configure fail if this is the last instruction. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17592 | $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17593 | fi | 
|  | 17594 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
|  | 17595 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
|  | 17596 | $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] | 17597 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17598 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17599 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17600 | echo "creating Modules/Setup" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17601 | if test ! -f Modules/Setup | 
|  | 17602 | then | 
|  | 17603 | cp $srcdir/Modules/Setup.dist Modules/Setup | 
|  | 17604 | fi | 
|  | 17605 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17606 | echo "creating Modules/Setup.local" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17607 | if test ! -f Modules/Setup.local | 
|  | 17608 | then | 
|  | 17609 | echo "# Edit this file for local setup changes" >Modules/Setup.local | 
|  | 17610 | fi | 
|  | 17611 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17612 | echo "creating Makefile" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17613 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
|  | 17614 | -s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17615 | Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17616 | mv config.c Modules | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame^] | 17617 |  | 
|  | 17618 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then | 
|  | 17619 | echo "" >&6 | 
|  | 17620 | echo "" >&6 | 
|  | 17621 | echo "If you want a release build with all optimizations active (LTO, PGO, etc)," | 
|  | 17622 | echo "please run ./configure --with-optimizations" >&6 | 
|  | 17623 | echo "" >&6 | 
|  | 17624 | echo "" >&6 | 
|  | 17625 | fi | 
|  | 17626 |  |