| 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. | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for python 3.7. | 
| 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' | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 583 | PACKAGE_VERSION='3.7' | 
|  | 584 | PACKAGE_STRING='python 3.7' | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='https://bugs.python.org/' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 586 | PACKAGE_URL='' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 |  | 
|  | 588 | ac_unique_file="Include/object.h" | 
|  | 589 | # Factoring default headers for most tests. | 
|  | 590 | ac_includes_default="\ | 
|  | 591 | #include <stdio.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 592 | #ifdef HAVE_SYS_TYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <sys/types.h> | 
|  | 594 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 595 | #ifdef HAVE_SYS_STAT_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 596 | # include <sys/stat.h> | 
|  | 597 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 598 | #ifdef STDC_HEADERS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 599 | # include <stdlib.h> | 
|  | 600 | # include <stddef.h> | 
|  | 601 | #else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 602 | # ifdef HAVE_STDLIB_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | #  include <stdlib.h> | 
|  | 604 | # endif | 
|  | 605 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRING_H | 
|  | 607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 608 | #  include <memory.h> | 
|  | 609 | # endif | 
|  | 610 | # include <string.h> | 
|  | 611 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STRINGS_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 613 | # include <strings.h> | 
|  | 614 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 615 | #ifdef HAVE_INTTYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <inttypes.h> | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 617 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 618 | #ifdef HAVE_STDINT_H | 
|  | 619 | # include <stdint.h> | 
|  | 620 | #endif | 
|  | 621 | #ifdef HAVE_UNISTD_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 622 | # include <unistd.h> | 
|  | 623 | #endif" | 
|  | 624 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 625 | ac_subst_vars='LTLIBOBJS | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 626 | ENSUREPIP | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 627 | SRCDIRS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 628 | THREADHEADERS | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 629 | LIBPL | 
|  | 630 | PY_ENABLE_SHARED | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 631 | EXT_SUFFIX | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 632 | SOABI | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 633 | LIBC | 
|  | 634 | LIBM | 
|  | 635 | HAVE_GETHOSTBYNAME | 
|  | 636 | HAVE_GETHOSTBYNAME_R | 
|  | 637 | HAVE_GETHOSTBYNAME_R_3_ARG | 
|  | 638 | HAVE_GETHOSTBYNAME_R_5_ARG | 
|  | 639 | HAVE_GETHOSTBYNAME_R_6_ARG | 
|  | 640 | LIBOBJS | 
|  | 641 | TRUE | 
|  | 642 | MACHDEP_OBJS | 
|  | 643 | DYNLOADFILE | 
|  | 644 | DLINCLDIR | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 645 | DTRACE_OBJS | 
|  | 646 | DTRACE_HEADERS | 
|  | 647 | DFLAGS | 
|  | 648 | DTRACE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 649 | THREADOBJ | 
|  | 650 | LDLAST | 
|  | 651 | USE_THREAD_MODULE | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 652 | TCLTK_LIBS | 
|  | 653 | TCLTK_INCLUDES | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 654 | LIBFFI_INCLUDEDIR | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 655 | PKG_CONFIG_LIBDIR | 
|  | 656 | PKG_CONFIG_PATH | 
|  | 657 | PKG_CONFIG | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 658 | SHLIBS | 
|  | 659 | CFLAGSFORSHARED | 
|  | 660 | LINKFORSHARED | 
|  | 661 | CCSHARED | 
|  | 662 | BLDSHARED | 
|  | 663 | LDCXXSHARED | 
|  | 664 | LDSHARED | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 665 | SHLIB_SUFFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 666 | LIBTOOL_CRUFT | 
|  | 667 | OTHER_LIBTOOL_OPT | 
|  | 668 | UNIVERSAL_ARCH_FLAGS | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 669 | CFLAGS_NODIST | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 670 | BASECFLAGS | 
| Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 671 | CFLAGS_ALIASING | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 672 | OPT | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 673 | LLVM_PROF_FOUND | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 674 | target_os | 
|  | 675 | target_vendor | 
|  | 676 | target_cpu | 
|  | 677 | target | 
|  | 678 | LLVM_PROFDATA | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 679 | LLVM_PROF_ERR | 
|  | 680 | LLVM_PROF_FILE | 
|  | 681 | LLVM_PROF_MERGER | 
|  | 682 | PGO_PROF_USE_FLAG | 
|  | 683 | PGO_PROF_GEN_FLAG | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 684 | LTOFLAGS | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 685 | DEF_MAKE_RULE | 
|  | 686 | DEF_MAKE_ALL_RULE | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 687 | ABIFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 688 | LN | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 689 | MKDIR_P | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 690 | INSTALL_DATA | 
|  | 691 | INSTALL_SCRIPT | 
|  | 692 | INSTALL_PROGRAM | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 693 | ac_ct_READELF | 
|  | 694 | READELF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 695 | ARFLAGS | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 696 | ac_ct_AR | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 697 | AR | 
|  | 698 | RANLIB | 
|  | 699 | GNULD | 
|  | 700 | LINKCC | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 701 | LDVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 702 | RUNSHARED | 
|  | 703 | INSTSONAME | 
|  | 704 | LDLIBRARYDIR | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 705 | PY3LIBRARY | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 706 | BLDLIBRARY | 
|  | 707 | DLLLIBRARY | 
|  | 708 | LDLIBRARY | 
|  | 709 | LIBRARY | 
|  | 710 | BUILDEXEEXT | 
|  | 711 | EGREP | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 712 | NO_AS_NEEDED | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 713 | MULTIARCH_CPPFLAGS | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 714 | PLATFORM_TRIPLET | 
|  | 715 | MULTIARCH | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 716 | ac_ct_CXX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 717 | MAINCC | 
|  | 718 | CXX | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 719 | SED | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 720 | GREP | 
|  | 721 | CPP | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 722 | OBJEXT | 
|  | 723 | EXEEXT | 
|  | 724 | ac_ct_CC | 
|  | 725 | CPPFLAGS | 
|  | 726 | LDFLAGS | 
|  | 727 | CFLAGS | 
|  | 728 | CC | 
|  | 729 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
|  | 730 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
|  | 731 | SGI_ABI | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 732 | _PYTHON_HOST_PLATFORM | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 733 | MACHDEP | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 734 | FRAMEWORKINSTALLAPPSPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 735 | FRAMEWORKUNIXTOOLSPREFIX | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 736 | FRAMEWORKPYTHONW | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 737 | FRAMEWORKALTINSTALLLAST | 
|  | 738 | FRAMEWORKALTINSTALLFIRST | 
|  | 739 | FRAMEWORKINSTALLLAST | 
|  | 740 | FRAMEWORKINSTALLFIRST | 
|  | 741 | PYTHONFRAMEWORKINSTALLDIR | 
|  | 742 | PYTHONFRAMEWORKPREFIX | 
|  | 743 | PYTHONFRAMEWORKDIR | 
|  | 744 | PYTHONFRAMEWORKIDENTIFIER | 
|  | 745 | PYTHONFRAMEWORK | 
|  | 746 | LIPO_32BIT_FLAGS | 
|  | 747 | ARCH_RUN_32BIT | 
|  | 748 | UNIVERSALSDK | 
|  | 749 | CONFIG_ARGS | 
|  | 750 | SOVERSION | 
|  | 751 | VERSION | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 752 | PYTHON_FOR_BUILD | 
| Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 753 | PYTHON_FOR_REGEN | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 754 | host_os | 
|  | 755 | host_vendor | 
|  | 756 | host_cpu | 
|  | 757 | host | 
|  | 758 | build_os | 
|  | 759 | build_vendor | 
|  | 760 | build_cpu | 
|  | 761 | build | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 762 | HAS_GIT | 
|  | 763 | GITBRANCH | 
|  | 764 | GITTAG | 
|  | 765 | GITVERSION | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 766 | BASECPPFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 767 | target_alias | 
|  | 768 | host_alias | 
|  | 769 | build_alias | 
|  | 770 | LIBS | 
|  | 771 | ECHO_T | 
|  | 772 | ECHO_N | 
|  | 773 | ECHO_C | 
|  | 774 | DEFS | 
|  | 775 | mandir | 
|  | 776 | localedir | 
|  | 777 | libdir | 
|  | 778 | psdir | 
|  | 779 | pdfdir | 
|  | 780 | dvidir | 
|  | 781 | htmldir | 
|  | 782 | infodir | 
|  | 783 | docdir | 
|  | 784 | oldincludedir | 
|  | 785 | includedir | 
|  | 786 | localstatedir | 
|  | 787 | sharedstatedir | 
|  | 788 | sysconfdir | 
|  | 789 | datadir | 
|  | 790 | datarootdir | 
|  | 791 | libexecdir | 
|  | 792 | sbindir | 
|  | 793 | bindir | 
|  | 794 | program_transform_name | 
|  | 795 | prefix | 
|  | 796 | exec_prefix | 
|  | 797 | PACKAGE_URL | 
|  | 798 | PACKAGE_BUGREPORT | 
|  | 799 | PACKAGE_STRING | 
|  | 800 | PACKAGE_VERSION | 
|  | 801 | PACKAGE_TARNAME | 
|  | 802 | PACKAGE_NAME | 
|  | 803 | PATH_SEPARATOR | 
|  | 804 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 805 | ac_subst_files='' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 806 | ac_user_opts=' | 
|  | 807 | enable_option_checking | 
|  | 808 | enable_universalsdk | 
|  | 809 | with_universal_archs | 
|  | 810 | with_framework_name | 
|  | 811 | enable_framework | 
|  | 812 | with_gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 813 | with_icc | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 814 | with_cxx_main | 
|  | 815 | with_suffix | 
|  | 816 | enable_shared | 
|  | 817 | enable_profiling | 
|  | 818 | with_pydebug | 
| T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 819 | with_assertions | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 820 | enable_optimizations | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 821 | with_lto | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 822 | with_hash_algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 823 | with_address_sanitizer | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 824 | with_libs | 
|  | 825 | with_system_expat | 
|  | 826 | with_system_ffi | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 827 | with_system_libmpdec | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 828 | enable_loadable_sqlite_extensions | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 829 | with_tcltk_includes | 
|  | 830 | with_tcltk_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 831 | with_dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 832 | with_threads | 
|  | 833 | with_thread | 
|  | 834 | enable_ipv6 | 
|  | 835 | with_doc_strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 836 | with_pymalloc | 
|  | 837 | with_valgrind | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 838 | with_dtrace | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 839 | with_fpectl | 
|  | 840 | with_libm | 
|  | 841 | with_libc | 
|  | 842 | enable_big_digits | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 843 | with_computed_gotos | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 844 | with_ensurepip | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 845 | ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 846 | ac_precious_vars='build_alias | 
|  | 847 | host_alias | 
|  | 848 | target_alias | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 849 | MACHDEP | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 850 | CC | 
|  | 851 | CFLAGS | 
|  | 852 | LDFLAGS | 
|  | 853 | LIBS | 
|  | 854 | CPPFLAGS | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 855 | CPP | 
|  | 856 | PKG_CONFIG | 
|  | 857 | PKG_CONFIG_PATH | 
|  | 858 | PKG_CONFIG_LIBDIR' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 859 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 860 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 861 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 862 | ac_init_help= | 
|  | 863 | ac_init_version=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 864 | ac_unrecognized_opts= | 
|  | 865 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 866 | # The variables have the same names as the options, with | 
|  | 867 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 868 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 869 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 870 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 871 | no_recursion= | 
|  | 872 | prefix=NONE | 
|  | 873 | program_prefix=NONE | 
|  | 874 | program_suffix=NONE | 
|  | 875 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 876 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 877 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 878 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 879 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 880 | x_includes=NONE | 
|  | 881 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 882 |  | 
|  | 883 | # Installation directory options. | 
|  | 884 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
|  | 885 | # and all the variables that are supposed to be based on exec_prefix | 
|  | 886 | # by default will actually change. | 
|  | 887 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 888 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 889 | bindir='${exec_prefix}/bin' | 
|  | 890 | sbindir='${exec_prefix}/sbin' | 
|  | 891 | libexecdir='${exec_prefix}/libexec' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 892 | datarootdir='${prefix}/share' | 
|  | 893 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 894 | sysconfdir='${prefix}/etc' | 
|  | 895 | sharedstatedir='${prefix}/com' | 
|  | 896 | localstatedir='${prefix}/var' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 897 | includedir='${prefix}/include' | 
|  | 898 | oldincludedir='/usr/include' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 899 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
|  | 900 | infodir='${datarootdir}/info' | 
|  | 901 | htmldir='${docdir}' | 
|  | 902 | dvidir='${docdir}' | 
|  | 903 | pdfdir='${docdir}' | 
|  | 904 | psdir='${docdir}' | 
|  | 905 | libdir='${exec_prefix}/lib' | 
|  | 906 | localedir='${datarootdir}/locale' | 
|  | 907 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 908 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 909 | ac_prev= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 910 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 911 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 912 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 913 | # If the previous option needs an argument, assign it. | 
|  | 914 | if test -n "$ac_prev"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 915 | eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 916 | ac_prev= | 
|  | 917 | continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 918 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 919 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 920 | case $ac_option in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 921 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
|  | 922 | *=)   ac_optarg= ;; | 
|  | 923 | *)    ac_optarg=yes ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 924 | esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 925 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 926 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 927 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 928 | case $ac_dashdash$ac_option in | 
|  | 929 | --) | 
|  | 930 | ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 931 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 932 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|  | 933 | ac_prev=bindir ;; | 
|  | 934 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 935 | bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 936 |  | 
|  | 937 | -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 938 | ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 939 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 940 | build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 941 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 942 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 943 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 944 | ac_prev=cache_file ;; | 
|  | 945 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 946 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 947 | cache_file=$ac_optarg ;; | 
|  | 948 |  | 
|  | 949 | --config-cache | -C) | 
|  | 950 | cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 951 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 952 | -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 953 | ac_prev=datadir ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 954 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 955 | datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 956 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 957 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
|  | 958 | | --dataroo | --dataro | --datar) | 
|  | 959 | ac_prev=datarootdir ;; | 
|  | 960 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
|  | 961 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
|  | 962 | datarootdir=$ac_optarg ;; | 
|  | 963 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 964 | -disable-* | --disable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 965 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 966 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 967 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 968 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 969 | ac_useropt_orig=$ac_useropt | 
|  | 970 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 971 | case $ac_user_opts in | 
|  | 972 | *" | 
|  | 973 | "enable_$ac_useropt" | 
|  | 974 | "*) ;; | 
|  | 975 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
|  | 976 | ac_unrecognized_sep=', ';; | 
|  | 977 | esac | 
|  | 978 | eval enable_$ac_useropt=no ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 979 |  | 
|  | 980 | -docdir | --docdir | --docdi | --doc | --do) | 
|  | 981 | ac_prev=docdir ;; | 
|  | 982 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
|  | 983 | docdir=$ac_optarg ;; | 
|  | 984 |  | 
|  | 985 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
|  | 986 | ac_prev=dvidir ;; | 
|  | 987 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
|  | 988 | dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 989 |  | 
|  | 990 | -enable-* | --enable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 991 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 992 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 993 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 994 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 995 | ac_useropt_orig=$ac_useropt | 
|  | 996 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 997 | case $ac_user_opts in | 
|  | 998 | *" | 
|  | 999 | "enable_$ac_useropt" | 
|  | 1000 | "*) ;; | 
|  | 1001 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
|  | 1002 | ac_unrecognized_sep=', ';; | 
|  | 1003 | esac | 
|  | 1004 | eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1005 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1006 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|  | 1007 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|  | 1008 | | --exec | --exe | --ex) | 
|  | 1009 | ac_prev=exec_prefix ;; | 
|  | 1010 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|  | 1011 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|  | 1012 | | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1013 | exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1014 |  | 
|  | 1015 | -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1016 | # Obsolete; use --with-gas. | 
|  | 1017 | with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1018 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1019 | -help | --help | --hel | --he | -h) | 
|  | 1020 | ac_init_help=long ;; | 
|  | 1021 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
|  | 1022 | ac_init_help=recursive ;; | 
|  | 1023 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
|  | 1024 | ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1025 |  | 
|  | 1026 | -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1027 | ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1028 | -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1029 | host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1030 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1031 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
|  | 1032 | ac_prev=htmldir ;; | 
|  | 1033 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
|  | 1034 | | --ht=*) | 
|  | 1035 | htmldir=$ac_optarg ;; | 
|  | 1036 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1037 | -includedir | --includedir | --includedi | --included | --include \ | 
|  | 1038 | | --includ | --inclu | --incl | --inc) | 
|  | 1039 | ac_prev=includedir ;; | 
|  | 1040 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|  | 1041 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1042 | includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1043 |  | 
|  | 1044 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|  | 1045 | ac_prev=infodir ;; | 
|  | 1046 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1047 | infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1048 |  | 
|  | 1049 | -libdir | --libdir | --libdi | --libd) | 
|  | 1050 | ac_prev=libdir ;; | 
|  | 1051 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1052 | libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1053 |  | 
|  | 1054 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|  | 1055 | | --libexe | --libex | --libe) | 
|  | 1056 | ac_prev=libexecdir ;; | 
|  | 1057 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|  | 1058 | | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 | libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1060 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1061 | -localedir | --localedir | --localedi | --localed | --locale) | 
|  | 1062 | ac_prev=localedir ;; | 
|  | 1063 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
|  | 1064 | localedir=$ac_optarg ;; | 
|  | 1065 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1066 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1067 | | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1068 | ac_prev=localstatedir ;; | 
|  | 1069 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1070 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1071 | localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1072 |  | 
|  | 1073 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|  | 1074 | ac_prev=mandir ;; | 
|  | 1075 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1076 | mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1077 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1078 | -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1079 | # Obsolete; use --without-fp. | 
|  | 1080 | with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1081 |  | 
|  | 1082 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1083 | | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1084 | no_create=yes ;; | 
|  | 1085 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1086 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 1087 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|  | 1088 | no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1089 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1090 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|  | 1091 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|  | 1092 | | --oldin | --oldi | --old | --ol | --o) | 
|  | 1093 | ac_prev=oldincludedir ;; | 
|  | 1094 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|  | 1095 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|  | 1096 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1097 | oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1098 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1099 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 1100 | ac_prev=prefix ;; | 
|  | 1101 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1102 | prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1103 |  | 
|  | 1104 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|  | 1105 | | --program-pre | --program-pr | --program-p) | 
|  | 1106 | ac_prev=program_prefix ;; | 
|  | 1107 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|  | 1108 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1109 | program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1110 |  | 
|  | 1111 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|  | 1112 | | --program-suf | --program-su | --program-s) | 
|  | 1113 | ac_prev=program_suffix ;; | 
|  | 1114 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|  | 1115 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1116 | program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1117 |  | 
|  | 1118 | -program-transform-name | --program-transform-name \ | 
|  | 1119 | | --program-transform-nam | --program-transform-na \ | 
|  | 1120 | | --program-transform-n | --program-transform- \ | 
|  | 1121 | | --program-transform | --program-transfor \ | 
|  | 1122 | | --program-transfo | --program-transf \ | 
|  | 1123 | | --program-trans | --program-tran \ | 
|  | 1124 | | --progr-tra | --program-tr | --program-t) | 
|  | 1125 | ac_prev=program_transform_name ;; | 
|  | 1126 | -program-transform-name=* | --program-transform-name=* \ | 
|  | 1127 | | --program-transform-nam=* | --program-transform-na=* \ | 
|  | 1128 | | --program-transform-n=* | --program-transform-=* \ | 
|  | 1129 | | --program-transform=* | --program-transfor=* \ | 
|  | 1130 | | --program-transfo=* | --program-transf=* \ | 
|  | 1131 | | --program-trans=* | --program-tran=* \ | 
|  | 1132 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1133 | program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1134 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1135 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
|  | 1136 | ac_prev=pdfdir ;; | 
|  | 1137 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
|  | 1138 | pdfdir=$ac_optarg ;; | 
|  | 1139 |  | 
|  | 1140 | -psdir | --psdir | --psdi | --psd | --ps) | 
|  | 1141 | ac_prev=psdir ;; | 
|  | 1142 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
|  | 1143 | psdir=$ac_optarg ;; | 
|  | 1144 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1145 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1146 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1147 | silent=yes ;; | 
|  | 1148 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1149 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|  | 1150 | ac_prev=sbindir ;; | 
|  | 1151 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|  | 1152 | | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1153 | sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1154 |  | 
|  | 1155 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|  | 1156 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|  | 1157 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|  | 1158 | | --sha | --sh) | 
|  | 1159 | ac_prev=sharedstatedir ;; | 
|  | 1160 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|  | 1161 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|  | 1162 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|  | 1163 | | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1164 | sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1165 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1166 | -site | --site | --sit) | 
|  | 1167 | ac_prev=site ;; | 
|  | 1168 | -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1169 | site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1170 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1171 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 1172 | ac_prev=srcdir ;; | 
|  | 1173 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1174 | srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1175 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1176 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|  | 1177 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|  | 1178 | ac_prev=sysconfdir ;; | 
|  | 1179 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|  | 1180 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1181 | sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1182 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1183 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1184 | ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1185 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1186 | target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1187 |  | 
|  | 1188 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|  | 1189 | verbose=yes ;; | 
|  | 1190 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1191 | -version | --version | --versio | --versi | --vers | -V) | 
|  | 1192 | ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1193 |  | 
|  | 1194 | -with-* | --with-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1195 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1196 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1197 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1198 | as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1199 | ac_useropt_orig=$ac_useropt | 
|  | 1200 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1201 | case $ac_user_opts in | 
|  | 1202 | *" | 
|  | 1203 | "with_$ac_useropt" | 
|  | 1204 | "*) ;; | 
|  | 1205 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
|  | 1206 | ac_unrecognized_sep=', ';; | 
|  | 1207 | esac | 
|  | 1208 | eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1209 |  | 
|  | 1210 | -without-* | --without-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1211 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1212 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1213 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1214 | as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1215 | ac_useropt_orig=$ac_useropt | 
|  | 1216 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1217 | case $ac_user_opts in | 
|  | 1218 | *" | 
|  | 1219 | "with_$ac_useropt" | 
|  | 1220 | "*) ;; | 
|  | 1221 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
|  | 1222 | ac_unrecognized_sep=', ';; | 
|  | 1223 | esac | 
|  | 1224 | eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1225 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1226 | --x) | 
|  | 1227 | # Obsolete; use --with-x. | 
|  | 1228 | with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1229 |  | 
|  | 1230 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|  | 1231 | | --x-incl | --x-inc | --x-in | --x-i) | 
|  | 1232 | ac_prev=x_includes ;; | 
|  | 1233 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|  | 1234 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1235 | x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1236 |  | 
|  | 1237 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|  | 1238 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|  | 1239 | ac_prev=x_libraries ;; | 
|  | 1240 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|  | 1241 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1242 | x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1243 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1244 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
|  | 1245 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1246 | ;; | 
|  | 1247 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1248 | *=*) | 
|  | 1249 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
|  | 1250 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1251 | case $ac_envvar in #( | 
|  | 1252 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1253 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1254 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1255 | eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1256 | export $ac_envvar ;; | 
|  | 1257 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1258 | *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1259 | # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1260 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1261 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1262 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1263 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1264 | ;; | 
|  | 1265 |  | 
|  | 1266 | esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1267 | done | 
|  | 1268 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1269 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1270 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1271 | as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1272 | fi | 
|  | 1273 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1274 | if test -n "$ac_unrecognized_opts"; then | 
|  | 1275 | case $enable_option_checking in | 
|  | 1276 | no) ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1277 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1278 | *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
|  | 1279 | esac | 
|  | 1280 | fi | 
|  | 1281 |  | 
|  | 1282 | # Check all directory arguments for consistency. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1283 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
|  | 1284 | datadir sysconfdir sharedstatedir localstatedir includedir \ | 
|  | 1285 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
| Brett Cannon | b4e5fee | 2017-06-09 13:56:57 -0700 | [diff] [blame^] | 1286 | libdir localedir mandir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1287 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1288 | eval ac_val=\$$ac_var | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1289 | # Remove trailing slashes. | 
|  | 1290 | case $ac_val in | 
|  | 1291 | */ ) | 
|  | 1292 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
|  | 1293 | eval $ac_var=\$ac_val;; | 
|  | 1294 | esac | 
|  | 1295 | # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1296 | case $ac_val in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1297 | [\\/$]* | ?:[\\/]* )  continue;; | 
|  | 1298 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1299 | esac | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1300 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1301 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1302 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1303 | # There might be people who depend on the old broken behavior: `$host' | 
|  | 1304 | # used to hold the argument of --host etc. | 
|  | 1305 | # FIXME: To remove some day. | 
|  | 1306 | build=$build_alias | 
|  | 1307 | host=$host_alias | 
|  | 1308 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1309 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1310 | # FIXME: To remove some day. | 
|  | 1311 | if test "x$host_alias" != x; then | 
|  | 1312 | if test "x$build_alias" = x; then | 
|  | 1313 | cross_compiling=maybe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1314 | elif test "x$build_alias" != "x$host_alias"; then | 
|  | 1315 | cross_compiling=yes | 
|  | 1316 | fi | 
|  | 1317 | fi | 
|  | 1318 |  | 
|  | 1319 | ac_tool_prefix= | 
|  | 1320 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
|  | 1321 |  | 
|  | 1322 | test "$silent" = yes && exec 6>/dev/null | 
|  | 1323 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1324 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1325 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
|  | 1326 | ac_ls_di=`ls -di .` && | 
|  | 1327 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1328 | as_fn_error $? "working directory cannot be determined" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1329 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1330 | as_fn_error $? "pwd does not report name of working directory" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1331 |  | 
|  | 1332 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1333 | # Find the source files, if location was not specified. | 
|  | 1334 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1335 | ac_srcdir_defaulted=yes | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1336 | # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1337 | ac_confdir=`$as_dirname -- "$as_myself" || | 
|  | 1338 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 1339 | X"$as_myself" : 'X\(//\)[^/]' \| \ | 
|  | 1340 | X"$as_myself" : 'X\(//\)$' \| \ | 
|  | 1341 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 1342 | $as_echo X"$as_myself" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 1344 | s//\1/ | 
|  | 1345 | q | 
|  | 1346 | } | 
|  | 1347 | /^X\(\/\/\)[^/].*/{ | 
|  | 1348 | s//\1/ | 
|  | 1349 | q | 
|  | 1350 | } | 
|  | 1351 | /^X\(\/\/\)$/{ | 
|  | 1352 | s//\1/ | 
|  | 1353 | q | 
|  | 1354 | } | 
|  | 1355 | /^X\(\/\).*/{ | 
|  | 1356 | s//\1/ | 
|  | 1357 | q | 
|  | 1358 | } | 
|  | 1359 | s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1360 | srcdir=$ac_confdir | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1361 | if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1362 | srcdir=.. | 
|  | 1363 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1364 | else | 
|  | 1365 | ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1366 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1367 | if test ! -r "$srcdir/$ac_unique_file"; then | 
|  | 1368 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1369 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1370 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1371 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
|  | 1372 | ac_abs_confdir=`( | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1373 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1374 | pwd)` | 
|  | 1375 | # When building in place, set srcdir=. | 
|  | 1376 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
|  | 1377 | srcdir=. | 
|  | 1378 | fi | 
|  | 1379 | # Remove unnecessary trailing slashes from srcdir. | 
|  | 1380 | # Double slashes in file names in object file debugging info | 
|  | 1381 | # mess up M-x gdb in Emacs. | 
|  | 1382 | case $srcdir in | 
|  | 1383 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
|  | 1384 | esac | 
|  | 1385 | for ac_var in $ac_precious_vars; do | 
|  | 1386 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1387 | eval ac_env_${ac_var}_value=\$${ac_var} | 
|  | 1388 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1389 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
|  | 1390 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1391 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | # | 
|  | 1393 | # Report the --help message. | 
|  | 1394 | # | 
|  | 1395 | if test "$ac_init_help" = "long"; then | 
|  | 1396 | # Omit some internal or obsolete options to make the list less imposing. | 
|  | 1397 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|  | 1398 | cat <<_ACEOF | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 1399 | \`configure' configures python 3.7 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1400 |  | 
|  | 1401 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
|  | 1402 |  | 
|  | 1403 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
|  | 1404 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
|  | 1405 |  | 
|  | 1406 | Defaults for the options are specified in brackets. | 
|  | 1407 |  | 
|  | 1408 | Configuration: | 
|  | 1409 | -h, --help              display this help and exit | 
|  | 1410 | --help=short        display options specific to this package | 
|  | 1411 | --help=recursive    display the short help of all the included packages | 
|  | 1412 | -V, --version           display version information and exit | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1413 | -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1414 | --cache-file=FILE   cache test results in FILE [disabled] | 
|  | 1415 | -C, --config-cache      alias for \`--cache-file=config.cache' | 
|  | 1416 | -n, --no-create         do not create output files | 
|  | 1417 | --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
|  | 1418 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1419 | Installation directories: | 
|  | 1420 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1421 | [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1422 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1423 | [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1424 |  | 
|  | 1425 | By default, \`make install' will install all the files in | 
|  | 1426 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
|  | 1427 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
|  | 1428 | for instance \`--prefix=\$HOME'. | 
|  | 1429 |  | 
|  | 1430 | For better control, use the options below. | 
|  | 1431 |  | 
|  | 1432 | Fine tuning of the installation directories: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1433 | --bindir=DIR            user executables [EPREFIX/bin] | 
|  | 1434 | --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
|  | 1435 | --libexecdir=DIR        program executables [EPREFIX/libexec] | 
|  | 1436 | --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
|  | 1437 | --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
|  | 1438 | --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
|  | 1439 | --libdir=DIR            object code libraries [EPREFIX/lib] | 
|  | 1440 | --includedir=DIR        C header files [PREFIX/include] | 
|  | 1441 | --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
|  | 1442 | --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
|  | 1443 | --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
|  | 1444 | --infodir=DIR           info documentation [DATAROOTDIR/info] | 
|  | 1445 | --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
|  | 1446 | --mandir=DIR            man documentation [DATAROOTDIR/man] | 
|  | 1447 | --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
|  | 1448 | --htmldir=DIR           html documentation [DOCDIR] | 
|  | 1449 | --dvidir=DIR            dvi documentation [DOCDIR] | 
|  | 1450 | --pdfdir=DIR            pdf documentation [DOCDIR] | 
|  | 1451 | --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1452 | _ACEOF | 
|  | 1453 |  | 
|  | 1454 | cat <<\_ACEOF | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1455 |  | 
|  | 1456 | System types: | 
|  | 1457 | --build=BUILD     configure for building on BUILD [guessed] | 
|  | 1458 | --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 1459 | --target=TARGET   configure for building compilers for TARGET [HOST] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1460 | _ACEOF | 
|  | 1461 | fi | 
|  | 1462 |  | 
|  | 1463 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1464 | case $ac_init_help in | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 1465 | short | recursive ) echo "Configuration of python 3.7:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1466 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1467 | cat <<\_ACEOF | 
|  | 1468 |  | 
|  | 1469 | Optional Features: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1470 | --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1471 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 1472 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1473 | --enable-universalsdk[=SDKDIR] | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 1474 | Build fat binary against Mac OS X SDK | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1475 | --enable-framework[=INSTALLDIR] | 
|  | 1476 | Build (MacOSX|Darwin) framework | 
|  | 1477 | --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1478 | --enable-profiling      enable C-level code profiling | 
| Brett Cannon | b4e5fee | 2017-06-09 13:56:57 -0700 | [diff] [blame^] | 1479 | --enable-optimizations  Enable expensive, stable optimizations (PGO, etc). | 
|  | 1480 | Disabled by default. | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1481 | --enable-loadable-sqlite-extensions | 
|  | 1482 | support loadable extensions in _sqlite module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1483 | --enable-ipv6           Enable ipv6 (with ipv4) support | 
|  | 1484 | --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1485 | --enable-big-digits[=BITS] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1486 | use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1487 |  | 
|  | 1488 | Optional Packages: | 
|  | 1489 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1490 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1491 | --with-universal-archs=ARCH | 
|  | 1492 | select architectures for universal build ("32-bit", | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 1493 | "64-bit", "3-way", "intel", "intel-32", or "all") | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1494 | --with-framework-name=FRAMEWORK | 
|  | 1495 | specify an alternate name of the framework built | 
|  | 1496 | with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1497 | --without-gcc           never use gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 1498 | --with-icc              build with icc | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1499 | --with-cxx-main=<compiler> | 
|  | 1500 | compile main() and link python executable with C++ | 
|  | 1501 | compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1502 | --with-suffix=.exe      set executable suffix | 
|  | 1503 | --with-pydebug          build with Py_DEBUG defined | 
| T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 1504 | --with-assertions       build with C assertions enabled | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 1505 | --with-lto              Enable Link Time Optimization in PGO builds. | 
|  | 1506 | Disabled by default. | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1507 | --with-hash-algorithm=[fnv|siphash24] | 
|  | 1508 | select hash algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1509 | --with-address-sanitizer | 
|  | 1510 | enable AddressSanitizer | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1511 | --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1512 | --with-system-expat     build pyexpat module using an installed expat | 
|  | 1513 | library | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1514 | --with-system-ffi       build _ctypes module using an installed ffi library | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1515 | --with-system-libmpdec  build _decimal module using an installed libmpdec | 
|  | 1516 | library | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1517 | --with-tcltk-includes='-I...' | 
|  | 1518 | override search for Tcl and Tk include files | 
|  | 1519 | --with-tcltk-libs='-L...' | 
|  | 1520 | override search for Tcl and Tk libs | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1521 | --with-dbmliborder=db1:db2:... | 
|  | 1522 | order to check db backends for dbm. Valid value is a | 
|  | 1523 | colon separated string with the backend names | 
|  | 1524 | `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1525 | --with(out)-threads[=DIRECTORY] | 
|  | 1526 | disable/enable thread support | 
|  | 1527 | --with(out)-thread[=DIRECTORY] | 
|  | 1528 | deprecated; use --with(out)-threads | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1529 | --with(out)-doc-strings disable/enable documentation strings | 
|  | 1530 | --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1531 | --with-valgrind         Enable Valgrind support | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 1532 | --with(out)-dtrace      disable/enable DTrace support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1533 | --with-fpectl           enable SIGFPE catching | 
|  | 1534 | --with-libm=STRING      math library | 
|  | 1535 | --with-libc=STRING      C library | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1536 | --with(out)-computed-gotos | 
|  | 1537 | Use computed gotos in evaluation loop (enabled by | 
|  | 1538 | default on supported compilers) | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 1539 | --with(out)-ensurepip=[=upgrade] | 
|  | 1540 | "install" or "upgrade" using bundled pip | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1541 |  | 
|  | 1542 | Some influential environment variables: | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1543 | MACHDEP     name for machine-dependent library files | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1544 | CC          C compiler command | 
|  | 1545 | CFLAGS      C compiler flags | 
|  | 1546 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1547 | nonstandard directory <lib dir> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1548 | LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1549 | CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1550 | you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1551 | CPP         C preprocessor | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 1552 | PKG_CONFIG  path to pkg-config utility | 
|  | 1553 | PKG_CONFIG_PATH | 
|  | 1554 | directories to add to pkg-config's search path | 
|  | 1555 | PKG_CONFIG_LIBDIR | 
|  | 1556 | path overriding pkg-config's built-in search path | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1557 |  | 
|  | 1558 | Use these variables to override the choices made by `configure' or to help | 
|  | 1559 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1560 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1561 | Report bugs to <https://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1562 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1563 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1564 | fi | 
|  | 1565 |  | 
|  | 1566 | if test "$ac_init_help" = "recursive"; then | 
|  | 1567 | # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1568 | 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] | 1569 | test -d "$ac_dir" || | 
|  | 1570 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
|  | 1571 | continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1572 | ac_builddir=. | 
|  | 1573 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1574 | case "$ac_dir" in | 
|  | 1575 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1576 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1577 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1578 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1579 | 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] | 1580 | case $ac_top_builddir_sub in | 
|  | 1581 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1582 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 1583 | esac ;; | 
|  | 1584 | esac | 
|  | 1585 | ac_abs_top_builddir=$ac_pwd | 
|  | 1586 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 1587 | # for backward compatibility: | 
|  | 1588 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1589 |  | 
|  | 1590 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1591 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1592 | ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1593 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 1594 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 1595 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1596 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1597 | ac_top_srcdir=$srcdir | 
|  | 1598 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 1599 | *) # Relative name. | 
|  | 1600 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 1601 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 1602 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1603 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1604 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1605 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1606 | cd "$ac_dir" || { ac_status=$?; continue; } | 
|  | 1607 | # Check for guested configure. | 
|  | 1608 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 1609 | echo && | 
|  | 1610 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
|  | 1611 | elif test -f "$ac_srcdir/configure"; then | 
|  | 1612 | echo && | 
|  | 1613 | $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1614 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1615 | $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] | 1616 | fi || ac_status=$? | 
|  | 1617 | cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1618 | done | 
|  | 1619 | fi | 
|  | 1620 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1621 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1622 | if $ac_init_version; then | 
|  | 1623 | cat <<\_ACEOF | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 1624 | python configure 3.7 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1625 | generated by GNU Autoconf 2.69 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1626 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1627 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1628 | This configure script is free software; the Free Software Foundation | 
|  | 1629 | gives unlimited permission to copy, distribute and modify it. | 
|  | 1630 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1631 | exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1632 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1633 |  | 
|  | 1634 | ## ------------------------ ## | 
|  | 1635 | ## Autoconf initialization. ## | 
|  | 1636 | ## ------------------------ ## | 
|  | 1637 |  | 
|  | 1638 | # ac_fn_c_try_compile LINENO | 
|  | 1639 | # -------------------------- | 
|  | 1640 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
|  | 1641 | ac_fn_c_try_compile () | 
|  | 1642 | { | 
|  | 1643 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1644 | rm -f conftest.$ac_objext | 
|  | 1645 | if { { ac_try="$ac_compile" | 
|  | 1646 | case "(($ac_try" in | 
|  | 1647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1648 | *) ac_try_echo=$ac_try;; | 
|  | 1649 | esac | 
|  | 1650 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1651 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1652 | (eval "$ac_compile") 2>conftest.err | 
|  | 1653 | ac_status=$? | 
|  | 1654 | if test -s conftest.err; then | 
|  | 1655 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1656 | cat conftest.er1 >&5 | 
|  | 1657 | mv -f conftest.er1 conftest.err | 
|  | 1658 | fi | 
|  | 1659 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1660 | test $ac_status = 0; } && { | 
|  | 1661 | test -z "$ac_c_werror_flag" || | 
|  | 1662 | test ! -s conftest.err | 
|  | 1663 | } && test -s conftest.$ac_objext; then : | 
|  | 1664 | ac_retval=0 | 
|  | 1665 | else | 
|  | 1666 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1667 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1668 |  | 
|  | 1669 | ac_retval=1 | 
|  | 1670 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1671 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1672 | as_fn_set_status $ac_retval | 
|  | 1673 |  | 
|  | 1674 | } # ac_fn_c_try_compile | 
|  | 1675 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1676 | # ac_fn_c_try_cpp LINENO | 
|  | 1677 | # ---------------------- | 
|  | 1678 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
|  | 1679 | ac_fn_c_try_cpp () | 
|  | 1680 | { | 
|  | 1681 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1682 | if { { ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 1683 | case "(($ac_try" in | 
|  | 1684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1685 | *) ac_try_echo=$ac_try;; | 
|  | 1686 | esac | 
|  | 1687 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1688 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1689 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
|  | 1690 | ac_status=$? | 
|  | 1691 | if test -s conftest.err; then | 
|  | 1692 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1693 | cat conftest.er1 >&5 | 
|  | 1694 | mv -f conftest.er1 conftest.err | 
|  | 1695 | fi | 
|  | 1696 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1697 | test $ac_status = 0; } > conftest.i && { | 
|  | 1698 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
|  | 1699 | test ! -s conftest.err | 
|  | 1700 | }; then : | 
|  | 1701 | ac_retval=0 | 
|  | 1702 | else | 
|  | 1703 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1704 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1705 |  | 
|  | 1706 | ac_retval=1 | 
|  | 1707 | fi | 
|  | 1708 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
|  | 1709 | as_fn_set_status $ac_retval | 
|  | 1710 |  | 
|  | 1711 | } # ac_fn_c_try_cpp | 
|  | 1712 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1713 | # ac_fn_c_try_link LINENO | 
|  | 1714 | # ----------------------- | 
|  | 1715 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
|  | 1716 | ac_fn_c_try_link () | 
|  | 1717 | { | 
|  | 1718 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1719 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 1720 | if { { ac_try="$ac_link" | 
|  | 1721 | case "(($ac_try" in | 
|  | 1722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1723 | *) ac_try_echo=$ac_try;; | 
|  | 1724 | esac | 
|  | 1725 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1726 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1727 | (eval "$ac_link") 2>conftest.err | 
|  | 1728 | ac_status=$? | 
|  | 1729 | if test -s conftest.err; then | 
|  | 1730 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1731 | cat conftest.er1 >&5 | 
|  | 1732 | mv -f conftest.er1 conftest.err | 
|  | 1733 | fi | 
|  | 1734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1735 | test $ac_status = 0; } && { | 
|  | 1736 | test -z "$ac_c_werror_flag" || | 
|  | 1737 | test ! -s conftest.err | 
|  | 1738 | } && test -s conftest$ac_exeext && { | 
|  | 1739 | test "$cross_compiling" = yes || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1740 | test -x conftest$ac_exeext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1741 | }; then : | 
|  | 1742 | ac_retval=0 | 
|  | 1743 | else | 
|  | 1744 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1745 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1746 |  | 
|  | 1747 | ac_retval=1 | 
|  | 1748 | fi | 
|  | 1749 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
|  | 1750 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
|  | 1751 | # interfere with the next link command; also delete a directory that is | 
|  | 1752 | # left behind by Apple's compiler.  We do this before executing the actions. | 
|  | 1753 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1754 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1755 | as_fn_set_status $ac_retval | 
|  | 1756 |  | 
|  | 1757 | } # ac_fn_c_try_link | 
|  | 1758 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1759 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
|  | 1760 | # ------------------------------------------------------- | 
|  | 1761 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
|  | 1762 | # the include files in INCLUDES and setting the cache variable VAR | 
|  | 1763 | # accordingly. | 
|  | 1764 | ac_fn_c_check_header_mongrel () | 
|  | 1765 | { | 
|  | 1766 | 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] | 1767 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1769 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1770 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1771 | $as_echo_n "(cached) " >&6 | 
|  | 1772 | fi | 
|  | 1773 | eval ac_res=\$$3 | 
|  | 1774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1775 | $as_echo "$ac_res" >&6; } | 
|  | 1776 | else | 
|  | 1777 | # Is the header compilable? | 
|  | 1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
|  | 1779 | $as_echo_n "checking $2 usability... " >&6; } | 
|  | 1780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1781 | /* end confdefs.h.  */ | 
|  | 1782 | $4 | 
|  | 1783 | #include <$2> | 
|  | 1784 | _ACEOF | 
|  | 1785 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1786 | ac_header_compiler=yes | 
|  | 1787 | else | 
|  | 1788 | ac_header_compiler=no | 
|  | 1789 | fi | 
|  | 1790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
|  | 1792 | $as_echo "$ac_header_compiler" >&6; } | 
|  | 1793 |  | 
|  | 1794 | # Is the header present? | 
|  | 1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
|  | 1796 | $as_echo_n "checking $2 presence... " >&6; } | 
|  | 1797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1798 | /* end confdefs.h.  */ | 
|  | 1799 | #include <$2> | 
|  | 1800 | _ACEOF | 
|  | 1801 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 1802 | ac_header_preproc=yes | 
|  | 1803 | else | 
|  | 1804 | ac_header_preproc=no | 
|  | 1805 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1806 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
|  | 1808 | $as_echo "$ac_header_preproc" >&6; } | 
|  | 1809 |  | 
|  | 1810 | # So?  What about this header? | 
|  | 1811 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
|  | 1812 | yes:no: ) | 
|  | 1813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 1814 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1816 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
|  | 1817 | ;; | 
|  | 1818 | no:yes:* ) | 
|  | 1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
|  | 1820 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
|  | 1821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
|  | 1822 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
|  | 1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
|  | 1824 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
|  | 1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 1826 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1828 | $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] | 1829 | ( $as_echo "## --------------------------------------- ## | 
|  | 1830 | ## Report this to https://bugs.python.org/ ## | 
|  | 1831 | ## --------------------------------------- ##" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1832 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 1833 | ;; | 
|  | 1834 | esac | 
|  | 1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1836 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1837 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1838 | $as_echo_n "(cached) " >&6 | 
|  | 1839 | else | 
|  | 1840 | eval "$3=\$ac_header_compiler" | 
|  | 1841 | fi | 
|  | 1842 | eval ac_res=\$$3 | 
|  | 1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1844 | $as_echo "$ac_res" >&6; } | 
|  | 1845 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1846 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1847 |  | 
|  | 1848 | } # ac_fn_c_check_header_mongrel | 
|  | 1849 |  | 
|  | 1850 | # ac_fn_c_try_run LINENO | 
|  | 1851 | # ---------------------- | 
|  | 1852 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
|  | 1853 | # that executables *can* be run. | 
|  | 1854 | ac_fn_c_try_run () | 
|  | 1855 | { | 
|  | 1856 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1857 | if { { ac_try="$ac_link" | 
|  | 1858 | case "(($ac_try" in | 
|  | 1859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1860 | *) ac_try_echo=$ac_try;; | 
|  | 1861 | esac | 
|  | 1862 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1863 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1864 | (eval "$ac_link") 2>&5 | 
|  | 1865 | ac_status=$? | 
|  | 1866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1867 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
|  | 1868 | { { case "(($ac_try" in | 
|  | 1869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1870 | *) ac_try_echo=$ac_try;; | 
|  | 1871 | esac | 
|  | 1872 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1873 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1874 | (eval "$ac_try") 2>&5 | 
|  | 1875 | ac_status=$? | 
|  | 1876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1877 | test $ac_status = 0; }; }; then : | 
|  | 1878 | ac_retval=0 | 
|  | 1879 | else | 
|  | 1880 | $as_echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 1881 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1882 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1883 |  | 
|  | 1884 | ac_retval=$ac_status | 
|  | 1885 | fi | 
|  | 1886 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1887 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1888 | as_fn_set_status $ac_retval | 
|  | 1889 |  | 
|  | 1890 | } # ac_fn_c_try_run | 
|  | 1891 |  | 
|  | 1892 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
|  | 1893 | # ------------------------------------------------------- | 
|  | 1894 | # Tests whether HEADER exists and can be compiled using the include files in | 
|  | 1895 | # INCLUDES, setting the cache variable VAR accordingly. | 
|  | 1896 | ac_fn_c_check_header_compile () | 
|  | 1897 | { | 
|  | 1898 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1900 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1901 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1902 | $as_echo_n "(cached) " >&6 | 
|  | 1903 | else | 
|  | 1904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1905 | /* end confdefs.h.  */ | 
|  | 1906 | $4 | 
|  | 1907 | #include <$2> | 
|  | 1908 | _ACEOF | 
|  | 1909 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1910 | eval "$3=yes" | 
|  | 1911 | else | 
|  | 1912 | eval "$3=no" | 
|  | 1913 | fi | 
|  | 1914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1915 | fi | 
|  | 1916 | eval ac_res=\$$3 | 
|  | 1917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1918 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1919 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1920 |  | 
|  | 1921 | } # ac_fn_c_check_header_compile | 
|  | 1922 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1923 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
|  | 1924 | # ------------------------------------------- | 
|  | 1925 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
|  | 1926 | # variable VAR accordingly. | 
|  | 1927 | ac_fn_c_check_type () | 
|  | 1928 | { | 
|  | 1929 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1931 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1932 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1933 | $as_echo_n "(cached) " >&6 | 
|  | 1934 | else | 
|  | 1935 | eval "$3=no" | 
|  | 1936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1937 | /* end confdefs.h.  */ | 
|  | 1938 | $4 | 
|  | 1939 | int | 
|  | 1940 | main () | 
|  | 1941 | { | 
|  | 1942 | if (sizeof ($2)) | 
|  | 1943 | return 0; | 
|  | 1944 | ; | 
|  | 1945 | return 0; | 
|  | 1946 | } | 
|  | 1947 | _ACEOF | 
|  | 1948 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1950 | /* end confdefs.h.  */ | 
|  | 1951 | $4 | 
|  | 1952 | int | 
|  | 1953 | main () | 
|  | 1954 | { | 
|  | 1955 | if (sizeof (($2))) | 
|  | 1956 | return 0; | 
|  | 1957 | ; | 
|  | 1958 | return 0; | 
|  | 1959 | } | 
|  | 1960 | _ACEOF | 
|  | 1961 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1962 |  | 
|  | 1963 | else | 
|  | 1964 | eval "$3=yes" | 
|  | 1965 | fi | 
|  | 1966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1967 | fi | 
|  | 1968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1969 | fi | 
|  | 1970 | eval ac_res=\$$3 | 
|  | 1971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1972 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1973 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1974 |  | 
|  | 1975 | } # ac_fn_c_check_type | 
|  | 1976 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1977 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
|  | 1978 | # -------------------------------------------- | 
|  | 1979 | # Tries to find the compile-time value of EXPR in a program that includes | 
|  | 1980 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
|  | 1981 | # computed | 
|  | 1982 | ac_fn_c_compute_int () | 
|  | 1983 | { | 
|  | 1984 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1985 | if test "$cross_compiling" = yes; then | 
|  | 1986 | # Depending upon the size, compute the lo and hi bounds. | 
|  | 1987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1988 | /* end confdefs.h.  */ | 
|  | 1989 | $4 | 
|  | 1990 | int | 
|  | 1991 | main () | 
|  | 1992 | { | 
|  | 1993 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1994 | test_array [0] = 0; | 
|  | 1995 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1996 |  | 
|  | 1997 | ; | 
|  | 1998 | return 0; | 
|  | 1999 | } | 
|  | 2000 | _ACEOF | 
|  | 2001 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2002 | ac_lo=0 ac_mid=0 | 
|  | 2003 | while :; do | 
|  | 2004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2005 | /* end confdefs.h.  */ | 
|  | 2006 | $4 | 
|  | 2007 | int | 
|  | 2008 | main () | 
|  | 2009 | { | 
|  | 2010 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2011 | test_array [0] = 0; | 
|  | 2012 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2013 |  | 
|  | 2014 | ; | 
|  | 2015 | return 0; | 
|  | 2016 | } | 
|  | 2017 | _ACEOF | 
|  | 2018 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2019 | ac_hi=$ac_mid; break | 
|  | 2020 | else | 
|  | 2021 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
|  | 2022 | if test $ac_lo -le $ac_mid; then | 
|  | 2023 | ac_lo= ac_hi= | 
|  | 2024 | break | 
|  | 2025 | fi | 
|  | 2026 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
|  | 2027 | fi | 
|  | 2028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2029 | done | 
|  | 2030 | else | 
|  | 2031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2032 | /* end confdefs.h.  */ | 
|  | 2033 | $4 | 
|  | 2034 | int | 
|  | 2035 | main () | 
|  | 2036 | { | 
|  | 2037 | static int test_array [1 - 2 * !(($2) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2038 | test_array [0] = 0; | 
|  | 2039 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2040 |  | 
|  | 2041 | ; | 
|  | 2042 | return 0; | 
|  | 2043 | } | 
|  | 2044 | _ACEOF | 
|  | 2045 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2046 | ac_hi=-1 ac_mid=-1 | 
|  | 2047 | while :; do | 
|  | 2048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2049 | /* end confdefs.h.  */ | 
|  | 2050 | $4 | 
|  | 2051 | int | 
|  | 2052 | main () | 
|  | 2053 | { | 
|  | 2054 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2055 | test_array [0] = 0; | 
|  | 2056 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2057 |  | 
|  | 2058 | ; | 
|  | 2059 | return 0; | 
|  | 2060 | } | 
|  | 2061 | _ACEOF | 
|  | 2062 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2063 | ac_lo=$ac_mid; break | 
|  | 2064 | else | 
|  | 2065 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
|  | 2066 | if test $ac_mid -le $ac_hi; then | 
|  | 2067 | ac_lo= ac_hi= | 
|  | 2068 | break | 
|  | 2069 | fi | 
|  | 2070 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
|  | 2071 | fi | 
|  | 2072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2073 | done | 
|  | 2074 | else | 
|  | 2075 | ac_lo= ac_hi= | 
|  | 2076 | fi | 
|  | 2077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2078 | fi | 
|  | 2079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2080 | # Binary search between lo and hi bounds. | 
|  | 2081 | while test "x$ac_lo" != "x$ac_hi"; do | 
|  | 2082 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
|  | 2083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2084 | /* end confdefs.h.  */ | 
|  | 2085 | $4 | 
|  | 2086 | int | 
|  | 2087 | main () | 
|  | 2088 | { | 
|  | 2089 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2090 | test_array [0] = 0; | 
|  | 2091 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2092 |  | 
|  | 2093 | ; | 
|  | 2094 | return 0; | 
|  | 2095 | } | 
|  | 2096 | _ACEOF | 
|  | 2097 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2098 | ac_hi=$ac_mid | 
|  | 2099 | else | 
|  | 2100 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
|  | 2101 | fi | 
|  | 2102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2103 | done | 
|  | 2104 | case $ac_lo in #(( | 
|  | 2105 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
|  | 2106 | '') ac_retval=1 ;; | 
|  | 2107 | esac | 
|  | 2108 | else | 
|  | 2109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2110 | /* end confdefs.h.  */ | 
|  | 2111 | $4 | 
|  | 2112 | static long int longval () { return $2; } | 
|  | 2113 | static unsigned long int ulongval () { return $2; } | 
|  | 2114 | #include <stdio.h> | 
|  | 2115 | #include <stdlib.h> | 
|  | 2116 | int | 
|  | 2117 | main () | 
|  | 2118 | { | 
|  | 2119 |  | 
|  | 2120 | FILE *f = fopen ("conftest.val", "w"); | 
|  | 2121 | if (! f) | 
|  | 2122 | return 1; | 
|  | 2123 | if (($2) < 0) | 
|  | 2124 | { | 
|  | 2125 | long int i = longval (); | 
|  | 2126 | if (i != ($2)) | 
|  | 2127 | return 1; | 
|  | 2128 | fprintf (f, "%ld", i); | 
|  | 2129 | } | 
|  | 2130 | else | 
|  | 2131 | { | 
|  | 2132 | unsigned long int i = ulongval (); | 
|  | 2133 | if (i != ($2)) | 
|  | 2134 | return 1; | 
|  | 2135 | fprintf (f, "%lu", i); | 
|  | 2136 | } | 
|  | 2137 | /* Do not output a trailing newline, as this causes \r\n confusion | 
|  | 2138 | on some platforms.  */ | 
|  | 2139 | return ferror (f) || fclose (f) != 0; | 
|  | 2140 |  | 
|  | 2141 | ; | 
|  | 2142 | return 0; | 
|  | 2143 | } | 
|  | 2144 | _ACEOF | 
|  | 2145 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 2146 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
|  | 2147 | else | 
|  | 2148 | ac_retval=1 | 
|  | 2149 | fi | 
|  | 2150 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 2151 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 2152 | rm -f conftest.val | 
|  | 2153 |  | 
|  | 2154 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2155 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2156 | as_fn_set_status $ac_retval | 
|  | 2157 |  | 
|  | 2158 | } # ac_fn_c_compute_int | 
|  | 2159 |  | 
|  | 2160 | # ac_fn_c_check_func LINENO FUNC VAR | 
|  | 2161 | # ---------------------------------- | 
|  | 2162 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
|  | 2163 | ac_fn_c_check_func () | 
|  | 2164 | { | 
|  | 2165 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2167 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2168 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2169 | $as_echo_n "(cached) " >&6 | 
|  | 2170 | else | 
|  | 2171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2172 | /* end confdefs.h.  */ | 
|  | 2173 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
|  | 2174 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 2175 | #define $2 innocuous_$2 | 
|  | 2176 |  | 
|  | 2177 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 2178 | which can conflict with char $2 (); below. | 
|  | 2179 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 2180 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 2181 |  | 
|  | 2182 | #ifdef __STDC__ | 
|  | 2183 | # include <limits.h> | 
|  | 2184 | #else | 
|  | 2185 | # include <assert.h> | 
|  | 2186 | #endif | 
|  | 2187 |  | 
|  | 2188 | #undef $2 | 
|  | 2189 |  | 
|  | 2190 | /* Override any GCC internal prototype to avoid an error. | 
|  | 2191 | Use char because int might match the return type of a GCC | 
|  | 2192 | builtin and then its argument prototype would still apply.  */ | 
|  | 2193 | #ifdef __cplusplus | 
|  | 2194 | extern "C" | 
|  | 2195 | #endif | 
|  | 2196 | char $2 (); | 
|  | 2197 | /* The GNU C library defines this for functions which it implements | 
|  | 2198 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 2199 | something starting with __ and the normal name is an alias.  */ | 
|  | 2200 | #if defined __stub_$2 || defined __stub___$2 | 
|  | 2201 | choke me | 
|  | 2202 | #endif | 
|  | 2203 |  | 
|  | 2204 | int | 
|  | 2205 | main () | 
|  | 2206 | { | 
|  | 2207 | return $2 (); | 
|  | 2208 | ; | 
|  | 2209 | return 0; | 
|  | 2210 | } | 
|  | 2211 | _ACEOF | 
|  | 2212 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 2213 | eval "$3=yes" | 
|  | 2214 | else | 
|  | 2215 | eval "$3=no" | 
|  | 2216 | fi | 
|  | 2217 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 2218 | conftest$ac_exeext conftest.$ac_ext | 
|  | 2219 | fi | 
|  | 2220 | eval ac_res=\$$3 | 
|  | 2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2222 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2223 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2224 |  | 
|  | 2225 | } # ac_fn_c_check_func | 
|  | 2226 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2227 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
|  | 2228 | # --------------------------------------------- | 
|  | 2229 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
|  | 2230 | # accordingly. | 
|  | 2231 | ac_fn_c_check_decl () | 
|  | 2232 | { | 
|  | 2233 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2234 | as_decl_name=`echo $2|sed 's/ *(.*//'` | 
|  | 2235 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
|  | 2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
|  | 2237 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
|  | 2238 | if eval \${$3+:} false; then : | 
|  | 2239 | $as_echo_n "(cached) " >&6 | 
|  | 2240 | else | 
|  | 2241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2242 | /* end confdefs.h.  */ | 
|  | 2243 | $4 | 
|  | 2244 | int | 
|  | 2245 | main () | 
|  | 2246 | { | 
|  | 2247 | #ifndef $as_decl_name | 
|  | 2248 | #ifdef __cplusplus | 
|  | 2249 | (void) $as_decl_use; | 
|  | 2250 | #else | 
|  | 2251 | (void) $as_decl_name; | 
|  | 2252 | #endif | 
|  | 2253 | #endif | 
|  | 2254 |  | 
|  | 2255 | ; | 
|  | 2256 | return 0; | 
|  | 2257 | } | 
|  | 2258 | _ACEOF | 
|  | 2259 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2260 | eval "$3=yes" | 
|  | 2261 | else | 
|  | 2262 | eval "$3=no" | 
|  | 2263 | fi | 
|  | 2264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2265 | fi | 
|  | 2266 | eval ac_res=\$$3 | 
|  | 2267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2268 | $as_echo "$ac_res" >&6; } | 
|  | 2269 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
|  | 2270 |  | 
|  | 2271 | } # ac_fn_c_check_decl | 
|  | 2272 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2273 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
|  | 2274 | # ---------------------------------------------------- | 
|  | 2275 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
|  | 2276 | # INCLUDES, setting cache variable VAR accordingly. | 
|  | 2277 | ac_fn_c_check_member () | 
|  | 2278 | { | 
|  | 2279 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
|  | 2281 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2282 | if eval \${$4+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2283 | $as_echo_n "(cached) " >&6 | 
|  | 2284 | else | 
|  | 2285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2286 | /* end confdefs.h.  */ | 
|  | 2287 | $5 | 
|  | 2288 | int | 
|  | 2289 | main () | 
|  | 2290 | { | 
|  | 2291 | static $2 ac_aggr; | 
|  | 2292 | if (ac_aggr.$3) | 
|  | 2293 | return 0; | 
|  | 2294 | ; | 
|  | 2295 | return 0; | 
|  | 2296 | } | 
|  | 2297 | _ACEOF | 
|  | 2298 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2299 | eval "$4=yes" | 
|  | 2300 | else | 
|  | 2301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2302 | /* end confdefs.h.  */ | 
|  | 2303 | $5 | 
|  | 2304 | int | 
|  | 2305 | main () | 
|  | 2306 | { | 
|  | 2307 | static $2 ac_aggr; | 
|  | 2308 | if (sizeof ac_aggr.$3) | 
|  | 2309 | return 0; | 
|  | 2310 | ; | 
|  | 2311 | return 0; | 
|  | 2312 | } | 
|  | 2313 | _ACEOF | 
|  | 2314 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2315 | eval "$4=yes" | 
|  | 2316 | else | 
|  | 2317 | eval "$4=no" | 
|  | 2318 | fi | 
|  | 2319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2320 | fi | 
|  | 2321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2322 | fi | 
|  | 2323 | eval ac_res=\$$4 | 
|  | 2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2325 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2326 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2327 |  | 
|  | 2328 | } # ac_fn_c_check_member | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2329 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2330 | This file contains any messages produced by compilers while | 
|  | 2331 | running configure, to aid debugging if configure makes a mistake. | 
|  | 2332 |  | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 2333 | It was created by python $as_me 3.7, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2334 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2335 |  | 
|  | 2336 | $ $0 $@ | 
|  | 2337 |  | 
|  | 2338 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2339 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2340 | { | 
|  | 2341 | cat <<_ASUNAME | 
|  | 2342 | ## --------- ## | 
|  | 2343 | ## Platform. ## | 
|  | 2344 | ## --------- ## | 
|  | 2345 |  | 
|  | 2346 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 2347 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 2348 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 2349 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 2350 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 2351 |  | 
|  | 2352 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 2353 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 2354 |  | 
|  | 2355 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 2356 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 2357 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2358 | /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] | 2359 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 2360 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 2361 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 2362 |  | 
|  | 2363 | _ASUNAME | 
|  | 2364 |  | 
|  | 2365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2366 | for as_dir in $PATH | 
|  | 2367 | do | 
|  | 2368 | IFS=$as_save_IFS | 
|  | 2369 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2370 | $as_echo "PATH: $as_dir" | 
|  | 2371 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2372 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2373 |  | 
|  | 2374 | } >&5 | 
|  | 2375 |  | 
|  | 2376 | cat >&5 <<_ACEOF | 
|  | 2377 |  | 
|  | 2378 |  | 
|  | 2379 | ## ----------- ## | 
|  | 2380 | ## Core tests. ## | 
|  | 2381 | ## ----------- ## | 
|  | 2382 |  | 
|  | 2383 | _ACEOF | 
|  | 2384 |  | 
|  | 2385 |  | 
|  | 2386 | # Keep a trace of the command line. | 
|  | 2387 | # 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] | 2388 | # 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] | 2389 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2390 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2391 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2392 | ac_configure_args0= | 
|  | 2393 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2394 | ac_must_keep_next=false | 
|  | 2395 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2396 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2397 | for ac_arg | 
|  | 2398 | do | 
|  | 2399 | case $ac_arg in | 
|  | 2400 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 2401 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 2402 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 2403 | continue ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2404 | *\'*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2405 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2406 | esac | 
|  | 2407 | case $ac_pass in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2408 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2409 | 2) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2410 | as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2411 | if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2412 | ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2413 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2414 | case $ac_arg in | 
|  | 2415 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 2416 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 2417 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 2418 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 2419 | case "$ac_configure_args0 " in | 
|  | 2420 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 2421 | esac | 
|  | 2422 | ;; | 
|  | 2423 | -* ) ac_must_keep_next=true ;; | 
|  | 2424 | esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2425 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2426 | as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2427 | ;; | 
|  | 2428 | esac | 
|  | 2429 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2430 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2431 | { ac_configure_args0=; unset ac_configure_args0;} | 
|  | 2432 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2433 |  | 
|  | 2434 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 2435 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 2436 | # would cause problems or look ugly. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2437 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
|  | 2438 | # 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] | 2439 | trap 'exit_status=$? | 
|  | 2440 | # Save into config.log some information that might help in debugging. | 
|  | 2441 | { | 
|  | 2442 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2443 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2444 | $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2445 | ## Cache variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2446 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2447 | echo | 
|  | 2448 | # The following way of writing the cache mishandles newlines in values, | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2449 | ( | 
|  | 2450 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
|  | 2451 | eval ac_val=\$$ac_var | 
|  | 2452 | case $ac_val in #( | 
|  | 2453 | *${as_nl}*) | 
|  | 2454 | case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2455 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 2456 | $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] | 2457 | esac | 
|  | 2458 | case $ac_var in #( | 
|  | 2459 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2460 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 2461 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2462 | esac ;; | 
|  | 2463 | esac | 
|  | 2464 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2465 | (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2466 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
|  | 2467 | *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2468 | sed -n \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2469 | "s/'\''/'\''\\\\'\'''\''/g; | 
|  | 2470 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
|  | 2471 | ;; #( | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2472 | *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2473 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2474 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2475 | esac | | 
|  | 2476 | sort | 
|  | 2477 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2478 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2479 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2480 | $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2481 | ## Output variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2482 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2483 | echo | 
|  | 2484 | for ac_var in $ac_subst_vars | 
|  | 2485 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2486 | eval ac_val=\$$ac_var | 
|  | 2487 | case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2488 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2489 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2490 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2491 | done | sort | 
|  | 2492 | echo | 
|  | 2493 |  | 
|  | 2494 | if test -n "$ac_subst_files"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2495 | $as_echo "## ------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2496 | ## File substitutions. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2497 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2498 | echo | 
|  | 2499 | for ac_var in $ac_subst_files | 
|  | 2500 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2501 | eval ac_val=\$$ac_var | 
|  | 2502 | case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2503 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2504 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2505 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2506 | done | sort | 
|  | 2507 | echo | 
|  | 2508 | fi | 
|  | 2509 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2510 | if test -s confdefs.h; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2511 | $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2512 | ## confdefs.h. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2513 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2514 | echo | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2515 | cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2516 | echo | 
|  | 2517 | fi | 
|  | 2518 | test "$ac_signal" != 0 && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2519 | $as_echo "$as_me: caught signal $ac_signal" | 
|  | 2520 | $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2521 | } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2522 | rm -f core *.core core.conftest.* && | 
|  | 2523 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2524 | exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2525 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2526 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2527 | 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] | 2528 | done | 
|  | 2529 | ac_signal=0 | 
|  | 2530 |  | 
|  | 2531 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2532 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2533 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2534 | $as_echo "/* confdefs.h */" > confdefs.h | 
|  | 2535 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2536 | # Predefined preprocessor variables. | 
|  | 2537 |  | 
|  | 2538 | cat >>confdefs.h <<_ACEOF | 
|  | 2539 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 2540 | _ACEOF | 
|  | 2541 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2542 | cat >>confdefs.h <<_ACEOF | 
|  | 2543 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 2544 | _ACEOF | 
|  | 2545 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2546 | cat >>confdefs.h <<_ACEOF | 
|  | 2547 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 2548 | _ACEOF | 
|  | 2549 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2550 | cat >>confdefs.h <<_ACEOF | 
|  | 2551 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 2552 | _ACEOF | 
|  | 2553 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2554 | cat >>confdefs.h <<_ACEOF | 
|  | 2555 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 2556 | _ACEOF | 
|  | 2557 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2558 | cat >>confdefs.h <<_ACEOF | 
|  | 2559 | #define PACKAGE_URL "$PACKAGE_URL" | 
|  | 2560 | _ACEOF | 
|  | 2561 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2562 |  | 
|  | 2563 | # 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] | 2564 | # Prefer an explicitly selected file to automatically selected ones. | 
|  | 2565 | ac_site_file1=NONE | 
|  | 2566 | ac_site_file2=NONE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2567 | if test -n "$CONFIG_SITE"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2568 | # We do not want a PATH search for config.site. | 
|  | 2569 | case $CONFIG_SITE in #(( | 
|  | 2570 | -*)  ac_site_file1=./$CONFIG_SITE;; | 
|  | 2571 | */*) ac_site_file1=$CONFIG_SITE;; | 
|  | 2572 | *)   ac_site_file1=./$CONFIG_SITE;; | 
|  | 2573 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2574 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2575 | ac_site_file1=$prefix/share/config.site | 
|  | 2576 | ac_site_file2=$prefix/etc/config.site | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2577 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2578 | ac_site_file1=$ac_default_prefix/share/config.site | 
|  | 2579 | ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2580 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2581 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2582 | do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2583 | test "x$ac_site_file" = xNONE && continue | 
|  | 2584 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
|  | 2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
|  | 2586 | $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] | 2587 | sed 's/^/| /' "$ac_site_file" >&5 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2588 | . "$ac_site_file" \ | 
|  | 2589 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2590 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2591 | as_fn_error $? "failed to load site script $ac_site_file | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2592 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2593 | fi | 
|  | 2594 | done | 
|  | 2595 |  | 
|  | 2596 | if test -r "$cache_file"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2597 | # Some versions of bash will fail to source /dev/null (special files | 
|  | 2598 | # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
|  | 2599 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
|  | 2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
|  | 2601 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2602 | case $cache_file in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2603 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
|  | 2604 | *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2605 | esac | 
|  | 2606 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2607 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
|  | 2609 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2610 | >$cache_file | 
|  | 2611 | fi | 
|  | 2612 |  | 
|  | 2613 | # Check that the precious variables saved in the cache have kept the same | 
|  | 2614 | # value. | 
|  | 2615 | ac_cache_corrupted=false | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2616 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2617 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 2618 | eval ac_new_set=\$ac_env_${ac_var}_set | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2619 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
|  | 2620 | eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2621 | case $ac_old_set,$ac_new_set in | 
|  | 2622 | set,) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
|  | 2624 | $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] | 2625 | ac_cache_corrupted=: ;; | 
|  | 2626 | ,set) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
|  | 2628 | $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] | 2629 | ac_cache_corrupted=: ;; | 
|  | 2630 | ,);; | 
|  | 2631 | *) | 
|  | 2632 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2633 | # differences in whitespace do not lead to failure. | 
|  | 2634 | ac_old_val_w=`echo x $ac_old_val` | 
|  | 2635 | ac_new_val_w=`echo x $ac_new_val` | 
|  | 2636 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
|  | 2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
|  | 2638 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
|  | 2639 | ac_cache_corrupted=: | 
|  | 2640 | else | 
|  | 2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
|  | 2642 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
|  | 2643 | eval $ac_var=\$ac_old_val | 
|  | 2644 | fi | 
|  | 2645 | { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
|  | 2646 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
|  | 2647 | { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
|  | 2648 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2649 | fi;; | 
|  | 2650 | esac | 
|  | 2651 | # Pass precious variables to config.status. | 
|  | 2652 | if test "$ac_new_set" = set; then | 
|  | 2653 | case $ac_new_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2654 | *\'*) 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] | 2655 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 2656 | esac | 
|  | 2657 | case " $ac_configure_args " in | 
|  | 2658 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2659 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2660 | esac | 
|  | 2661 | fi | 
|  | 2662 | done | 
|  | 2663 | if $ac_cache_corrupted; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2665 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
|  | 2667 | $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] | 2668 | 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] | 2669 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2670 | ## -------------------- ## | 
|  | 2671 | ## Main body of script. ## | 
|  | 2672 | ## -------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2673 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2674 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2675 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2676 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2677 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2678 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2679 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2680 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2681 |  | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2682 |  | 
| Martin Panter | c5ee3ca | 2016-09-12 01:32:03 +0000 | [diff] [blame] | 2683 | if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2684 | # If we're building out-of-tree, we need to make sure the following | 
|  | 2685 | # resources get picked up before their $srcdir counterparts. | 
|  | 2686 | #   Objects/ -> typeslots.inc | 
|  | 2687 | #   Include/ -> Python-ast.h, graminit.h | 
|  | 2688 | #   Python/  -> importlib.h | 
|  | 2689 | # (A side effect of this is that these resources will automatically be | 
|  | 2690 | #  regenerated when building out-of-tree, regardless of whether or not | 
|  | 2691 | #  the $srcdir counterpart is up-to-date.  This is an acceptable trade | 
|  | 2692 | #  off.) | 
|  | 2693 | BASECPPFLAGS="-IObjects -IInclude -IPython" | 
|  | 2694 | else | 
|  | 2695 | BASECPPFLAGS="" | 
|  | 2696 | fi | 
|  | 2697 |  | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2698 |  | 
|  | 2699 |  | 
|  | 2700 |  | 
|  | 2701 |  | 
| Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 2702 | if test -e $srcdir/.git | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2703 | then | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2704 | # Extract the first word of "git", so it can be a program name with args. | 
|  | 2705 | set dummy git; ac_word=$2 | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 2707 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2708 | if ${ac_cv_prog_HAS_GIT+:} false; then : | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2709 | $as_echo_n "(cached) " >&6 | 
|  | 2710 | else | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2711 | if test -n "$HAS_GIT"; then | 
|  | 2712 | ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test. | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2713 | else | 
|  | 2714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2715 | for as_dir in $PATH | 
|  | 2716 | do | 
|  | 2717 | IFS=$as_save_IFS | 
|  | 2718 | test -z "$as_dir" && as_dir=. | 
|  | 2719 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 2720 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2721 | ac_cv_prog_HAS_GIT="found" | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2723 | break 2 | 
|  | 2724 | fi | 
|  | 2725 | done | 
|  | 2726 | done | 
|  | 2727 | IFS=$as_save_IFS | 
|  | 2728 |  | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2729 | test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found" | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2730 | fi | 
|  | 2731 | fi | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2732 | HAS_GIT=$ac_cv_prog_HAS_GIT | 
|  | 2733 | if test -n "$HAS_GIT"; then | 
|  | 2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 | 
|  | 2735 | $as_echo "$HAS_GIT" >&6; } | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2736 | else | 
|  | 2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 2738 | $as_echo "no" >&6; } | 
|  | 2739 | fi | 
|  | 2740 |  | 
|  | 2741 |  | 
|  | 2742 | else | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2743 | HAS_GIT=no-repository | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2744 | fi | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2745 | if test $HAS_GIT = found | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2746 | then | 
| Ned Deily | 554626a | 2017-03-20 23:41:52 -0400 | [diff] [blame] | 2747 | GITVERSION="git -C \$(srcdir) rev-parse --short HEAD" | 
|  | 2748 | GITTAG="git -C \$(srcdir) describe --all --always --dirty" | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2749 | GITBRANCH="git -C \$(srcdir) name-rev --name-only HEAD" | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2750 | else | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2751 | GITVERSION="" | 
|  | 2752 | GITTAG="" | 
|  | 2753 | GITBRANCH="" | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2754 | fi | 
|  | 2755 |  | 
|  | 2756 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2757 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2758 |  | 
|  | 2759 |  | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2760 | ac_aux_dir= | 
|  | 2761 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
|  | 2762 | if test -f "$ac_dir/install-sh"; then | 
|  | 2763 | ac_aux_dir=$ac_dir | 
|  | 2764 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|  | 2765 | break | 
|  | 2766 | elif test -f "$ac_dir/install.sh"; then | 
|  | 2767 | ac_aux_dir=$ac_dir | 
|  | 2768 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|  | 2769 | break | 
|  | 2770 | elif test -f "$ac_dir/shtool"; then | 
|  | 2771 | ac_aux_dir=$ac_dir | 
|  | 2772 | ac_install_sh="$ac_aux_dir/shtool install -c" | 
|  | 2773 | break | 
|  | 2774 | fi | 
|  | 2775 | done | 
|  | 2776 | if test -z "$ac_aux_dir"; then | 
|  | 2777 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
|  | 2778 | fi | 
|  | 2779 |  | 
|  | 2780 | # These three variables are undocumented and unsupported, | 
|  | 2781 | # and are intended to be withdrawn in a future Autoconf release. | 
|  | 2782 | # They can cause serious problems if a builder's source tree is in a directory | 
|  | 2783 | # whose full name contains unusual characters. | 
|  | 2784 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
|  | 2785 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
|  | 2786 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
|  | 2787 |  | 
|  | 2788 |  | 
|  | 2789 | # Make sure we can run config.sub. | 
|  | 2790 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
|  | 2791 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
|  | 2792 |  | 
|  | 2793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
|  | 2794 | $as_echo_n "checking build system type... " >&6; } | 
|  | 2795 | if ${ac_cv_build+:} false; then : | 
|  | 2796 | $as_echo_n "(cached) " >&6 | 
|  | 2797 | else | 
|  | 2798 | ac_build_alias=$build_alias | 
|  | 2799 | test "x$ac_build_alias" = x && | 
|  | 2800 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
|  | 2801 | test "x$ac_build_alias" = x && | 
|  | 2802 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
|  | 2803 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
|  | 2804 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 
|  | 2805 |  | 
|  | 2806 | fi | 
|  | 2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
|  | 2808 | $as_echo "$ac_cv_build" >&6; } | 
|  | 2809 | case $ac_cv_build in | 
|  | 2810 | *-*-*) ;; | 
|  | 2811 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
|  | 2812 | esac | 
|  | 2813 | build=$ac_cv_build | 
|  | 2814 | ac_save_IFS=$IFS; IFS='-' | 
|  | 2815 | set x $ac_cv_build | 
|  | 2816 | shift | 
|  | 2817 | build_cpu=$1 | 
|  | 2818 | build_vendor=$2 | 
|  | 2819 | shift; shift | 
|  | 2820 | # Remember, the first character of IFS is used to create $*, | 
|  | 2821 | # except with old shells: | 
|  | 2822 | build_os=$* | 
|  | 2823 | IFS=$ac_save_IFS | 
|  | 2824 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
|  | 2825 |  | 
|  | 2826 |  | 
|  | 2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
|  | 2828 | $as_echo_n "checking host system type... " >&6; } | 
|  | 2829 | if ${ac_cv_host+:} false; then : | 
|  | 2830 | $as_echo_n "(cached) " >&6 | 
|  | 2831 | else | 
|  | 2832 | if test "x$host_alias" = x; then | 
|  | 2833 | ac_cv_host=$ac_cv_build | 
|  | 2834 | else | 
|  | 2835 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
|  | 2836 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 
|  | 2837 | fi | 
|  | 2838 |  | 
|  | 2839 | fi | 
|  | 2840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
|  | 2841 | $as_echo "$ac_cv_host" >&6; } | 
|  | 2842 | case $ac_cv_host in | 
|  | 2843 | *-*-*) ;; | 
|  | 2844 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
|  | 2845 | esac | 
|  | 2846 | host=$ac_cv_host | 
|  | 2847 | ac_save_IFS=$IFS; IFS='-' | 
|  | 2848 | set x $ac_cv_host | 
|  | 2849 | shift | 
|  | 2850 | host_cpu=$1 | 
|  | 2851 | host_vendor=$2 | 
|  | 2852 | shift; shift | 
|  | 2853 | # Remember, the first character of IFS is used to create $*, | 
|  | 2854 | # except with old shells: | 
|  | 2855 | host_os=$* | 
|  | 2856 | IFS=$ac_save_IFS | 
|  | 2857 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
|  | 2858 |  | 
|  | 2859 |  | 
|  | 2860 |  | 
| doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 2861 |  | 
|  | 2862 |  | 
| Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 2863 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile | 
|  | 2864 | rm -f pybuilddir.txt | 
|  | 2865 |  | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2866 | for ac_prog in python$PACKAGE_VERSION python3 python | 
|  | 2867 | do | 
|  | 2868 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 2869 | set dummy $ac_prog; ac_word=$2 | 
|  | 2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 2871 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2872 | if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then : | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2873 | $as_echo_n "(cached) " >&6 | 
|  | 2874 | else | 
| Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2875 | if test -n "$PYTHON_FOR_REGEN"; then | 
|  | 2876 | ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test. | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2877 | else | 
|  | 2878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2879 | for as_dir in $PATH | 
|  | 2880 | do | 
|  | 2881 | IFS=$as_save_IFS | 
|  | 2882 | test -z "$as_dir" && as_dir=. | 
|  | 2883 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2884 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2885 | ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2887 | break 2 | 
|  | 2888 | fi | 
|  | 2889 | done | 
|  | 2890 | done | 
|  | 2891 | IFS=$as_save_IFS | 
|  | 2892 |  | 
|  | 2893 | fi | 
|  | 2894 | fi | 
| Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2895 | PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN | 
|  | 2896 | if test -n "$PYTHON_FOR_REGEN"; then | 
|  | 2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 | 
|  | 2898 | $as_echo "$PYTHON_FOR_REGEN" >&6; } | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2899 | else | 
|  | 2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 2901 | $as_echo "no" >&6; } | 
|  | 2902 | fi | 
|  | 2903 |  | 
|  | 2904 |  | 
| Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2905 | test -n "$PYTHON_FOR_REGEN" && break | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2906 | done | 
| Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2907 | test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2908 |  | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2909 |  | 
|  | 2910 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2911 | if test "$cross_compiling" = yes; then | 
|  | 2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | 
|  | 2913 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | 
|  | 2914 | if test -z "$PYTHON_FOR_BUILD"; then | 
|  | 2915 | for interp in python$PACKAGE_VERSION python3 python; do | 
|  | 2916 | which $interp >/dev/null 2>&1 || continue | 
| Xavier de Gaye | 4afd143 | 2016-07-07 18:00:22 +0200 | [diff] [blame] | 2917 | 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] | 2918 | break | 
|  | 2919 | fi | 
|  | 2920 | interp= | 
|  | 2921 | done | 
|  | 2922 | if test x$interp = x; then | 
|  | 2923 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | 
|  | 2924 | fi | 
|  | 2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | 
|  | 2926 | $as_echo "$interp" >&6; } | 
| Xavier de Gaye | 92dec54 | 2016-09-11 22:22:24 +0200 | [diff] [blame] | 2927 | PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2928 | fi | 
| 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' | 
|  | 2933 | fi | 
|  | 2934 |  | 
|  | 2935 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2936 |  | 
| Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2937 | if test "$prefix" != "/"; then | 
|  | 2938 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
|  | 2939 | fi | 
|  | 2940 |  | 
|  | 2941 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2942 |  | 
|  | 2943 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2944 | # We don't use PACKAGE_ variables, and they cause conflicts | 
|  | 2945 | # with other autoconf-based packages that include Python.h | 
|  | 2946 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
|  | 2947 | rm confdefs.h | 
|  | 2948 | mv confdefs.h.new confdefs.h | 
|  | 2949 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2950 |  | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 2951 | VERSION=3.7 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2952 |  | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 2953 | # Version number of Python's own shared library file. | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2954 |  | 
|  | 2955 | SOVERSION=1.0 | 
|  | 2956 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2957 | # The later defininition of _XOPEN_SOURCE disables certain features | 
|  | 2958 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
|  | 2959 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2960 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2961 |  | 
|  | 2962 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2963 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2964 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
|  | 2965 | # them. | 
|  | 2966 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2967 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2968 |  | 
|  | 2969 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2970 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2971 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
|  | 2972 | # them. | 
|  | 2973 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2974 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2975 |  | 
|  | 2976 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2977 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2978 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
|  | 2979 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2980 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2981 |  | 
|  | 2982 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2983 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2984 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
|  | 2985 | # them. | 
|  | 2986 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2987 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2988 |  | 
|  | 2989 |  | 
|  | 2990 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2991 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2992 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2993 | # Arguments passed to configure. | 
|  | 2994 |  | 
|  | 2995 | CONFIG_ARGS="$ac_configure_args" | 
|  | 2996 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
|  | 2998 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2999 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3000 | if test "${enable_universalsdk+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3001 | enableval=$enable_universalsdk; | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3002 | case $enableval in | 
|  | 3003 | yes) | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3004 | # Locate the best usable SDK, see Mac/README.txt for more | 
|  | 3005 | # information | 
|  | 3006 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3007 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3008 | then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3009 | enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
|  | 3010 | if test ! -d "${enableval}" | 
|  | 3011 | then | 
|  | 3012 | enableval=/ | 
|  | 3013 | fi | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3014 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3015 | ;; | 
|  | 3016 | esac | 
|  | 3017 | case $enableval in | 
|  | 3018 | no) | 
|  | 3019 | UNIVERSALSDK= | 
|  | 3020 | enable_universalsdk= | 
|  | 3021 | ;; | 
|  | 3022 | *) | 
|  | 3023 | UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3024 | if test ! -d "${UNIVERSALSDK}" | 
|  | 3025 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3026 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3027 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3028 | ;; | 
|  | 3029 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3030 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3031 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3032 | else | 
|  | 3033 |  | 
|  | 3034 | UNIVERSALSDK= | 
|  | 3035 | enable_universalsdk= | 
|  | 3036 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3037 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3038 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3039 | if test -n "${UNIVERSALSDK}" | 
|  | 3040 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
|  | 3042 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3043 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3045 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3046 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3047 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3048 |  | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3049 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3050 | ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3051 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3052 | # For backward compatibility reasons we prefer to select '32-bit' if available, | 
|  | 3053 | # otherwise use 'intel' | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3054 | UNIVERSAL_ARCHS="32-bit" | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3055 | if test "`uname -s`" = "Darwin" | 
|  | 3056 | then | 
|  | 3057 | if test -n "${UNIVERSALSDK}" | 
|  | 3058 | then | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3059 | 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] | 3060 | then | 
|  | 3061 | UNIVERSAL_ARCHS="intel" | 
|  | 3062 | fi | 
|  | 3063 | fi | 
|  | 3064 | fi | 
|  | 3065 |  | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3066 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
|  | 3068 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3069 |  | 
|  | 3070 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3071 | if test "${with_universal_archs+set}" = set; then : | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3072 | withval=$with_universal_archs; | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3073 | UNIVERSAL_ARCHS="$withval" | 
|  | 3074 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3075 | fi | 
|  | 3076 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3077 | if test -n "${UNIVERSALSDK}" | 
|  | 3078 | then | 
|  | 3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 | 
|  | 3080 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | 
|  | 3081 | else | 
|  | 3082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3083 | $as_echo "no" >&6; } | 
|  | 3084 | fi | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3085 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3086 |  | 
|  | 3087 | # Check whether --with-framework-name was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3088 | if test "${with_framework_name+set}" = set; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3089 | withval=$with_framework_name; | 
|  | 3090 | PYTHONFRAMEWORK=${withval} | 
|  | 3091 | PYTHONFRAMEWORKDIR=${withval}.framework | 
|  | 3092 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
|  | 3093 |  | 
|  | 3094 | else | 
|  | 3095 |  | 
|  | 3096 | PYTHONFRAMEWORK=Python | 
|  | 3097 | PYTHONFRAMEWORKDIR=Python.framework | 
|  | 3098 | PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
|  | 3099 |  | 
|  | 3100 | fi | 
|  | 3101 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3102 | # Check whether --enable-framework was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3103 | if test "${enable_framework+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3104 | enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3105 | case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3106 | yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3107 | enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3108 | esac | 
|  | 3109 | case $enableval in | 
|  | 3110 | no) | 
|  | 3111 | PYTHONFRAMEWORK= | 
|  | 3112 | PYTHONFRAMEWORKDIR=no-framework | 
|  | 3113 | PYTHONFRAMEWORKPREFIX= | 
|  | 3114 | PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3115 | FRAMEWORKINSTALLFIRST= | 
|  | 3116 | FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3117 | FRAMEWORKALTINSTALLFIRST= | 
|  | 3118 | FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3119 | FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3120 | if test "x${prefix}" = "xNONE"; then | 
|  | 3121 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 3122 | else | 
|  | 3123 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3124 | fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3125 | enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3126 | ;; | 
|  | 3127 | *) | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3128 | PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3129 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3130 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3131 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3132 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
|  | 3133 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3134 | FRAMEWORKPYTHONW="frameworkpythonw" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3135 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3136 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3137 | if test "x${prefix}" = "xNONE" ; then | 
|  | 3138 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3139 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3140 | else | 
|  | 3141 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3142 | fi | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3143 |  | 
|  | 3144 | case "${enableval}" in | 
|  | 3145 | /System*) | 
|  | 3146 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3147 | if test "${prefix}" = "NONE" ; then | 
|  | 3148 | # See below | 
|  | 3149 | FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
|  | 3150 | fi | 
|  | 3151 | ;; | 
|  | 3152 |  | 
|  | 3153 | /Library*) | 
|  | 3154 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3155 | ;; | 
|  | 3156 |  | 
|  | 3157 | */Library/Frameworks) | 
|  | 3158 | MDIR="`dirname "${enableval}"`" | 
|  | 3159 | MDIR="`dirname "${MDIR}"`" | 
|  | 3160 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
|  | 3161 |  | 
|  | 3162 | if test "${prefix}" = "NONE"; then | 
|  | 3163 | # User hasn't specified the | 
|  | 3164 | # --prefix option, but wants to install | 
|  | 3165 | # the framework in a non-default location, | 
|  | 3166 | # ensure that the compatibility links get | 
|  | 3167 | # installed relative to that prefix as well | 
|  | 3168 | # instead of in /usr/local. | 
|  | 3169 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
|  | 3170 | fi | 
|  | 3171 | ;; | 
|  | 3172 |  | 
|  | 3173 | *) | 
|  | 3174 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 3175 | ;; | 
|  | 3176 | esac | 
|  | 3177 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3178 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3179 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3180 | # Add files for Mac specific code to the list of output | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3181 | # files: | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3182 | ac_config_files="$ac_config_files Mac/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3183 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3184 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3185 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3186 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
|  | 3187 |  | 
|  | 3188 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
|  | 3189 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3190 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3191 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3192 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3193 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3194 | PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3195 | PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3196 | PYTHONFRAMEWORKPREFIX= | 
|  | 3197 | PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3198 | FRAMEWORKINSTALLFIRST= | 
|  | 3199 | FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3200 | FRAMEWORKALTINSTALLFIRST= | 
|  | 3201 | FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3202 | FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3203 | if test "x${prefix}" = "xNONE" ; then | 
|  | 3204 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 3205 | else | 
|  | 3206 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 3207 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3208 | enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3209 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3210 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3211 | fi | 
|  | 3212 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3213 |  | 
|  | 3214 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3215 |  | 
|  | 3216 |  | 
|  | 3217 |  | 
|  | 3218 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3219 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3220 |  | 
|  | 3221 |  | 
|  | 3222 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3223 |  | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3224 |  | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3225 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3226 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3227 | ##            AS_HELP_STRING([--with-dyld], | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3228 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3229 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3230 | # Set name for machine-dependent library files | 
|  | 3231 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
|  | 3233 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3234 | if test -z "$MACHDEP" | 
|  | 3235 | then | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3236 | # avoid using uname for cross builds | 
|  | 3237 | if test "$cross_compiling" = yes; then | 
| doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3238 | # ac_sys_system and ac_sys_release are used for setting | 
|  | 3239 | # a lot of different things including 'define_xopen_source' | 
|  | 3240 | # in the case statement below. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3241 | case "$host" in | 
| Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 3242 | *-*-linux-android*) | 
|  | 3243 | ac_sys_system=Linux-android | 
|  | 3244 | ;; | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3245 | *-*-linux*) | 
|  | 3246 | ac_sys_system=Linux | 
|  | 3247 | ;; | 
|  | 3248 | *-*-cygwin*) | 
|  | 3249 | ac_sys_system=Cygwin | 
|  | 3250 | ;; | 
|  | 3251 | *) | 
|  | 3252 | # for now, limit cross builds to known configurations | 
|  | 3253 | MACHDEP="unknown" | 
|  | 3254 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
|  | 3255 | esac | 
|  | 3256 | ac_sys_release= | 
|  | 3257 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3258 | ac_sys_system=`uname -s` | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3259 | if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3260 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3261 | ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3262 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3263 | ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3264 | fi | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3265 | fi | 
|  | 3266 | ac_md_system=`echo $ac_sys_system | | 
|  | 3267 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
|  | 3268 | ac_md_release=`echo $ac_sys_release | | 
|  | 3269 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
|  | 3270 | MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3271 |  | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3272 | case $MACHDEP in | 
| Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3273 | linux*) MACHDEP="linux";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3274 | cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3275 | darwin*) MACHDEP="darwin";; | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 3276 | irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3277 | '')	MACHDEP="unknown";; | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3278 | esac | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3279 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3280 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3281 |  | 
|  | 3282 | if test "$cross_compiling" = yes; then | 
|  | 3283 | case "$host" in | 
|  | 3284 | *-*-linux*) | 
|  | 3285 | case "$host_cpu" in | 
|  | 3286 | arm*) | 
|  | 3287 | _host_cpu=arm | 
|  | 3288 | ;; | 
|  | 3289 | *) | 
|  | 3290 | _host_cpu=$host_cpu | 
|  | 3291 | esac | 
|  | 3292 | ;; | 
|  | 3293 | *-*-cygwin*) | 
|  | 3294 | _host_cpu= | 
|  | 3295 | ;; | 
|  | 3296 | *) | 
|  | 3297 | # for now, limit cross builds to known configurations | 
|  | 3298 | MACHDEP="unknown" | 
|  | 3299 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
|  | 3300 | esac | 
|  | 3301 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | 
|  | 3302 | fi | 
|  | 3303 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3304 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
|  | 3305 | # disable features if it is defined, without any means to access these | 
|  | 3306 | # features as extensions. For these systems, we skip the definition of | 
|  | 3307 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
|  | 3308 | # some feature, make sure there is no alternative way to access this | 
|  | 3309 | # feature. Also, when using wildcards, make sure you have verified the | 
|  | 3310 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
|  | 3311 | # wildcard, and that the wildcard does not include future systems | 
|  | 3312 | # (which may remove their limitations). | 
|  | 3313 | case $ac_sys_system/$ac_sys_release in | 
|  | 3314 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
|  | 3315 | # 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] | 3316 | # 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] | 3317 | # In addition, Stefan Krah confirms that issue #1244610 exists through | 
|  | 3318 | # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3319 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3320 | define_xopen_source=no | 
|  | 3321 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3322 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3323 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3324 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3325 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3326 |  | 
|  | 3327 | ;; | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3328 | OpenBSD/*) | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3329 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3330 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3331 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3332 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3333 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3334 |  | 
|  | 3335 | ;; | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3336 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
|  | 3337 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
|  | 3338 | # Marc Recht | 
| Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3339 | 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] | 3340 | define_xopen_source=no;; | 
| Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3341 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
|  | 3342 | # request to enable features supported by the standard as a request | 
|  | 3343 | # to disable features not supported by the standard.  The best way | 
|  | 3344 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
|  | 3345 | # entirely and define __EXTENSIONS__ instead. | 
|  | 3346 | SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3347 | define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3348 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
|  | 3349 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3350 | # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3351 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3352 | define_xopen_source=no;; | 
|  | 3353 | # 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] | 3354 | # 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] | 3355 | SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3356 | define_xopen_source=no;; | 
| Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3357 | # On FreeBSD 4, the math functions C89 does not cover are never defined | 
|  | 3358 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
|  | 3359 | FreeBSD/4.*) | 
|  | 3360 | define_xopen_source=no;; | 
|  | 3361 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
|  | 3362 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
|  | 3363 | # identifies itself as Darwin/7.* | 
|  | 3364 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3365 | # disables platform specific features beyond repair. | 
|  | 3366 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3367 | # has no effect, don't bother defining them | 
|  | 3368 | Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3369 | define_xopen_source=no;; | 
| Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3370 | Darwin/1[0-9].*) | 
| Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3371 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3372 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
|  | 3373 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
|  | 3374 | # 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] | 3375 | AIX/4) | 
|  | 3376 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3377 | AIX/5) | 
|  | 3378 | if test `uname -r` -eq 1; then | 
|  | 3379 | define_xopen_source=no | 
|  | 3380 | fi | 
|  | 3381 | ;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3382 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
|  | 3383 | # defining NI_NUMERICHOST. | 
|  | 3384 | QNX/6.3.2) | 
|  | 3385 | define_xopen_source=no | 
|  | 3386 | ;; | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3387 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3388 | esac | 
|  | 3389 |  | 
|  | 3390 | if test $define_xopen_source = yes | 
|  | 3391 | then | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3392 | # X/Open 7, incorporating POSIX.1-2008 | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3393 |  | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3394 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3395 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3396 |  | 
|  | 3397 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
|  | 3398 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
|  | 3399 | # several APIs are not declared. Since this is also needed in some | 
|  | 3400 | # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3401 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3402 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3403 |  | 
|  | 3404 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3405 |  | 
| Victor Stinner | d169fdc | 2011-09-08 00:56:17 +0200 | [diff] [blame] | 3406 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3407 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3408 | fi | 
|  | 3409 |  | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3410 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE | 
|  | 3411 | case $ac_sys_system in | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3412 | hp*|HP*) | 
|  | 3413 | define_stdc_a1=yes;; | 
|  | 3414 | *) | 
|  | 3415 | define_stdc_a1=no;; | 
|  | 3416 | esac | 
|  | 3417 |  | 
|  | 3418 | if test $define_stdc_a1 = yes | 
|  | 3419 | then | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3420 |  | 
|  | 3421 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h | 
|  | 3422 |  | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3423 | fi | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3424 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3425 | # | 
|  | 3426 | # SGI compilers allow the specification of the both the ABI and the | 
|  | 3427 | # ISA on the command line.  Depending on the values of these switches, | 
| Martin Panter | 46f5072 | 2016-05-26 05:35:26 +0000 | [diff] [blame] | 3428 | # different and often incompatible code will be generated. | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3429 | # | 
|  | 3430 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
|  | 3431 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
|  | 3432 | # variable is also adjusted. | 
|  | 3433 | # | 
|  | 3434 |  | 
|  | 3435 | if test ! -z "$SGI_ABI" | 
|  | 3436 | then | 
|  | 3437 | CC="cc $SGI_ABI" | 
|  | 3438 | LDFLAGS="$SGI_ABI $LDFLAGS" | 
|  | 3439 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
|  | 3440 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
|  | 3442 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3443 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3444 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
|  | 3445 | # it may influence the way we can build extensions, so distutils | 
|  | 3446 | # needs to check it | 
|  | 3447 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3448 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3449 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3450 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3451 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3452 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3453 |  | 
|  | 3454 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
|  | 3455 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
|  | 3456 | # just to get things to compile and link.  Users are free to override OPT | 
|  | 3457 | # when running configure or make.  The build should not break if they do. | 
|  | 3458 | # BASECFLAGS should generally not be messed with, however. | 
|  | 3459 |  | 
|  | 3460 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
|  | 3461 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
|  | 3463 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3464 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3465 | # Check whether --with-gcc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3466 | if test "${with_gcc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3467 | withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3468 | case $withval in | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3469 | no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3470 | without_gcc=yes;; | 
|  | 3471 | yes)	CC=gcc | 
|  | 3472 | without_gcc=no;; | 
|  | 3473 | *)	CC=$withval | 
|  | 3474 | without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3475 | esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3476 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3477 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3478 | case $ac_sys_system in | 
| Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3479 | AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3480 | without_gcc=;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3481 | *)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3482 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3483 | fi | 
|  | 3484 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
|  | 3486 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3487 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 | 
|  | 3489 | $as_echo_n "checking for --with-icc... " >&6; } | 
|  | 3490 |  | 
|  | 3491 | # Check whether --with-icc was given. | 
|  | 3492 | if test "${with_icc+set}" = set; then : | 
|  | 3493 | withval=$with_icc; | 
|  | 3494 | case $withval in | 
|  | 3495 | no)	CC=${CC:-cc} | 
|  | 3496 | with_icc=no;; | 
|  | 3497 | yes)	CC=icc | 
|  | 3498 | CXX=icpc | 
|  | 3499 | with_icc=yes;; | 
|  | 3500 | *)	CC=$withval | 
|  | 3501 | with_icc=$withval;; | 
|  | 3502 | esac | 
|  | 3503 | else | 
|  | 3504 |  | 
|  | 3505 | with_icc=no | 
|  | 3506 | fi | 
|  | 3507 |  | 
|  | 3508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 | 
|  | 3509 | $as_echo "$with_icc" >&6; } | 
|  | 3510 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3511 | # If the user switches compilers, we can't believe the cache | 
|  | 3512 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
|  | 3513 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3514 | as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3515 | (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] | 3516 | fi | 
|  | 3517 |  | 
| Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3518 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 | 
|  | 3519 | # when the compiler supports them, but we don't always want -O2, and | 
|  | 3520 | # we set -g later. | 
|  | 3521 | if test -z "$CFLAGS"; then | 
|  | 3522 | CFLAGS= | 
|  | 3523 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3524 |  | 
|  | 3525 | if test "$ac_sys_system" = "Darwin" | 
|  | 3526 | then | 
|  | 3527 | # Compiler selection on MacOSX is more complicated than | 
|  | 3528 | # AC_PROG_CC can handle, see Mac/README.txt for more | 
|  | 3529 | # information | 
|  | 3530 | if test -z "${CC}" | 
|  | 3531 | then | 
|  | 3532 | found_gcc= | 
|  | 3533 | found_clang= | 
|  | 3534 | as_save_IFS=$IFS; IFS=: | 
|  | 3535 | for as_dir in $PATH | 
|  | 3536 | do | 
|  | 3537 | IFS=$as_save_IFS | 
|  | 3538 | if test -x $as_dir/gcc; then | 
|  | 3539 | if test -z "${found_gcc}"; then | 
|  | 3540 | found_gcc=$as_dir/gcc | 
|  | 3541 | fi | 
|  | 3542 | fi | 
|  | 3543 | if test -x $as_dir/clang; then | 
|  | 3544 | if test -z "${found_clang}"; then | 
|  | 3545 | found_clang=$as_dir/clang | 
|  | 3546 | fi | 
|  | 3547 | fi | 
|  | 3548 | done | 
|  | 3549 | IFS=$as_save_IFS | 
|  | 3550 |  | 
|  | 3551 | if test -n "$found_gcc" -a -n "$found_clang" | 
|  | 3552 | then | 
|  | 3553 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" | 
|  | 3554 | then | 
|  | 3555 | { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 | 
|  | 3556 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | 
|  | 3557 | CC="$found_clang" | 
|  | 3558 | CXX="$found_clang++" | 
|  | 3559 | fi | 
|  | 3560 |  | 
|  | 3561 |  | 
|  | 3562 | elif test -z "$found_gcc" -a -n "$found_clang" | 
|  | 3563 | then | 
|  | 3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 | 
|  | 3565 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | 
|  | 3566 | CC="$found_clang" | 
|  | 3567 | CXX="$found_clang++" | 
|  | 3568 |  | 
|  | 3569 | elif test -z "$found_gcc" -a -z "$found_clang" | 
|  | 3570 | then | 
|  | 3571 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | 
|  | 3572 | if test -n "${found_clang}" | 
|  | 3573 | then | 
|  | 3574 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 | 
|  | 3575 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | 
|  | 3576 | CC="${found_clang}" | 
|  | 3577 | CXX="`/usr/bin/xcrun -find clang++`" | 
|  | 3578 |  | 
|  | 3579 | # else: use default behaviour | 
|  | 3580 | fi | 
|  | 3581 | fi | 
|  | 3582 | fi | 
|  | 3583 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3584 | ac_ext=c | 
|  | 3585 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3586 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3587 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3588 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3589 | if test -n "$ac_tool_prefix"; then | 
|  | 3590 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
|  | 3591 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3593 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3594 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3595 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3596 | else | 
|  | 3597 | if test -n "$CC"; then | 
|  | 3598 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3599 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3601 | for as_dir in $PATH | 
|  | 3602 | do | 
|  | 3603 | IFS=$as_save_IFS | 
|  | 3604 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3605 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3606 | 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] | 3607 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3608 | $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] | 3609 | break 2 | 
|  | 3610 | fi | 
|  | 3611 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3612 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3613 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3614 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3615 | fi | 
|  | 3616 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3617 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3618 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3620 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3621 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3623 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3624 | fi | 
|  | 3625 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3626 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3627 | fi | 
|  | 3628 | if test -z "$ac_cv_prog_CC"; then | 
|  | 3629 | ac_ct_CC=$CC | 
|  | 3630 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 3631 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3633 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3634 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3635 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3636 | else | 
|  | 3637 | if test -n "$ac_ct_CC"; then | 
|  | 3638 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3639 | else | 
|  | 3640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3641 | for as_dir in $PATH | 
|  | 3642 | do | 
|  | 3643 | IFS=$as_save_IFS | 
|  | 3644 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3645 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3646 | 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] | 3647 | ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3648 | $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] | 3649 | break 2 | 
|  | 3650 | fi | 
|  | 3651 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3652 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3653 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3654 |  | 
|  | 3655 | fi | 
|  | 3656 | fi | 
|  | 3657 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3658 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3660 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3661 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3663 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3664 | fi | 
|  | 3665 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3666 | if test "x$ac_ct_CC" = x; then | 
|  | 3667 | CC="" | 
|  | 3668 | else | 
|  | 3669 | case $cross_compiling:$ac_tool_warned in | 
|  | 3670 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3671 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3672 | $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] | 3673 | ac_tool_warned=yes ;; | 
|  | 3674 | esac | 
|  | 3675 | CC=$ac_ct_CC | 
|  | 3676 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3677 | else | 
|  | 3678 | CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3679 | fi | 
|  | 3680 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3681 | if test -z "$CC"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3682 | if test -n "$ac_tool_prefix"; then | 
|  | 3683 | # 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] | 3684 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3686 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3687 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3688 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3689 | else | 
|  | 3690 | if test -n "$CC"; then | 
|  | 3691 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3692 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3694 | for as_dir in $PATH | 
|  | 3695 | do | 
|  | 3696 | IFS=$as_save_IFS | 
|  | 3697 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3698 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3699 | 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] | 3700 | ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3701 | $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] | 3702 | break 2 | 
|  | 3703 | fi | 
|  | 3704 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3705 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3706 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3707 |  | 
|  | 3708 | fi | 
|  | 3709 | fi | 
|  | 3710 | CC=$ac_cv_prog_CC | 
|  | 3711 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3713 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3714 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3716 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3717 | fi | 
|  | 3718 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3719 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3720 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3721 | fi | 
|  | 3722 | if test -z "$CC"; then | 
|  | 3723 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 3724 | set dummy cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3726 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3727 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3728 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 | else | 
|  | 3730 | if test -n "$CC"; then | 
|  | 3731 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3732 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3733 | ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3735 | for as_dir in $PATH | 
|  | 3736 | do | 
|  | 3737 | IFS=$as_save_IFS | 
|  | 3738 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3739 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3740 | 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] | 3741 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 3742 | ac_prog_rejected=yes | 
|  | 3743 | continue | 
|  | 3744 | fi | 
|  | 3745 | ac_cv_prog_CC="cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3746 | $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] | 3747 | break 2 | 
|  | 3748 | fi | 
|  | 3749 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3750 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3751 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3752 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3753 | if test $ac_prog_rejected = yes; then | 
|  | 3754 | # We found a bogon in the path, so make sure we never use it. | 
|  | 3755 | set dummy $ac_cv_prog_CC | 
|  | 3756 | shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3757 | if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3758 | # We chose a different compiler from the bogus one. | 
|  | 3759 | # However, it has the same basename, so the bogon will be chosen | 
|  | 3760 | # first if we set CC to just the basename; use the full file name. | 
|  | 3761 | shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3762 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3763 | fi | 
|  | 3764 | fi | 
|  | 3765 | fi | 
|  | 3766 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3767 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3768 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3770 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3771 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3773 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3774 | fi | 
|  | 3775 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3776 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3777 | fi | 
|  | 3778 | if test -z "$CC"; then | 
|  | 3779 | if test -n "$ac_tool_prefix"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3780 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3781 | do | 
|  | 3782 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 3783 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3785 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3786 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3787 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3788 | else | 
|  | 3789 | if test -n "$CC"; then | 
|  | 3790 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3791 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3793 | for as_dir in $PATH | 
|  | 3794 | do | 
|  | 3795 | IFS=$as_save_IFS | 
|  | 3796 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3797 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3798 | 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] | 3799 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3800 | $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] | 3801 | break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3802 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3803 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3804 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3805 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3806 |  | 
|  | 3807 | fi | 
|  | 3808 | fi | 
|  | 3809 | CC=$ac_cv_prog_CC | 
|  | 3810 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3812 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3813 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3815 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3816 | fi | 
|  | 3817 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3818 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3819 | test -n "$CC" && break | 
|  | 3820 | done | 
|  | 3821 | fi | 
|  | 3822 | if test -z "$CC"; then | 
|  | 3823 | ac_ct_CC=$CC | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3824 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3825 | do | 
|  | 3826 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3827 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3829 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3830 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3831 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3832 | else | 
|  | 3833 | if test -n "$ac_ct_CC"; then | 
|  | 3834 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3835 | else | 
|  | 3836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3837 | for as_dir in $PATH | 
|  | 3838 | do | 
|  | 3839 | IFS=$as_save_IFS | 
|  | 3840 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3841 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3842 | 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] | 3843 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3844 | $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] | 3845 | break 2 | 
|  | 3846 | fi | 
|  | 3847 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3848 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3849 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3850 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3851 | fi | 
|  | 3852 | fi | 
|  | 3853 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3854 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3856 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3857 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3859 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3860 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3861 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3862 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3863 | test -n "$ac_ct_CC" && break | 
|  | 3864 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3865 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3866 | if test "x$ac_ct_CC" = x; then | 
|  | 3867 | CC="" | 
|  | 3868 | else | 
|  | 3869 | case $cross_compiling:$ac_tool_warned in | 
|  | 3870 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3872 | $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] | 3873 | ac_tool_warned=yes ;; | 
|  | 3874 | esac | 
|  | 3875 | CC=$ac_ct_CC | 
|  | 3876 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3877 | fi | 
|  | 3878 |  | 
|  | 3879 | fi | 
|  | 3880 |  | 
|  | 3881 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3882 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3883 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3884 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3885 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3886 |  | 
|  | 3887 | # Provide some information about the compiler. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3888 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
|  | 3889 | set X $ac_compile | 
|  | 3890 | ac_compiler=$2 | 
|  | 3891 | for ac_option in --version -v -V -qversion; do | 
|  | 3892 | { { ac_try="$ac_compiler $ac_option >&5" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3893 | case "(($ac_try" in | 
|  | 3894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3895 | *) ac_try_echo=$ac_try;; | 
|  | 3896 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3897 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3898 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 3899 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3900 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3901 | if test -s conftest.err; then | 
|  | 3902 | sed '10a\ | 
|  | 3903 | ... rest of stderr output deleted ... | 
|  | 3904 | 10q' conftest.err >conftest.er1 | 
|  | 3905 | cat conftest.er1 >&5 | 
|  | 3906 | fi | 
|  | 3907 | rm -f conftest.er1 conftest.err | 
|  | 3908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3909 | test $ac_status = 0; } | 
|  | 3910 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3911 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3913 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3914 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3915 | int | 
|  | 3916 | main () | 
|  | 3917 | { | 
|  | 3918 |  | 
|  | 3919 | ; | 
|  | 3920 | return 0; | 
|  | 3921 | } | 
|  | 3922 | _ACEOF | 
|  | 3923 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3924 | 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] | 3925 | # Try to create an executable without -o first, disregard a.out. | 
|  | 3926 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 3927 | # of exeext. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
|  | 3929 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
|  | 3930 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 3931 |  | 
|  | 3932 | # The possible output files: | 
|  | 3933 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
|  | 3934 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3935 | ac_rmfiles= | 
|  | 3936 | for ac_file in $ac_files | 
|  | 3937 | do | 
|  | 3938 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3939 | *.$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] | 3940 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
|  | 3941 | esac | 
|  | 3942 | done | 
|  | 3943 | rm -f $ac_rmfiles | 
|  | 3944 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3945 | if { { ac_try="$ac_link_default" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3946 | case "(($ac_try" in | 
|  | 3947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3948 | *) ac_try_echo=$ac_try;; | 
|  | 3949 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3950 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3951 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3952 | (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3953 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3954 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3955 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3956 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
|  | 3957 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
|  | 3958 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
|  | 3959 | # so that the user can short-circuit this test for compilers unknown to | 
|  | 3960 | # Autoconf. | 
|  | 3961 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3962 | do | 
|  | 3963 | test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3964 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3965 | *.$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] | 3966 | ;; | 
|  | 3967 | [ab].out ) | 
|  | 3968 | # We found the default executable, but exeext='' is most | 
|  | 3969 | # certainly right. | 
|  | 3970 | break;; | 
|  | 3971 | *.* ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3972 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3973 | then :; else | 
|  | 3974 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 3975 | fi | 
|  | 3976 | # We set ac_cv_exeext here because the later test for it is not | 
|  | 3977 | # safe: cross compilers may not add the suffix if given an `-o' | 
|  | 3978 | # argument, so we may need to know it at that point already. | 
|  | 3979 | # Even if this section looks crufty: it has the advantage of | 
|  | 3980 | # actually working. | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3981 | break;; | 
|  | 3982 | * ) | 
|  | 3983 | break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3984 | esac | 
|  | 3985 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3986 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
|  | 3987 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3988 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3989 | ac_file='' | 
|  | 3990 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3991 | if test -z "$ac_file"; then : | 
|  | 3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3993 | $as_echo "no" >&6; } | 
|  | 3994 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3995 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3996 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3997 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3998 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3999 | as_fn_error 77 "C compiler cannot create executables | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4000 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4001 | else | 
|  | 4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 4003 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4004 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
|  | 4006 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
|  | 4007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
|  | 4008 | $as_echo "$ac_file" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4009 | ac_exeext=$ac_cv_exeext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4010 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4011 | 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] | 4012 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
|  | 4014 | $as_echo_n "checking for suffix of executables... " >&6; } | 
|  | 4015 | if { { ac_try="$ac_link" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4016 | case "(($ac_try" in | 
|  | 4017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4018 | *) ac_try_echo=$ac_try;; | 
|  | 4019 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4020 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4021 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4022 | (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4023 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4024 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4025 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4026 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 4027 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 4028 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 4029 | # `rm'. | 
|  | 4030 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 4031 | test -f "$ac_file" || continue | 
|  | 4032 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4033 | *.$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] | 4034 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 4035 | break;; | 
|  | 4036 | * ) break;; | 
|  | 4037 | esac | 
|  | 4038 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4039 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4040 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4041 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4042 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4043 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4044 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4045 | rm -f conftest conftest$ac_cv_exeext | 
|  | 4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
|  | 4047 | $as_echo "$ac_cv_exeext" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4048 |  | 
|  | 4049 | rm -f conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4050 | EXEEXT=$ac_cv_exeext | 
|  | 4051 | ac_exeext=$EXEEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4053 | /* end confdefs.h.  */ | 
|  | 4054 | #include <stdio.h> | 
|  | 4055 | int | 
|  | 4056 | main () | 
|  | 4057 | { | 
|  | 4058 | FILE *f = fopen ("conftest.out", "w"); | 
|  | 4059 | return ferror (f) || fclose (f) != 0; | 
|  | 4060 |  | 
|  | 4061 | ; | 
|  | 4062 | return 0; | 
|  | 4063 | } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4064 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4065 | ac_clean_files="$ac_clean_files conftest.out" | 
|  | 4066 | # Check that the compiler produces executables we can run.  If not, either | 
|  | 4067 | # the compiler is broken, or we cross compile. | 
|  | 4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
|  | 4069 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
|  | 4070 | if test "$cross_compiling" != yes; then | 
|  | 4071 | { { ac_try="$ac_link" | 
|  | 4072 | case "(($ac_try" in | 
|  | 4073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4074 | *) ac_try_echo=$ac_try;; | 
|  | 4075 | esac | 
|  | 4076 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4077 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4078 | (eval "$ac_link") 2>&5 | 
|  | 4079 | ac_status=$? | 
|  | 4080 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4081 | test $ac_status = 0; } | 
|  | 4082 | if { ac_try='./conftest$ac_cv_exeext' | 
|  | 4083 | { { case "(($ac_try" in | 
|  | 4084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4085 | *) ac_try_echo=$ac_try;; | 
|  | 4086 | esac | 
|  | 4087 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4088 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4089 | (eval "$ac_try") 2>&5 | 
|  | 4090 | ac_status=$? | 
|  | 4091 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4092 | test $ac_status = 0; }; }; then | 
|  | 4093 | cross_compiling=no | 
|  | 4094 | else | 
|  | 4095 | if test "$cross_compiling" = maybe; then | 
|  | 4096 | cross_compiling=yes | 
|  | 4097 | else | 
|  | 4098 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4099 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4100 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4101 | If you meant to cross compile, use \`--host'. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4102 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4103 | fi | 
|  | 4104 | fi | 
|  | 4105 | fi | 
|  | 4106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
|  | 4107 | $as_echo "$cross_compiling" >&6; } | 
|  | 4108 |  | 
|  | 4109 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
|  | 4110 | ac_clean_files=$ac_clean_files_save | 
|  | 4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
|  | 4112 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4113 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4114 | $as_echo_n "(cached) " >&6 | 
|  | 4115 | else | 
|  | 4116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4117 | /* end confdefs.h.  */ | 
|  | 4118 |  | 
|  | 4119 | int | 
|  | 4120 | main () | 
|  | 4121 | { | 
|  | 4122 |  | 
|  | 4123 | ; | 
|  | 4124 | return 0; | 
|  | 4125 | } | 
|  | 4126 | _ACEOF | 
|  | 4127 | rm -f conftest.o conftest.obj | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4128 | if { { ac_try="$ac_compile" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4129 | case "(($ac_try" in | 
|  | 4130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4131 | *) ac_try_echo=$ac_try;; | 
|  | 4132 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4133 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4134 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4135 | (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4136 | ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4137 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4138 | test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4139 | for ac_file in conftest.o conftest.obj conftest.*; do | 
|  | 4140 | test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4141 | case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4142 | *.$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] | 4143 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 4144 | break;; | 
|  | 4145 | esac | 
|  | 4146 | done | 
|  | 4147 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4148 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4149 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4150 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4151 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4152 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4153 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4154 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4155 | fi | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4156 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4157 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
|  | 4159 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4160 | OBJEXT=$ac_cv_objext | 
|  | 4161 | ac_objext=$OBJEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
|  | 4163 | $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] | 4164 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4165 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4166 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4168 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4169 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4170 | int | 
|  | 4171 | main () | 
|  | 4172 | { | 
|  | 4173 | #ifndef __GNUC__ | 
|  | 4174 | choke me | 
|  | 4175 | #endif | 
|  | 4176 |  | 
|  | 4177 | ; | 
|  | 4178 | return 0; | 
|  | 4179 | } | 
|  | 4180 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4181 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4182 | ac_compiler_gnu=yes | 
|  | 4183 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4184 | ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4185 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4186 | 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] | 4187 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 4188 |  | 
|  | 4189 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 4191 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
|  | 4192 | if test $ac_compiler_gnu = yes; then | 
|  | 4193 | GCC=yes | 
|  | 4194 | else | 
|  | 4195 | GCC= | 
|  | 4196 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4197 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 4198 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
|  | 4200 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4201 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4202 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4203 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4204 | ac_save_c_werror_flag=$ac_c_werror_flag | 
|  | 4205 | ac_c_werror_flag=yes | 
|  | 4206 | ac_cv_prog_cc_g=no | 
|  | 4207 | CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4209 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4210 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4211 | int | 
|  | 4212 | main () | 
|  | 4213 | { | 
|  | 4214 |  | 
|  | 4215 | ; | 
|  | 4216 | return 0; | 
|  | 4217 | } | 
|  | 4218 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4219 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4220 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4221 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4222 | CFLAGS="" | 
|  | 4223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4224 | /* end confdefs.h.  */ | 
|  | 4225 |  | 
|  | 4226 | int | 
|  | 4227 | main () | 
|  | 4228 | { | 
|  | 4229 |  | 
|  | 4230 | ; | 
|  | 4231 | return 0; | 
|  | 4232 | } | 
|  | 4233 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4234 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4235 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4236 | else | 
|  | 4237 | ac_c_werror_flag=$ac_save_c_werror_flag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4238 | CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4240 | /* end confdefs.h.  */ | 
|  | 4241 |  | 
|  | 4242 | int | 
|  | 4243 | main () | 
|  | 4244 | { | 
|  | 4245 |  | 
|  | 4246 | ; | 
|  | 4247 | return 0; | 
|  | 4248 | } | 
|  | 4249 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4250 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4251 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4252 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4254 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4256 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4258 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 4259 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
|  | 4261 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4262 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4263 | CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4264 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 4265 | if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4266 | CFLAGS="-g -O2" | 
|  | 4267 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4268 | CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4269 | fi | 
|  | 4270 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4271 | if test "$GCC" = yes; then | 
|  | 4272 | CFLAGS="-O2" | 
|  | 4273 | else | 
|  | 4274 | CFLAGS= | 
|  | 4275 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4276 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
|  | 4278 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4279 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4280 | $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4281 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4282 | ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4283 | ac_save_CC=$CC | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4285 | /* end confdefs.h.  */ | 
|  | 4286 | #include <stdarg.h> | 
|  | 4287 | #include <stdio.h> | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4288 | struct stat; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4289 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 4290 | struct buf { int x; }; | 
|  | 4291 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 4292 | static char *e (p, i) | 
|  | 4293 | char **p; | 
|  | 4294 | int i; | 
|  | 4295 | { | 
|  | 4296 | return p[i]; | 
|  | 4297 | } | 
|  | 4298 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 4299 | { | 
|  | 4300 | char *s; | 
|  | 4301 | va_list v; | 
|  | 4302 | va_start (v,p); | 
|  | 4303 | s = g (p, va_arg (v,int)); | 
|  | 4304 | va_end (v); | 
|  | 4305 | return s; | 
|  | 4306 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4307 |  | 
|  | 4308 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 4309 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 4310 | These don't provoke an error unfortunately, instead are silently treated | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4311 | 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] | 4312 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 4313 | 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] | 4314 | that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4315 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 4316 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4317 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 4318 | inside strings and character constants.  */ | 
|  | 4319 | #define FOO(x) 'x' | 
|  | 4320 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 4321 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4322 | int test (int i, double x); | 
|  | 4323 | struct s1 {int (*f) (int a);}; | 
|  | 4324 | struct s2 {int (*f) (double a);}; | 
|  | 4325 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 4326 | int argc; | 
|  | 4327 | char **argv; | 
|  | 4328 | int | 
|  | 4329 | main () | 
|  | 4330 | { | 
|  | 4331 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 4332 | ; | 
|  | 4333 | return 0; | 
|  | 4334 | } | 
|  | 4335 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4336 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 4337 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4338 | do | 
|  | 4339 | CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4340 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4341 | ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4342 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4343 | rm -f core conftest.err conftest.$ac_objext | 
|  | 4344 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4345 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4346 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4347 | CC=$ac_save_CC | 
|  | 4348 |  | 
|  | 4349 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4350 | # AC_CACHE_VAL | 
|  | 4351 | case "x$ac_cv_prog_cc_c89" in | 
|  | 4352 | x) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
|  | 4354 | $as_echo "none needed" >&6; } ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4355 | xno) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
|  | 4357 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4358 | *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4359 | CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
|  | 4361 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4362 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4363 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4364 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4365 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4366 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4367 | ac_ext=c | 
|  | 4368 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4369 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4370 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4371 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4372 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4373 | ac_ext=c | 
|  | 4374 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4375 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4376 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4377 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
|  | 4379 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
|  | 4380 | # On Suns, sometimes $CPP names a directory. | 
|  | 4381 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 4382 | CPP= | 
|  | 4383 | fi | 
|  | 4384 | if test -z "$CPP"; then | 
|  | 4385 | if ${ac_cv_prog_CPP+:} false; then : | 
|  | 4386 | $as_echo_n "(cached) " >&6 | 
|  | 4387 | else | 
|  | 4388 | # Double quotes because CPP needs to be expanded | 
|  | 4389 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 4390 | do | 
|  | 4391 | ac_preproc_ok=false | 
|  | 4392 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4393 | do | 
|  | 4394 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4395 | # with a fresh cross-compiler works. | 
|  | 4396 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4397 | # <limits.h> exists even on freestanding compilers. | 
|  | 4398 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4399 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 4400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4401 | /* end confdefs.h.  */ | 
|  | 4402 | #ifdef __STDC__ | 
|  | 4403 | # include <limits.h> | 
|  | 4404 | #else | 
|  | 4405 | # include <assert.h> | 
|  | 4406 | #endif | 
|  | 4407 | Syntax error | 
|  | 4408 | _ACEOF | 
|  | 4409 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4410 |  | 
|  | 4411 | else | 
|  | 4412 | # Broken: fails on valid input. | 
|  | 4413 | continue | 
|  | 4414 | fi | 
|  | 4415 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4416 |  | 
|  | 4417 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 4418 | # can be detected and how. | 
|  | 4419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4420 | /* end confdefs.h.  */ | 
|  | 4421 | #include <ac_nonexistent.h> | 
|  | 4422 | _ACEOF | 
|  | 4423 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4424 | # Broken: success on invalid input. | 
|  | 4425 | continue | 
|  | 4426 | else | 
|  | 4427 | # Passes both tests. | 
|  | 4428 | ac_preproc_ok=: | 
|  | 4429 | break | 
|  | 4430 | fi | 
|  | 4431 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4432 |  | 
|  | 4433 | done | 
|  | 4434 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 4435 | rm -f conftest.i conftest.err conftest.$ac_ext | 
|  | 4436 | if $ac_preproc_ok; then : | 
|  | 4437 | break | 
|  | 4438 | fi | 
|  | 4439 |  | 
|  | 4440 | done | 
|  | 4441 | ac_cv_prog_CPP=$CPP | 
|  | 4442 |  | 
|  | 4443 | fi | 
|  | 4444 | CPP=$ac_cv_prog_CPP | 
|  | 4445 | else | 
|  | 4446 | ac_cv_prog_CPP=$CPP | 
|  | 4447 | fi | 
|  | 4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
|  | 4449 | $as_echo "$CPP" >&6; } | 
|  | 4450 | ac_preproc_ok=false | 
|  | 4451 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4452 | do | 
|  | 4453 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4454 | # with a fresh cross-compiler works. | 
|  | 4455 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4456 | # <limits.h> exists even on freestanding compilers. | 
|  | 4457 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4458 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 4459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4460 | /* end confdefs.h.  */ | 
|  | 4461 | #ifdef __STDC__ | 
|  | 4462 | # include <limits.h> | 
|  | 4463 | #else | 
|  | 4464 | # include <assert.h> | 
|  | 4465 | #endif | 
|  | 4466 | Syntax error | 
|  | 4467 | _ACEOF | 
|  | 4468 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4469 |  | 
|  | 4470 | else | 
|  | 4471 | # Broken: fails on valid input. | 
|  | 4472 | continue | 
|  | 4473 | fi | 
|  | 4474 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4475 |  | 
|  | 4476 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 4477 | # can be detected and how. | 
|  | 4478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4479 | /* end confdefs.h.  */ | 
|  | 4480 | #include <ac_nonexistent.h> | 
|  | 4481 | _ACEOF | 
|  | 4482 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 4483 | # Broken: success on invalid input. | 
|  | 4484 | continue | 
|  | 4485 | else | 
|  | 4486 | # Passes both tests. | 
|  | 4487 | ac_preproc_ok=: | 
|  | 4488 | break | 
|  | 4489 | fi | 
|  | 4490 | rm -f conftest.err conftest.i conftest.$ac_ext | 
|  | 4491 |  | 
|  | 4492 | done | 
|  | 4493 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 4494 | rm -f conftest.i conftest.err conftest.$ac_ext | 
|  | 4495 | if $ac_preproc_ok; then : | 
|  | 4496 |  | 
|  | 4497 | else | 
|  | 4498 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4499 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 4500 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
|  | 4501 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 4502 | fi | 
|  | 4503 |  | 
|  | 4504 | ac_ext=c | 
|  | 4505 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4506 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4507 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4508 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4509 |  | 
|  | 4510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
|  | 4511 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
|  | 4512 | if ${ac_cv_path_GREP+:} false; then : | 
|  | 4513 | $as_echo_n "(cached) " >&6 | 
|  | 4514 | else | 
|  | 4515 | if test -z "$GREP"; then | 
|  | 4516 | ac_path_GREP_found=false | 
|  | 4517 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4519 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 4520 | do | 
|  | 4521 | IFS=$as_save_IFS | 
|  | 4522 | test -z "$as_dir" && as_dir=. | 
|  | 4523 | for ac_prog in grep ggrep; do | 
|  | 4524 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4525 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4526 | as_fn_executable_p "$ac_path_GREP" || continue | 
|  | 4527 | # Check for GNU ac_path_GREP and select it if it is found. | 
|  | 4528 | # Check for GNU $ac_path_GREP | 
|  | 4529 | case `"$ac_path_GREP" --version 2>&1` in | 
|  | 4530 | *GNU*) | 
|  | 4531 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
|  | 4532 | *) | 
|  | 4533 | ac_count=0 | 
|  | 4534 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 4535 | while : | 
|  | 4536 | do | 
|  | 4537 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4538 | mv "conftest.tmp" "conftest.in" | 
|  | 4539 | cp "conftest.in" "conftest.nl" | 
|  | 4540 | $as_echo 'GREP' >> "conftest.nl" | 
|  | 4541 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4542 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
|  | 4543 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
|  | 4544 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
|  | 4545 | # Best one so far, save it but keep looking for a better one | 
|  | 4546 | ac_cv_path_GREP="$ac_path_GREP" | 
|  | 4547 | ac_path_GREP_max=$ac_count | 
|  | 4548 | fi | 
|  | 4549 | # 10*(2^10) chars as input seems more than enough | 
|  | 4550 | test $ac_count -gt 10 && break | 
|  | 4551 | done | 
|  | 4552 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4553 | esac | 
|  | 4554 |  | 
|  | 4555 | $ac_path_GREP_found && break 3 | 
|  | 4556 | done | 
|  | 4557 | done | 
|  | 4558 | done | 
|  | 4559 | IFS=$as_save_IFS | 
|  | 4560 | if test -z "$ac_cv_path_GREP"; then | 
|  | 4561 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
|  | 4562 | fi | 
|  | 4563 | else | 
|  | 4564 | ac_cv_path_GREP=$GREP | 
|  | 4565 | fi | 
|  | 4566 |  | 
|  | 4567 | fi | 
|  | 4568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
|  | 4569 | $as_echo "$ac_cv_path_GREP" >&6; } | 
|  | 4570 | GREP="$ac_cv_path_GREP" | 
|  | 4571 |  | 
|  | 4572 |  | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | 
|  | 4574 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | 
|  | 4575 | if ${ac_cv_path_SED+:} false; then : | 
|  | 4576 | $as_echo_n "(cached) " >&6 | 
|  | 4577 | else | 
|  | 4578 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | 
|  | 4579 | for ac_i in 1 2 3 4 5 6 7; do | 
|  | 4580 | ac_script="$ac_script$as_nl$ac_script" | 
|  | 4581 | done | 
|  | 4582 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | 
|  | 4583 | { ac_script=; unset ac_script;} | 
|  | 4584 | if test -z "$SED"; then | 
|  | 4585 | ac_path_SED_found=false | 
|  | 4586 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4588 | for as_dir in $PATH | 
|  | 4589 | do | 
|  | 4590 | IFS=$as_save_IFS | 
|  | 4591 | test -z "$as_dir" && as_dir=. | 
|  | 4592 | for ac_prog in sed gsed; do | 
|  | 4593 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4594 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4595 | as_fn_executable_p "$ac_path_SED" || continue | 
|  | 4596 | # Check for GNU ac_path_SED and select it if it is found. | 
|  | 4597 | # Check for GNU $ac_path_SED | 
|  | 4598 | case `"$ac_path_SED" --version 2>&1` in | 
|  | 4599 | *GNU*) | 
|  | 4600 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | 
|  | 4601 | *) | 
|  | 4602 | ac_count=0 | 
|  | 4603 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 4604 | while : | 
|  | 4605 | do | 
|  | 4606 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4607 | mv "conftest.tmp" "conftest.in" | 
|  | 4608 | cp "conftest.in" "conftest.nl" | 
|  | 4609 | $as_echo '' >> "conftest.nl" | 
|  | 4610 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4611 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
|  | 4612 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
|  | 4613 | if test $ac_count -gt ${ac_path_SED_max-0}; then | 
|  | 4614 | # Best one so far, save it but keep looking for a better one | 
|  | 4615 | ac_cv_path_SED="$ac_path_SED" | 
|  | 4616 | ac_path_SED_max=$ac_count | 
|  | 4617 | fi | 
|  | 4618 | # 10*(2^10) chars as input seems more than enough | 
|  | 4619 | test $ac_count -gt 10 && break | 
|  | 4620 | done | 
|  | 4621 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4622 | esac | 
|  | 4623 |  | 
|  | 4624 | $ac_path_SED_found && break 3 | 
|  | 4625 | done | 
|  | 4626 | done | 
|  | 4627 | done | 
|  | 4628 | IFS=$as_save_IFS | 
|  | 4629 | if test -z "$ac_cv_path_SED"; then | 
|  | 4630 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | 
|  | 4631 | fi | 
|  | 4632 | else | 
|  | 4633 | ac_cv_path_SED=$SED | 
|  | 4634 | fi | 
|  | 4635 |  | 
|  | 4636 | fi | 
|  | 4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | 
|  | 4638 | $as_echo "$ac_cv_path_SED" >&6; } | 
|  | 4639 | SED="$ac_cv_path_SED" | 
|  | 4640 | rm -f conftest.sed | 
|  | 4641 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4642 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4643 |  | 
|  | 4644 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
|  | 4646 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4647 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4648 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4649 | if test "${with_cxx_main+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4650 | withval=$with_cxx_main; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4651 |  | 
|  | 4652 | case $withval in | 
|  | 4653 | no)	with_cxx_main=no | 
|  | 4654 | MAINCC='$(CC)';; | 
|  | 4655 | yes)	with_cxx_main=yes | 
|  | 4656 | MAINCC='$(CXX)';; | 
|  | 4657 | *)	with_cxx_main=yes | 
|  | 4658 | MAINCC=$withval | 
|  | 4659 | if test -z "$CXX" | 
|  | 4660 | then | 
|  | 4661 | CXX=$withval | 
|  | 4662 | fi;; | 
|  | 4663 | esac | 
|  | 4664 | else | 
|  | 4665 |  | 
|  | 4666 | with_cxx_main=no | 
|  | 4667 | MAINCC='$(CC)' | 
|  | 4668 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4669 | fi | 
|  | 4670 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
|  | 4672 | $as_echo "$with_cxx_main" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4673 |  | 
|  | 4674 | preset_cxx="$CXX" | 
|  | 4675 | if test -z "$CXX" | 
|  | 4676 | then | 
|  | 4677 | case "$CC" in | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4678 | gcc)    if test -n "$ac_tool_prefix"; then | 
|  | 4679 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | 
|  | 4680 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | 
|  | 4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4682 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4683 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 4684 | $as_echo_n "(cached) " >&6 | 
|  | 4685 | else | 
|  | 4686 | case $CXX in | 
|  | 4687 | [\\/]* | ?:[\\/]*) | 
|  | 4688 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4689 | ;; | 
|  | 4690 | *) | 
|  | 4691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4692 | for as_dir in notfound | 
|  | 4693 | do | 
|  | 4694 | IFS=$as_save_IFS | 
|  | 4695 | test -z "$as_dir" && as_dir=. | 
|  | 4696 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4697 | 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] | 4698 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4700 | break 2 | 
|  | 4701 | fi | 
|  | 4702 | done | 
|  | 4703 | done | 
|  | 4704 | IFS=$as_save_IFS | 
|  | 4705 |  | 
|  | 4706 | ;; | 
|  | 4707 | esac | 
|  | 4708 | fi | 
|  | 4709 | CXX=$ac_cv_path_CXX | 
|  | 4710 | if test -n "$CXX"; then | 
|  | 4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4712 | $as_echo "$CXX" >&6; } | 
|  | 4713 | else | 
|  | 4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4715 | $as_echo "no" >&6; } | 
|  | 4716 | fi | 
|  | 4717 |  | 
|  | 4718 |  | 
|  | 4719 | fi | 
|  | 4720 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4721 | ac_pt_CXX=$CXX | 
|  | 4722 | # 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] | 4723 | set dummy g++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4725 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4726 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 4727 | $as_echo_n "(cached) " >&6 | 
|  | 4728 | else | 
|  | 4729 | case $ac_pt_CXX in | 
|  | 4730 | [\\/]* | ?:[\\/]*) | 
|  | 4731 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 4732 | ;; | 
|  | 4733 | *) | 
|  | 4734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4735 | for as_dir in notfound | 
|  | 4736 | do | 
|  | 4737 | IFS=$as_save_IFS | 
|  | 4738 | test -z "$as_dir" && as_dir=. | 
|  | 4739 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4740 | 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] | 4741 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4743 | break 2 | 
|  | 4744 | fi | 
|  | 4745 | done | 
|  | 4746 | done | 
|  | 4747 | IFS=$as_save_IFS | 
|  | 4748 |  | 
|  | 4749 | ;; | 
|  | 4750 | esac | 
|  | 4751 | fi | 
|  | 4752 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4753 | if test -n "$ac_pt_CXX"; then | 
|  | 4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4755 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 4756 | else | 
|  | 4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4758 | $as_echo "no" >&6; } | 
|  | 4759 | fi | 
|  | 4760 |  | 
|  | 4761 | if test "x$ac_pt_CXX" = x; then | 
|  | 4762 | CXX="g++" | 
|  | 4763 | else | 
|  | 4764 | case $cross_compiling:$ac_tool_warned in | 
|  | 4765 | yes:) | 
|  | 4766 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4767 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4768 | ac_tool_warned=yes ;; | 
|  | 4769 | esac | 
|  | 4770 | CXX=$ac_pt_CXX | 
|  | 4771 | fi | 
|  | 4772 | else | 
|  | 4773 | CXX="$ac_cv_path_CXX" | 
|  | 4774 | fi | 
|  | 4775 | ;; | 
|  | 4776 | cc)     if test -n "$ac_tool_prefix"; then | 
|  | 4777 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | 
|  | 4778 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | 
|  | 4779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4780 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4781 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4782 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4783 | else | 
|  | 4784 | case $CXX in | 
|  | 4785 | [\\/]* | ?:[\\/]*) | 
|  | 4786 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4787 | ;; | 
|  | 4788 | *) | 
|  | 4789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4790 | for as_dir in notfound | 
|  | 4791 | do | 
|  | 4792 | IFS=$as_save_IFS | 
|  | 4793 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4794 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4795 | 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] | 4796 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4797 | $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] | 4798 | break 2 | 
|  | 4799 | fi | 
|  | 4800 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4801 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4802 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4803 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4804 | ;; | 
|  | 4805 | esac | 
|  | 4806 | fi | 
|  | 4807 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4808 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4810 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4811 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4813 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4814 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4815 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4816 |  | 
|  | 4817 | fi | 
|  | 4818 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4819 | ac_pt_CXX=$CXX | 
|  | 4820 | # 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] | 4821 | set dummy c++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4823 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4824 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4825 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4826 | else | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4827 | case $ac_pt_CXX in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4828 | [\\/]* | ?:[\\/]*) | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4829 | 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] | 4830 | ;; | 
|  | 4831 | *) | 
|  | 4832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4833 | for as_dir in notfound | 
|  | 4834 | do | 
|  | 4835 | IFS=$as_save_IFS | 
|  | 4836 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4837 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4838 | 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] | 4839 | 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] | 4840 | $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] | 4841 | break 2 | 
|  | 4842 | fi | 
|  | 4843 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4844 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4845 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4846 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4847 | ;; | 
|  | 4848 | esac | 
|  | 4849 | fi | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4850 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4851 | if test -n "$ac_pt_CXX"; then | 
|  | 4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4853 | $as_echo "$ac_pt_CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4854 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4856 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4857 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4858 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4859 | if test "x$ac_pt_CXX" = x; then | 
|  | 4860 | CXX="c++" | 
|  | 4861 | else | 
|  | 4862 | case $cross_compiling:$ac_tool_warned in | 
|  | 4863 | yes:) | 
|  | 4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4865 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4866 | ac_tool_warned=yes ;; | 
|  | 4867 | esac | 
|  | 4868 | CXX=$ac_pt_CXX | 
|  | 4869 | fi | 
|  | 4870 | else | 
|  | 4871 | CXX="$ac_cv_path_CXX" | 
|  | 4872 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4873 | ;; | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4874 | clang|*/clang)     if test -n "$ac_tool_prefix"; then | 
|  | 4875 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | 
|  | 4876 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4878 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4879 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 4880 | $as_echo_n "(cached) " >&6 | 
|  | 4881 | else | 
|  | 4882 | case $CXX in | 
|  | 4883 | [\\/]* | ?:[\\/]*) | 
|  | 4884 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4885 | ;; | 
|  | 4886 | *) | 
|  | 4887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4888 | for as_dir in notfound | 
|  | 4889 | do | 
|  | 4890 | IFS=$as_save_IFS | 
|  | 4891 | test -z "$as_dir" && as_dir=. | 
|  | 4892 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4893 | 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] | 4894 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4896 | break 2 | 
|  | 4897 | fi | 
|  | 4898 | done | 
|  | 4899 | done | 
|  | 4900 | IFS=$as_save_IFS | 
|  | 4901 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4902 | ;; | 
|  | 4903 | esac | 
|  | 4904 | fi | 
|  | 4905 | CXX=$ac_cv_path_CXX | 
|  | 4906 | if test -n "$CXX"; then | 
|  | 4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4908 | $as_echo "$CXX" >&6; } | 
|  | 4909 | else | 
|  | 4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4911 | $as_echo "no" >&6; } | 
|  | 4912 | fi | 
|  | 4913 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4914 |  | 
|  | 4915 | fi | 
|  | 4916 | if test -z "$ac_cv_path_CXX"; then | 
|  | 4917 | ac_pt_CXX=$CXX | 
|  | 4918 | # Extract the first word of "clang++", so it can be a program name with args. | 
|  | 4919 | set dummy clang++; ac_word=$2 | 
|  | 4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4921 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4922 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 4923 | $as_echo_n "(cached) " >&6 | 
|  | 4924 | else | 
|  | 4925 | case $ac_pt_CXX in | 
|  | 4926 | [\\/]* | ?:[\\/]*) | 
|  | 4927 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 4928 | ;; | 
|  | 4929 | *) | 
|  | 4930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4931 | for as_dir in notfound | 
|  | 4932 | do | 
|  | 4933 | IFS=$as_save_IFS | 
|  | 4934 | test -z "$as_dir" && as_dir=. | 
|  | 4935 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4936 | 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] | 4937 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4939 | break 2 | 
|  | 4940 | fi | 
|  | 4941 | done | 
|  | 4942 | done | 
|  | 4943 | IFS=$as_save_IFS | 
|  | 4944 |  | 
|  | 4945 | ;; | 
|  | 4946 | esac | 
|  | 4947 | fi | 
|  | 4948 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 4949 | if test -n "$ac_pt_CXX"; then | 
|  | 4950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 4951 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 4952 | else | 
|  | 4953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4954 | $as_echo "no" >&6; } | 
|  | 4955 | fi | 
|  | 4956 |  | 
|  | 4957 | if test "x$ac_pt_CXX" = x; then | 
|  | 4958 | CXX="clang++" | 
|  | 4959 | else | 
|  | 4960 | case $cross_compiling:$ac_tool_warned in | 
|  | 4961 | yes:) | 
|  | 4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 4963 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4964 | ac_tool_warned=yes ;; | 
|  | 4965 | esac | 
|  | 4966 | CXX=$ac_pt_CXX | 
|  | 4967 | fi | 
|  | 4968 | else | 
|  | 4969 | CXX="$ac_cv_path_CXX" | 
|  | 4970 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4971 | ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 4972 | icc|*/icc)         if test -n "$ac_tool_prefix"; then | 
|  | 4973 | # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. | 
|  | 4974 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 | 
|  | 4975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4976 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4977 | if ${ac_cv_path_CXX+:} false; then : | 
|  | 4978 | $as_echo_n "(cached) " >&6 | 
|  | 4979 | else | 
|  | 4980 | case $CXX in | 
|  | 4981 | [\\/]* | ?:[\\/]*) | 
|  | 4982 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4983 | ;; | 
|  | 4984 | *) | 
|  | 4985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4986 | for as_dir in notfound | 
|  | 4987 | do | 
|  | 4988 | IFS=$as_save_IFS | 
|  | 4989 | test -z "$as_dir" && as_dir=. | 
|  | 4990 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4991 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4992 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4994 | break 2 | 
|  | 4995 | fi | 
|  | 4996 | done | 
|  | 4997 | done | 
|  | 4998 | IFS=$as_save_IFS | 
|  | 4999 |  | 
|  | 5000 | ;; | 
|  | 5001 | esac | 
|  | 5002 | fi | 
|  | 5003 | CXX=$ac_cv_path_CXX | 
|  | 5004 | if test -n "$CXX"; then | 
|  | 5005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 5006 | $as_echo "$CXX" >&6; } | 
|  | 5007 | else | 
|  | 5008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5009 | $as_echo "no" >&6; } | 
|  | 5010 | fi | 
|  | 5011 |  | 
|  | 5012 |  | 
|  | 5013 | fi | 
|  | 5014 | if test -z "$ac_cv_path_CXX"; then | 
|  | 5015 | ac_pt_CXX=$CXX | 
|  | 5016 | # Extract the first word of "icpc", so it can be a program name with args. | 
|  | 5017 | set dummy icpc; ac_word=$2 | 
|  | 5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5019 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5020 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
|  | 5021 | $as_echo_n "(cached) " >&6 | 
|  | 5022 | else | 
|  | 5023 | case $ac_pt_CXX in | 
|  | 5024 | [\\/]* | ?:[\\/]*) | 
|  | 5025 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
|  | 5026 | ;; | 
|  | 5027 | *) | 
|  | 5028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5029 | for as_dir in notfound | 
|  | 5030 | do | 
|  | 5031 | IFS=$as_save_IFS | 
|  | 5032 | test -z "$as_dir" && as_dir=. | 
|  | 5033 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5034 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5035 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5037 | break 2 | 
|  | 5038 | fi | 
|  | 5039 | done | 
|  | 5040 | done | 
|  | 5041 | IFS=$as_save_IFS | 
|  | 5042 |  | 
|  | 5043 | ;; | 
|  | 5044 | esac | 
|  | 5045 | fi | 
|  | 5046 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
|  | 5047 | if test -n "$ac_pt_CXX"; then | 
|  | 5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
|  | 5049 | $as_echo "$ac_pt_CXX" >&6; } | 
|  | 5050 | else | 
|  | 5051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5052 | $as_echo "no" >&6; } | 
|  | 5053 | fi | 
|  | 5054 |  | 
|  | 5055 | if test "x$ac_pt_CXX" = x; then | 
|  | 5056 | CXX="icpc" | 
|  | 5057 | else | 
|  | 5058 | case $cross_compiling:$ac_tool_warned in | 
|  | 5059 | yes:) | 
|  | 5060 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5061 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 5062 | ac_tool_warned=yes ;; | 
|  | 5063 | esac | 
|  | 5064 | CXX=$ac_pt_CXX | 
|  | 5065 | fi | 
|  | 5066 | else | 
|  | 5067 | CXX="$ac_cv_path_CXX" | 
|  | 5068 | fi | 
|  | 5069 | ;; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5070 | esac | 
|  | 5071 | if test "$CXX" = "notfound" | 
|  | 5072 | then | 
|  | 5073 | CXX="" | 
|  | 5074 | fi | 
|  | 5075 | fi | 
|  | 5076 | if test -z "$CXX" | 
|  | 5077 | then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5078 | if test -n "$ac_tool_prefix"; then | 
|  | 5079 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 5080 | do | 
|  | 5081 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 5082 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5084 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5085 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5086 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5087 | else | 
|  | 5088 | if test -n "$CXX"; then | 
|  | 5089 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 5090 | else | 
|  | 5091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5092 | for as_dir in $PATH | 
|  | 5093 | do | 
|  | 5094 | IFS=$as_save_IFS | 
|  | 5095 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5096 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5097 | 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] | 5098 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5099 | $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] | 5100 | break 2 | 
|  | 5101 | fi | 
|  | 5102 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5103 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5104 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5105 |  | 
|  | 5106 | fi | 
|  | 5107 | fi | 
|  | 5108 | CXX=$ac_cv_prog_CXX | 
|  | 5109 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 5111 | $as_echo "$CXX" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5112 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5114 | $as_echo "no" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5115 | fi | 
|  | 5116 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5117 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5118 | test -n "$CXX" && break | 
|  | 5119 | done | 
|  | 5120 | fi | 
|  | 5121 | if test -z "$CXX"; then | 
|  | 5122 | ac_ct_CXX=$CXX | 
|  | 5123 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 5124 | do | 
|  | 5125 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 5126 | set dummy $ac_prog; ac_word=$2 | 
|  | 5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5128 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5129 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
|  | 5130 | $as_echo_n "(cached) " >&6 | 
|  | 5131 | else | 
|  | 5132 | if test -n "$ac_ct_CXX"; then | 
|  | 5133 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
|  | 5134 | else | 
|  | 5135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5136 | for as_dir in $PATH | 
|  | 5137 | do | 
|  | 5138 | IFS=$as_save_IFS | 
|  | 5139 | test -z "$as_dir" && as_dir=. | 
|  | 5140 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5141 | 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] | 5142 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
|  | 5143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5144 | break 2 | 
|  | 5145 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5146 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5147 | done | 
|  | 5148 | IFS=$as_save_IFS | 
|  | 5149 |  | 
|  | 5150 | fi | 
|  | 5151 | fi | 
|  | 5152 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
|  | 5153 | if test -n "$ac_ct_CXX"; then | 
|  | 5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
|  | 5155 | $as_echo "$ac_ct_CXX" >&6; } | 
|  | 5156 | else | 
|  | 5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5158 | $as_echo "no" >&6; } | 
|  | 5159 | fi | 
|  | 5160 |  | 
|  | 5161 |  | 
|  | 5162 | test -n "$ac_ct_CXX" && break | 
|  | 5163 | done | 
|  | 5164 |  | 
|  | 5165 | if test "x$ac_ct_CXX" = x; then | 
|  | 5166 | CXX="notfound" | 
|  | 5167 | else | 
|  | 5168 | case $cross_compiling:$ac_tool_warned in | 
|  | 5169 | yes:) | 
|  | 5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5171 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 5172 | ac_tool_warned=yes ;; | 
|  | 5173 | esac | 
|  | 5174 | CXX=$ac_ct_CXX | 
|  | 5175 | fi | 
|  | 5176 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5177 |  | 
|  | 5178 | if test "$CXX" = "notfound" | 
|  | 5179 | then | 
|  | 5180 | CXX="" | 
|  | 5181 | fi | 
|  | 5182 | fi | 
|  | 5183 | if test "$preset_cxx" != "$CXX" | 
|  | 5184 | then | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5185 | { $as_echo "$as_me:${as_lineno-$LINENO}: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5186 |  | 
|  | 5187 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 5188 | If this is not intended, then set CXX on the configure command line. | 
|  | 5189 | " >&5 | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5190 | $as_echo "$as_me: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5191 |  | 
|  | 5192 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 5193 | If this is not intended, then set CXX on the configure command line. | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5194 | " >&6;} | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5195 | fi | 
|  | 5196 |  | 
|  | 5197 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5198 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | 
|  | 5199 |  | 
|  | 5200 |  | 
|  | 5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 | 
|  | 5202 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } | 
|  | 5203 | cat >> conftest.c <<EOF | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5204 | #undef bfin | 
|  | 5205 | #undef cris | 
|  | 5206 | #undef fr30 | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5207 | #undef linux | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5208 | #undef hppa | 
|  | 5209 | #undef hpux | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5210 | #undef i386 | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5211 | #undef mips | 
| doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5212 | #undef powerpc | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5213 | #undef sparc | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5214 | #undef unix | 
| doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5215 | #if defined(__ANDROID__) | 
| Xavier de Gaye | 32cf1ac | 2016-12-10 17:31:28 +0100 | [diff] [blame] | 5216 | # Android is not a multiarch system. | 
| doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5217 | #elif defined(__linux__) | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5218 | # if defined(__x86_64__) && defined(__LP64__) | 
|  | 5219 | x86_64-linux-gnu | 
|  | 5220 | # elif defined(__x86_64__) && defined(__ILP32__) | 
|  | 5221 | x86_64-linux-gnux32 | 
|  | 5222 | # elif defined(__i386__) | 
|  | 5223 | i386-linux-gnu | 
|  | 5224 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | 
|  | 5225 | #  if defined(__ILP32__) | 
|  | 5226 | aarch64_ilp32-linux-gnu | 
|  | 5227 | #  else | 
|  | 5228 | aarch64-linux-gnu | 
|  | 5229 | #  endif | 
|  | 5230 | # elif defined(__aarch64__) && defined(__AARCH64EB__) | 
|  | 5231 | #  if defined(__ILP32__) | 
|  | 5232 | aarch64_be_ilp32-linux-gnu | 
|  | 5233 | #  else | 
|  | 5234 | aarch64_be-linux-gnu | 
|  | 5235 | #  endif | 
|  | 5236 | # elif defined(__alpha__) | 
|  | 5237 | alpha-linux-gnu | 
|  | 5238 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) | 
|  | 5239 | #  if defined(__ARMEL__) | 
|  | 5240 | arm-linux-gnueabihf | 
|  | 5241 | #  else | 
|  | 5242 | armeb-linux-gnueabihf | 
|  | 5243 | #  endif | 
|  | 5244 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) | 
|  | 5245 | #  if defined(__ARMEL__) | 
|  | 5246 | arm-linux-gnueabi | 
|  | 5247 | #  else | 
|  | 5248 | armeb-linux-gnueabi | 
|  | 5249 | #  endif | 
|  | 5250 | # elif defined(__hppa__) | 
|  | 5251 | hppa-linux-gnu | 
|  | 5252 | # elif defined(__ia64__) | 
|  | 5253 | ia64-linux-gnu | 
|  | 5254 | # elif defined(__m68k__) && !defined(__mcoldfire__) | 
|  | 5255 | m68k-linux-gnu | 
|  | 5256 | # elif defined(__mips_hard_float) && defined(_MIPSEL) | 
|  | 5257 | #  if _MIPS_SIM == _ABIO32 | 
|  | 5258 | mipsel-linux-gnu | 
|  | 5259 | #  elif _MIPS_SIM == _ABIN32 | 
|  | 5260 | mips64el-linux-gnuabin32 | 
|  | 5261 | #  elif _MIPS_SIM == _ABI64 | 
|  | 5262 | mips64el-linux-gnuabi64 | 
|  | 5263 | #  else | 
|  | 5264 | #   error unknown platform triplet | 
|  | 5265 | #  endif | 
|  | 5266 | # elif defined(__mips_hard_float) | 
|  | 5267 | #  if _MIPS_SIM == _ABIO32 | 
|  | 5268 | mips-linux-gnu | 
|  | 5269 | #  elif _MIPS_SIM == _ABIN32 | 
|  | 5270 | mips64-linux-gnuabin32 | 
|  | 5271 | #  elif _MIPS_SIM == _ABI64 | 
|  | 5272 | mips64-linux-gnuabi64 | 
|  | 5273 | #  else | 
|  | 5274 | #   error unknown platform triplet | 
|  | 5275 | #  endif | 
|  | 5276 | # elif defined(__or1k__) | 
|  | 5277 | or1k-linux-gnu | 
|  | 5278 | # elif defined(__powerpc__) && defined(__SPE__) | 
|  | 5279 | powerpc-linux-gnuspe | 
|  | 5280 | # elif defined(__powerpc64__) | 
|  | 5281 | #  if defined(__LITTLE_ENDIAN__) | 
|  | 5282 | powerpc64le-linux-gnu | 
|  | 5283 | #  else | 
|  | 5284 | powerpc64-linux-gnu | 
|  | 5285 | #  endif | 
|  | 5286 | # elif defined(__powerpc__) | 
|  | 5287 | powerpc-linux-gnu | 
|  | 5288 | # elif defined(__s390x__) | 
|  | 5289 | s390x-linux-gnu | 
|  | 5290 | # elif defined(__s390__) | 
|  | 5291 | s390-linux-gnu | 
|  | 5292 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) | 
|  | 5293 | sh4-linux-gnu | 
|  | 5294 | # elif defined(__sparc__) && defined(__arch64__) | 
|  | 5295 | sparc64-linux-gnu | 
|  | 5296 | # elif defined(__sparc__) | 
|  | 5297 | sparc-linux-gnu | 
|  | 5298 | # else | 
|  | 5299 | #   error unknown platform triplet | 
|  | 5300 | # endif | 
|  | 5301 | #elif defined(__FreeBSD_kernel__) | 
|  | 5302 | # if defined(__LP64__) | 
|  | 5303 | x86_64-kfreebsd-gnu | 
|  | 5304 | # elif defined(__i386__) | 
|  | 5305 | i386-kfreebsd-gnu | 
|  | 5306 | # else | 
|  | 5307 | #   error unknown platform triplet | 
|  | 5308 | # endif | 
|  | 5309 | #elif defined(__gnu_hurd__) | 
|  | 5310 | i386-gnu | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5311 | #elif defined(__APPLE__) | 
|  | 5312 | darwin | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5313 | #else | 
|  | 5314 | # error unknown platform triplet | 
|  | 5315 | #endif | 
|  | 5316 |  | 
|  | 5317 | EOF | 
|  | 5318 |  | 
| Xavier de Gaye | 3a32bdf | 2016-07-30 11:28:35 +0200 | [diff] [blame] | 5319 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5320 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' 	'` | 
|  | 5321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 | 
|  | 5322 | $as_echo "$PLATFORM_TRIPLET" >&6; } | 
|  | 5323 | else | 
|  | 5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 5325 | $as_echo "none" >&6; } | 
|  | 5326 | fi | 
|  | 5327 | rm -f conftest.c conftest.out | 
|  | 5328 |  | 
|  | 5329 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then | 
|  | 5330 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then | 
|  | 5331 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 | 
|  | 5332 | fi | 
| doko@ubuntu.com | 75b1cb1 | 2016-08-29 20:03:25 +0200 | [diff] [blame] | 5333 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then | 
|  | 5334 | MULTIARCH=$PLATFORM_TRIPLET | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5335 | fi | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5336 |  | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 5337 | if test x$MULTIARCH != x; then | 
|  | 5338 | MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" | 
|  | 5339 | fi | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5340 |  | 
|  | 5341 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 | 
|  | 5343 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | 
|  | 5344 | save_LDFLAGS="$LDFLAGS" | 
|  | 5345 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5346 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5348 | /* end confdefs.h.  */ | 
|  | 5349 |  | 
|  | 5350 | int | 
|  | 5351 | main () | 
|  | 5352 | { | 
|  | 5353 |  | 
|  | 5354 | ; | 
|  | 5355 | return 0; | 
|  | 5356 | } | 
|  | 5357 | _ACEOF | 
|  | 5358 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 5359 | NO_AS_NEEDED="-Wl,--no-as-needed" | 
|  | 5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 5361 | $as_echo "yes" >&6; } | 
|  | 5362 | else | 
|  | 5363 | NO_AS_NEEDED="" | 
|  | 5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5365 | $as_echo "no" >&6; } | 
|  | 5366 | fi | 
|  | 5367 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 5368 | conftest$ac_exeext conftest.$ac_ext | 
|  | 5369 | LDFLAGS="$save_LDFLAGS" | 
|  | 5370 |  | 
|  | 5371 |  | 
|  | 5372 |  | 
|  | 5373 | # checks for UNIX variants that set C preprocessor variables | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5374 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
|  | 5376 | $as_echo_n "checking for egrep... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5377 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5378 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5379 | else | 
|  | 5380 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
|  | 5381 | then ac_cv_path_EGREP="$GREP -E" | 
|  | 5382 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5383 | if test -z "$EGREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5384 | ac_path_EGREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5385 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 5386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5387 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 5388 | do | 
|  | 5389 | IFS=$as_save_IFS | 
|  | 5390 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5391 | for ac_prog in egrep; do | 
|  | 5392 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5393 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5394 | as_fn_executable_p "$ac_path_EGREP" || continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5395 | # 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] | 5396 | # Check for GNU $ac_path_EGREP | 
|  | 5397 | case `"$ac_path_EGREP" --version 2>&1` in | 
|  | 5398 | *GNU*) | 
|  | 5399 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
|  | 5400 | *) | 
|  | 5401 | ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5402 | $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5403 | while : | 
|  | 5404 | do | 
|  | 5405 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 5406 | mv "conftest.tmp" "conftest.in" | 
|  | 5407 | cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5408 | $as_echo 'EGREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5409 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 5410 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5411 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5412 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
|  | 5413 | # Best one so far, save it but keep looking for a better one | 
|  | 5414 | ac_cv_path_EGREP="$ac_path_EGREP" | 
|  | 5415 | ac_path_EGREP_max=$ac_count | 
|  | 5416 | fi | 
|  | 5417 | # 10*(2^10) chars as input seems more than enough | 
|  | 5418 | test $ac_count -gt 10 && break | 
|  | 5419 | done | 
|  | 5420 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 5421 | esac | 
|  | 5422 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5423 | $ac_path_EGREP_found && break 3 | 
|  | 5424 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5425 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5426 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5427 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5428 | if test -z "$ac_cv_path_EGREP"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5429 | 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] | 5430 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5431 | else | 
|  | 5432 | ac_cv_path_EGREP=$EGREP | 
|  | 5433 | fi | 
|  | 5434 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5435 | fi | 
|  | 5436 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
|  | 5438 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5439 | EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5440 |  | 
|  | 5441 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 5443 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5444 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5445 | $as_echo_n "(cached) " >&6 | 
|  | 5446 | else | 
|  | 5447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5448 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5449 | #include <stdlib.h> | 
|  | 5450 | #include <stdarg.h> | 
|  | 5451 | #include <string.h> | 
|  | 5452 | #include <float.h> | 
|  | 5453 |  | 
|  | 5454 | int | 
|  | 5455 | main () | 
|  | 5456 | { | 
|  | 5457 |  | 
|  | 5458 | ; | 
|  | 5459 | return 0; | 
|  | 5460 | } | 
|  | 5461 | _ACEOF | 
|  | 5462 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5463 | ac_cv_header_stdc=yes | 
|  | 5464 | else | 
|  | 5465 | ac_cv_header_stdc=no | 
|  | 5466 | fi | 
|  | 5467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5468 |  | 
|  | 5469 | if test $ac_cv_header_stdc = yes; then | 
|  | 5470 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 5471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5472 | /* end confdefs.h.  */ | 
|  | 5473 | #include <string.h> | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5474 |  | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5475 | _ACEOF | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5476 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5477 | $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5478 |  | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5479 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5480 | ac_cv_header_stdc=no | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5481 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5482 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5483 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5484 | fi | 
|  | 5485 |  | 
|  | 5486 | if test $ac_cv_header_stdc = yes; then | 
|  | 5487 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 5488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5489 | /* end confdefs.h.  */ | 
|  | 5490 | #include <stdlib.h> | 
|  | 5491 |  | 
|  | 5492 | _ACEOF | 
|  | 5493 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 5494 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 5495 |  | 
|  | 5496 | else | 
|  | 5497 | ac_cv_header_stdc=no | 
|  | 5498 | fi | 
|  | 5499 | rm -f conftest* | 
|  | 5500 |  | 
|  | 5501 | fi | 
|  | 5502 |  | 
|  | 5503 | if test $ac_cv_header_stdc = yes; then | 
|  | 5504 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 5505 | if test "$cross_compiling" = yes; then : | 
|  | 5506 | : | 
|  | 5507 | else | 
|  | 5508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5509 | /* end confdefs.h.  */ | 
|  | 5510 | #include <ctype.h> | 
|  | 5511 | #include <stdlib.h> | 
|  | 5512 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 5513 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 5514 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 5515 | #else | 
|  | 5516 | # define ISLOWER(c) \ | 
|  | 5517 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 5518 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 5519 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 5520 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 5521 | #endif | 
|  | 5522 |  | 
|  | 5523 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 5524 | int | 
|  | 5525 | main () | 
|  | 5526 | { | 
|  | 5527 | int i; | 
|  | 5528 | for (i = 0; i < 256; i++) | 
|  | 5529 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 5530 | || toupper (i) != TOUPPER (i)) | 
|  | 5531 | return 2; | 
|  | 5532 | return 0; | 
|  | 5533 | } | 
|  | 5534 | _ACEOF | 
|  | 5535 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 5536 |  | 
|  | 5537 | else | 
|  | 5538 | ac_cv_header_stdc=no | 
|  | 5539 | fi | 
|  | 5540 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5541 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 5542 | fi | 
|  | 5543 |  | 
|  | 5544 | fi | 
|  | 5545 | fi | 
|  | 5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 5547 | $as_echo "$ac_cv_header_stdc" >&6; } | 
|  | 5548 | if test $ac_cv_header_stdc = yes; then | 
|  | 5549 |  | 
|  | 5550 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
|  | 5551 |  | 
|  | 5552 | fi | 
|  | 5553 |  | 
|  | 5554 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
|  | 5555 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
|  | 5556 | inttypes.h stdint.h unistd.h | 
|  | 5557 | do : | 
|  | 5558 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 5559 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
|  | 5560 | " | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5561 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5562 | cat >>confdefs.h <<_ACEOF | 
|  | 5563 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 5564 | _ACEOF | 
|  | 5565 |  | 
|  | 5566 | fi | 
|  | 5567 |  | 
|  | 5568 | done | 
|  | 5569 |  | 
|  | 5570 |  | 
|  | 5571 |  | 
|  | 5572 | 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] | 5573 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5574 | MINIX=yes | 
|  | 5575 | else | 
|  | 5576 | MINIX= | 
|  | 5577 | fi | 
|  | 5578 |  | 
|  | 5579 |  | 
|  | 5580 | if test "$MINIX" = yes; then | 
|  | 5581 |  | 
|  | 5582 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
|  | 5583 |  | 
|  | 5584 |  | 
|  | 5585 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
|  | 5586 |  | 
|  | 5587 |  | 
|  | 5588 | $as_echo "#define _MINIX 1" >>confdefs.h | 
|  | 5589 |  | 
|  | 5590 | fi | 
|  | 5591 |  | 
|  | 5592 |  | 
|  | 5593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
|  | 5594 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5595 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5596 | $as_echo_n "(cached) " >&6 | 
|  | 5597 | else | 
|  | 5598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5599 | /* end confdefs.h.  */ | 
|  | 5600 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5601 | #         define __EXTENSIONS__ 1 | 
|  | 5602 | $ac_includes_default | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5603 | int | 
|  | 5604 | main () | 
|  | 5605 | { | 
|  | 5606 |  | 
|  | 5607 | ; | 
|  | 5608 | return 0; | 
|  | 5609 | } | 
|  | 5610 | _ACEOF | 
|  | 5611 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5612 | ac_cv_safe_to_define___extensions__=yes | 
|  | 5613 | else | 
|  | 5614 | ac_cv_safe_to_define___extensions__=no | 
|  | 5615 | fi | 
|  | 5616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5617 | fi | 
|  | 5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
|  | 5619 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
|  | 5620 | test $ac_cv_safe_to_define___extensions__ = yes && | 
|  | 5621 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
|  | 5622 |  | 
|  | 5623 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
|  | 5624 |  | 
|  | 5625 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
|  | 5626 |  | 
|  | 5627 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
|  | 5628 |  | 
|  | 5629 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
|  | 5630 |  | 
|  | 5631 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5632 |  | 
| Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 | 
|  | 5634 | $as_echo_n "checking for the Android API level... " >&6; } | 
|  | 5635 | cat >> conftest.c <<EOF | 
|  | 5636 | #ifdef __ANDROID__ | 
|  | 5637 | #include <android/api-level.h> | 
| Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5638 | android_api = __ANDROID_API__ | 
|  | 5639 | arm_arch = __ARM_ARCH | 
| Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5640 | #else | 
|  | 5641 | #error not Android | 
|  | 5642 | #endif | 
|  | 5643 | EOF | 
|  | 5644 |  | 
|  | 5645 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
| Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5646 | ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` | 
|  | 5647 | _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` | 
| Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 | 
|  | 5649 | $as_echo "$ANDROID_API_LEVEL" >&6; } | 
|  | 5650 |  | 
|  | 5651 | cat >>confdefs.h <<_ACEOF | 
|  | 5652 | #define ANDROID_API_LEVEL $ANDROID_API_LEVEL | 
|  | 5653 | _ACEOF | 
|  | 5654 |  | 
| Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5655 |  | 
|  | 5656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 | 
|  | 5657 | $as_echo_n "checking for the Android arm ABI... " >&6; } | 
|  | 5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 | 
|  | 5659 | $as_echo "$_arm_arch" >&6; } | 
|  | 5660 | if test "$_arm_arch" = 7; then | 
|  | 5661 | BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" | 
|  | 5662 | LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" | 
|  | 5663 | fi | 
| Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5664 | else | 
|  | 5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 | 
|  | 5666 | $as_echo "not Android" >&6; } | 
|  | 5667 | fi | 
|  | 5668 | rm -f conftest.c conftest.out | 
|  | 5669 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5670 | # Check for unsupported systems | 
|  | 5671 | case $ac_sys_system/$ac_sys_release in | 
|  | 5672 | atheos*|Linux*/1*) | 
|  | 5673 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
|  | 5674 | echo See README for details. | 
|  | 5675 | exit 1;; | 
|  | 5676 | esac | 
|  | 5677 |  | 
|  | 5678 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
|  | 5680 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5681 |  | 
|  | 5682 | # Check whether --with-suffix was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5683 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5684 | withval=$with_suffix; | 
|  | 5685 | case $withval in | 
|  | 5686 | no)	EXEEXT=;; | 
|  | 5687 | yes)	EXEEXT=.exe;; | 
|  | 5688 | *)	EXEEXT=$withval;; | 
|  | 5689 | esac | 
|  | 5690 | fi | 
|  | 5691 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
|  | 5693 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5694 |  | 
|  | 5695 | # Test whether we're running on a non-case-sensitive system, in which | 
|  | 5696 | # case we give a warning if no ext is given | 
|  | 5697 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
|  | 5699 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5700 | if test ! -d CaseSensitiveTestDir; then | 
|  | 5701 | mkdir CaseSensitiveTestDir | 
|  | 5702 | fi | 
|  | 5703 |  | 
|  | 5704 | if test -d casesensitivetestdir | 
|  | 5705 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 5707 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5708 | BUILDEXEEXT=.exe | 
|  | 5709 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5711 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5712 | BUILDEXEEXT=$EXEEXT | 
|  | 5713 | fi | 
|  | 5714 | rmdir CaseSensitiveTestDir | 
|  | 5715 |  | 
|  | 5716 | case $MACHDEP in | 
|  | 5717 | bsdos*) | 
|  | 5718 | case $CC in | 
|  | 5719 | gcc) CC="$CC -D_HAVE_BSDI";; | 
|  | 5720 | esac;; | 
|  | 5721 | esac | 
|  | 5722 |  | 
|  | 5723 | case $ac_sys_system in | 
|  | 5724 | hp*|HP*) | 
|  | 5725 | case $CC in | 
|  | 5726 | cc|*/cc) CC="$CC -Ae";; | 
|  | 5727 | esac;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5728 | esac | 
|  | 5729 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5730 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
|  | 5732 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5733 | if test -z "$LIBRARY" | 
|  | 5734 | then | 
| Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5735 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5736 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
|  | 5738 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5739 |  | 
|  | 5740 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
|  | 5741 | # name of the library into which to insert object files). BLDLIBRARY is also | 
|  | 5742 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
|  | 5743 | # is blank as the main program is not linked directly against LDLIBRARY. | 
|  | 5744 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
|  | 5745 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
|  | 5746 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
|  | 5747 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
|  | 5748 | # | 
|  | 5749 | # RUNSHARED is used to run shared python without installed libraries | 
|  | 5750 | # | 
|  | 5751 | # INSTSONAME is the name of the shared library that will be use to install | 
|  | 5752 | # on the system - some systems like version suffix, others don't | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5753 | # | 
|  | 5754 | # LDVERSION is the shared library version number, normally the Python version | 
|  | 5755 | # with the ABI build flags appended. | 
|  | 5756 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5757 |  | 
|  | 5758 |  | 
|  | 5759 |  | 
|  | 5760 |  | 
|  | 5761 |  | 
|  | 5762 |  | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5763 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5764 | LDLIBRARY="$LIBRARY" | 
|  | 5765 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 5766 | INSTSONAME='$(LDLIBRARY)' | 
|  | 5767 | DLLLIBRARY='' | 
|  | 5768 | LDLIBRARYDIR='' | 
|  | 5769 | RUNSHARED='' | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5770 | LDVERSION="$VERSION" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5771 |  | 
|  | 5772 | # LINKCC is the command that links the python executable -- default is $(CC). | 
|  | 5773 | # If CXX is set, and if it is needed to link a main function that was | 
|  | 5774 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
|  | 5775 | # python might then depend on the C++ runtime | 
|  | 5776 | # This is altered for AIX in order to build the export list before | 
|  | 5777 | # linking. | 
|  | 5778 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
|  | 5780 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5781 | if test -z "$LINKCC" | 
|  | 5782 | then | 
|  | 5783 | LINKCC='$(PURIFY) $(MAINCC)' | 
|  | 5784 | case $ac_sys_system in | 
|  | 5785 | AIX*) | 
|  | 5786 | exp_extra="\"\"" | 
|  | 5787 | if test $ac_sys_release -ge 5 -o \ | 
|  | 5788 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
|  | 5789 | exp_extra="." | 
|  | 5790 | fi | 
|  | 5791 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5792 | QNX*) | 
|  | 5793 | # qcc must be used because the other compilers do not | 
|  | 5794 | # support -N. | 
|  | 5795 | LINKCC=qcc;; | 
|  | 5796 | esac | 
|  | 5797 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
|  | 5799 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5800 |  | 
|  | 5801 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
|  | 5802 | # make sure we default having it set to "no": this is used by | 
|  | 5803 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
|  | 5804 | # to linker command lines, and failing to detect GNU ld simply results | 
|  | 5805 | # in the same bahaviour as before. | 
|  | 5806 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
|  | 5808 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5809 | ac_prog=ld | 
|  | 5810 | if test "$GCC" = yes; then | 
|  | 5811 | ac_prog=`$CC -print-prog-name=ld` | 
|  | 5812 | fi | 
|  | 5813 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
|  | 5814 | *GNU*) | 
|  | 5815 | GNULD=yes;; | 
|  | 5816 | *) | 
|  | 5817 | GNULD=no;; | 
|  | 5818 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
|  | 5820 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5821 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
|  | 5823 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5824 | # Check whether --enable-shared was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5825 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5826 | enableval=$enable_shared; | 
|  | 5827 | fi | 
|  | 5828 |  | 
|  | 5829 |  | 
|  | 5830 | if test -z "$enable_shared" | 
|  | 5831 | then | 
|  | 5832 | case $ac_sys_system in | 
| Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5833 | CYGWIN*) | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5834 | enable_shared="yes";; | 
|  | 5835 | *) | 
|  | 5836 | enable_shared="no";; | 
|  | 5837 | esac | 
|  | 5838 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
|  | 5840 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5841 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
|  | 5843 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5844 | # Check whether --enable-profiling was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5845 | if test "${enable_profiling+set}" = set; then : | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5846 | enableval=$enable_profiling; | 
|  | 5847 | fi | 
|  | 5848 |  | 
|  | 5849 | if test "x$enable_profiling" = xyes; then | 
|  | 5850 | ac_save_cc="$CC" | 
| Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5851 | CC="$CC -pg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5853 | /* end confdefs.h.  */ | 
|  | 5854 | int main() { return 0; } | 
|  | 5855 | _ACEOF | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5856 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 5857 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5858 | else | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5859 | enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5860 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5861 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 5862 | conftest$ac_exeext conftest.$ac_ext | 
|  | 5863 | CC="$ac_save_cc" | 
|  | 5864 | else | 
|  | 5865 | enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5866 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 | 
|  | 5868 | $as_echo "$enable_profiling" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5869 |  | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5870 | if test "x$enable_profiling" = xyes; then | 
|  | 5871 | BASECFLAGS="-pg $BASECFLAGS" | 
|  | 5872 | LDFLAGS="-pg $LDFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5873 | fi | 
|  | 5874 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
|  | 5876 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5877 |  | 
|  | 5878 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
|  | 5879 | # library that we build, but we do not want to link against it (we | 
|  | 5880 | # will find it with a -framework option). For this reason there is an | 
|  | 5881 | # extra variable BLDLIBRARY against which Python and the extension | 
|  | 5882 | # modules are linked, BLDLIBRARY. This is normally the same as | 
|  | 5883 | # LDLIBRARY, but empty for MacOSX framework builds. | 
|  | 5884 | if test "$enable_framework" | 
|  | 5885 | then | 
|  | 5886 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5887 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5888 | BLDLIBRARY='' | 
|  | 5889 | else | 
|  | 5890 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 5891 | fi | 
|  | 5892 |  | 
|  | 5893 | # Other platforms follow | 
|  | 5894 | if test $enable_shared = "yes"; then | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5895 | PY_ENABLE_SHARED=1 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5896 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5897 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5898 |  | 
|  | 5899 | case $ac_sys_system in | 
|  | 5900 | CYGWIN*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5901 | LDLIBRARY='libpython$(LDVERSION).dll.a' | 
|  | 5902 | DLLLIBRARY='libpython$(LDVERSION).dll' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5903 | ;; | 
|  | 5904 | SunOS*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5905 | LDLIBRARY='libpython$(LDVERSION).so' | 
|  | 5906 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5907 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5908 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5909 | if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5910 | then | 
|  | 5911 | PY3LIBRARY=libpython3.so | 
|  | 5912 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5913 | ;; | 
| Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 5914 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5915 | LDLIBRARY='libpython$(LDVERSION).so' | 
|  | 5916 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5917 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5918 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5919 | if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5920 | then | 
|  | 5921 | PY3LIBRARY=libpython3.so | 
|  | 5922 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5923 | ;; | 
|  | 5924 | hp*|HP*) | 
|  | 5925 | case `uname -m` in | 
|  | 5926 | ia64) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5927 | LDLIBRARY='libpython$(LDVERSION).so' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5928 | ;; | 
|  | 5929 | *) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5930 | LDLIBRARY='libpython$(LDVERSION).sl' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5931 | ;; | 
|  | 5932 | esac | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5933 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5934 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5935 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5936 | Darwin*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5937 | LDLIBRARY='libpython$(LDVERSION).dylib' | 
|  | 5938 | BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5939 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5940 | ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5941 | AIX*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5942 | LDLIBRARY='libpython$(LDVERSION).so' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5943 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5944 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5945 |  | 
|  | 5946 | esac | 
|  | 5947 | else # shared is disabled | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5948 | PY_ENABLE_SHARED=0 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5949 | case $ac_sys_system in | 
|  | 5950 | CYGWIN*) | 
|  | 5951 | BLDLIBRARY='$(LIBRARY)' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5952 | LDLIBRARY='libpython$(LDVERSION).dll.a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5953 | ;; | 
|  | 5954 | esac | 
|  | 5955 | fi | 
|  | 5956 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 5957 | if test "$cross_compiling" = yes; then | 
|  | 5958 | RUNSHARED= | 
|  | 5959 | fi | 
|  | 5960 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
|  | 5962 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5963 |  | 
|  | 5964 | if test -n "$ac_tool_prefix"; then | 
|  | 5965 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 5966 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5968 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5969 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5970 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5971 | else | 
|  | 5972 | if test -n "$RANLIB"; then | 
|  | 5973 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 5974 | else | 
|  | 5975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5976 | for as_dir in $PATH | 
|  | 5977 | do | 
|  | 5978 | IFS=$as_save_IFS | 
|  | 5979 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5980 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5981 | 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] | 5982 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5983 | $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] | 5984 | break 2 | 
|  | 5985 | fi | 
|  | 5986 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5987 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5988 | IFS=$as_save_IFS | 
|  | 5989 |  | 
|  | 5990 | fi | 
|  | 5991 | fi | 
|  | 5992 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 5993 | if test -n "$RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
|  | 5995 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5996 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5998 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5999 | fi | 
|  | 6000 |  | 
|  | 6001 |  | 
|  | 6002 | fi | 
|  | 6003 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 6004 | ac_ct_RANLIB=$RANLIB | 
|  | 6005 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 6006 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6008 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6009 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6010 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6011 | else | 
|  | 6012 | if test -n "$ac_ct_RANLIB"; then | 
|  | 6013 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 6014 | else | 
|  | 6015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6016 | for as_dir in $PATH | 
|  | 6017 | do | 
|  | 6018 | IFS=$as_save_IFS | 
|  | 6019 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6020 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6021 | 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] | 6022 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6023 | $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] | 6024 | break 2 | 
|  | 6025 | fi | 
|  | 6026 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6027 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6028 | IFS=$as_save_IFS | 
|  | 6029 |  | 
|  | 6030 | fi | 
|  | 6031 | fi | 
|  | 6032 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 6033 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
|  | 6035 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6036 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6038 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6039 | fi | 
|  | 6040 |  | 
|  | 6041 | if test "x$ac_ct_RANLIB" = x; then | 
|  | 6042 | RANLIB=":" | 
|  | 6043 | else | 
|  | 6044 | case $cross_compiling:$ac_tool_warned in | 
|  | 6045 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6046 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6047 | $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] | 6048 | ac_tool_warned=yes ;; | 
|  | 6049 | esac | 
|  | 6050 | RANLIB=$ac_ct_RANLIB | 
|  | 6051 | fi | 
|  | 6052 | else | 
|  | 6053 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 6054 | fi | 
|  | 6055 |  | 
|  | 6056 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6057 | if test -n "$ac_tool_prefix"; then | 
|  | 6058 | for ac_prog in ar aal | 
|  | 6059 | do | 
|  | 6060 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 6061 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6063 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6064 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6065 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6066 | else | 
|  | 6067 | if test -n "$AR"; then | 
|  | 6068 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 6069 | else | 
|  | 6070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6071 | for as_dir in $PATH | 
|  | 6072 | do | 
|  | 6073 | IFS=$as_save_IFS | 
|  | 6074 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6075 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6076 | 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] | 6077 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6078 | $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] | 6079 | break 2 | 
|  | 6080 | fi | 
|  | 6081 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6082 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6083 | IFS=$as_save_IFS | 
|  | 6084 |  | 
|  | 6085 | fi | 
|  | 6086 | fi | 
|  | 6087 | AR=$ac_cv_prog_AR | 
|  | 6088 | if test -n "$AR"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
|  | 6090 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6091 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6093 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6094 | fi | 
|  | 6095 |  | 
|  | 6096 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6097 | test -n "$AR" && break | 
|  | 6098 | done | 
|  | 6099 | fi | 
|  | 6100 | if test -z "$AR"; then | 
|  | 6101 | ac_ct_AR=$AR | 
|  | 6102 | for ac_prog in ar aal | 
|  | 6103 | do | 
|  | 6104 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 6105 | set dummy $ac_prog; ac_word=$2 | 
|  | 6106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6107 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6108 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
|  | 6109 | $as_echo_n "(cached) " >&6 | 
|  | 6110 | else | 
|  | 6111 | if test -n "$ac_ct_AR"; then | 
|  | 6112 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
|  | 6113 | else | 
|  | 6114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6115 | for as_dir in $PATH | 
|  | 6116 | do | 
|  | 6117 | IFS=$as_save_IFS | 
|  | 6118 | test -z "$as_dir" && as_dir=. | 
|  | 6119 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 6120 | 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] | 6121 | ac_cv_prog_ac_ct_AR="$ac_prog" | 
|  | 6122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6123 | break 2 | 
|  | 6124 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6125 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6126 | done | 
|  | 6127 | IFS=$as_save_IFS | 
|  | 6128 |  | 
|  | 6129 | fi | 
|  | 6130 | fi | 
|  | 6131 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
|  | 6132 | if test -n "$ac_ct_AR"; then | 
|  | 6133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
|  | 6134 | $as_echo "$ac_ct_AR" >&6; } | 
|  | 6135 | else | 
|  | 6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6137 | $as_echo "no" >&6; } | 
|  | 6138 | fi | 
|  | 6139 |  | 
|  | 6140 |  | 
|  | 6141 | test -n "$ac_ct_AR" && break | 
|  | 6142 | done | 
|  | 6143 |  | 
|  | 6144 | if test "x$ac_ct_AR" = x; then | 
|  | 6145 | AR="ar" | 
|  | 6146 | else | 
|  | 6147 | case $cross_compiling:$ac_tool_warned in | 
|  | 6148 | yes:) | 
|  | 6149 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6150 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 6151 | ac_tool_warned=yes ;; | 
|  | 6152 | esac | 
|  | 6153 | AR=$ac_ct_AR | 
|  | 6154 | fi | 
|  | 6155 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6156 |  | 
|  | 6157 |  | 
|  | 6158 | # tweak ARFLAGS only if the user didn't set it on the command line | 
|  | 6159 |  | 
|  | 6160 | if test -z "$ARFLAGS" | 
|  | 6161 | then | 
|  | 6162 | ARFLAGS="rc" | 
|  | 6163 | fi | 
|  | 6164 |  | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6165 | if test -n "$ac_tool_prefix"; then | 
|  | 6166 | for ac_prog in readelf | 
|  | 6167 | do | 
|  | 6168 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 6169 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 6170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6171 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6172 | if ${ac_cv_prog_READELF+:} false; then : | 
|  | 6173 | $as_echo_n "(cached) " >&6 | 
|  | 6174 | else | 
|  | 6175 | if test -n "$READELF"; then | 
|  | 6176 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | 
|  | 6177 | else | 
|  | 6178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6179 | for as_dir in $PATH | 
|  | 6180 | do | 
|  | 6181 | IFS=$as_save_IFS | 
|  | 6182 | test -z "$as_dir" && as_dir=. | 
|  | 6183 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6184 | 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] | 6185 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" | 
|  | 6186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6187 | break 2 | 
|  | 6188 | fi | 
|  | 6189 | done | 
|  | 6190 | done | 
|  | 6191 | IFS=$as_save_IFS | 
|  | 6192 |  | 
|  | 6193 | fi | 
|  | 6194 | fi | 
|  | 6195 | READELF=$ac_cv_prog_READELF | 
|  | 6196 | if test -n "$READELF"; then | 
|  | 6197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | 
|  | 6198 | $as_echo "$READELF" >&6; } | 
|  | 6199 | else | 
|  | 6200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6201 | $as_echo "no" >&6; } | 
|  | 6202 | fi | 
|  | 6203 |  | 
|  | 6204 |  | 
|  | 6205 | test -n "$READELF" && break | 
|  | 6206 | done | 
|  | 6207 | fi | 
|  | 6208 | if test -z "$READELF"; then | 
|  | 6209 | ac_ct_READELF=$READELF | 
|  | 6210 | for ac_prog in readelf | 
|  | 6211 | do | 
|  | 6212 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 6213 | set dummy $ac_prog; ac_word=$2 | 
|  | 6214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6215 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6216 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | 
|  | 6217 | $as_echo_n "(cached) " >&6 | 
|  | 6218 | else | 
|  | 6219 | if test -n "$ac_ct_READELF"; then | 
|  | 6220 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | 
|  | 6221 | else | 
|  | 6222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6223 | for as_dir in $PATH | 
|  | 6224 | do | 
|  | 6225 | IFS=$as_save_IFS | 
|  | 6226 | test -z "$as_dir" && as_dir=. | 
|  | 6227 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6228 | 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] | 6229 | ac_cv_prog_ac_ct_READELF="$ac_prog" | 
|  | 6230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6231 | break 2 | 
|  | 6232 | fi | 
|  | 6233 | done | 
|  | 6234 | done | 
|  | 6235 | IFS=$as_save_IFS | 
|  | 6236 |  | 
|  | 6237 | fi | 
|  | 6238 | fi | 
|  | 6239 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | 
|  | 6240 | if test -n "$ac_ct_READELF"; then | 
|  | 6241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | 
|  | 6242 | $as_echo "$ac_ct_READELF" >&6; } | 
|  | 6243 | else | 
|  | 6244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6245 | $as_echo "no" >&6; } | 
|  | 6246 | fi | 
|  | 6247 |  | 
|  | 6248 |  | 
|  | 6249 | test -n "$ac_ct_READELF" && break | 
|  | 6250 | done | 
|  | 6251 |  | 
|  | 6252 | if test "x$ac_ct_READELF" = x; then | 
|  | 6253 | READELF=":" | 
|  | 6254 | else | 
|  | 6255 | case $cross_compiling:$ac_tool_warned in | 
|  | 6256 | yes:) | 
|  | 6257 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6258 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 6259 | ac_tool_warned=yes ;; | 
|  | 6260 | esac | 
|  | 6261 | READELF=$ac_ct_READELF | 
|  | 6262 | fi | 
|  | 6263 | fi | 
|  | 6264 |  | 
|  | 6265 | if test "$cross_compiling" = yes; then | 
|  | 6266 | case "$READELF" in | 
|  | 6267 | readelf|:) | 
|  | 6268 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | 
|  | 6269 | ;; | 
|  | 6270 | esac | 
|  | 6271 | fi | 
|  | 6272 |  | 
|  | 6273 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6274 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6275 | case $MACHDEP in | 
|  | 6276 | bsdos*|hp*|HP*) | 
|  | 6277 | # install -d does not work on BSDI or HP-UX | 
|  | 6278 | if test -z "$INSTALL" | 
|  | 6279 | then | 
|  | 6280 | INSTALL="${srcdir}/install-sh -c" | 
|  | 6281 | fi | 
|  | 6282 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6283 | # Find a good install program.  We prefer a C program (faster), | 
|  | 6284 | # so one script is as good as another.  But avoid the broken or | 
|  | 6285 | # incompatible versions: | 
|  | 6286 | # SysV /etc/install, /usr/sbin/install | 
|  | 6287 | # SunOS /usr/etc/install | 
|  | 6288 | # IRIX /sbin/install | 
|  | 6289 | # AIX /bin/install | 
|  | 6290 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 6291 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 6292 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 6293 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 6294 | # OS/2's system install, which has a completely different semantic | 
|  | 6295 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6296 | # Reject install programs that cannot install multiple files. | 
|  | 6297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
|  | 6298 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6299 | if test -z "$INSTALL"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6300 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6301 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6302 | else | 
|  | 6303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6304 | for as_dir in $PATH | 
|  | 6305 | do | 
|  | 6306 | IFS=$as_save_IFS | 
|  | 6307 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6308 | # Account for people who put trailing slashes in PATH elements. | 
|  | 6309 | case $as_dir/ in #(( | 
|  | 6310 | ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6311 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6312 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6313 | /usr/ucb/* ) ;; | 
|  | 6314 | *) | 
|  | 6315 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 6316 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 6317 | # by default. | 
|  | 6318 | for ac_prog in ginstall scoinst install; do | 
|  | 6319 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6320 | 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] | 6321 | if test $ac_prog = install && | 
|  | 6322 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 6323 | # AIX install.  It has an incompatible calling convention. | 
|  | 6324 | : | 
|  | 6325 | elif test $ac_prog = install && | 
|  | 6326 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 6327 | # program-specific install script used by HP pwplus--don't use. | 
|  | 6328 | : | 
|  | 6329 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6330 | rm -rf conftest.one conftest.two conftest.dir | 
|  | 6331 | echo one > conftest.one | 
|  | 6332 | echo two > conftest.two | 
|  | 6333 | mkdir conftest.dir | 
|  | 6334 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
|  | 6335 | test -s conftest.one && test -s conftest.two && | 
|  | 6336 | test -s conftest.dir/conftest.one && | 
|  | 6337 | test -s conftest.dir/conftest.two | 
|  | 6338 | then | 
|  | 6339 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 6340 | break 3 | 
|  | 6341 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6342 | fi | 
|  | 6343 | fi | 
|  | 6344 | done | 
|  | 6345 | done | 
|  | 6346 | ;; | 
|  | 6347 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6348 |  | 
|  | 6349 | done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6350 | IFS=$as_save_IFS | 
|  | 6351 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6352 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6353 |  | 
|  | 6354 | fi | 
|  | 6355 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 6356 | INSTALL=$ac_cv_path_install | 
|  | 6357 | else | 
|  | 6358 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 6359 | # value for INSTALL within a source directory, because that will | 
|  | 6360 | # break other packages using the cache if that directory is | 
|  | 6361 | # removed, or if the value is a relative name. | 
|  | 6362 | INSTALL=$ac_install_sh | 
|  | 6363 | fi | 
|  | 6364 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
|  | 6366 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6367 |  | 
|  | 6368 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 6369 | # It thinks the first close brace ends the variable substitution. | 
|  | 6370 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 6371 |  | 
|  | 6372 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 6373 |  | 
|  | 6374 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 6375 |  | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
|  | 6377 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
|  | 6378 | if test -z "$MKDIR_P"; then | 
|  | 6379 | if ${ac_cv_path_mkdir+:} false; then : | 
|  | 6380 | $as_echo_n "(cached) " >&6 | 
|  | 6381 | else | 
|  | 6382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6383 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
|  | 6384 | do | 
|  | 6385 | IFS=$as_save_IFS | 
|  | 6386 | test -z "$as_dir" && as_dir=. | 
|  | 6387 | for ac_prog in mkdir gmkdir; do | 
|  | 6388 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6389 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6390 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
|  | 6391 | 'mkdir (GNU coreutils) '* | \ | 
|  | 6392 | 'mkdir (coreutils) '* | \ | 
|  | 6393 | 'mkdir (fileutils) '4.1*) | 
|  | 6394 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
|  | 6395 | break 3;; | 
|  | 6396 | esac | 
|  | 6397 | done | 
|  | 6398 | done | 
|  | 6399 | done | 
|  | 6400 | IFS=$as_save_IFS | 
|  | 6401 |  | 
|  | 6402 | fi | 
|  | 6403 |  | 
|  | 6404 | test -d ./--version && rmdir ./--version | 
|  | 6405 | if test "${ac_cv_path_mkdir+set}" = set; then | 
|  | 6406 | MKDIR_P="$ac_cv_path_mkdir -p" | 
|  | 6407 | else | 
|  | 6408 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 6409 | # value for MKDIR_P within a source directory, because that will | 
|  | 6410 | # break other packages using the cache if that directory is | 
|  | 6411 | # removed, or if the value is a relative name. | 
|  | 6412 | MKDIR_P="$ac_install_sh -d" | 
|  | 6413 | fi | 
|  | 6414 | fi | 
|  | 6415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
|  | 6416 | $as_echo "$MKDIR_P" >&6; } | 
|  | 6417 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6418 |  | 
|  | 6419 | # Not every filesystem supports hard links | 
|  | 6420 |  | 
|  | 6421 | if test -z "$LN" ; then | 
|  | 6422 | case $ac_sys_system in | 
|  | 6423 | CYGWIN*) LN="ln -s";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6424 | *) LN=ln;; | 
|  | 6425 | esac | 
|  | 6426 | fi | 
|  | 6427 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6428 | # For calculating the .so ABI tag. | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6429 |  | 
|  | 6430 | ABIFLAGS="" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6431 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6432 | # Check for --with-pydebug | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
|  | 6434 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6435 |  | 
|  | 6436 | # Check whether --with-pydebug was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6437 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6438 | withval=$with_pydebug; | 
|  | 6439 | if test "$withval" != no | 
|  | 6440 | then | 
|  | 6441 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6442 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6443 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 6445 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6446 | Py_DEBUG='true' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6447 | ABIFLAGS="${ABIFLAGS}d" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6448 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6449 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6450 | fi | 
|  | 6451 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6453 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6454 | fi | 
|  | 6455 |  | 
|  | 6456 |  | 
| T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6457 | # Check for --with-assertions. Py_DEBUG implies assertions, but also changes | 
|  | 6458 | # the ABI. This allows enabling assertions without changing the ABI. | 
|  | 6459 | assertions='false' | 
|  | 6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 | 
|  | 6461 | $as_echo_n "checking for --with-assertions... " >&6; } | 
|  | 6462 |  | 
|  | 6463 | # Check whether --with-assertions was given. | 
|  | 6464 | if test "${with_assertions+set}" = set; then : | 
|  | 6465 | withval=$with_assertions; | 
|  | 6466 | if test "$withval" != no | 
|  | 6467 | then | 
|  | 6468 | assertions='true' | 
|  | 6469 | fi | 
|  | 6470 | fi | 
|  | 6471 |  | 
|  | 6472 | if test "$assertions" = 'true'; then | 
|  | 6473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 6474 | $as_echo "yes" >&6; } | 
|  | 6475 | elif test "$Py_DEBUG" = 'true'; then | 
|  | 6476 | assertions='true' | 
|  | 6477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 | 
|  | 6478 | $as_echo "implied by --with-pydebug" >&6; } | 
|  | 6479 | else | 
|  | 6480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6481 | $as_echo "no" >&6; } | 
|  | 6482 | fi | 
|  | 6483 |  | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6484 | # Enable optimization flags | 
|  | 6485 |  | 
|  | 6486 |  | 
|  | 6487 | Py_OPT='false' | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 | 
|  | 6489 | $as_echo_n "checking for --enable-optimizations... " >&6; } | 
|  | 6490 | # Check whether --enable-optimizations was given. | 
|  | 6491 | if test "${enable_optimizations+set}" = set; then : | 
|  | 6492 | enableval=$enable_optimizations; | 
| Alex Wang | 8cea592 | 2017-03-28 08:50:51 -0400 | [diff] [blame] | 6493 | if test "$enableval" != no | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6494 | then | 
|  | 6495 | Py_OPT='true' | 
|  | 6496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 6497 | $as_echo "yes" >&6; }; | 
|  | 6498 | else | 
|  | 6499 | Py_OPT='false' | 
|  | 6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6501 | $as_echo "no" >&6; }; | 
|  | 6502 | fi | 
|  | 6503 | else | 
|  | 6504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6505 | $as_echo "no" >&6; } | 
|  | 6506 | fi | 
|  | 6507 |  | 
|  | 6508 | if test "$Py_OPT" = 'true' ; then | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 6509 | # Intentionally not forcing Py_LTO='true' here.  Too many toolchains do not | 
|  | 6510 | # compile working code using it and both test_distutils and test_gdb are | 
| Brett Cannon | 1d8f755 | 2016-11-03 16:20:00 -0700 | [diff] [blame] | 6511 | # broken when you do manage to get a toolchain that works with it.  People | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 6512 | # who want LTO need to use --with-lto themselves. | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6513 | DEF_MAKE_ALL_RULE="profile-opt" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6514 | REQUIRE_PGO="yes" | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6515 | DEF_MAKE_RULE="build_all" | 
|  | 6516 | else | 
|  | 6517 | DEF_MAKE_ALL_RULE="build_all" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6518 | REQUIRE_PGO="no" | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6519 | DEF_MAKE_RULE="all" | 
|  | 6520 | fi | 
|  | 6521 |  | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6522 | # Enable LTO flags | 
|  | 6523 |  | 
|  | 6524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 | 
|  | 6525 | $as_echo_n "checking for --with-lto... " >&6; } | 
|  | 6526 |  | 
|  | 6527 | # Check whether --with-lto was given. | 
|  | 6528 | if test "${with_lto+set}" = set; then : | 
|  | 6529 | withval=$with_lto; | 
|  | 6530 | if test "$withval" != no | 
|  | 6531 | then | 
|  | 6532 | Py_LTO='true' | 
|  | 6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 6534 | $as_echo "yes" >&6; }; | 
|  | 6535 | else | 
|  | 6536 | Py_LTO='false' | 
|  | 6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6538 | $as_echo "no" >&6; }; | 
|  | 6539 | fi | 
|  | 6540 | else | 
|  | 6541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6542 | $as_echo "no" >&6; } | 
|  | 6543 | fi | 
|  | 6544 |  | 
|  | 6545 | if test "$Py_LTO" = 'true' ; then | 
|  | 6546 | case $CC in | 
|  | 6547 | *clang*) | 
| Ned Deily | 8482ce4 | 2016-09-06 15:09:20 -0700 | [diff] [blame] | 6548 | case $ac_sys_system in | 
|  | 6549 | Darwin*) | 
|  | 6550 | # Any changes made here should be reflected in the GCC+Darwin case below | 
|  | 6551 | LTOFLAGS="-flto -Wl,-export_dynamic" | 
|  | 6552 | ;; | 
|  | 6553 | *) | 
|  | 6554 | LTOFLAGS="-flto" | 
|  | 6555 | ;; | 
|  | 6556 | esac | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6557 | ;; | 
|  | 6558 | *gcc*) | 
|  | 6559 | case $ac_sys_system in | 
|  | 6560 | Darwin*) | 
| Ned Deily | 8482ce4 | 2016-09-06 15:09:20 -0700 | [diff] [blame] | 6561 | LTOFLAGS="-flto -Wl,-export_dynamic" | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6562 | ;; | 
|  | 6563 | *) | 
|  | 6564 | LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" | 
|  | 6565 | ;; | 
|  | 6566 | esac | 
|  | 6567 | ;; | 
|  | 6568 | esac | 
|  | 6569 | fi | 
|  | 6570 |  | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6571 | # Enable PGO flags. | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6572 |  | 
|  | 6573 |  | 
|  | 6574 |  | 
|  | 6575 |  | 
|  | 6576 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6577 | # Make this work on systems where llvm tools are not installed with their | 
|  | 6578 | # normal names in the default $PATH (ie: Ubuntu).  They exist under the | 
|  | 6579 | # non-suffixed name in their versioned llvm directory. | 
|  | 6580 | llvm_bin_dir='' | 
|  | 6581 | llvm_path="${PATH}" | 
|  | 6582 | if test "${CC}" = "clang" | 
|  | 6583 | then | 
|  | 6584 | clang_bin=`which clang` | 
|  | 6585 | # Some systems install clang elsewhere as a symlink to the real path | 
|  | 6586 | # which is where the related llvm tools are located. | 
|  | 6587 | if test -L "${clang_bin}" | 
|  | 6588 | then | 
|  | 6589 | clang_dir=`dirname "${clang_bin}"` | 
|  | 6590 | clang_bin=`readlink "${clang_bin}"` | 
|  | 6591 | llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` | 
|  | 6592 | llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" | 
|  | 6593 | fi | 
|  | 6594 | fi | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6595 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | 
|  | 6597 | $as_echo_n "checking target system type... " >&6; } | 
|  | 6598 | if ${ac_cv_target+:} false; then : | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6599 | $as_echo_n "(cached) " >&6 | 
|  | 6600 | else | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6601 | if test "x$target_alias" = x; then | 
|  | 6602 | ac_cv_target=$ac_cv_host | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6603 | else | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6604 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | 
|  | 6605 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | 
|  | 6606 | fi | 
|  | 6607 |  | 
|  | 6608 | fi | 
|  | 6609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | 
|  | 6610 | $as_echo "$ac_cv_target" >&6; } | 
|  | 6611 | case $ac_cv_target in | 
|  | 6612 | *-*-*) ;; | 
|  | 6613 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | 
|  | 6614 | esac | 
|  | 6615 | target=$ac_cv_target | 
|  | 6616 | ac_save_IFS=$IFS; IFS='-' | 
|  | 6617 | set x $ac_cv_target | 
|  | 6618 | shift | 
|  | 6619 | target_cpu=$1 | 
|  | 6620 | target_vendor=$2 | 
|  | 6621 | shift; shift | 
|  | 6622 | # Remember, the first character of IFS is used to create $*, | 
|  | 6623 | # except with old shells: | 
|  | 6624 | target_os=$* | 
|  | 6625 | IFS=$ac_save_IFS | 
|  | 6626 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | 
|  | 6627 |  | 
|  | 6628 |  | 
|  | 6629 | # The aliases save the names the user supplied, while $host etc. | 
|  | 6630 | # will get canonicalized. | 
|  | 6631 | test -n "$target_alias" && | 
|  | 6632 | test "$program_prefix$program_suffix$program_transform_name" = \ | 
|  | 6633 | NONENONEs,x,x, && | 
|  | 6634 | program_prefix=${target_alias}- | 
|  | 6635 | # Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args. | 
|  | 6636 | set dummy $target_alias-llvm-profdata; ac_word=$2 | 
|  | 6637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6638 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6639 | if ${ac_cv_path_LLVM_PROFDATA+:} false; then : | 
|  | 6640 | $as_echo_n "(cached) " >&6 | 
|  | 6641 | else | 
|  | 6642 | case $LLVM_PROFDATA in | 
|  | 6643 | [\\/]* | ?:[\\/]*) | 
|  | 6644 | ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. | 
|  | 6645 | ;; | 
|  | 6646 | *) | 
|  | 6647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6648 | for as_dir in ${llvm_path} | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6649 | do | 
|  | 6650 | IFS=$as_save_IFS | 
|  | 6651 | test -z "$as_dir" && as_dir=. | 
|  | 6652 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6653 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6654 | ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6656 | break 2 | 
|  | 6657 | fi | 
|  | 6658 | done | 
|  | 6659 | done | 
|  | 6660 | IFS=$as_save_IFS | 
|  | 6661 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6662 | ;; | 
|  | 6663 | esac | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6664 | fi | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6665 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA | 
|  | 6666 | if test -n "$LLVM_PROFDATA"; then | 
|  | 6667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 | 
|  | 6668 | $as_echo "$LLVM_PROFDATA" >&6; } | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6669 | else | 
|  | 6670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6671 | $as_echo "no" >&6; } | 
|  | 6672 | fi | 
|  | 6673 |  | 
|  | 6674 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6675 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then | 
|  | 6676 | if test "$build" = "$target"; then | 
|  | 6677 | ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA | 
|  | 6678 | # Extract the first word of "llvm-profdata", so it can be a program name with args. | 
|  | 6679 | set dummy llvm-profdata; ac_word=$2 | 
|  | 6680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6681 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6682 | if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : | 
|  | 6683 | $as_echo_n "(cached) " >&6 | 
|  | 6684 | else | 
|  | 6685 | case $ac_pt_LLVM_PROFDATA in | 
|  | 6686 | [\\/]* | ?:[\\/]*) | 
|  | 6687 | ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. | 
|  | 6688 | ;; | 
|  | 6689 | *) | 
|  | 6690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6691 | for as_dir in ${llvm_path} | 
|  | 6692 | do | 
|  | 6693 | IFS=$as_save_IFS | 
|  | 6694 | test -z "$as_dir" && as_dir=. | 
|  | 6695 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6696 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 6697 | ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | 
|  | 6698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6699 | break 2 | 
|  | 6700 | fi | 
|  | 6701 | done | 
|  | 6702 | done | 
|  | 6703 | IFS=$as_save_IFS | 
|  | 6704 |  | 
|  | 6705 | test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''" | 
|  | 6706 | ;; | 
|  | 6707 | esac | 
|  | 6708 | fi | 
|  | 6709 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA | 
|  | 6710 | if test -n "$ac_pt_LLVM_PROFDATA"; then | 
|  | 6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 | 
|  | 6712 | $as_echo "$ac_pt_LLVM_PROFDATA" >&6; } | 
|  | 6713 | else | 
|  | 6714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6715 | $as_echo "no" >&6; } | 
|  | 6716 | fi | 
|  | 6717 |  | 
|  | 6718 | LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA | 
|  | 6719 | else | 
|  | 6720 | LLVM_PROFDATA="''" | 
|  | 6721 | fi | 
|  | 6722 | else | 
|  | 6723 | LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" | 
|  | 6724 | fi | 
|  | 6725 |  | 
|  | 6726 |  | 
|  | 6727 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" | 
|  | 6728 | then | 
|  | 6729 | LLVM_PROF_FOUND="found" | 
|  | 6730 | else | 
|  | 6731 | LLVM_PROF_FOUND="not-found" | 
|  | 6732 | fi | 
|  | 6733 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" | 
|  | 6734 | then | 
|  | 6735 | found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` | 
|  | 6736 | if test -n "${found_llvm_profdata}" | 
|  | 6737 | then | 
|  | 6738 | # llvm-profdata isn't directly in $PATH in some cases. | 
|  | 6739 | # https://apple.stackexchange.com/questions/197053/ | 
|  | 6740 | LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' | 
|  | 6741 | LLVM_PROF_FOUND=found | 
|  | 6742 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 | 
|  | 6743 | $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} | 
|  | 6744 | fi | 
|  | 6745 | fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6746 | LLVM_PROF_ERR=no | 
|  | 6747 | case $CC in | 
|  | 6748 | *clang*) | 
|  | 6749 | # Any changes made here should be reflected in the GCC+Darwin case below | 
|  | 6750 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
|  | 6751 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6752 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6753 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
|  | 6754 | if test $LLVM_PROF_FOUND = not-found | 
|  | 6755 | then | 
|  | 6756 | LLVM_PROF_ERR=yes | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6757 | if test "${REQUIRE_PGO}" = "yes" | 
|  | 6758 | then | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6759 | as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6760 | fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6761 | fi | 
|  | 6762 | ;; | 
|  | 6763 | *gcc*) | 
|  | 6764 | case $ac_sys_system in | 
|  | 6765 | Darwin*) | 
|  | 6766 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
|  | 6767 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6768 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6769 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6770 | if test "${LLVM_PROF_FOUND}" = "not-found" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6771 | then | 
|  | 6772 | LLVM_PROF_ERR=yes | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6773 | if test "${REQUIRE_PGO}" = "yes" | 
|  | 6774 | then | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6775 | as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6776 | fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6777 | fi | 
|  | 6778 | ;; | 
|  | 6779 | *) | 
|  | 6780 | PGO_PROF_GEN_FLAG="-fprofile-generate" | 
|  | 6781 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | 
|  | 6782 | LLVM_PROF_MERGER="true" | 
|  | 6783 | LLVM_PROF_FILE="" | 
|  | 6784 | ;; | 
|  | 6785 | esac | 
|  | 6786 | ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6787 | *icc*) | 
|  | 6788 | PGO_PROF_GEN_FLAG="-prof-gen" | 
|  | 6789 | PGO_PROF_USE_FLAG="-prof-use" | 
|  | 6790 | LLVM_PROF_MERGER="true" | 
|  | 6791 | LLVM_PROF_FILE="" | 
|  | 6792 | ;; | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6793 | esac | 
|  | 6794 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6795 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
|  | 6796 | # merged with this chunk of code? | 
|  | 6797 |  | 
|  | 6798 | # Optimizer/debugger flags | 
|  | 6799 | # ------------------------ | 
|  | 6800 | # (The following bit of code is complicated enough - please keep things | 
|  | 6801 | # indented properly.  Just pretend you're editing Python code. ;-) | 
|  | 6802 |  | 
|  | 6803 | # There are two parallel sets of case statements below, one that checks to | 
|  | 6804 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
|  | 6805 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
|  | 6806 | # user set OPT. | 
|  | 6807 |  | 
|  | 6808 | # tweak OPT based on compiler and platform, only if the user didn't set | 
|  | 6809 | # it on the command line | 
|  | 6810 |  | 
| Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 6811 |  | 
| Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6812 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6813 | then | 
|  | 6814 | case $GCC in | 
|  | 6815 | yes) | 
|  | 6816 | if test "$CC" != 'g++' ; then | 
|  | 6817 | STRICT_PROTO="-Wstrict-prototypes" | 
|  | 6818 | fi | 
|  | 6819 | # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
|  | 6820 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
|  | 6821 | WRAP="-fwrapv" | 
|  | 6822 | fi | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6823 |  | 
| Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6824 | case $CC in | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6825 | *clang*) | 
| Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6826 | cc_is_clang=1 | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6827 | ;; | 
| Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6828 | *) | 
|  | 6829 | if $CC --version 2>&1 | grep -q clang | 
|  | 6830 | then | 
|  | 6831 | cc_is_clang=1 | 
|  | 6832 | else | 
|  | 6833 | cc_is_clang= | 
|  | 6834 | fi | 
| Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6835 | esac | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6836 |  | 
| Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6837 | if test -n "${cc_is_clang}" | 
|  | 6838 | then | 
|  | 6839 | # Clang also needs -fwrapv | 
|  | 6840 | WRAP="-fwrapv" | 
| Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 6841 | # bpo-30104: disable strict aliasing to compile correctly dtoa.c, | 
|  | 6842 | # see Makefile.pre.in for more information | 
| Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 6843 | CFLAGS_ALIASING="-fno-strict-aliasing" | 
| Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6844 | fi | 
|  | 6845 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6846 | case $ac_cv_prog_cc_g in | 
|  | 6847 | yes) | 
|  | 6848 | if test "$Py_DEBUG" = 'true' ; then | 
|  | 6849 | # Optimization messes up debuggers, so turn it off for | 
|  | 6850 | # debug builds. | 
| Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6851 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6852 | OPT="-g -Og -Wall" | 
| Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6853 | else | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6854 | OPT="-g -O0 -Wall" | 
| Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6855 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6856 | else | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6857 | OPT="-g $WRAP -O3 -Wall" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6858 | fi | 
|  | 6859 | ;; | 
|  | 6860 | *) | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6861 | OPT="-O3 -Wall" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6862 | ;; | 
|  | 6863 | esac | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6864 |  | 
| Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 6865 | OPT="$OPT $STRICT_PROTO" | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6866 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6867 | case $ac_sys_system in | 
|  | 6868 | SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
|  | 6869 | ;; | 
|  | 6870 | esac | 
|  | 6871 | ;; | 
|  | 6872 |  | 
|  | 6873 | *) | 
|  | 6874 | OPT="-O" | 
|  | 6875 | ;; | 
|  | 6876 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6877 | fi | 
|  | 6878 |  | 
|  | 6879 |  | 
|  | 6880 |  | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6881 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6882 | # The -arch flags for universal builds on OSX | 
|  | 6883 | UNIVERSAL_ARCH_FLAGS= | 
|  | 6884 |  | 
|  | 6885 |  | 
|  | 6886 | # tweak BASECFLAGS based on compiler and platform | 
|  | 6887 | case $GCC in | 
|  | 6888 | yes) | 
| Benjamin Peterson | 050af5d | 2016-09-10 17:53:13 -0700 | [diff] [blame] | 6889 | CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" | 
| Benjamin Peterson | d170256 | 2016-09-07 12:00:06 -0700 | [diff] [blame] | 6890 |  | 
| Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 6891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 | 
|  | 6892 | $as_echo_n "checking for -Wextra... " >&6; } | 
|  | 6893 | ac_save_cc="$CC" | 
|  | 6894 | CC="$CC -Wextra -Werror" | 
|  | 6895 | if ${ac_cv_extra_warnings+:} false; then : | 
|  | 6896 | $as_echo_n "(cached) " >&6 | 
|  | 6897 | else | 
|  | 6898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6899 | /* end confdefs.h.  */ | 
|  | 6900 |  | 
|  | 6901 |  | 
|  | 6902 | int | 
|  | 6903 | main () | 
|  | 6904 | { | 
|  | 6905 |  | 
|  | 6906 | ; | 
|  | 6907 | return 0; | 
|  | 6908 | } | 
|  | 6909 |  | 
|  | 6910 | _ACEOF | 
|  | 6911 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 6912 |  | 
|  | 6913 | ac_cv_extra_warnings=yes | 
|  | 6914 |  | 
|  | 6915 | else | 
|  | 6916 |  | 
|  | 6917 | ac_cv_extra_warnings=no | 
|  | 6918 |  | 
|  | 6919 | fi | 
|  | 6920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6921 | fi | 
|  | 6922 |  | 
|  | 6923 | CC="$ac_save_cc" | 
|  | 6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 | 
|  | 6925 | $as_echo "$ac_cv_extra_warnings" >&6; } | 
|  | 6926 |  | 
|  | 6927 | if test $ac_cv_extra_warnings = yes | 
|  | 6928 | then | 
|  | 6929 | CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" | 
|  | 6930 | fi | 
|  | 6931 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6932 | # Python doesn't violate C99 aliasing rules, but older versions of | 
|  | 6933 | # GCC produce warnings for legal Python code.  Enable | 
|  | 6934 | # -fno-strict-aliasing on versions of GCC that support but produce | 
|  | 6935 | # warnings.  See Issue3326 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 | 
|  | 6937 | $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] | 6938 | ac_save_cc="$CC" | 
|  | 6939 | CC="$CC -fno-strict-aliasing" | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6940 | save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6941 | if ${ac_cv_no_strict_aliasing+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6942 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6943 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6945 | /* end confdefs.h.  */ | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6946 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6947 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6948 | int | 
|  | 6949 | main () | 
|  | 6950 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6951 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6952 | ; | 
|  | 6953 | return 0; | 
|  | 6954 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6955 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6956 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6957 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6958 |  | 
|  | 6959 | CC="$ac_save_cc -fstrict-aliasing" | 
|  | 6960 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | 
|  | 6961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6962 | /* end confdefs.h.  */ | 
|  | 6963 |  | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6964 | void f(int **x) {} | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6965 | int | 
|  | 6966 | main () | 
|  | 6967 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6968 | double *x; f((int **) &x); | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6969 | ; | 
|  | 6970 | return 0; | 
|  | 6971 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6972 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6973 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6974 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6975 |  | 
|  | 6976 | ac_cv_no_strict_aliasing=no | 
|  | 6977 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6978 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6979 |  | 
|  | 6980 | ac_cv_no_strict_aliasing=yes | 
|  | 6981 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6982 | fi | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6984 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6985 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6986 |  | 
|  | 6987 | ac_cv_no_strict_aliasing=no | 
|  | 6988 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6989 | fi | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6991 | fi | 
|  | 6992 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6993 | CFLAGS="$save_CFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6994 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 | 
|  | 6996 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6997 | if test $ac_cv_no_strict_aliasing = yes | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6998 | then | 
|  | 6999 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
|  | 7000 | fi | 
|  | 7001 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7002 | # ICC doesn't recognize the option, but only emits a warning | 
|  | 7003 | ## XXX does it emit an unused result warning and can it be disabled? | 
|  | 7004 | case "$CC" in | 
|  | 7005 | *icc*) | 
|  | 7006 | ac_cv_disable_unused_result_warning=no | 
|  | 7007 | ;; | 
|  | 7008 | *) | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 | 
|  | 7010 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | 
|  | 7011 | ac_save_cc="$CC" | 
|  | 7012 | CC="$CC -Wunused-result -Werror" | 
|  | 7013 | save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7014 | if ${ac_cv_disable_unused_result_warning+:} false; then : | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7015 | $as_echo_n "(cached) " >&6 | 
|  | 7016 | else | 
|  | 7017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7018 | /* end confdefs.h.  */ | 
|  | 7019 |  | 
|  | 7020 |  | 
|  | 7021 | int | 
|  | 7022 | main () | 
|  | 7023 | { | 
|  | 7024 |  | 
|  | 7025 | ; | 
|  | 7026 | return 0; | 
|  | 7027 | } | 
|  | 7028 |  | 
|  | 7029 | _ACEOF | 
|  | 7030 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7031 |  | 
|  | 7032 | ac_cv_disable_unused_result_warning=yes | 
|  | 7033 |  | 
|  | 7034 | else | 
|  | 7035 |  | 
|  | 7036 | ac_cv_disable_unused_result_warning=no | 
|  | 7037 |  | 
|  | 7038 | fi | 
|  | 7039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7040 | fi | 
|  | 7041 |  | 
|  | 7042 | CFLAGS="$save_CFLAGS" | 
|  | 7043 | CC="$ac_save_cc" | 
|  | 7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 | 
|  | 7045 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7046 | ;; | 
|  | 7047 | esac | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7048 |  | 
|  | 7049 | if test $ac_cv_disable_unused_result_warning = yes | 
|  | 7050 | then | 
|  | 7051 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" | 
| Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 7052 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" | 
|  | 7053 | fi | 
|  | 7054 |  | 
|  | 7055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 | 
|  | 7056 | $as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } | 
|  | 7057 | ac_save_cc="$CC" | 
|  | 7058 | CC="$CC -Wunused-parameter -Werror" | 
|  | 7059 | if ${ac_cv_disable_unused_parameter_warning+:} false; then : | 
|  | 7060 | $as_echo_n "(cached) " >&6 | 
|  | 7061 | else | 
|  | 7062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7063 | /* end confdefs.h.  */ | 
|  | 7064 |  | 
|  | 7065 |  | 
|  | 7066 | int | 
|  | 7067 | main () | 
|  | 7068 | { | 
|  | 7069 |  | 
|  | 7070 | ; | 
|  | 7071 | return 0; | 
|  | 7072 | } | 
|  | 7073 |  | 
|  | 7074 | _ACEOF | 
|  | 7075 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7076 |  | 
|  | 7077 | ac_cv_disable_unused_parameter_warning=yes | 
|  | 7078 |  | 
|  | 7079 | else | 
|  | 7080 |  | 
|  | 7081 | ac_cv_disable_unused_parameter_warning=no | 
|  | 7082 |  | 
|  | 7083 | fi | 
|  | 7084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7085 | fi | 
|  | 7086 |  | 
|  | 7087 | CC="$ac_save_cc" | 
|  | 7088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 | 
|  | 7089 | $as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } | 
|  | 7090 |  | 
|  | 7091 | if test $ac_cv_disable_unused_parameter_warning = yes | 
|  | 7092 | then | 
|  | 7093 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" | 
|  | 7094 | fi | 
|  | 7095 |  | 
|  | 7096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 | 
|  | 7097 | $as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } | 
|  | 7098 | ac_save_cc="$CC" | 
|  | 7099 | CC="$CC -Wmissing-field-initializers -Werror" | 
|  | 7100 | if ${ac_cv_disable_missing_field_initializers+:} false; then : | 
|  | 7101 | $as_echo_n "(cached) " >&6 | 
|  | 7102 | else | 
|  | 7103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7104 | /* end confdefs.h.  */ | 
|  | 7105 |  | 
|  | 7106 |  | 
|  | 7107 | int | 
|  | 7108 | main () | 
|  | 7109 | { | 
|  | 7110 |  | 
|  | 7111 | ; | 
|  | 7112 | return 0; | 
|  | 7113 | } | 
|  | 7114 |  | 
|  | 7115 | _ACEOF | 
|  | 7116 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7117 |  | 
|  | 7118 | ac_cv_disable_missing_field_initializers=yes | 
|  | 7119 |  | 
|  | 7120 | else | 
|  | 7121 |  | 
|  | 7122 | ac_cv_disable_missing_field_initializers=no | 
|  | 7123 |  | 
|  | 7124 | fi | 
|  | 7125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7126 | fi | 
|  | 7127 |  | 
|  | 7128 | CC="$ac_save_cc" | 
|  | 7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 | 
|  | 7130 | $as_echo "$ac_cv_disable_missing_field_initializers" >&6; } | 
|  | 7131 |  | 
|  | 7132 | if test $ac_cv_disable_missing_field_initializers = yes | 
|  | 7133 | then | 
|  | 7134 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7135 | fi | 
|  | 7136 |  | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 | 
|  | 7138 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } | 
|  | 7139 | ac_save_cc="$CC" | 
|  | 7140 | CC="$CC -Wsign-compare" | 
|  | 7141 | save_CFLAGS="$CFLAGS" | 
|  | 7142 | if ${ac_cv_enable_sign_compare_warning+:} false; then : | 
|  | 7143 | $as_echo_n "(cached) " >&6 | 
|  | 7144 | else | 
|  | 7145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7146 | /* end confdefs.h.  */ | 
|  | 7147 |  | 
|  | 7148 |  | 
|  | 7149 | int | 
|  | 7150 | main () | 
|  | 7151 | { | 
|  | 7152 |  | 
|  | 7153 | ; | 
|  | 7154 | return 0; | 
|  | 7155 | } | 
|  | 7156 |  | 
|  | 7157 | _ACEOF | 
|  | 7158 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7159 |  | 
|  | 7160 | ac_cv_enable_sign_compare_warning=yes | 
|  | 7161 |  | 
|  | 7162 | else | 
|  | 7163 |  | 
|  | 7164 | ac_cv_enable_sign_compare_warning=no | 
|  | 7165 |  | 
|  | 7166 | fi | 
|  | 7167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7168 | fi | 
|  | 7169 |  | 
|  | 7170 | CFLAGS="$save_CFLAGS" | 
|  | 7171 | CC="$ac_save_cc" | 
|  | 7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 | 
|  | 7173 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } | 
|  | 7174 |  | 
|  | 7175 | if test $ac_cv_enable_sign_compare_warning = yes | 
|  | 7176 | then | 
|  | 7177 | BASECFLAGS="$BASECFLAGS -Wsign-compare" | 
|  | 7178 | fi | 
|  | 7179 |  | 
|  | 7180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 | 
|  | 7181 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } | 
|  | 7182 | ac_save_cc="$CC" | 
|  | 7183 | CC="$CC -Wunreachable-code" | 
|  | 7184 | save_CFLAGS="$CFLAGS" | 
|  | 7185 | if ${ac_cv_enable_unreachable_code_warning+:} false; then : | 
|  | 7186 | $as_echo_n "(cached) " >&6 | 
|  | 7187 | else | 
|  | 7188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7189 | /* end confdefs.h.  */ | 
|  | 7190 |  | 
|  | 7191 |  | 
|  | 7192 | int | 
|  | 7193 | main () | 
|  | 7194 | { | 
|  | 7195 |  | 
|  | 7196 | ; | 
|  | 7197 | return 0; | 
|  | 7198 | } | 
|  | 7199 |  | 
|  | 7200 | _ACEOF | 
|  | 7201 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7202 |  | 
|  | 7203 | ac_cv_enable_unreachable_code_warning=yes | 
|  | 7204 |  | 
|  | 7205 | else | 
|  | 7206 |  | 
|  | 7207 | ac_cv_enable_unreachable_code_warning=no | 
|  | 7208 |  | 
|  | 7209 | fi | 
|  | 7210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7211 | fi | 
|  | 7212 |  | 
|  | 7213 | CFLAGS="$save_CFLAGS" | 
|  | 7214 | CC="$ac_save_cc" | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7215 |  | 
|  | 7216 | # Don't enable unreachable code warning in debug mode, since it usually | 
|  | 7217 | # results in non-standard code paths. | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7218 | # Issue #24324: Unfortunately, the unreachable code warning does not work | 
|  | 7219 | # correctly on gcc and has been silently removed from the compiler. | 
|  | 7220 | # It is supported on clang but on OS X systems gcc may be an alias | 
|  | 7221 | # for clang.  Try to determine if the compiler is not really gcc and, | 
|  | 7222 | # if so, only then enable the warning. | 
|  | 7223 | if test $ac_cv_enable_unreachable_code_warning = yes && \ | 
|  | 7224 | test "$Py_DEBUG" != "true" && \ | 
|  | 7225 | 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] | 7226 | then | 
|  | 7227 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7228 | else | 
|  | 7229 | ac_cv_enable_unreachable_code_warning=no | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7230 | fi | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 | 
|  | 7232 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7233 |  | 
| Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 | 
|  | 7235 | $as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; } | 
|  | 7236 | ac_save_cc="$CC" | 
|  | 7237 | CC="$CC -Werror=implicit-function-declaration" | 
|  | 7238 | if ${ac_cv_enable_implicit_function_declaration_error+:} false; then : | 
|  | 7239 | $as_echo_n "(cached) " >&6 | 
|  | 7240 | else | 
|  | 7241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7242 | /* end confdefs.h.  */ | 
|  | 7243 |  | 
|  | 7244 |  | 
|  | 7245 | int | 
|  | 7246 | main () | 
|  | 7247 | { | 
|  | 7248 |  | 
|  | 7249 | ; | 
|  | 7250 | return 0; | 
|  | 7251 | } | 
|  | 7252 |  | 
|  | 7253 | _ACEOF | 
|  | 7254 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7255 |  | 
|  | 7256 | ac_cv_enable_implicit_function_declaration_error=yes | 
|  | 7257 |  | 
|  | 7258 | else | 
|  | 7259 |  | 
|  | 7260 | ac_cv_enable_implicit_function_declaration_error=no | 
|  | 7261 |  | 
|  | 7262 | fi | 
|  | 7263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7264 | fi | 
|  | 7265 |  | 
|  | 7266 | CC="$ac_save_cc" | 
|  | 7267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 | 
|  | 7268 | $as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; } | 
|  | 7269 |  | 
|  | 7270 | if test $ac_cv_enable_implicit_function_declaration_error = yes | 
|  | 7271 | then | 
|  | 7272 | CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" | 
|  | 7273 | fi | 
|  | 7274 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7275 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
|  | 7276 | # support.  Without this, treatment of subnormals doesn't follow | 
|  | 7277 | # the standard. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 7278 | case $host in | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7279 | alpha*) | 
|  | 7280 | BASECFLAGS="$BASECFLAGS -mieee" | 
|  | 7281 | ;; | 
|  | 7282 | esac | 
|  | 7283 |  | 
|  | 7284 | case $ac_sys_system in | 
|  | 7285 | SCO_SV*) | 
|  | 7286 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
|  | 7287 | ;; | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7288 |  | 
|  | 7289 | # is there any other compiler on Darwin besides gcc? | 
|  | 7290 | Darwin*) | 
|  | 7291 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
|  | 7292 | # used to be here, but non-Apple gcc doesn't accept them. | 
|  | 7293 | if test "${CC}" = gcc | 
|  | 7294 | then | 
|  | 7295 | { $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] | 7296 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7297 | case "${UNIVERSALSDK}" in | 
|  | 7298 | */MacOSX10.4u.sdk) | 
|  | 7299 | # Build using 10.4 SDK, force usage of gcc when the | 
|  | 7300 | # compiler is gcc, otherwise the user will get very | 
|  | 7301 | # confusing error messages when building on OSX 10.6 | 
|  | 7302 | CC=gcc-4.0 | 
|  | 7303 | CPP=cpp-4.0 | 
|  | 7304 | ;; | 
|  | 7305 | esac | 
|  | 7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7307 | $as_echo "$CC" >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7308 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7309 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7310 | if test "${enable_universalsdk}" | 
|  | 7311 | then | 
|  | 7312 | case "$UNIVERSAL_ARCHS" in | 
|  | 7313 | 32-bit) | 
|  | 7314 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
|  | 7315 | LIPO_32BIT_FLAGS="" | 
|  | 7316 | ARCH_RUN_32BIT="" | 
|  | 7317 | ;; | 
|  | 7318 | 64-bit) | 
|  | 7319 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
|  | 7320 | LIPO_32BIT_FLAGS="" | 
|  | 7321 | ARCH_RUN_32BIT="true" | 
|  | 7322 | ;; | 
|  | 7323 | all) | 
|  | 7324 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
|  | 7325 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
|  | 7326 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
|  | 7327 | ;; | 
|  | 7328 | intel) | 
|  | 7329 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
|  | 7330 | LIPO_32BIT_FLAGS="-extract i386" | 
|  | 7331 | ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
|  | 7332 | ;; | 
|  | 7333 | intel-32) | 
|  | 7334 | UNIVERSAL_ARCH_FLAGS="-arch i386" | 
|  | 7335 | LIPO_32BIT_FLAGS="" | 
|  | 7336 | ARCH_RUN_32BIT="" | 
|  | 7337 | ;; | 
|  | 7338 | 3-way) | 
|  | 7339 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
|  | 7340 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
|  | 7341 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
|  | 7342 | ;; | 
|  | 7343 | *) | 
|  | 7344 | as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
|  | 7345 | ;; | 
|  | 7346 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7347 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7348 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
|  | 7349 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
|  | 7350 | if test "${UNIVERSALSDK}" != "/" | 
|  | 7351 | then | 
|  | 7352 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
|  | 7353 | fi | 
|  | 7354 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7355 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7356 | # Calculate an appropriate deployment target for this build: | 
|  | 7357 | # The deployment target value is used explicitly to enable certain | 
|  | 7358 | # features are enabled (such as builtin libedit support for readline) | 
| Raymond Hettinger | 15f44ab | 2016-08-30 10:47:49 -0700 | [diff] [blame] | 7359 | # 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] | 7360 | # component of the string returned by distutils.get_platform(). | 
|  | 7361 | # | 
|  | 7362 | # Use the value from: | 
|  | 7363 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | 
|  | 7364 | # 2. the operating system version of the build machine if >= 10.6 | 
|  | 7365 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests | 
|  | 7366 | #       below to pick either 10.3, 10.4, or 10.5 as the target. | 
|  | 7367 | # 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] | 7368 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 | 
|  | 7370 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7371 | cur_target_major=`sw_vers -productVersion | \ | 
|  | 7372 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
|  | 7373 | cur_target_minor=`sw_vers -productVersion | \ | 
|  | 7374 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
|  | 7375 | cur_target="${cur_target_major}.${cur_target_minor}" | 
|  | 7376 | if test ${cur_target_major} -eq 10 && \ | 
|  | 7377 | test ${cur_target_minor} -ge 3 && \ | 
|  | 7378 | test ${cur_target_minor} -le 5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7379 | then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7380 | # OS X 10.3 through 10.5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7381 | cur_target=10.3 | 
|  | 7382 | if test ${enable_universalsdk} | 
|  | 7383 | then | 
|  | 7384 | case "$UNIVERSAL_ARCHS" in | 
|  | 7385 | all|3-way|intel|64-bit) | 
|  | 7386 | # These configurations were first supported in 10.5 | 
|  | 7387 | cur_target='10.5' | 
|  | 7388 | ;; | 
|  | 7389 | esac | 
|  | 7390 | else | 
|  | 7391 | if test `/usr/bin/arch` = "i386" | 
|  | 7392 | then | 
|  | 7393 | # 10.4 was the first release to support Intel archs | 
|  | 7394 | cur_target="10.4" | 
|  | 7395 | fi | 
|  | 7396 | fi | 
|  | 7397 | fi | 
|  | 7398 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7399 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7400 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
|  | 7401 | # environment with a value that is the same as what we'll use | 
|  | 7402 | # in the Makefile to ensure that we'll get the same compiler | 
|  | 7403 | # environment during configure and build time. | 
|  | 7404 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
|  | 7405 | export MACOSX_DEPLOYMENT_TARGET | 
|  | 7406 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
|  | 7407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 | 
|  | 7408 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7409 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7410 | # end of Darwin* tests | 
|  | 7411 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7412 | esac | 
|  | 7413 | ;; | 
|  | 7414 |  | 
|  | 7415 | *) | 
|  | 7416 | case $ac_sys_system in | 
|  | 7417 | OpenUNIX*|UnixWare*) | 
|  | 7418 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
|  | 7419 | ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7420 | SCO_SV*) | 
|  | 7421 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
|  | 7422 | ;; | 
|  | 7423 | esac | 
|  | 7424 | ;; | 
|  | 7425 | esac | 
|  | 7426 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7427 | # ICC needs -fp-model strict or floats behave badly | 
|  | 7428 | case "$CC" in | 
|  | 7429 | *icc*) | 
|  | 7430 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" | 
|  | 7431 | ;; | 
|  | 7432 | esac | 
|  | 7433 |  | 
| T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 7434 | if test "$assertions" = 'true'; then | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7435 | : | 
|  | 7436 | else | 
|  | 7437 | OPT="-DNDEBUG $OPT" | 
|  | 7438 | fi | 
|  | 7439 |  | 
|  | 7440 | if test "$ac_arch_flags" | 
|  | 7441 | then | 
|  | 7442 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
|  | 7443 | fi | 
|  | 7444 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7445 | # On some compilers, pthreads are available without further options | 
|  | 7446 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
|  | 7447 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
|  | 7448 | # So we have to see first whether pthreads are available without | 
|  | 7449 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
|  | 7451 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7452 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7453 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7454 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7455 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7456 | ac_cv_pthread_is_default=no | 
|  | 7457 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7459 | /* end confdefs.h.  */ | 
|  | 7460 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7461 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7462 | #include <pthread.h> | 
|  | 7463 |  | 
|  | 7464 | void* routine(void* p){return NULL;} | 
|  | 7465 |  | 
|  | 7466 | int main(){ | 
|  | 7467 | pthread_t p; | 
|  | 7468 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7469 | return 1; | 
|  | 7470 | (void)pthread_detach(p); | 
|  | 7471 | return 0; | 
|  | 7472 | } | 
|  | 7473 |  | 
|  | 7474 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7475 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7476 |  | 
|  | 7477 | ac_cv_pthread_is_default=yes | 
|  | 7478 | ac_cv_kthread=no | 
|  | 7479 | ac_cv_pthread=no | 
|  | 7480 |  | 
|  | 7481 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7482 | ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7483 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7484 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7485 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7486 | fi | 
|  | 7487 |  | 
|  | 7488 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7489 | fi | 
|  | 7490 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
|  | 7492 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7493 |  | 
|  | 7494 |  | 
|  | 7495 | if test $ac_cv_pthread_is_default = yes | 
|  | 7496 | then | 
|  | 7497 | ac_cv_kpthread=no | 
|  | 7498 | else | 
|  | 7499 | # -Kpthread, if available, provides the right #defines | 
|  | 7500 | # and linker options to make pthread_create available | 
|  | 7501 | # Some compilers won't report that they do not support -Kpthread, | 
|  | 7502 | # so we need to run a program to see whether it really made the | 
|  | 7503 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
|  | 7505 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7506 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7507 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7508 | else | 
|  | 7509 | ac_save_cc="$CC" | 
|  | 7510 | CC="$CC -Kpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7511 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7512 | ac_cv_kpthread=no | 
|  | 7513 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7515 | /* end confdefs.h.  */ | 
|  | 7516 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7517 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7518 | #include <pthread.h> | 
|  | 7519 |  | 
|  | 7520 | void* routine(void* p){return NULL;} | 
|  | 7521 |  | 
|  | 7522 | int main(){ | 
|  | 7523 | pthread_t p; | 
|  | 7524 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7525 | return 1; | 
|  | 7526 | (void)pthread_detach(p); | 
|  | 7527 | return 0; | 
|  | 7528 | } | 
|  | 7529 |  | 
|  | 7530 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7531 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7532 | ac_cv_kpthread=yes | 
|  | 7533 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7534 | ac_cv_kpthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7535 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7536 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7537 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7538 | fi | 
|  | 7539 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7540 | CC="$ac_save_cc" | 
|  | 7541 | fi | 
|  | 7542 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
|  | 7544 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7545 | fi | 
|  | 7546 |  | 
|  | 7547 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
|  | 7548 | then | 
|  | 7549 | # -Kthread, if available, provides the right #defines | 
|  | 7550 | # and linker options to make pthread_create available | 
|  | 7551 | # Some compilers won't report that they do not support -Kthread, | 
|  | 7552 | # so we need to run a program to see whether it really made the | 
|  | 7553 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
|  | 7555 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7556 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7557 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7558 | else | 
|  | 7559 | ac_save_cc="$CC" | 
|  | 7560 | CC="$CC -Kthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7561 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7562 | ac_cv_kthread=no | 
|  | 7563 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7565 | /* end confdefs.h.  */ | 
|  | 7566 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7567 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7568 | #include <pthread.h> | 
|  | 7569 |  | 
|  | 7570 | void* routine(void* p){return NULL;} | 
|  | 7571 |  | 
|  | 7572 | int main(){ | 
|  | 7573 | pthread_t p; | 
|  | 7574 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7575 | return 1; | 
|  | 7576 | (void)pthread_detach(p); | 
|  | 7577 | return 0; | 
|  | 7578 | } | 
|  | 7579 |  | 
|  | 7580 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7581 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7582 | ac_cv_kthread=yes | 
|  | 7583 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7584 | ac_cv_kthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7585 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7586 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7587 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7588 | fi | 
|  | 7589 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7590 | CC="$ac_save_cc" | 
|  | 7591 | fi | 
|  | 7592 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
|  | 7594 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7595 | fi | 
|  | 7596 |  | 
|  | 7597 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
|  | 7598 | then | 
|  | 7599 | # -pthread, if available, provides the right #defines | 
|  | 7600 | # and linker options to make pthread_create available | 
|  | 7601 | # Some compilers won't report that they do not support -pthread, | 
|  | 7602 | # so we need to run a program to see whether it really made the | 
|  | 7603 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
|  | 7605 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 7606 | if ${ac_cv_pthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7607 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7608 | else | 
|  | 7609 | ac_save_cc="$CC" | 
|  | 7610 | CC="$CC -pthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7611 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7612 | ac_cv_pthread=no | 
|  | 7613 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7615 | /* end confdefs.h.  */ | 
|  | 7616 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7617 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7618 | #include <pthread.h> | 
|  | 7619 |  | 
|  | 7620 | void* routine(void* p){return NULL;} | 
|  | 7621 |  | 
|  | 7622 | int main(){ | 
|  | 7623 | pthread_t p; | 
|  | 7624 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 7625 | return 1; | 
|  | 7626 | (void)pthread_detach(p); | 
|  | 7627 | return 0; | 
|  | 7628 | } | 
|  | 7629 |  | 
|  | 7630 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7631 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7632 | ac_cv_pthread=yes | 
|  | 7633 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7634 | ac_cv_pthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7635 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7636 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7637 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7638 | fi | 
|  | 7639 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7640 | CC="$ac_save_cc" | 
|  | 7641 | fi | 
|  | 7642 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
|  | 7644 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7645 | fi | 
|  | 7646 |  | 
|  | 7647 | # If we have set a CC compiler flag for thread support then | 
|  | 7648 | # check if it works for CXX, too. | 
|  | 7649 | ac_cv_cxx_thread=no | 
|  | 7650 | if test ! -z "$CXX" | 
|  | 7651 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
|  | 7653 | $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] | 7654 | ac_save_cxx="$CXX" | 
|  | 7655 |  | 
|  | 7656 | if test "$ac_cv_kpthread" = "yes" | 
|  | 7657 | then | 
|  | 7658 | CXX="$CXX -Kpthread" | 
|  | 7659 | ac_cv_cxx_thread=yes | 
|  | 7660 | elif test "$ac_cv_kthread" = "yes" | 
|  | 7661 | then | 
|  | 7662 | CXX="$CXX -Kthread" | 
|  | 7663 | ac_cv_cxx_thread=yes | 
|  | 7664 | elif test "$ac_cv_pthread" = "yes" | 
|  | 7665 | then | 
|  | 7666 | CXX="$CXX -pthread" | 
|  | 7667 | ac_cv_cxx_thread=yes | 
|  | 7668 | fi | 
|  | 7669 |  | 
|  | 7670 | if test $ac_cv_cxx_thread = yes | 
|  | 7671 | then | 
|  | 7672 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
|  | 7673 | $CXX -c conftest.$ac_ext 2>&5 | 
|  | 7674 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
|  | 7675 | && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
|  | 7676 | then | 
|  | 7677 | ac_cv_cxx_thread=yes | 
|  | 7678 | else | 
|  | 7679 | ac_cv_cxx_thread=no | 
|  | 7680 | fi | 
|  | 7681 | rm -fr conftest* | 
|  | 7682 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
|  | 7684 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7685 | fi | 
|  | 7686 | CXX="$ac_save_cxx" | 
|  | 7687 |  | 
|  | 7688 |  | 
|  | 7689 | # checks for header files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 7691 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7692 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7693 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7694 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7696 | /* end confdefs.h.  */ | 
|  | 7697 | #include <stdlib.h> | 
|  | 7698 | #include <stdarg.h> | 
|  | 7699 | #include <string.h> | 
|  | 7700 | #include <float.h> | 
|  | 7701 |  | 
|  | 7702 | int | 
|  | 7703 | main () | 
|  | 7704 | { | 
|  | 7705 |  | 
|  | 7706 | ; | 
|  | 7707 | return 0; | 
|  | 7708 | } | 
|  | 7709 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7710 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7711 | ac_cv_header_stdc=yes | 
|  | 7712 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7713 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7714 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7716 |  | 
|  | 7717 | if test $ac_cv_header_stdc = yes; then | 
|  | 7718 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7720 | /* end confdefs.h.  */ | 
|  | 7721 | #include <string.h> | 
|  | 7722 |  | 
|  | 7723 | _ACEOF | 
|  | 7724 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7725 | $EGREP "memchr" >/dev/null 2>&1; then : | 
|  | 7726 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7727 | else | 
|  | 7728 | ac_cv_header_stdc=no | 
|  | 7729 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7730 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7731 |  | 
|  | 7732 | fi | 
|  | 7733 |  | 
|  | 7734 | if test $ac_cv_header_stdc = yes; then | 
|  | 7735 | # 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] | 7736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7737 | /* end confdefs.h.  */ | 
|  | 7738 | #include <stdlib.h> | 
|  | 7739 |  | 
|  | 7740 | _ACEOF | 
|  | 7741 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7742 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 7743 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7744 | else | 
|  | 7745 | ac_cv_header_stdc=no | 
|  | 7746 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7747 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7748 |  | 
|  | 7749 | fi | 
|  | 7750 |  | 
|  | 7751 | if test $ac_cv_header_stdc = yes; then | 
|  | 7752 | # /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] | 7753 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7754 | : | 
|  | 7755 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7757 | /* end confdefs.h.  */ | 
|  | 7758 | #include <ctype.h> | 
|  | 7759 | #include <stdlib.h> | 
|  | 7760 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 7761 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 7762 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 7763 | #else | 
|  | 7764 | # define ISLOWER(c) \ | 
|  | 7765 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 7766 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 7767 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 7768 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 7769 | #endif | 
|  | 7770 |  | 
|  | 7771 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 7772 | int | 
|  | 7773 | main () | 
|  | 7774 | { | 
|  | 7775 | int i; | 
|  | 7776 | for (i = 0; i < 256; i++) | 
|  | 7777 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 7778 | || toupper (i) != TOUPPER (i)) | 
|  | 7779 | return 2; | 
|  | 7780 | return 0; | 
|  | 7781 | } | 
|  | 7782 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7783 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 7784 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7785 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7786 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7787 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7788 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7789 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7790 | fi | 
|  | 7791 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7792 | fi | 
|  | 7793 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 7795 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7796 | if test $ac_cv_header_stdc = yes; then | 
|  | 7797 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7798 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7799 |  | 
|  | 7800 | fi | 
|  | 7801 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7802 | 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] | 7803 | fcntl.h grp.h \ | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7804 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ | 
| Benjamin Peterson | 4fe5510 | 2016-09-06 11:58:01 -0700 | [diff] [blame] | 7805 | sched.h shadow.h signal.h stropts.h termios.h \ | 
| Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 7806 | unistd.h utime.h \ | 
| Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7807 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ | 
| Antoine Pitrou | bcf2b59 | 2012-02-08 23:28:36 +0100 | [diff] [blame] | 7808 | 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] | 7809 | sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ | 
| Benjamin Peterson | fb2ae15 | 2016-12-19 23:54:25 -0800 | [diff] [blame] | 7810 | sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ | 
| Martin v. Löwis | 9d6c669 | 2012-02-03 17:44:58 +0100 | [diff] [blame] | 7811 | 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] | 7812 | 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] | 7813 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 7814 | 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] | 7815 | sys/endian.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7816 | do : | 
|  | 7817 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 7818 | 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] | 7819 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7820 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7821 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7822 | _ACEOF | 
|  | 7823 |  | 
|  | 7824 | fi | 
|  | 7825 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7826 | done | 
|  | 7827 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7828 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7829 | 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] | 7830 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 7831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
|  | 7832 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7833 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7834 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7835 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7837 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7838 | #include <sys/types.h> | 
|  | 7839 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7840 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7841 | int | 
|  | 7842 | main () | 
|  | 7843 | { | 
|  | 7844 | if ((DIR *) 0) | 
|  | 7845 | return 0; | 
|  | 7846 | ; | 
|  | 7847 | return 0; | 
|  | 7848 | } | 
|  | 7849 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7850 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7851 | eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7852 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7853 | eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7854 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7856 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7857 | eval ac_res=\$$as_ac_Header | 
|  | 7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 7859 | $as_echo "$ac_res" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7860 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7861 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7862 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7863 | _ACEOF | 
|  | 7864 |  | 
|  | 7865 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7866 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7867 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7868 | done | 
|  | 7869 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 7870 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 7872 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7873 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7874 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7875 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7876 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7878 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7879 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7880 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7881 | Use char because int might match the return type of a GCC | 
|  | 7882 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7883 | #ifdef __cplusplus | 
|  | 7884 | extern "C" | 
|  | 7885 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7886 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7887 | int | 
|  | 7888 | main () | 
|  | 7889 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7890 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7891 | ; | 
|  | 7892 | return 0; | 
|  | 7893 | } | 
|  | 7894 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7895 | for ac_lib in '' dir; do | 
|  | 7896 | if test -z "$ac_lib"; then | 
|  | 7897 | ac_res="none required" | 
|  | 7898 | else | 
|  | 7899 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7900 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7901 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7902 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7903 | ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7904 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7905 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7906 | conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7907 | if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7908 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7909 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7910 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7911 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7912 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7913 | else | 
|  | 7914 | ac_cv_search_opendir=no | 
|  | 7915 | fi | 
|  | 7916 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7917 | LIBS=$ac_func_search_save_LIBS | 
|  | 7918 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 7920 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7921 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7922 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7923 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7924 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7925 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7926 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7927 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 7929 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7930 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7931 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7932 | else | 
|  | 7933 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7935 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7936 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7937 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7938 | Use char because int might match the return type of a GCC | 
|  | 7939 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7940 | #ifdef __cplusplus | 
|  | 7941 | extern "C" | 
|  | 7942 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7943 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7944 | int | 
|  | 7945 | main () | 
|  | 7946 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7947 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7948 | ; | 
|  | 7949 | return 0; | 
|  | 7950 | } | 
|  | 7951 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7952 | for ac_lib in '' x; do | 
|  | 7953 | if test -z "$ac_lib"; then | 
|  | 7954 | ac_res="none required" | 
|  | 7955 | else | 
|  | 7956 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7957 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7958 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7959 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7960 | ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7961 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7962 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7963 | conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7964 | if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7965 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7966 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7967 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7968 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7969 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7970 | else | 
|  | 7971 | ac_cv_search_opendir=no | 
|  | 7972 | fi | 
|  | 7973 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7974 | LIBS=$ac_func_search_save_LIBS | 
|  | 7975 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 7977 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7978 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7979 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7980 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7981 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7982 | fi | 
|  | 7983 |  | 
|  | 7984 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7985 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
|  | 7987 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7988 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7989 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7990 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7992 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7993 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7994 | int | 
|  | 7995 | main () | 
|  | 7996 | { | 
|  | 7997 | return makedev(0, 0); | 
|  | 7998 | ; | 
|  | 7999 | return 0; | 
|  | 8000 | } | 
|  | 8001 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8002 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8003 | ac_cv_header_sys_types_h_makedev=yes | 
|  | 8004 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8005 | ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8006 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8007 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8008 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8009 |  | 
|  | 8010 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
|  | 8012 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8013 |  | 
|  | 8014 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8015 | 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] | 8016 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8017 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8018 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8019 |  | 
|  | 8020 | fi | 
|  | 8021 |  | 
|  | 8022 |  | 
|  | 8023 |  | 
|  | 8024 | if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8025 | 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] | 8026 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8027 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8028 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 8029 |  | 
|  | 8030 | fi | 
|  | 8031 |  | 
|  | 8032 |  | 
|  | 8033 | fi | 
|  | 8034 | fi | 
|  | 8035 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8036 |  | 
| Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 8037 | # bluetooth/bluetooth.h has been known to not compile with -std=c99. | 
|  | 8038 | # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 | 
|  | 8039 | SAVE_CFLAGS=$CFLAGS | 
|  | 8040 | CFLAGS="-std=c99 $CFLAGS" | 
|  | 8041 | for ac_header in bluetooth/bluetooth.h | 
|  | 8042 | do : | 
|  | 8043 | ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" | 
|  | 8044 | if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : | 
|  | 8045 | cat >>confdefs.h <<_ACEOF | 
|  | 8046 | #define HAVE_BLUETOOTH_BLUETOOTH_H 1 | 
|  | 8047 | _ACEOF | 
|  | 8048 |  | 
|  | 8049 | fi | 
|  | 8050 |  | 
|  | 8051 | done | 
|  | 8052 |  | 
|  | 8053 | CFLAGS=$SAVE_CFLAGS | 
|  | 8054 |  | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8055 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. | 
|  | 8056 | for ac_header in net/if.h | 
|  | 8057 | do : | 
|  | 8058 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | 
|  | 8059 | #ifdef STDC_HEADERS | 
|  | 8060 | # include <stdlib.h> | 
|  | 8061 | # include <stddef.h> | 
|  | 8062 | #else | 
|  | 8063 | # ifdef HAVE_STDLIB_H | 
|  | 8064 | #  include <stdlib.h> | 
|  | 8065 | # endif | 
|  | 8066 | #endif | 
|  | 8067 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 8068 | # include <sys/socket.h> | 
|  | 8069 | #endif | 
|  | 8070 |  | 
|  | 8071 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8072 | if test "x$ac_cv_header_net_if_h" = xyes; then : | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 8073 | cat >>confdefs.h <<_ACEOF | 
|  | 8074 | #define HAVE_NET_IF_H 1 | 
|  | 8075 | _ACEOF | 
|  | 8076 |  | 
|  | 8077 | fi | 
|  | 8078 |  | 
|  | 8079 | done | 
|  | 8080 |  | 
|  | 8081 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8082 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8083 | for ac_header in linux/netlink.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8084 | do : | 
|  | 8085 | 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] | 8086 | #ifdef HAVE_ASM_TYPES_H | 
|  | 8087 | #include <asm/types.h> | 
|  | 8088 | #endif | 
|  | 8089 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 8090 | #include <sys/socket.h> | 
|  | 8091 | #endif | 
|  | 8092 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8093 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8094 | 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] | 8095 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8096 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 8097 | _ACEOF | 
|  | 8098 |  | 
|  | 8099 | fi | 
|  | 8100 |  | 
|  | 8101 | done | 
|  | 8102 |  | 
|  | 8103 |  | 
| Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 8104 | # 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] | 8105 | 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] | 8106 | do : | 
|  | 8107 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 8108 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | 
|  | 8109 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 8110 | #include <sys/socket.h> | 
|  | 8111 | #endif | 
|  | 8112 |  | 
|  | 8113 | " | 
|  | 8114 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
|  | 8115 | cat >>confdefs.h <<_ACEOF | 
|  | 8116 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 8117 | _ACEOF | 
|  | 8118 |  | 
|  | 8119 | fi | 
|  | 8120 |  | 
|  | 8121 | done | 
|  | 8122 |  | 
|  | 8123 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8124 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8125 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
|  | 8127 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
|  | 8128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8129 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8130 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8131 |  | 
|  | 8132 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8133 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8134 | $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8135 | was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8136 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8137 |  | 
|  | 8138 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8139 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8140 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8141 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8142 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8143 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8144 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 8146 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8147 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
|  | 8149 | $as_echo_n "checking for makedev... " >&6; } | 
|  | 8150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8151 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8152 |  | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8153 | #if defined(MAJOR_IN_MKDEV) | 
|  | 8154 | #include <sys/mkdev.h> | 
|  | 8155 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 8156 | #include <sys/sysmacros.h> | 
|  | 8157 | #else | 
|  | 8158 | #include <sys/types.h> | 
|  | 8159 | #endif | 
|  | 8160 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8161 | int | 
|  | 8162 | main () | 
|  | 8163 | { | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8164 |  | 
|  | 8165 | makedev(0, 0) | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8166 | ; | 
|  | 8167 | return 0; | 
|  | 8168 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8169 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8170 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8171 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8172 | ac_cv_has_makedev=yes | 
|  | 8173 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8174 | ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8175 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8176 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8177 | conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
|  | 8179 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8180 | if test "$ac_cv_has_makedev" = "yes"; then | 
|  | 8181 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8182 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8183 |  | 
|  | 8184 | fi | 
|  | 8185 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8186 | # byte swapping | 
|  | 8187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 | 
|  | 8188 | $as_echo_n "checking for le64toh... " >&6; } | 
|  | 8189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8190 | /* end confdefs.h.  */ | 
|  | 8191 |  | 
|  | 8192 | #ifdef HAVE_ENDIAN_H | 
|  | 8193 | #include <endian.h> | 
|  | 8194 | #elif defined(HAVE_SYS_ENDIAN_H) | 
|  | 8195 | #include <sys/endian.h> | 
|  | 8196 | #endif | 
|  | 8197 |  | 
|  | 8198 | int | 
|  | 8199 | main () | 
|  | 8200 | { | 
|  | 8201 |  | 
|  | 8202 | le64toh(1) | 
|  | 8203 | ; | 
|  | 8204 | return 0; | 
|  | 8205 | } | 
|  | 8206 |  | 
|  | 8207 | _ACEOF | 
|  | 8208 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 8209 | ac_cv_has_le64toh=yes | 
|  | 8210 | else | 
|  | 8211 | ac_cv_has_le64toh=no | 
|  | 8212 | fi | 
|  | 8213 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8214 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 | 
|  | 8216 | $as_echo "$ac_cv_has_le64toh" >&6; } | 
|  | 8217 | if test "$ac_cv_has_le64toh" = "yes"; then | 
|  | 8218 |  | 
|  | 8219 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h | 
|  | 8220 |  | 
|  | 8221 | fi | 
|  | 8222 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8223 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
|  | 8224 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
|  | 8225 | # defined, but the compiler does not support pragma redefine_extname, | 
|  | 8226 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
|  | 8227 | # structures (such as rlimit64) without declaring them. As a | 
|  | 8228 | # work-around, disable LFS on such configurations | 
|  | 8229 |  | 
|  | 8230 | use_lfs=yes | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
|  | 8232 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
|  | 8233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8234 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8235 |  | 
|  | 8236 | #define _LARGEFILE_SOURCE 1 | 
|  | 8237 | #define _FILE_OFFSET_BITS 64 | 
|  | 8238 | #include <sys/resource.h> | 
|  | 8239 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8240 | int | 
|  | 8241 | main () | 
|  | 8242 | { | 
|  | 8243 | struct rlimit foo; | 
|  | 8244 | ; | 
|  | 8245 | return 0; | 
|  | 8246 | } | 
|  | 8247 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8248 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8249 | sol_lfs_bug=no | 
|  | 8250 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8251 | sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8252 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
|  | 8255 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8256 | if test "$sol_lfs_bug" = "yes"; then | 
|  | 8257 | use_lfs=no | 
|  | 8258 | fi | 
|  | 8259 |  | 
| doko@ubuntu.com | 006a56c | 2016-06-14 10:15:25 +0200 | [diff] [blame] | 8260 | # Don't use largefile support for GNU/Hurd | 
|  | 8261 | case $ac_sys_system in GNU*) | 
|  | 8262 | use_lfs=no | 
|  | 8263 | esac | 
|  | 8264 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8265 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8266 | # Two defines needed to enable largefile support on various platforms | 
|  | 8267 | # These may affect some typedefs | 
| Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 8268 | case $ac_sys_system/$ac_sys_release in | 
|  | 8269 | AIX*) | 
|  | 8270 |  | 
|  | 8271 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
|  | 8272 |  | 
|  | 8273 | ;; | 
|  | 8274 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8275 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8276 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8277 |  | 
|  | 8278 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8279 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8280 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8281 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8282 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8283 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
|  | 8284 | cat >> confdefs.h <<\EOF | 
|  | 8285 | #if defined(SCO_DS) | 
|  | 8286 | #undef _OFF_T | 
|  | 8287 | #endif | 
|  | 8288 | EOF | 
|  | 8289 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8290 | # Type availability checks | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8291 | 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] | 8292 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8293 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8294 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8295 |  | 
|  | 8296 | cat >>confdefs.h <<_ACEOF | 
|  | 8297 | #define mode_t int | 
|  | 8298 | _ACEOF | 
|  | 8299 |  | 
|  | 8300 | fi | 
|  | 8301 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8302 | 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] | 8303 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8304 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8305 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8306 |  | 
|  | 8307 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8308 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8309 | _ACEOF | 
|  | 8310 |  | 
|  | 8311 | fi | 
|  | 8312 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8313 | 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] | 8314 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8315 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8316 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8317 |  | 
|  | 8318 | cat >>confdefs.h <<_ACEOF | 
|  | 8319 | #define pid_t int | 
|  | 8320 | _ACEOF | 
|  | 8321 |  | 
|  | 8322 | fi | 
|  | 8323 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8324 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8325 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 8326 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8327 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8328 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8329 | 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] | 8330 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8331 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8332 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8333 |  | 
|  | 8334 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8335 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8336 | _ACEOF | 
|  | 8337 |  | 
|  | 8338 | fi | 
|  | 8339 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
|  | 8341 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8342 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8343 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8344 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8346 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8347 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8348 |  | 
|  | 8349 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8350 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8351 | $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8352 | ac_cv_type_uid_t=yes | 
|  | 8353 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8354 | ac_cv_type_uid_t=no | 
|  | 8355 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8356 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8357 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8358 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
|  | 8360 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8361 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8362 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8363 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8364 |  | 
|  | 8365 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8366 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8367 |  | 
|  | 8368 | fi | 
|  | 8369 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8370 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8371 | 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] | 8372 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8373 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8374 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8375 |  | 
|  | 8376 | fi | 
|  | 8377 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8378 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" | 
|  | 8379 | if test "x$ac_cv_type___uint128_t" = xyes; then : | 
|  | 8380 |  | 
|  | 8381 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h | 
|  | 8382 |  | 
|  | 8383 | fi | 
|  | 8384 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8385 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8386 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8387 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8388 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8389 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8390 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8391 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
|  | 8393 | $as_echo_n "checking size of int... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8394 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8395 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8396 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8397 | 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] | 8398 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8399 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8400 | if test "$ac_cv_type_int" = yes; then | 
|  | 8401 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8402 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8403 | as_fn_error 77 "cannot compute sizeof (int) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8404 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8405 | else | 
|  | 8406 | ac_cv_sizeof_int=0 | 
|  | 8407 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8408 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8409 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8410 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
|  | 8412 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8413 |  | 
|  | 8414 |  | 
|  | 8415 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8416 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8417 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8418 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8419 |  | 
|  | 8420 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8421 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8422 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8423 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8424 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
|  | 8426 | $as_echo_n "checking size of long... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8427 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8428 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8429 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8430 | 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] | 8431 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8432 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8433 | if test "$ac_cv_type_long" = yes; then | 
|  | 8434 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8435 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8436 | as_fn_error 77 "cannot compute sizeof (long) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8437 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8438 | else | 
|  | 8439 | ac_cv_sizeof_long=0 | 
|  | 8440 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8441 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8442 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8443 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
|  | 8445 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8446 |  | 
|  | 8447 |  | 
|  | 8448 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8449 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8450 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8451 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8452 |  | 
|  | 8453 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8454 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8455 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8456 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8457 | # This bug is HP SR number 8606223364. | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
|  | 8459 | $as_echo_n "checking size of long long... " >&6; } | 
|  | 8460 | if ${ac_cv_sizeof_long_long+:} false; then : | 
|  | 8461 | $as_echo_n "(cached) " >&6 | 
|  | 8462 | else | 
|  | 8463 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then : | 
|  | 8464 |  | 
|  | 8465 | else | 
|  | 8466 | if test "$ac_cv_type_long_long" = yes; then | 
|  | 8467 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8468 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 8469 | as_fn_error 77 "cannot compute sizeof (long long) | 
|  | 8470 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 8471 | else | 
|  | 8472 | ac_cv_sizeof_long_long=0 | 
|  | 8473 | fi | 
|  | 8474 | fi | 
|  | 8475 |  | 
|  | 8476 | fi | 
|  | 8477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
|  | 8478 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
|  | 8479 |  | 
|  | 8480 |  | 
|  | 8481 |  | 
|  | 8482 | cat >>confdefs.h <<_ACEOF | 
|  | 8483 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
|  | 8484 | _ACEOF | 
|  | 8485 |  | 
|  | 8486 |  | 
|  | 8487 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8488 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8489 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8490 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
|  | 8492 | $as_echo_n "checking size of void *... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8493 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8494 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8495 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8496 | 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] | 8497 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8498 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8499 | if test "$ac_cv_type_void_p" = yes; then | 
|  | 8500 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8501 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8502 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8503 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8504 | else | 
|  | 8505 | ac_cv_sizeof_void_p=0 | 
|  | 8506 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8507 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8508 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8509 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
|  | 8511 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8512 |  | 
|  | 8513 |  | 
|  | 8514 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8515 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8516 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8517 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8518 |  | 
|  | 8519 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8520 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8521 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8522 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8523 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
|  | 8525 | $as_echo_n "checking size of short... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8526 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8527 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8528 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8529 | 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] | 8530 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8531 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8532 | if test "$ac_cv_type_short" = yes; then | 
|  | 8533 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8534 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8535 | as_fn_error 77 "cannot compute sizeof (short) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8536 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8537 | else | 
|  | 8538 | ac_cv_sizeof_short=0 | 
|  | 8539 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8540 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8541 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8542 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
|  | 8544 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8545 |  | 
|  | 8546 |  | 
|  | 8547 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8548 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8549 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8550 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8551 |  | 
|  | 8552 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8553 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8554 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8555 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8556 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
|  | 8558 | $as_echo_n "checking size of float... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8559 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8560 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8561 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8562 | 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] | 8563 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8564 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8565 | if test "$ac_cv_type_float" = yes; then | 
|  | 8566 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8567 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8568 | as_fn_error 77 "cannot compute sizeof (float) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8569 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8570 | else | 
|  | 8571 | ac_cv_sizeof_float=0 | 
|  | 8572 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8573 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8574 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8575 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
|  | 8577 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8578 |  | 
|  | 8579 |  | 
|  | 8580 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8581 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8582 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8583 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8584 |  | 
|  | 8585 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8586 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8587 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8588 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8589 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
|  | 8591 | $as_echo_n "checking size of double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8592 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8593 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8594 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8595 | 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] | 8596 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8597 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8598 | if test "$ac_cv_type_double" = yes; then | 
|  | 8599 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8600 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8601 | as_fn_error 77 "cannot compute sizeof (double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8602 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8603 | else | 
|  | 8604 | ac_cv_sizeof_double=0 | 
|  | 8605 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8606 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8607 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8608 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
|  | 8610 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8611 |  | 
|  | 8612 |  | 
|  | 8613 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8614 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8615 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8616 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8617 |  | 
|  | 8618 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8619 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8620 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8621 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8622 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
|  | 8624 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8625 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8626 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8627 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8628 | 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] | 8629 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8630 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8631 | if test "$ac_cv_type_fpos_t" = yes; then | 
|  | 8632 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8633 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8634 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8635 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8636 | else | 
|  | 8637 | ac_cv_sizeof_fpos_t=0 | 
|  | 8638 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8639 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8640 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8641 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
|  | 8643 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8644 |  | 
|  | 8645 |  | 
|  | 8646 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8647 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8648 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8649 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8650 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8651 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8652 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8653 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8654 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8655 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
|  | 8657 | $as_echo_n "checking size of size_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8658 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8659 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8660 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8661 | 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] | 8662 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8663 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8664 | if test "$ac_cv_type_size_t" = yes; then | 
|  | 8665 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8666 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8667 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8668 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8669 | else | 
|  | 8670 | ac_cv_sizeof_size_t=0 | 
|  | 8671 | fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8672 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8673 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8674 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
|  | 8676 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8677 |  | 
|  | 8678 |  | 
|  | 8679 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8680 | cat >>confdefs.h <<_ACEOF | 
|  | 8681 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
|  | 8682 | _ACEOF | 
|  | 8683 |  | 
|  | 8684 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8685 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8686 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8687 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8688 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
|  | 8690 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8691 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8692 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8693 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8694 | 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] | 8695 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8696 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8697 | if test "$ac_cv_type_pid_t" = yes; then | 
|  | 8698 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8699 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8700 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8701 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8702 | else | 
|  | 8703 | ac_cv_sizeof_pid_t=0 | 
|  | 8704 | fi | 
|  | 8705 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8706 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8707 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
|  | 8709 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8710 |  | 
|  | 8711 |  | 
|  | 8712 |  | 
|  | 8713 | cat >>confdefs.h <<_ACEOF | 
|  | 8714 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
|  | 8715 | _ACEOF | 
|  | 8716 |  | 
|  | 8717 |  | 
| Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 8718 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8719 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8720 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8721 | # This bug is HP SR number 8606223364. | 
|  | 8722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
|  | 8723 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
|  | 8724 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
|  | 8725 | $as_echo_n "(cached) " >&6 | 
|  | 8726 | else | 
|  | 8727 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t"        "$ac_includes_default"; then : | 
|  | 8728 |  | 
|  | 8729 | else | 
|  | 8730 | if test "$ac_cv_type_uintptr_t" = yes; then | 
|  | 8731 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8732 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 8733 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
|  | 8734 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 8735 | else | 
|  | 8736 | ac_cv_sizeof_uintptr_t=0 | 
|  | 8737 | fi | 
|  | 8738 | fi | 
|  | 8739 |  | 
|  | 8740 | fi | 
|  | 8741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
|  | 8742 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
|  | 8743 |  | 
|  | 8744 |  | 
|  | 8745 |  | 
|  | 8746 | cat >>confdefs.h <<_ACEOF | 
|  | 8747 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
|  | 8748 | _ACEOF | 
|  | 8749 |  | 
|  | 8750 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8751 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
|  | 8753 | $as_echo_n "checking for long double support... " >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8754 | have_long_double=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8756 | /* end confdefs.h.  */ | 
|  | 8757 |  | 
|  | 8758 | int | 
|  | 8759 | main () | 
|  | 8760 | { | 
|  | 8761 | long double x; x = (long double)0; | 
|  | 8762 | ; | 
|  | 8763 | return 0; | 
|  | 8764 | } | 
|  | 8765 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8766 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8767 |  | 
|  | 8768 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8769 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8770 |  | 
|  | 8771 | have_long_double=yes | 
|  | 8772 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8773 | fi | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
|  | 8776 | $as_echo "$have_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8777 | if test "$have_long_double" = yes ; then | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8778 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8779 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8780 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8781 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
|  | 8783 | $as_echo_n "checking size of long double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8784 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8785 | $as_echo_n "(cached) " >&6 | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8786 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8787 | 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] | 8788 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8789 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8790 | if test "$ac_cv_type_long_double" = yes; then | 
|  | 8791 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8792 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8793 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8794 | See \`config.log' for more details" "$LINENO" 5; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8795 | else | 
|  | 8796 | ac_cv_sizeof_long_double=0 | 
|  | 8797 | fi | 
|  | 8798 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8799 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8800 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
|  | 8802 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8803 |  | 
|  | 8804 |  | 
|  | 8805 |  | 
|  | 8806 | cat >>confdefs.h <<_ACEOF | 
|  | 8807 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
|  | 8808 | _ACEOF | 
|  | 8809 |  | 
|  | 8810 |  | 
|  | 8811 | fi | 
|  | 8812 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8813 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8814 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8815 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8816 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
|  | 8818 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8819 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8820 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8821 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8822 | 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] | 8823 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8824 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8825 | if test "$ac_cv_type__Bool" = yes; then | 
|  | 8826 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8827 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8828 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8829 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8830 | else | 
|  | 8831 | ac_cv_sizeof__Bool=0 | 
|  | 8832 | fi | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8833 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8834 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8835 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
|  | 8837 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8838 |  | 
|  | 8839 |  | 
|  | 8840 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8841 | cat >>confdefs.h <<_ACEOF | 
|  | 8842 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
|  | 8843 | _ACEOF | 
|  | 8844 |  | 
|  | 8845 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8846 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8847 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8848 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8849 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8850 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
|  | 8852 | $as_echo_n "checking size of off_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8853 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8854 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8855 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8856 | 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] | 8857 | #ifdef HAVE_SYS_TYPES_H | 
|  | 8858 | #include <sys/types.h> | 
|  | 8859 | #endif | 
|  | 8860 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8861 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8862 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8863 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8864 | if test "$ac_cv_type_off_t" = yes; then | 
|  | 8865 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8866 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8867 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8868 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8869 | else | 
|  | 8870 | ac_cv_sizeof_off_t=0 | 
|  | 8871 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8872 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8873 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8874 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
|  | 8876 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8877 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8878 |  | 
|  | 8879 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8880 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8881 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8882 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8883 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8884 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8885 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
|  | 8887 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8888 | 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] | 8889 | "$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] | 8890 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8891 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 8894 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8895 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8897 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8898 | fi | 
|  | 8899 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8900 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 8901 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8902 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8903 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
|  | 8905 | $as_echo_n "checking size of time_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8906 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8907 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8908 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8909 | 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] | 8910 | #ifdef HAVE_SYS_TYPES_H | 
|  | 8911 | #include <sys/types.h> | 
|  | 8912 | #endif | 
|  | 8913 | #ifdef HAVE_TIME_H | 
|  | 8914 | #include <time.h> | 
|  | 8915 | #endif | 
|  | 8916 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8917 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8918 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8919 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8920 | if test "$ac_cv_type_time_t" = yes; then | 
|  | 8921 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8922 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8923 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8924 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8925 | else | 
|  | 8926 | ac_cv_sizeof_time_t=0 | 
|  | 8927 | fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8928 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8929 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8930 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
|  | 8932 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8933 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8934 |  | 
|  | 8935 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8936 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8937 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8938 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8939 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8940 |  | 
|  | 8941 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8942 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8943 | ac_save_cc="$CC" | 
|  | 8944 | if test "$ac_cv_kpthread" = "yes" | 
|  | 8945 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8946 | elif test "$ac_cv_kthread" = "yes" | 
|  | 8947 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8948 | elif test "$ac_cv_pthread" = "yes" | 
|  | 8949 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8950 | fi | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8951 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
|  | 8953 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8954 | have_pthread_t=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8956 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8957 |  | 
|  | 8958 | #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8959 | int | 
|  | 8960 | main () | 
|  | 8961 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8962 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8963 | ; | 
|  | 8964 | return 0; | 
|  | 8965 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8966 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8967 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8968 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8969 | have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8970 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
|  | 8973 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8974 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8975 | # 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] | 8976 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 8977 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 8978 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
|  | 8980 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8981 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8982 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8983 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8984 | 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] | 8985 | #ifdef HAVE_PTHREAD_H | 
|  | 8986 | #include <pthread.h> | 
|  | 8987 | #endif | 
|  | 8988 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8989 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8990 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8991 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8992 | if test "$ac_cv_type_pthread_t" = yes; then | 
|  | 8993 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 8994 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8995 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8996 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8997 | else | 
|  | 8998 | ac_cv_sizeof_pthread_t=0 | 
|  | 8999 | fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9000 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9001 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9002 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
|  | 9004 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9005 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9006 |  | 
|  | 9007 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9008 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9009 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9010 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9011 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 9012 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9013 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9014 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9015 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9016 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9017 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9018 | Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9019 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
|  | 9020 | ;; | 
|  | 9021 | Darwin/*) | 
|  | 9022 | OTHER_LIBTOOL_OPT="" | 
|  | 9023 | ;; | 
|  | 9024 | esac | 
|  | 9025 |  | 
|  | 9026 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9027 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9028 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9029 | Darwin/[01567]\..*) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9030 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
|  | 9031 | if test "${enable_universalsdk}"; then | 
|  | 9032 | : | 
|  | 9033 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9034 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9035 | fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9036 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9037 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9038 | Darwin/*) | 
| Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 9039 | gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 9040 | if test ${gcc_version} '<' 4.0 | 
|  | 9041 | then | 
|  | 9042 | LIBTOOL_CRUFT="-lcc_dynamic" | 
|  | 9043 | else | 
|  | 9044 | LIBTOOL_CRUFT="" | 
|  | 9045 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9046 | if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9047 | ac_osx_32bit=yes | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9048 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9050 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9051 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9052 | #include <unistd.h> | 
|  | 9053 | int main(int argc, char*argv[]) | 
|  | 9054 | { | 
|  | 9055 | if (sizeof(long) == 4) { | 
|  | 9056 | return 0; | 
|  | 9057 | } else { | 
|  | 9058 | return 1; | 
|  | 9059 | } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9060 | } | 
|  | 9061 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9062 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9063 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9064 | ac_osx_32bit=yes | 
|  | 9065 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9066 | ac_osx_32bit=no | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9067 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9068 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9069 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9070 | fi | 
|  | 9071 |  | 
|  | 9072 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9073 | if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9074 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9075 | i386) | 
|  | 9076 | MACOSX_DEFAULT_ARCH="i386" | 
|  | 9077 | ;; | 
|  | 9078 | ppc) | 
|  | 9079 | MACOSX_DEFAULT_ARCH="ppc" | 
|  | 9080 | ;; | 
|  | 9081 | *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9082 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9083 | ;; | 
|  | 9084 | esac | 
|  | 9085 | else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9086 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9087 | i386) | 
|  | 9088 | MACOSX_DEFAULT_ARCH="x86_64" | 
|  | 9089 | ;; | 
|  | 9090 | ppc) | 
|  | 9091 | MACOSX_DEFAULT_ARCH="ppc64" | 
|  | 9092 | ;; | 
|  | 9093 | *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9094 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9095 | ;; | 
|  | 9096 | esac | 
|  | 9097 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9098 | fi | 
|  | 9099 |  | 
|  | 9100 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9101 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9102 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9103 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
|  | 9105 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9106 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9107 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9108 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9109 | # -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9110 | # in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9111 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9112 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9115 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9116 | if test $enable_shared = "yes" | 
|  | 9117 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9118 | 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] | 9119 | fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9120 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9122 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9123 | fi | 
|  | 9124 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
|  | 9126 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9127 | case $ac_sys_system/$ac_sys_release in | 
|  | 9128 | Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9129 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9130 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9131 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
|  | 9133 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9134 | ;; | 
|  | 9135 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9137 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9138 | ;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9139 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9140 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9141 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9142 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9143 |  | 
|  | 9144 |  | 
|  | 9145 |  | 
|  | 9146 |  | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9147 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9148 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9149 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) | 
|  | 9150 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
|  | 9151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 | 
|  | 9152 | $as_echo_n "checking the extension of shared libraries... " >&6; } | 
|  | 9153 | if test -z "$SHLIB_SUFFIX"; then | 
|  | 9154 | case $ac_sys_system in | 
|  | 9155 | hp*|HP*) | 
|  | 9156 | case `uname -m` in | 
|  | 9157 | ia64) SHLIB_SUFFIX=.so;; | 
|  | 9158 | *)    SHLIB_SUFFIX=.sl;; | 
|  | 9159 | esac | 
|  | 9160 | ;; | 
|  | 9161 | CYGWIN*)   SHLIB_SUFFIX=.dll;; | 
|  | 9162 | *)	   SHLIB_SUFFIX=.so;; | 
|  | 9163 | esac | 
|  | 9164 | fi | 
|  | 9165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 | 
|  | 9166 | $as_echo "$SHLIB_SUFFIX" >&6; } | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9167 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9168 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 9169 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9170 | # (Shared libraries in this instance are shared modules to be loaded into | 
|  | 9171 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
|  | 9173 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9174 | if test -z "$LDSHARED" | 
|  | 9175 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9176 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9177 | AIX*) | 
| Martin Panter | 395733d | 2016-11-20 07:56:37 +0000 | [diff] [blame] | 9178 | BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" | 
| Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 9179 | LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9180 | ;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9181 | IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9182 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9183 | SunOS/5*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9184 | if test "$GCC" = "yes" ; then | 
|  | 9185 | LDSHARED='$(CC) -shared' | 
|  | 9186 | LDCXXSHARED='$(CXX) -shared' | 
|  | 9187 | else | 
|  | 9188 | LDSHARED='$(CC) -G' | 
|  | 9189 | LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9190 | fi ;; | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9191 | hp*|HP*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9192 | if test "$GCC" = "yes" ; then | 
|  | 9193 | LDSHARED='$(CC) -shared' | 
|  | 9194 | LDCXXSHARED='$(CXX) -shared' | 
|  | 9195 | else | 
|  | 9196 | LDSHARED='ld -b' | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9197 | fi ;; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9198 | Darwin/1.3*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9199 | LDSHARED='$(CC) -bundle' | 
|  | 9200 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9201 | if test "$enable_framework" ; then | 
|  | 9202 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9203 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 9204 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9205 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9206 | else | 
|  | 9207 | # No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9208 | LDSHARED="$LDSHARED -undefined suppress" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9209 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9210 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9211 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9212 | LDSHARED='$(CC) -bundle' | 
|  | 9213 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9214 | if test "$enable_framework" ; then | 
|  | 9215 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9216 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 9217 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9218 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9219 | else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9220 | # No framework, use the Python app as bundle-loader | 
|  | 9221 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9222 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9223 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9224 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9225 | Darwin/*) | 
|  | 9226 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
|  | 9227 | # This allows an extension to be used in any Python | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 9228 |  | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9229 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
|  | 9230 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
|  | 9231 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
|  | 9232 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
|  | 9233 | if test ${dep_target_major} -eq 10 && \ | 
|  | 9234 | test ${dep_target_minor} -le 2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9235 | then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9236 | # building for OS X 10.0 through 10.2 | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9237 | LDSHARED='$(CC) -bundle' | 
|  | 9238 | LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9239 | if test "$enable_framework" ; then | 
|  | 9240 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9241 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 9242 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9243 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9244 | else | 
|  | 9245 | # No framework, use the Python app as bundle-loader | 
|  | 9246 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
|  | 9247 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9248 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9249 | fi | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9250 | else | 
|  | 9251 | # building for OS X 10.3 and later | 
|  | 9252 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
|  | 9253 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
|  | 9254 | BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9255 | fi | 
|  | 9256 | ;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9257 | Linux*|GNU*|QNX*) | 
|  | 9258 | LDSHARED='$(CC) -shared' | 
|  | 9259 | LDCXXSHARED='$(CXX) -shared';; | 
|  | 9260 | BSD/OS*/4*) | 
|  | 9261 | LDSHARED="gcc -shared" | 
|  | 9262 | LDCXXSHARED="g++ -shared";; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9263 | FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9264 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9265 | then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9266 | LDSHARED='$(CC) -shared' | 
|  | 9267 | LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9268 | else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9269 | LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9270 | fi;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9271 | OpenBSD*) | 
|  | 9272 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 9273 | then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9274 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 9275 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9276 | else | 
|  | 9277 | case `uname -r` in | 
|  | 9278 | [01].* | 2.[0-7] | 2.[0-7].*) | 
|  | 9279 | LDSHARED="ld -Bshareable ${LDFLAGS}" | 
|  | 9280 | ;; | 
|  | 9281 | *) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9282 | LDSHARED='$(CC) -shared $(CCSHARED)' | 
|  | 9283 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9284 | ;; | 
|  | 9285 | esac | 
|  | 9286 | fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9287 | NetBSD*|DragonFly*) | 
| Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 9288 | LDSHARED='$(CC) -shared' | 
|  | 9289 | LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9290 | OpenUNIX*|UnixWare*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9291 | if test "$GCC" = "yes" ; then | 
|  | 9292 | LDSHARED='$(CC) -shared' | 
|  | 9293 | LDCXXSHARED='$(CXX) -shared' | 
|  | 9294 | else | 
|  | 9295 | LDSHARED='$(CC) -G' | 
|  | 9296 | LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9297 | fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9298 | SCO_SV*) | 
|  | 9299 | LDSHARED='$(CC) -Wl,-G,-Bexport' | 
|  | 9300 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
|  | 9301 | CYGWIN*) | 
|  | 9302 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
|  | 9303 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9304 | *)	LDSHARED="ld";; | 
|  | 9305 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9306 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
|  | 9308 | $as_echo "$LDSHARED" >&6; } | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9309 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9310 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9311 | # 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] | 9312 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
|  | 9314 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9315 | if test -z "$CCSHARED" | 
|  | 9316 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9317 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9318 | SunOS*) if test "$GCC" = yes; | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9319 | then CCSHARED="-fPIC"; | 
|  | 9320 | elif test `uname -p` = sparc; | 
|  | 9321 | then CCSHARED="-xcode=pic32"; | 
|  | 9322 | else CCSHARED="-Kpic"; | 
|  | 9323 | fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9324 | hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9325 | then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9326 | else CCSHARED="+z"; | 
|  | 9327 | fi;; | 
| Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 9328 | Linux-android*) ;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9329 | Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9330 | BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9331 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9332 | OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9333 | if test "$GCC" = "yes" | 
|  | 9334 | then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9335 | else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9336 | fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9337 | SCO_SV*) | 
|  | 9338 | if test "$GCC" = "yes" | 
|  | 9339 | then CCSHARED="-fPIC" | 
|  | 9340 | else CCSHARED="-Kpic -belf" | 
|  | 9341 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9342 | IRIX*/6*)  case $CC in | 
|  | 9343 | *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9344 | *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9345 | esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9346 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9347 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
|  | 9349 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9350 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9351 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
|  | 9353 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9354 | if test -z "$LINKFORSHARED" | 
|  | 9355 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9356 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9357 | AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9358 | hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9359 | LINKFORSHARED="-Wl,-E -Wl,+s";; | 
|  | 9360 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9361 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 9362 | Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9363 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9364 | # -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9365 | Darwin/*) | 
| Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9366 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" | 
| Łukasz Langa | 335ab5b | 2013-05-30 20:58:53 +0200 | [diff] [blame] | 9367 |  | 
|  | 9368 | # Issue #18075: the default maximum stack size (8MBytes) is too | 
|  | 9369 | # small for the default recursion limit. Increase the stack size | 
|  | 9370 | # to ensure that tests don't crash | 
|  | 9371 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" | 
|  | 9372 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9373 | if test "$enable_framework" | 
|  | 9374 | then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9375 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9376 | fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9377 | LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9378 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9379 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9380 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9381 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9382 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 9383 | then | 
|  | 9384 | LINKFORSHARED="-Wl,--export-dynamic" | 
|  | 9385 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9386 | SunOS/5*) case $CC in | 
|  | 9387 | *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9388 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9389 | then | 
|  | 9390 | LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9391 | fi;; | 
|  | 9392 | esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9393 | CYGWIN*) | 
|  | 9394 | if test $enable_shared = "no" | 
|  | 9395 | then | 
|  | 9396 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
|  | 9397 | fi;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9398 | QNX*) | 
|  | 9399 | # -Wl,-E causes the symbols to be added to the dynamic | 
|  | 9400 | # symbol table so that they can be found when a module | 
|  | 9401 | # is loaded.  -N 2048K causes the stack size to be set | 
|  | 9402 | # to 2048 kilobytes so that the stack doesn't overflow | 
|  | 9403 | # when running test_compile.py. | 
|  | 9404 | LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9405 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9406 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
|  | 9408 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9409 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9410 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9411 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
|  | 9413 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9414 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
|  | 9415 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9416 | case $ac_sys_system in | 
|  | 9417 | CYGWIN*) | 
|  | 9418 | # Cygwin needs CCSHARED when building extension DLLs | 
|  | 9419 | # but not when building the interpreter DLL. | 
|  | 9420 | CFLAGSFORSHARED='';; | 
|  | 9421 | *) | 
|  | 9422 | CFLAGSFORSHARED='$(CCSHARED)' | 
|  | 9423 | esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9424 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
|  | 9426 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9427 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9428 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
|  | 9429 | # library (with --enable-shared). | 
|  | 9430 | # 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] | 9431 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
|  | 9432 | # if it is not required, since it creates a dependency of the shared library | 
|  | 9433 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
|  | 9434 | # don't need to link LIBS explicitly. The default should be only changed | 
|  | 9435 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9436 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
|  | 9438 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9439 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9440 | *) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9441 | SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9442 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
|  | 9444 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9445 |  | 
|  | 9446 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9447 | # checks for libraries | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 | 
|  | 9449 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9450 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9451 | $as_echo_n "(cached) " >&6 | 
|  | 9452 | else | 
|  | 9453 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9454 | LIBS="-lsendfile  $LIBS" | 
|  | 9455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9456 | /* end confdefs.h.  */ | 
|  | 9457 |  | 
|  | 9458 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9459 | Use char because int might match the return type of a GCC | 
|  | 9460 | builtin and then its argument prototype would still apply.  */ | 
|  | 9461 | #ifdef __cplusplus | 
|  | 9462 | extern "C" | 
|  | 9463 | #endif | 
|  | 9464 | char sendfile (); | 
|  | 9465 | int | 
|  | 9466 | main () | 
|  | 9467 | { | 
|  | 9468 | return sendfile (); | 
|  | 9469 | ; | 
|  | 9470 | return 0; | 
|  | 9471 | } | 
|  | 9472 | _ACEOF | 
|  | 9473 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 9474 | ac_cv_lib_sendfile_sendfile=yes | 
|  | 9475 | else | 
|  | 9476 | ac_cv_lib_sendfile_sendfile=no | 
|  | 9477 | fi | 
|  | 9478 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9479 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9480 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9481 | fi | 
|  | 9482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 | 
|  | 9483 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9484 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9485 | cat >>confdefs.h <<_ACEOF | 
|  | 9486 | #define HAVE_LIBSENDFILE 1 | 
|  | 9487 | _ACEOF | 
|  | 9488 |  | 
|  | 9489 | LIBS="-lsendfile $LIBS" | 
|  | 9490 |  | 
|  | 9491 | fi | 
|  | 9492 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
|  | 9494 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9495 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9496 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9497 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9498 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9499 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9501 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9502 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9503 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9504 | Use char because int might match the return type of a GCC | 
|  | 9505 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9506 | #ifdef __cplusplus | 
|  | 9507 | extern "C" | 
|  | 9508 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9509 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9510 | int | 
|  | 9511 | main () | 
|  | 9512 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9513 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9514 | ; | 
|  | 9515 | return 0; | 
|  | 9516 | } | 
|  | 9517 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9518 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9519 | ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9520 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9521 | ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9522 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9523 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9524 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9525 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9526 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 9528 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9529 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9530 | cat >>confdefs.h <<_ACEOF | 
|  | 9531 | #define HAVE_LIBDL 1 | 
|  | 9532 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9533 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9534 | LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9535 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9536 | fi | 
|  | 9537 | # Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
|  | 9539 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9540 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9541 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9542 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9543 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9544 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9546 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9547 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9548 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9549 | Use char because int might match the return type of a GCC | 
|  | 9550 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9551 | #ifdef __cplusplus | 
|  | 9552 | extern "C" | 
|  | 9553 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9554 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9555 | int | 
|  | 9556 | main () | 
|  | 9557 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9558 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9559 | ; | 
|  | 9560 | return 0; | 
|  | 9561 | } | 
|  | 9562 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9563 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9564 | ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9565 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9566 | ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9567 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9568 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9569 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9570 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9571 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 9573 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9574 | 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] | 9575 | cat >>confdefs.h <<_ACEOF | 
|  | 9576 | #define HAVE_LIBDLD 1 | 
|  | 9577 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9578 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9579 | LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9580 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9581 | fi | 
|  | 9582 | # Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9583 |  | 
| Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 9584 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9585 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
|  | 9587 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9588 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9589 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9590 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9591 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9593 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9594 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9595 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9596 | Use char because int might match the return type of a GCC | 
|  | 9597 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9598 | #ifdef __cplusplus | 
|  | 9599 | extern "C" | 
|  | 9600 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9601 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9602 | int | 
|  | 9603 | main () | 
|  | 9604 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9605 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9606 | ; | 
|  | 9607 | return 0; | 
|  | 9608 | } | 
|  | 9609 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9610 | for ac_lib in '' pthread rt posix4; do | 
|  | 9611 | if test -z "$ac_lib"; then | 
|  | 9612 | ac_res="none required" | 
|  | 9613 | else | 
|  | 9614 | ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9615 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9616 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9617 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9618 | ac_cv_search_sem_init=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9619 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9620 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9621 | conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9622 | if ${ac_cv_search_sem_init+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9623 | break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9624 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9625 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9626 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9627 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9628 | else | 
|  | 9629 | ac_cv_search_sem_init=no | 
|  | 9630 | fi | 
|  | 9631 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9632 | LIBS=$ac_func_search_save_LIBS | 
|  | 9633 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
|  | 9635 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9636 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9637 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9638 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9639 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9640 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9641 | # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9642 | # posix4 on Solaris 2.6 | 
|  | 9643 | # pthread (first!) on Linux | 
|  | 9644 | fi | 
|  | 9645 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9646 | # check if we need libintl for locale functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
|  | 9648 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9649 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9650 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9651 | else | 
|  | 9652 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9653 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9655 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9656 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9657 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9658 | Use char because int might match the return type of a GCC | 
|  | 9659 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9660 | #ifdef __cplusplus | 
|  | 9661 | extern "C" | 
|  | 9662 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9663 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9664 | int | 
|  | 9665 | main () | 
|  | 9666 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9667 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9668 | ; | 
|  | 9669 | return 0; | 
|  | 9670 | } | 
|  | 9671 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9672 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9673 | ac_cv_lib_intl_textdomain=yes | 
|  | 9674 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9675 | ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9676 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9677 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9678 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9679 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9680 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
|  | 9682 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9683 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9684 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9685 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9686 |  | 
| Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 9687 | LIBS="-lintl $LIBS" | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9688 | fi | 
|  | 9689 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9690 |  | 
|  | 9691 | # checks for system dependent C++ extensions support | 
|  | 9692 | case "$ac_sys_system" in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9693 | AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
|  | 9694 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
|  | 9695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9696 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9697 |  | 
| Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 9698 | #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9699 | int | 
|  | 9700 | main () | 
|  | 9701 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9702 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9703 | ; | 
|  | 9704 | return 0; | 
|  | 9705 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9706 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9707 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9708 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9709 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9710 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9711 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9712 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9714 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9715 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9716 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9717 |  | 
|  | 9718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9719 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9720 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9721 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9722 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9723 | conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9724 | *) ;; | 
|  | 9725 | esac | 
|  | 9726 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9727 | # check for systems that require aligned memory access | 
|  | 9728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 | 
|  | 9729 | $as_echo_n "checking aligned memory access is required... " >&6; } | 
| Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9730 | if ${ac_cv_aligned_required+:} false; then : | 
|  | 9731 | $as_echo_n "(cached) " >&6 | 
|  | 9732 | else | 
|  | 9733 | if test "$cross_compiling" = yes; then : | 
|  | 9734 | ac_cv_aligned_required=yes | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9735 | else | 
|  | 9736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9737 | /* end confdefs.h.  */ | 
|  | 9738 |  | 
|  | 9739 | int main() | 
|  | 9740 | { | 
|  | 9741 | char s[16]; | 
|  | 9742 | int i, *p1, *p2; | 
|  | 9743 | for (i=0; i < 16; i++) | 
|  | 9744 | s[i] = i; | 
|  | 9745 | p1 = (int*)(s+1); | 
|  | 9746 | p2 = (int*)(s+2); | 
|  | 9747 | if (*p1 == *p2) | 
|  | 9748 | return 1; | 
|  | 9749 | return 0; | 
|  | 9750 | } | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9751 | _ACEOF | 
|  | 9752 | if ac_fn_c_try_run "$LINENO"; then : | 
| Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9753 | ac_cv_aligned_required=no | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9754 | else | 
| Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9755 | ac_cv_aligned_required=yes | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9756 | fi | 
|  | 9757 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9758 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 9759 | fi | 
|  | 9760 |  | 
|  | 9761 |  | 
| Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9762 | fi | 
|  | 9763 |  | 
|  | 9764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 | 
|  | 9765 | $as_echo "$ac_cv_aligned_required" >&6; } | 
|  | 9766 | if test "$ac_cv_aligned_required" = yes ; then | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9767 |  | 
|  | 9768 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h | 
|  | 9769 |  | 
|  | 9770 | fi | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9771 |  | 
|  | 9772 | # str, bytes and memoryview hash algorithm | 
|  | 9773 |  | 
|  | 9774 |  | 
|  | 9775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 | 
|  | 9776 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | 
|  | 9777 |  | 
|  | 9778 | # Check whether --with-hash_algorithm was given. | 
|  | 9779 | if test "${with_hash_algorithm+set}" = set; then : | 
|  | 9780 | withval=$with_hash_algorithm; | 
|  | 9781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9782 | $as_echo "$withval" >&6; } | 
|  | 9783 | case "$withval" in | 
|  | 9784 | siphash24) | 
|  | 9785 | $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h | 
|  | 9786 |  | 
|  | 9787 | ;; | 
|  | 9788 | fnv) | 
|  | 9789 | $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h | 
|  | 9790 |  | 
|  | 9791 | ;; | 
|  | 9792 | *) | 
|  | 9793 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | 
|  | 9794 | ;; | 
|  | 9795 | esac | 
|  | 9796 |  | 
|  | 9797 | else | 
|  | 9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | 
|  | 9799 | $as_echo "default" >&6; } | 
|  | 9800 | fi | 
|  | 9801 |  | 
|  | 9802 |  | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 9803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 | 
|  | 9804 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } | 
|  | 9805 |  | 
|  | 9806 | # Check whether --with-address_sanitizer was given. | 
|  | 9807 | if test "${with_address_sanitizer+set}" = set; then : | 
|  | 9808 | withval=$with_address_sanitizer; | 
|  | 9809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9810 | $as_echo "$withval" >&6; } | 
|  | 9811 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" | 
|  | 9812 | LDFLAGS="-fsanitize=address $LDFLAGS" | 
|  | 9813 |  | 
|  | 9814 | else | 
|  | 9815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9816 | $as_echo "no" >&6; } | 
|  | 9817 | fi | 
|  | 9818 |  | 
|  | 9819 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9820 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
|  | 9822 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9823 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9824 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9825 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9826 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9827 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9829 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9830 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9831 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9832 | Use char because int might match the return type of a GCC | 
|  | 9833 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9834 | #ifdef __cplusplus | 
|  | 9835 | extern "C" | 
|  | 9836 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9837 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9838 | int | 
|  | 9839 | main () | 
|  | 9840 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9841 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9842 | ; | 
|  | 9843 | return 0; | 
|  | 9844 | } | 
|  | 9845 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9846 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9847 | ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9848 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9849 | ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9850 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9851 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9852 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9853 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9854 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
|  | 9856 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9857 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9858 | LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9859 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9860 | # SVR4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
|  | 9862 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9863 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9864 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9865 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9866 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9867 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9869 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9870 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9871 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9872 | Use char because int might match the return type of a GCC | 
|  | 9873 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9874 | #ifdef __cplusplus | 
|  | 9875 | extern "C" | 
|  | 9876 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9877 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9878 | int | 
|  | 9879 | main () | 
|  | 9880 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9881 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9882 | ; | 
|  | 9883 | return 0; | 
|  | 9884 | } | 
|  | 9885 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9886 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9887 | ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9888 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9889 | ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9890 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9891 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9892 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9893 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9894 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
|  | 9896 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9897 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9898 | LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9899 | fi | 
|  | 9900 | # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 9901 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
|  | 9903 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9904 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9905 | # Check whether --with-libs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9906 | if test "${with_libs+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9907 | withval=$with_libs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 9909 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9910 | LIBS="$withval $LIBS" | 
|  | 9911 |  | 
|  | 9912 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9914 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9915 | fi | 
|  | 9916 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9917 |  | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 9918 |  | 
|  | 9919 |  | 
|  | 9920 |  | 
|  | 9921 |  | 
|  | 9922 |  | 
|  | 9923 |  | 
|  | 9924 |  | 
|  | 9925 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 
|  | 9926 | if test -n "$ac_tool_prefix"; then | 
|  | 9927 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
|  | 9928 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
|  | 9929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9930 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 9931 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
|  | 9932 | $as_echo_n "(cached) " >&6 | 
|  | 9933 | else | 
|  | 9934 | case $PKG_CONFIG in | 
|  | 9935 | [\\/]* | ?:[\\/]*) | 
|  | 9936 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
|  | 9937 | ;; | 
|  | 9938 | *) | 
|  | 9939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9940 | for as_dir in $PATH | 
|  | 9941 | do | 
|  | 9942 | IFS=$as_save_IFS | 
|  | 9943 | test -z "$as_dir" && as_dir=. | 
|  | 9944 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 9945 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 9946 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
|  | 9947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 9948 | break 2 | 
|  | 9949 | fi | 
|  | 9950 | done | 
|  | 9951 | done | 
|  | 9952 | IFS=$as_save_IFS | 
|  | 9953 |  | 
|  | 9954 | ;; | 
|  | 9955 | esac | 
|  | 9956 | fi | 
|  | 9957 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
|  | 9958 | if test -n "$PKG_CONFIG"; then | 
|  | 9959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
|  | 9960 | $as_echo "$PKG_CONFIG" >&6; } | 
|  | 9961 | else | 
|  | 9962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9963 | $as_echo "no" >&6; } | 
|  | 9964 | fi | 
|  | 9965 |  | 
|  | 9966 |  | 
|  | 9967 | fi | 
|  | 9968 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
|  | 9969 | ac_pt_PKG_CONFIG=$PKG_CONFIG | 
|  | 9970 | # Extract the first word of "pkg-config", so it can be a program name with args. | 
|  | 9971 | set dummy pkg-config; ac_word=$2 | 
|  | 9972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9973 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 9974 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
|  | 9975 | $as_echo_n "(cached) " >&6 | 
|  | 9976 | else | 
|  | 9977 | case $ac_pt_PKG_CONFIG in | 
|  | 9978 | [\\/]* | ?:[\\/]*) | 
|  | 9979 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
|  | 9980 | ;; | 
|  | 9981 | *) | 
|  | 9982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9983 | for as_dir in $PATH | 
|  | 9984 | do | 
|  | 9985 | IFS=$as_save_IFS | 
|  | 9986 | test -z "$as_dir" && as_dir=. | 
|  | 9987 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 9988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 9989 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
|  | 9990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 9991 | break 2 | 
|  | 9992 | fi | 
|  | 9993 | done | 
|  | 9994 | done | 
|  | 9995 | IFS=$as_save_IFS | 
|  | 9996 |  | 
|  | 9997 | ;; | 
|  | 9998 | esac | 
|  | 9999 | fi | 
|  | 10000 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
|  | 10001 | if test -n "$ac_pt_PKG_CONFIG"; then | 
|  | 10002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
|  | 10003 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
|  | 10004 | else | 
|  | 10005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10006 | $as_echo "no" >&6; } | 
|  | 10007 | fi | 
|  | 10008 |  | 
|  | 10009 | if test "x$ac_pt_PKG_CONFIG" = x; then | 
|  | 10010 | PKG_CONFIG="" | 
|  | 10011 | else | 
|  | 10012 | case $cross_compiling:$ac_tool_warned in | 
|  | 10013 | yes:) | 
|  | 10014 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 10015 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 10016 | ac_tool_warned=yes ;; | 
|  | 10017 | esac | 
|  | 10018 | PKG_CONFIG=$ac_pt_PKG_CONFIG | 
|  | 10019 | fi | 
|  | 10020 | else | 
|  | 10021 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
|  | 10022 | fi | 
|  | 10023 |  | 
|  | 10024 | fi | 
|  | 10025 | if test -n "$PKG_CONFIG"; then | 
|  | 10026 | _pkg_min_version=0.9.0 | 
|  | 10027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | 
|  | 10028 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | 
|  | 10029 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 
|  | 10030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10031 | $as_echo "yes" >&6; } | 
|  | 10032 | else | 
|  | 10033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10034 | $as_echo "no" >&6; } | 
|  | 10035 | PKG_CONFIG="" | 
|  | 10036 | fi | 
|  | 10037 | fi | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10038 |  | 
|  | 10039 | # Check for use of the system expat library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
|  | 10041 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10042 |  | 
|  | 10043 | # Check whether --with-system_expat was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10044 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10045 | withval=$with_system_expat; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 10046 | else | 
|  | 10047 | with_system_expat="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10048 | fi | 
|  | 10049 |  | 
|  | 10050 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
|  | 10052 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10053 |  | 
|  | 10054 | # Check for use of the system libffi library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
|  | 10056 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10057 |  | 
|  | 10058 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10059 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10060 | withval=$with_system_ffi; | 
|  | 10061 | fi | 
|  | 10062 |  | 
|  | 10063 |  | 
| Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 10064 | if test "$ac_sys_system" = "Darwin" | 
|  | 10065 | then | 
|  | 10066 | case "$with_system_ffi" in | 
|  | 10067 | "") | 
|  | 10068 | with_system_ffi="no" | 
|  | 10069 | ;; | 
|  | 10070 | yes|no) | 
|  | 10071 | ;; | 
|  | 10072 | *) | 
|  | 10073 | as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 | 
|  | 10074 | ;; | 
|  | 10075 | esac | 
|  | 10076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
|  | 10077 | $as_echo "$with_system_ffi" >&6; } | 
|  | 10078 | else | 
|  | 10079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10080 | $as_echo "yes" >&6; } | 
|  | 10081 | if test "$with_system_ffi" != "" | 
|  | 10082 | then | 
|  | 10083 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5 | 
|  | 10084 | $as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;} | 
|  | 10085 | fi | 
|  | 10086 | with_system_ffi="yes" | 
|  | 10087 | fi | 
| Zachary Ware | 935043d | 2016-09-09 17:01:21 -0700 | [diff] [blame] | 10088 |  | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10089 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 10090 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
|  | 10091 | else | 
|  | 10092 | LIBFFI_INCLUDEDIR="" | 
|  | 10093 | fi | 
|  | 10094 |  | 
|  | 10095 |  | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10096 | # Check for use of the system libmpdec library | 
|  | 10097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 | 
|  | 10098 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | 
|  | 10099 |  | 
|  | 10100 | # Check whether --with-system_libmpdec was given. | 
|  | 10101 | if test "${with_system_libmpdec+set}" = set; then : | 
|  | 10102 | withval=$with_system_libmpdec; | 
|  | 10103 | else | 
|  | 10104 | with_system_libmpdec="no" | 
|  | 10105 | fi | 
|  | 10106 |  | 
|  | 10107 |  | 
|  | 10108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 | 
|  | 10109 | $as_echo "$with_system_libmpdec" >&6; } | 
|  | 10110 |  | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10111 | # Check for support for loadable sqlite extensions | 
|  | 10112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | 
|  | 10113 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | 
|  | 10114 | # Check whether --enable-loadable-sqlite-extensions was given. | 
|  | 10115 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | 
|  | 10116 | enableval=$enable_loadable_sqlite_extensions; | 
|  | 10117 | else | 
|  | 10118 | enable_loadable_sqlite_extensions="no" | 
|  | 10119 | fi | 
|  | 10120 |  | 
|  | 10121 |  | 
|  | 10122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | 
|  | 10123 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | 
|  | 10124 |  | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10125 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path | 
|  | 10126 |  | 
|  | 10127 |  | 
|  | 10128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | 
|  | 10129 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | 
|  | 10130 |  | 
|  | 10131 | # Check whether --with-tcltk-includes was given. | 
|  | 10132 | if test "${with_tcltk_includes+set}" = set; then : | 
|  | 10133 | withval=$with_tcltk_includes; | 
|  | 10134 | else | 
|  | 10135 | with_tcltk_includes="default" | 
|  | 10136 | fi | 
|  | 10137 |  | 
|  | 10138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | 
|  | 10139 | $as_echo "$with_tcltk_includes" >&6; } | 
|  | 10140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | 
|  | 10141 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | 
|  | 10142 |  | 
|  | 10143 | # Check whether --with-tcltk-libs was given. | 
|  | 10144 | if test "${with_tcltk_libs+set}" = set; then : | 
|  | 10145 | withval=$with_tcltk_libs; | 
|  | 10146 | else | 
|  | 10147 | with_tcltk_libs="default" | 
|  | 10148 | fi | 
|  | 10149 |  | 
|  | 10150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | 
|  | 10151 | $as_echo "$with_tcltk_libs" >&6; } | 
|  | 10152 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | 
|  | 10153 | then | 
|  | 10154 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | 
|  | 10155 | then | 
|  | 10156 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | 
|  | 10157 | fi | 
|  | 10158 | TCLTK_INCLUDES="" | 
|  | 10159 | TCLTK_LIBS="" | 
|  | 10160 | else | 
|  | 10161 | TCLTK_INCLUDES="$with_tcltk_includes" | 
|  | 10162 | TCLTK_LIBS="$with_tcltk_libs" | 
|  | 10163 | fi | 
|  | 10164 |  | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10165 | # Check for --with-dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
|  | 10167 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10168 |  | 
|  | 10169 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10170 | if test "${with_dbmliborder+set}" = set; then : | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10171 | withval=$with_dbmliborder; | 
|  | 10172 | if test x$with_dbmliborder = xyes | 
|  | 10173 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10174 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10175 | else | 
|  | 10176 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
|  | 10177 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
|  | 10178 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10179 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10180 | fi | 
|  | 10181 | done | 
|  | 10182 | fi | 
|  | 10183 | fi | 
|  | 10184 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
|  | 10186 | $as_echo "$with_dbmliborder" >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10187 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10188 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10189 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10190 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10191 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10192 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10193 |  | 
|  | 10194 | # Templates for things AC_DEFINEd more than once. | 
|  | 10195 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10196 |  | 
|  | 10197 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10198 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
|  | 10200 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10201 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10202 | # Check whether --with-threads was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10203 | if test "${with_threads+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10204 | withval=$with_threads; | 
|  | 10205 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10206 |  | 
|  | 10207 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10208 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10209 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10210 | # Check whether --with-thread was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10211 | if test "${with_thread+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10212 | withval=$with_thread; with_threads=$with_thread | 
|  | 10213 | fi | 
|  | 10214 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10215 |  | 
|  | 10216 | if test -z "$with_threads" | 
|  | 10217 | then with_threads="yes" | 
|  | 10218 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
|  | 10220 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10221 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10222 |  | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10223 | if test "$with_threads" = "no" | 
|  | 10224 | then | 
|  | 10225 | USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10226 | elif test "$ac_cv_pthread_is_default" = yes | 
|  | 10227 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10228 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10229 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10230 | # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10231 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10232 |  | 
|  | 10233 | posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10234 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10235 | elif test "$ac_cv_kpthread" = "yes" | 
|  | 10236 | then | 
|  | 10237 | CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10238 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 10239 | CXX="$CXX -Kpthread" | 
|  | 10240 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10241 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10242 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10243 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10244 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10245 | elif test "$ac_cv_kthread" = "yes" | 
|  | 10246 | then | 
|  | 10247 | CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10248 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 10249 | CXX="$CXX -Kthread" | 
|  | 10250 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10251 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10252 |  | 
|  | 10253 | posix_threads=yes | 
|  | 10254 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10255 | elif test "$ac_cv_pthread" = "yes" | 
|  | 10256 | then | 
|  | 10257 | CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10258 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 10259 | CXX="$CXX -pthread" | 
|  | 10260 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10261 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10262 |  | 
|  | 10263 | posix_threads=yes | 
|  | 10264 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10265 | else | 
|  | 10266 | if test ! -z "$with_threads" -a -d "$with_threads" | 
|  | 10267 | then LDFLAGS="$LDFLAGS -L$with_threads" | 
|  | 10268 | fi | 
|  | 10269 | if test ! -z "$withval" -a -d "$withval" | 
|  | 10270 | then LDFLAGS="$LDFLAGS -L$withval" | 
|  | 10271 | fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10272 |  | 
|  | 10273 | # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 10274 | # define _POSIX_THREADS in unistd.h. Some apparently don't | 
|  | 10275 | # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
|  | 10277 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
|  | 10278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10279 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10280 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10281 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10282 | #ifdef _POSIX_THREADS | 
|  | 10283 | yes | 
|  | 10284 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10285 |  | 
|  | 10286 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10287 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10288 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10289 | unistd_defines_pthreads=yes | 
|  | 10290 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10291 | unistd_defines_pthreads=no | 
|  | 10292 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10293 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10294 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
|  | 10296 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10297 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10298 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10299 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10300 | # Just looking for pthread_create in libpthread is not enough: | 
|  | 10301 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
|  | 10302 | # So we really have to include pthread.h, and then link. | 
|  | 10303 | _libs=$LIBS | 
|  | 10304 | LIBS="$LIBS -lpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
|  | 10306 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
|  | 10307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10308 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10309 |  | 
|  | 10310 | #include <stdio.h> | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10311 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10312 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10313 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10314 | int | 
|  | 10315 | main () | 
|  | 10316 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10317 |  | 
|  | 10318 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10319 | ; | 
|  | 10320 | return 0; | 
|  | 10321 | } | 
|  | 10322 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10323 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10324 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10326 | $as_echo "yes" >&6; } | 
|  | 10327 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10328 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10329 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10330 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10331 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10332 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10333 | LIBS=$_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10334 | 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] | 10335 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10336 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10337 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10338 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10339 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10340 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10341 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
|  | 10343 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10344 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10345 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10346 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10347 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10348 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10350 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10351 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10352 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10353 | Use char because int might match the return type of a GCC | 
|  | 10354 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10355 | #ifdef __cplusplus | 
|  | 10356 | extern "C" | 
|  | 10357 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10358 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10359 | int | 
|  | 10360 | main () | 
|  | 10361 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10362 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10363 | ; | 
|  | 10364 | return 0; | 
|  | 10365 | } | 
|  | 10366 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10367 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10368 | ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10369 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10370 | ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10371 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10372 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10373 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10374 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10375 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
|  | 10377 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10378 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10379 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10380 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10381 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10382 | LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10383 | THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10384 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10385 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
|  | 10387 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10388 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10389 | $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10390 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10391 | ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10392 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10394 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10395 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10396 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10397 | Use char because int might match the return type of a GCC | 
|  | 10398 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10399 | #ifdef __cplusplus | 
|  | 10400 | extern "C" | 
|  | 10401 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10402 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10403 | int | 
|  | 10404 | main () | 
|  | 10405 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10406 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10407 | ; | 
|  | 10408 | return 0; | 
|  | 10409 | } | 
|  | 10410 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10411 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10412 | ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10413 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10414 | ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10415 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10416 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10417 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10418 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10419 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
|  | 10421 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10422 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10423 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10424 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10425 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10426 | LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10427 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10428 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10429 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
|  | 10431 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10432 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10433 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10434 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10435 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10436 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10438 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10439 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10440 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10441 | Use char because int might match the return type of a GCC | 
|  | 10442 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10443 | #ifdef __cplusplus | 
|  | 10444 | extern "C" | 
|  | 10445 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10446 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10447 | int | 
|  | 10448 | main () | 
|  | 10449 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10450 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10451 | ; | 
|  | 10452 | return 0; | 
|  | 10453 | } | 
|  | 10454 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10455 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10456 | ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10457 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10458 | ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10459 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10460 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10461 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10462 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10463 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
|  | 10465 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10466 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10467 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10468 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10469 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10470 | LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10471 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10472 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10473 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
|  | 10475 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10476 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10477 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10478 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10479 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10480 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10482 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10483 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10484 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10485 | Use char because int might match the return type of a GCC | 
|  | 10486 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10487 | #ifdef __cplusplus | 
|  | 10488 | extern "C" | 
|  | 10489 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10490 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10491 | int | 
|  | 10492 | main () | 
|  | 10493 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10494 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10495 | ; | 
|  | 10496 | return 0; | 
|  | 10497 | } | 
|  | 10498 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10499 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10500 | ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10501 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10502 | ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10503 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10504 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10505 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10506 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10507 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
|  | 10509 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10510 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10511 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10512 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10513 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10514 | LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10515 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10516 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10517 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10518 | USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10519 | fi | 
|  | 10520 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10521 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10522 | fi | 
|  | 10523 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10524 | fi | 
|  | 10525 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10526 | fi | 
|  | 10527 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10528 | fi | 
|  | 10529 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10530 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10531 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10532 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10533 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
|  | 10535 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10536 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10537 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10538 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10539 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10540 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10542 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10543 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10544 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10545 | Use char because int might match the return type of a GCC | 
|  | 10546 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10547 | #ifdef __cplusplus | 
|  | 10548 | extern "C" | 
|  | 10549 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10550 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10551 | int | 
|  | 10552 | main () | 
|  | 10553 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10554 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10555 | ; | 
|  | 10556 | return 0; | 
|  | 10557 | } | 
|  | 10558 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10559 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10560 | ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10561 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10562 | ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10563 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10564 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10565 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10566 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10567 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
|  | 10569 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10570 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10571 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10572 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10573 | LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10574 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10575 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10576 | fi | 
|  | 10577 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10578 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 10579 | if test "$posix_threads" != "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
|  | 10581 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10582 | if ${ac_cv_lib_thread_thr_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10583 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10584 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10585 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10586 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10588 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10589 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10590 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10591 | Use char because int might match the return type of a GCC | 
|  | 10592 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10593 | #ifdef __cplusplus | 
|  | 10594 | extern "C" | 
|  | 10595 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10596 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10597 | int | 
|  | 10598 | main () | 
|  | 10599 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10600 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10601 | ; | 
|  | 10602 | return 0; | 
|  | 10603 | } | 
|  | 10604 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10605 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10606 | ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10607 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10608 | ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10609 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10610 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10611 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10612 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10613 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
|  | 10615 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10616 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10617 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10618 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10619 | LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10620 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10621 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10622 | fi | 
|  | 10623 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10624 | fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10625 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10626 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10627 | if test "$posix_threads" = "yes"; then | 
|  | 10628 | if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10629 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10630 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10631 |  | 
|  | 10632 | fi | 
|  | 10633 |  | 
|  | 10634 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
|  | 10635 | case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10636 | SunOS/5.6) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10637 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10638 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10639 | ;; | 
|  | 10640 | SunOS/5.8) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10641 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10642 |  | 
|  | 10643 | ;; | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10644 | AIX/*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10645 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 10646 |  | 
|  | 10647 | ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10648 | esac | 
|  | 10649 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
|  | 10651 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10652 | if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10653 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10654 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10655 | if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10656 | ac_cv_pthread_system_supported=no | 
|  | 10657 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10659 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10660 |  | 
|  | 10661 | #include <stdio.h> | 
|  | 10662 | #include <pthread.h> | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10663 | void *foo(void *parm) { | 
|  | 10664 | return NULL; | 
|  | 10665 | } | 
|  | 10666 | main() { | 
|  | 10667 | pthread_attr_t attr; | 
|  | 10668 | pthread_t id; | 
|  | 10669 | if (pthread_attr_init(&attr)) exit(-1); | 
|  | 10670 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
|  | 10671 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
|  | 10672 | exit(0); | 
|  | 10673 | } | 
|  | 10674 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10675 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10676 | ac_cv_pthread_system_supported=yes | 
|  | 10677 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10678 | ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10679 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10680 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 10681 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10682 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10683 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10684 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10685 | fi | 
|  | 10686 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
|  | 10688 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10689 | if test "$ac_cv_pthread_system_supported" = "yes"; then | 
|  | 10690 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10691 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10692 |  | 
|  | 10693 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10694 | for ac_func in pthread_sigmask | 
|  | 10695 | do : | 
|  | 10696 | 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] | 10697 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10698 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10699 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10700 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10701 | case $ac_sys_system in | 
|  | 10702 | CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10703 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10704 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10705 |  | 
|  | 10706 | ;; | 
|  | 10707 | esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10708 | fi | 
|  | 10709 | done | 
|  | 10710 |  | 
| Christian Heimes | f77b4b2 | 2013-08-21 13:26:05 +0200 | [diff] [blame] | 10711 | for ac_func in pthread_atfork | 
|  | 10712 | do : | 
|  | 10713 | ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" | 
|  | 10714 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : | 
|  | 10715 | cat >>confdefs.h <<_ACEOF | 
|  | 10716 | #define HAVE_PTHREAD_ATFORK 1 | 
|  | 10717 | _ACEOF | 
|  | 10718 |  | 
|  | 10719 | fi | 
|  | 10720 | done | 
|  | 10721 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10722 | fi | 
|  | 10723 |  | 
|  | 10724 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10725 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10726 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
|  | 10728 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10729 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10730 | if test "${enable_ipv6+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10731 | enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10732 | no) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10734 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10735 | ipv6=no | 
|  | 10736 | ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10737 | *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10738 | $as_echo "yes" >&6; } | 
|  | 10739 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10740 |  | 
|  | 10741 | ipv6=yes | 
|  | 10742 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10743 | esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10744 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10745 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10747 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10748 | /* AF_INET6 available check */ | 
|  | 10749 | #include <sys/types.h> | 
|  | 10750 | #include <sys/socket.h> | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10751 | int | 
|  | 10752 | main () | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10753 | { | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10754 | int domain = AF_INET6; | 
|  | 10755 | ; | 
|  | 10756 | return 0; | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10757 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10758 | _ACEOF | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10759 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10760 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10762 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10763 | ipv6=yes | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10764 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10765 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10766 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10768 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10769 | ipv6=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10770 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10771 | fi | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10773 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10774 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
|  | 10776 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
|  | 10777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10778 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10779 |  | 
|  | 10780 | #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10781 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10782 | int | 
|  | 10783 | main () | 
|  | 10784 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10785 | struct sockaddr_in6 x; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10786 | x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10787 | ; | 
|  | 10788 | return 0; | 
|  | 10789 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10790 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10791 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10792 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10793 |  | 
|  | 10794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10795 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10796 | ipv6=yes | 
|  | 10797 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10798 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10799 |  | 
|  | 10800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10801 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10802 | ipv6=no | 
|  | 10803 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10804 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10805 | 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] | 10806 | fi | 
|  | 10807 |  | 
|  | 10808 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10809 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10810 |  | 
|  | 10811 | fi | 
|  | 10812 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10813 | fi | 
|  | 10814 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10815 |  | 
|  | 10816 | ipv6type=unknown | 
|  | 10817 | ipv6lib=none | 
|  | 10818 | ipv6trylibc=no | 
|  | 10819 |  | 
|  | 10820 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
|  | 10822 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10823 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
|  | 10824 | do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10825 | case $i in | 
|  | 10826 | inria) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10828 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10829 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10830 | #include <netinet/in.h> | 
|  | 10831 | #ifdef IPV6_INRIA_VERSION | 
|  | 10832 | yes | 
|  | 10833 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10834 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10835 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10836 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10837 | ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10838 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10839 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10840 |  | 
|  | 10841 | ;; | 
|  | 10842 | kame) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10844 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10845 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10846 | #include <netinet/in.h> | 
|  | 10847 | #ifdef __KAME__ | 
|  | 10848 | yes | 
|  | 10849 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10850 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10851 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10852 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10853 | ipv6type=$i; | 
|  | 10854 | ipv6lib=inet6 | 
|  | 10855 | ipv6libdir=/usr/local/v6/lib | 
|  | 10856 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10857 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10858 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10859 |  | 
|  | 10860 | ;; | 
|  | 10861 | linux-glibc) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10863 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10864 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10865 | #include <features.h> | 
|  | 10866 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
|  | 10867 | yes | 
|  | 10868 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10869 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10870 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10871 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10872 | ipv6type=$i; | 
|  | 10873 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10874 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10875 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10876 |  | 
|  | 10877 | ;; | 
|  | 10878 | linux-inet6) | 
|  | 10879 | if test -d /usr/inet6; then | 
|  | 10880 | ipv6type=$i | 
|  | 10881 | ipv6lib=inet6 | 
|  | 10882 | ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10883 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10884 | fi | 
|  | 10885 | ;; | 
|  | 10886 | solaris) | 
|  | 10887 | if test -f /etc/netconfig; then | 
| Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 10888 | if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10889 | ipv6type=$i | 
|  | 10890 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10891 | fi | 
|  | 10892 | fi | 
|  | 10893 | ;; | 
|  | 10894 | toshiba) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10896 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10897 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10898 | #include <sys/param.h> | 
|  | 10899 | #ifdef _TOSHIBA_INET6 | 
|  | 10900 | yes | 
|  | 10901 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10902 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10903 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10904 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10905 | ipv6type=$i; | 
|  | 10906 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10907 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10908 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10909 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10910 |  | 
|  | 10911 | ;; | 
|  | 10912 | v6d) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10914 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10915 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10916 | #include </usr/local/v6/include/sys/v6config.h> | 
|  | 10917 | #ifdef __V6D__ | 
|  | 10918 | yes | 
|  | 10919 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10920 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10921 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10922 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10923 | ipv6type=$i; | 
|  | 10924 | ipv6lib=v6; | 
|  | 10925 | ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10926 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10927 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10928 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10929 |  | 
|  | 10930 | ;; | 
|  | 10931 | zeta) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10933 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10934 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10935 | #include <sys/param.h> | 
|  | 10936 | #ifdef _ZETA_MINAMI_INET6 | 
|  | 10937 | yes | 
|  | 10938 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10939 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10940 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10941 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10942 | ipv6type=$i; | 
|  | 10943 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10944 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10945 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10946 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10947 |  | 
|  | 10948 | ;; | 
|  | 10949 | esac | 
|  | 10950 | if test "$ipv6type" != "unknown"; then | 
|  | 10951 | break | 
|  | 10952 | fi | 
|  | 10953 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
|  | 10955 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10956 | fi | 
|  | 10957 |  | 
|  | 10958 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
|  | 10959 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
|  | 10960 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
|  | 10961 | echo "using lib$ipv6lib" | 
|  | 10962 | else | 
|  | 10963 | if test $ipv6trylibc = "yes"; then | 
|  | 10964 | echo "using libc" | 
|  | 10965 | else | 
|  | 10966 | echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
|  | 10967 | echo "You need to fetch lib$ipv6lib.a from appropriate" | 
|  | 10968 | echo 'ipv6 kit and compile beforehand.' | 
|  | 10969 | exit 1 | 
|  | 10970 | fi | 
|  | 10971 | fi | 
|  | 10972 | fi | 
|  | 10973 |  | 
| Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 10974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 | 
|  | 10975 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } | 
|  | 10976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 10977 | /* end confdefs.h.  */ | 
|  | 10978 | /* CAN_RAW_FD_FRAMES available check */ | 
|  | 10979 | #include <linux/can/raw.h> | 
|  | 10980 | int | 
|  | 10981 | main () | 
|  | 10982 | { | 
|  | 10983 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; | 
|  | 10984 | ; | 
|  | 10985 | return 0; | 
|  | 10986 | } | 
|  | 10987 | _ACEOF | 
|  | 10988 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 10989 |  | 
|  | 10990 |  | 
|  | 10991 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h | 
|  | 10992 |  | 
|  | 10993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10994 | $as_echo "yes" >&6; } | 
|  | 10995 |  | 
|  | 10996 | else | 
|  | 10997 |  | 
|  | 10998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10999 | $as_echo "no" >&6; } | 
|  | 11000 |  | 
|  | 11001 | fi | 
|  | 11002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11003 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11004 | # Check for --with-doc-strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
|  | 11006 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11007 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11008 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11009 | if test "${with_doc_strings+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11010 | withval=$with_doc_strings; | 
|  | 11011 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11012 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11013 |  | 
|  | 11014 | if test -z "$with_doc_strings" | 
|  | 11015 | then with_doc_strings="yes" | 
|  | 11016 | fi | 
|  | 11017 | if test "$with_doc_strings" != "no" | 
|  | 11018 | then | 
|  | 11019 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11020 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11021 |  | 
|  | 11022 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
|  | 11024 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11025 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 11026 | # Check for Python-specific malloc support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
|  | 11028 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11029 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11030 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11031 | if test "${with_pymalloc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11032 | withval=$with_pymalloc; | 
|  | 11033 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11034 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11035 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11036 | if test -z "$with_pymalloc" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 11037 | then | 
|  | 11038 | with_pymalloc="yes" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11039 | fi | 
|  | 11040 | if test "$with_pymalloc" != "no" | 
|  | 11041 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11042 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11043 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11044 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11045 | ABIFLAGS="${ABIFLAGS}m" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11046 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
|  | 11048 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11049 |  | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11050 | # Check for Valgrind support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
|  | 11052 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11053 |  | 
|  | 11054 | # Check whether --with-valgrind was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11055 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11056 | withval=$with_valgrind; | 
|  | 11057 | else | 
|  | 11058 | with_valgrind=no | 
|  | 11059 | fi | 
|  | 11060 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
|  | 11062 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11063 | if test "$with_valgrind" != no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11064 | 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] | 11065 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11066 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11067 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11068 |  | 
|  | 11069 | else | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11070 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11071 |  | 
|  | 11072 | fi | 
|  | 11073 |  | 
|  | 11074 |  | 
| Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 11075 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11076 | fi | 
|  | 11077 |  | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11078 | # Check for DTrace support | 
|  | 11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 | 
|  | 11080 | $as_echo_n "checking for --with-dtrace... " >&6; } | 
|  | 11081 |  | 
|  | 11082 | # Check whether --with-dtrace was given. | 
|  | 11083 | if test "${with_dtrace+set}" = set; then : | 
|  | 11084 | withval=$with_dtrace; | 
|  | 11085 | else | 
|  | 11086 | with_dtrace=no | 
|  | 11087 | fi | 
|  | 11088 |  | 
|  | 11089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 | 
|  | 11090 | $as_echo "$with_dtrace" >&6; } | 
|  | 11091 |  | 
|  | 11092 |  | 
|  | 11093 |  | 
|  | 11094 |  | 
|  | 11095 |  | 
|  | 11096 | DTRACE= | 
|  | 11097 | DFLAGS= | 
|  | 11098 | DTRACE_HEADERS= | 
|  | 11099 | DTRACE_OBJS= | 
|  | 11100 |  | 
|  | 11101 | if test "$with_dtrace" = "yes" | 
|  | 11102 | then | 
|  | 11103 | # Extract the first word of "dtrace", so it can be a program name with args. | 
|  | 11104 | set dummy dtrace; ac_word=$2 | 
|  | 11105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11106 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 11107 | if ${ac_cv_path_DTRACE+:} false; then : | 
|  | 11108 | $as_echo_n "(cached) " >&6 | 
|  | 11109 | else | 
|  | 11110 | case $DTRACE in | 
|  | 11111 | [\\/]* | ?:[\\/]*) | 
|  | 11112 | ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. | 
|  | 11113 | ;; | 
|  | 11114 | *) | 
|  | 11115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11116 | for as_dir in $PATH | 
|  | 11117 | do | 
|  | 11118 | IFS=$as_save_IFS | 
|  | 11119 | test -z "$as_dir" && as_dir=. | 
|  | 11120 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11121 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 11122 | ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" | 
|  | 11123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11124 | break 2 | 
|  | 11125 | fi | 
|  | 11126 | done | 
|  | 11127 | done | 
|  | 11128 | IFS=$as_save_IFS | 
|  | 11129 |  | 
|  | 11130 | test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" | 
|  | 11131 | ;; | 
|  | 11132 | esac | 
|  | 11133 | fi | 
|  | 11134 | DTRACE=$ac_cv_path_DTRACE | 
|  | 11135 | if test -n "$DTRACE"; then | 
|  | 11136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 | 
|  | 11137 | $as_echo "$DTRACE" >&6; } | 
|  | 11138 | else | 
|  | 11139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11140 | $as_echo "no" >&6; } | 
|  | 11141 | fi | 
|  | 11142 |  | 
|  | 11143 |  | 
|  | 11144 | if test "$DTRACE" = "not found"; then | 
|  | 11145 | as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 | 
|  | 11146 | fi | 
|  | 11147 |  | 
|  | 11148 | $as_echo "#define WITH_DTRACE 1" >>confdefs.h | 
|  | 11149 |  | 
|  | 11150 | DTRACE_HEADERS="Include/pydtrace_probes.h" | 
|  | 11151 |  | 
|  | 11152 | # On OS X, DTrace providers do not need to be explicitly compiled and | 
|  | 11153 | # linked into the binary. Correspondingly, dtrace(1) is missing the ELF | 
|  | 11154 | # generation flag '-G'. We check for presence of this flag, rather than | 
|  | 11155 | # hardcoding support by OS, in the interest of robustness. | 
|  | 11156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 | 
|  | 11157 | $as_echo_n "checking whether DTrace probes require linking... " >&6; } | 
|  | 11158 | if ${ac_cv_dtrace_link+:} false; then : | 
|  | 11159 | $as_echo_n "(cached) " >&6 | 
|  | 11160 | else | 
|  | 11161 | ac_cv_dtrace_link=no | 
|  | 11162 | echo 'BEGIN' > conftest.d | 
|  | 11163 | "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ | 
|  | 11164 | ac_cv_dtrace_link=yes | 
|  | 11165 |  | 
|  | 11166 | fi | 
|  | 11167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 | 
|  | 11168 | $as_echo "$ac_cv_dtrace_link" >&6; } | 
|  | 11169 | if test "$ac_cv_dtrace_link" = "yes"; then | 
|  | 11170 | DTRACE_OBJS="Python/pydtrace.o" | 
|  | 11171 | fi | 
|  | 11172 | fi | 
|  | 11173 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11174 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11175 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11176 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11177 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11178 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
|  | 11179 | # 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] | 11180 | for ac_func in dlopen | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11181 | do : | 
|  | 11182 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11183 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11184 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11185 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11186 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11187 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11188 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11189 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11190 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11191 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11192 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
|  | 11193 | # loading of modules. | 
|  | 11194 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
|  | 11196 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11197 | if test -z "$DYNLOADFILE" | 
|  | 11198 | then | 
|  | 11199 | case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 11200 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
|  | 11201 | if test "$ac_cv_func_dlopen" = yes | 
|  | 11202 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 11203 | else DYNLOADFILE="dynload_aix.o" | 
|  | 11204 | fi | 
|  | 11205 | ;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11206 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 11207 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
|  | 11208 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11209 | *) | 
|  | 11210 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
|  | 11211 | # out any dynamic loading | 
|  | 11212 | if test "$ac_cv_func_dlopen" = yes | 
|  | 11213 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 11214 | else DYNLOADFILE="dynload_stub.o" | 
|  | 11215 | fi | 
|  | 11216 | ;; | 
|  | 11217 | esac | 
|  | 11218 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
|  | 11220 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11221 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
|  | 11222 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11223 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11224 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11225 |  | 
|  | 11226 | fi | 
|  | 11227 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11228 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
|  | 11229 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11230 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
|  | 11232 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11233 | if test -z "$MACHDEP_OBJS" | 
|  | 11234 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11235 | MACHDEP_OBJS=$extra_machdep_objs | 
|  | 11236 | else | 
|  | 11237 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11238 | fi | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11239 | if test -z "$MACHDEP_OBJS"; then | 
|  | 11240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 11241 | $as_echo "none" >&6; } | 
|  | 11242 | else | 
|  | 11243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 | 
|  | 11244 | $as_echo "$MACHDEP_OBJS" >&6; } | 
|  | 11245 | fi | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11246 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11247 | # checks for library functions | 
| Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 11248 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | 
| Victor Stinner | daf4555 | 2013-08-28 00:53:59 +0200 | [diff] [blame] | 11249 | clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11250 | fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ | 
| Victor Stinner | 4d6a3d6 | 2014-12-21 01:16:38 +0100 | [diff] [blame] | 11251 | futimens futimes gai_strerror getentropy \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11252 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 11253 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Xavier de Gaye | bdf0d0f | 2016-12-22 10:38:59 +0100 | [diff] [blame] | 11254 | initgroups kill killpg lchmod lchown linkat lstat lutimes mmap \ | 
| Antoine Pitrou | f0effe6 | 2011-11-26 01:11:02 +0100 | [diff] [blame] | 11255 | memrchr mbrtowc mkdirat mkfifo \ | 
| Charles-François Natali | daafdd5 | 2011-05-29 20:07:40 +0200 | [diff] [blame] | 11256 | mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11257 | posix_fallocate posix_fadvise pread \ | 
| Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 11258 | pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 11259 | select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ | 
| Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 11260 | setgid sethostname \ | 
| Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 11261 | 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] | 11262 | sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ | 
|  | 11263 | sched_rr_get_interval \ | 
| Ross Lagerwall | bc80822 | 2011-06-25 12:13:40 +0200 | [diff] [blame] | 11264 | sigaction sigaltstack siginterrupt sigpending sigrelse \ | 
|  | 11265 | sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11266 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11267 | truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ | 
| Victor Stinner | cd777ea | 2013-04-08 22:43:44 +0200 | [diff] [blame] | 11268 | wcscoll wcsftime wcsxfrm wmemcmp writev _getpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11269 | do : | 
|  | 11270 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 11271 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11272 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11273 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11274 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11275 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11276 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11277 | fi | 
|  | 11278 | done | 
|  | 11279 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11280 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11281 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> | 
|  | 11282 | #include <dirent.h> | 
|  | 11283 | " | 
|  | 11284 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | 
|  | 11285 |  | 
|  | 11286 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | 
|  | 11287 |  | 
|  | 11288 | fi | 
|  | 11289 |  | 
|  | 11290 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11291 | # For some functions, having a definition is not sufficient, since | 
|  | 11292 | # we want to take their address. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
|  | 11294 | $as_echo_n "checking for chroot... " >&6; } | 
|  | 11295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11296 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11297 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11298 | int | 
|  | 11299 | main () | 
|  | 11300 | { | 
|  | 11301 | void *x=chroot | 
|  | 11302 | ; | 
|  | 11303 | return 0; | 
|  | 11304 | } | 
|  | 11305 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11306 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11307 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11308 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11309 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11311 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11312 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11314 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11315 |  | 
|  | 11316 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
|  | 11319 | $as_echo_n "checking for link... " >&6; } | 
|  | 11320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11321 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11322 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11323 | int | 
|  | 11324 | main () | 
|  | 11325 | { | 
|  | 11326 | void *x=link | 
|  | 11327 | ; | 
|  | 11328 | return 0; | 
|  | 11329 | } | 
|  | 11330 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11331 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11332 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11333 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11334 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11336 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11337 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11339 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11340 |  | 
|  | 11341 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
|  | 11344 | $as_echo_n "checking for symlink... " >&6; } | 
|  | 11345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11346 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11347 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11348 | int | 
|  | 11349 | main () | 
|  | 11350 | { | 
|  | 11351 | void *x=symlink | 
|  | 11352 | ; | 
|  | 11353 | return 0; | 
|  | 11354 | } | 
|  | 11355 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11356 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11357 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11358 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11359 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11361 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11362 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11364 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11365 |  | 
|  | 11366 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
|  | 11369 | $as_echo_n "checking for fchdir... " >&6; } | 
|  | 11370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11371 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11372 | #include <unistd.h> | 
|  | 11373 | int | 
|  | 11374 | main () | 
|  | 11375 | { | 
|  | 11376 | void *x=fchdir | 
|  | 11377 | ; | 
|  | 11378 | return 0; | 
|  | 11379 | } | 
|  | 11380 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11381 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11382 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11383 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11384 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11386 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11387 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11389 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11390 |  | 
|  | 11391 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
|  | 11394 | $as_echo_n "checking for fsync... " >&6; } | 
|  | 11395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11396 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11397 | #include <unistd.h> | 
|  | 11398 | int | 
|  | 11399 | main () | 
|  | 11400 | { | 
|  | 11401 | void *x=fsync | 
|  | 11402 | ; | 
|  | 11403 | return 0; | 
|  | 11404 | } | 
|  | 11405 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11406 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11407 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11408 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11409 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11411 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11412 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11414 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11415 |  | 
|  | 11416 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
|  | 11419 | $as_echo_n "checking for fdatasync... " >&6; } | 
|  | 11420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11421 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11422 | #include <unistd.h> | 
|  | 11423 | int | 
|  | 11424 | main () | 
|  | 11425 | { | 
|  | 11426 | void *x=fdatasync | 
|  | 11427 | ; | 
|  | 11428 | return 0; | 
|  | 11429 | } | 
|  | 11430 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11431 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11432 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11433 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11434 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11436 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11437 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11439 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11440 |  | 
|  | 11441 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
|  | 11444 | $as_echo_n "checking for epoll... " >&6; } | 
|  | 11445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11446 | /* end confdefs.h.  */ | 
|  | 11447 | #include <sys/epoll.h> | 
|  | 11448 | int | 
|  | 11449 | main () | 
|  | 11450 | { | 
|  | 11451 | void *x=epoll_create | 
|  | 11452 | ; | 
|  | 11453 | return 0; | 
|  | 11454 | } | 
|  | 11455 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11456 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11457 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11458 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11459 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11461 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11462 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11464 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11465 |  | 
|  | 11466 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 11468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 | 
|  | 11469 | $as_echo_n "checking for epoll_create1... " >&6; } | 
|  | 11470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11471 | /* end confdefs.h.  */ | 
|  | 11472 | #include <sys/epoll.h> | 
|  | 11473 | int | 
|  | 11474 | main () | 
|  | 11475 | { | 
|  | 11476 | void *x=epoll_create1 | 
|  | 11477 | ; | 
|  | 11478 | return 0; | 
|  | 11479 | } | 
|  | 11480 | _ACEOF | 
|  | 11481 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11482 |  | 
|  | 11483 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h | 
|  | 11484 |  | 
|  | 11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11486 | $as_echo "yes" >&6; } | 
|  | 11487 | else | 
|  | 11488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11489 | $as_echo "no" >&6; } | 
|  | 11490 |  | 
|  | 11491 | fi | 
|  | 11492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
|  | 11494 | $as_echo_n "checking for kqueue... " >&6; } | 
|  | 11495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11496 | /* end confdefs.h.  */ | 
|  | 11497 |  | 
|  | 11498 | #include <sys/types.h> | 
|  | 11499 | #include <sys/event.h> | 
|  | 11500 |  | 
|  | 11501 | int | 
|  | 11502 | main () | 
|  | 11503 | { | 
|  | 11504 | int x=kqueue() | 
|  | 11505 | ; | 
|  | 11506 | return 0; | 
|  | 11507 | } | 
|  | 11508 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11509 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11510 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11511 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11512 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11514 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11515 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11517 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11518 |  | 
|  | 11519 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 11521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 | 
|  | 11522 | $as_echo_n "checking for prlimit... " >&6; } | 
|  | 11523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11524 | /* end confdefs.h.  */ | 
|  | 11525 |  | 
|  | 11526 | #include <sys/time.h> | 
|  | 11527 | #include <sys/resource.h> | 
|  | 11528 |  | 
|  | 11529 | int | 
|  | 11530 | main () | 
|  | 11531 | { | 
|  | 11532 | void *x=prlimit | 
|  | 11533 | ; | 
|  | 11534 | return 0; | 
|  | 11535 | } | 
|  | 11536 | _ACEOF | 
|  | 11537 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11538 |  | 
|  | 11539 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h | 
|  | 11540 |  | 
|  | 11541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11542 | $as_echo "yes" >&6; } | 
|  | 11543 | else | 
|  | 11544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11545 | $as_echo "no" >&6; } | 
|  | 11546 |  | 
|  | 11547 | fi | 
|  | 11548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11549 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11550 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
|  | 11551 | # functions ctermid_r, setgroups in the library, but no prototype | 
|  | 11552 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
|  | 11553 | # address to avoid compiler warnings and potential miscompilations | 
|  | 11554 | # because of the missing prototypes. | 
|  | 11555 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
|  | 11557 | $as_echo_n "checking for ctermid_r... " >&6; } | 
|  | 11558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11559 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11560 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11561 | #include <stdio.h> | 
|  | 11562 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11563 | int | 
|  | 11564 | main () | 
|  | 11565 | { | 
|  | 11566 | void* p = ctermid_r | 
|  | 11567 | ; | 
|  | 11568 | return 0; | 
|  | 11569 | } | 
|  | 11570 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11571 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11572 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11573 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11574 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11576 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11577 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11579 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11580 |  | 
|  | 11581 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11583 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
|  | 11585 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11586 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11587 | $as_echo_n "(cached) " >&6 | 
|  | 11588 | else | 
|  | 11589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11590 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11591 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11592 | int | 
|  | 11593 | main () | 
|  | 11594 | { | 
|  | 11595 | void* p = flock | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11596 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11597 | ; | 
|  | 11598 | return 0; | 
|  | 11599 | } | 
|  | 11600 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11601 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11602 | ac_cv_flock_decl=yes | 
|  | 11603 | else | 
|  | 11604 | ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11605 |  | 
|  | 11606 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11608 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11609 | fi | 
|  | 11610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
|  | 11611 | $as_echo "$ac_cv_flock_decl" >&6; } | 
|  | 11612 | if test "x${ac_cv_flock_decl}" = xyes; then | 
|  | 11613 | for ac_func in flock | 
|  | 11614 | do : | 
|  | 11615 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11616 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11617 | cat >>confdefs.h <<_ACEOF | 
|  | 11618 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11619 | _ACEOF | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11620 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11621 | else | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11622 | { $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] | 11623 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11624 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11625 | $as_echo_n "(cached) " >&6 | 
|  | 11626 | else | 
|  | 11627 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11628 | LIBS="-lbsd  $LIBS" | 
|  | 11629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11630 | /* end confdefs.h.  */ | 
|  | 11631 |  | 
|  | 11632 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11633 | Use char because int might match the return type of a GCC | 
|  | 11634 | builtin and then its argument prototype would still apply.  */ | 
|  | 11635 | #ifdef __cplusplus | 
|  | 11636 | extern "C" | 
|  | 11637 | #endif | 
|  | 11638 | char flock (); | 
|  | 11639 | int | 
|  | 11640 | main () | 
|  | 11641 | { | 
|  | 11642 | return flock (); | 
|  | 11643 | ; | 
|  | 11644 | return 0; | 
|  | 11645 | } | 
|  | 11646 | _ACEOF | 
|  | 11647 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 11648 | ac_cv_lib_bsd_flock=yes | 
|  | 11649 | else | 
|  | 11650 | ac_cv_lib_bsd_flock=no | 
|  | 11651 | fi | 
|  | 11652 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11653 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11654 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11655 | fi | 
|  | 11656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
|  | 11657 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11658 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11659 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11660 |  | 
|  | 11661 |  | 
|  | 11662 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
|  | 11663 |  | 
|  | 11664 |  | 
|  | 11665 | fi | 
|  | 11666 |  | 
|  | 11667 |  | 
|  | 11668 | fi | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11669 | done | 
|  | 11670 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11671 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11672 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
|  | 11674 | $as_echo_n "checking for getpagesize... " >&6; } | 
|  | 11675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11676 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11677 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11678 | #include <unistd.h> | 
|  | 11679 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11680 | int | 
|  | 11681 | main () | 
|  | 11682 | { | 
|  | 11683 | void* p = getpagesize | 
|  | 11684 | ; | 
|  | 11685 | return 0; | 
|  | 11686 | } | 
|  | 11687 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11688 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11689 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11690 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11691 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11693 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11694 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11696 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11697 |  | 
|  | 11698 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11699 | 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] | 11700 |  | 
| Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 11701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
|  | 11702 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
|  | 11703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11704 | /* end confdefs.h.  */ | 
|  | 11705 |  | 
|  | 11706 | #include <stdlib.h> | 
|  | 11707 |  | 
|  | 11708 | int | 
|  | 11709 | main () | 
|  | 11710 | { | 
|  | 11711 | int res = unsetenv("DUMMY") | 
|  | 11712 | ; | 
|  | 11713 | return 0; | 
|  | 11714 | } | 
|  | 11715 | _ACEOF | 
|  | 11716 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11718 | $as_echo "no" >&6; } | 
|  | 11719 | else | 
|  | 11720 |  | 
|  | 11721 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
|  | 11722 |  | 
|  | 11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11724 | $as_echo "yes" >&6; } | 
|  | 11725 |  | 
|  | 11726 | fi | 
|  | 11727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11728 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11729 | for ac_prog in true | 
|  | 11730 | do | 
|  | 11731 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 11732 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11734 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11735 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11736 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11737 | else | 
|  | 11738 | if test -n "$TRUE"; then | 
|  | 11739 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
|  | 11740 | else | 
|  | 11741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11742 | for as_dir in $PATH | 
|  | 11743 | do | 
|  | 11744 | IFS=$as_save_IFS | 
|  | 11745 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11746 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11747 | 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] | 11748 | ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11749 | $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] | 11750 | break 2 | 
|  | 11751 | fi | 
|  | 11752 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11753 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11754 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11755 |  | 
|  | 11756 | fi | 
|  | 11757 | fi | 
|  | 11758 | TRUE=$ac_cv_prog_TRUE | 
|  | 11759 | if test -n "$TRUE"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
|  | 11761 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11762 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11764 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11765 | fi | 
|  | 11766 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11767 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11768 | test -n "$TRUE" && break | 
|  | 11769 | done | 
|  | 11770 | test -n "$TRUE" || TRUE="/bin/true" | 
|  | 11771 |  | 
|  | 11772 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
|  | 11774 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11775 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11776 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11777 | else | 
|  | 11778 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11779 | LIBS="-lc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11781 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11782 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11783 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11784 | Use char because int might match the return type of a GCC | 
|  | 11785 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11786 | #ifdef __cplusplus | 
|  | 11787 | extern "C" | 
|  | 11788 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11789 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11790 | int | 
|  | 11791 | main () | 
|  | 11792 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11793 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11794 | ; | 
|  | 11795 | return 0; | 
|  | 11796 | } | 
|  | 11797 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11798 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11799 | ac_cv_lib_c_inet_aton=yes | 
|  | 11800 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11801 | ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11802 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11803 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11804 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11805 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11806 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
|  | 11808 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11809 | 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] | 11810 | $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11811 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
|  | 11813 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11814 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11815 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11816 | else | 
|  | 11817 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11818 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11820 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11821 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11822 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11823 | Use char because int might match the return type of a GCC | 
|  | 11824 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11825 | #ifdef __cplusplus | 
|  | 11826 | extern "C" | 
|  | 11827 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11828 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11829 | int | 
|  | 11830 | main () | 
|  | 11831 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11832 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11833 | ; | 
|  | 11834 | return 0; | 
|  | 11835 | } | 
|  | 11836 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11837 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11838 | ac_cv_lib_resolv_inet_aton=yes | 
|  | 11839 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11840 | ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11841 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11842 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11843 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11844 | LIBS=$ac_check_lib_save_LIBS | 
|  | 11845 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
|  | 11847 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11848 | 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] | 11849 | cat >>confdefs.h <<_ACEOF | 
|  | 11850 | #define HAVE_LIBRESOLV 1 | 
|  | 11851 | _ACEOF | 
|  | 11852 |  | 
|  | 11853 | LIBS="-lresolv $LIBS" | 
|  | 11854 |  | 
|  | 11855 | fi | 
|  | 11856 |  | 
|  | 11857 |  | 
|  | 11858 | fi | 
|  | 11859 |  | 
|  | 11860 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11861 | # On Tru64, chflags seems to be present, but calling it will | 
|  | 11862 | # exit Python | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
|  | 11864 | $as_echo_n "checking for chflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11865 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11866 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11867 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11868 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11869 | ac_cv_have_chflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11870 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11872 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11873 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11874 | #include <sys/stat.h> | 
|  | 11875 | #include <unistd.h> | 
|  | 11876 | int main(int argc, char*argv[]) | 
|  | 11877 | { | 
|  | 11878 | if(chflags(argv[0], 0) != 0) | 
|  | 11879 | return 1; | 
|  | 11880 | return 0; | 
|  | 11881 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11882 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11883 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11884 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11885 | ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11886 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11887 | ac_cv_have_chflags=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11888 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11889 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11890 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 11891 | fi | 
|  | 11892 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11893 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11894 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
|  | 11896 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11897 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11898 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11899 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11900 | ac_cv_have_chflags="yes" | 
|  | 11901 | else | 
|  | 11902 | ac_cv_have_chflags="no" | 
|  | 11903 | fi | 
|  | 11904 |  | 
|  | 11905 | fi | 
|  | 11906 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11907 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11908 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11909 |  | 
|  | 11910 | fi | 
|  | 11911 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
|  | 11913 | $as_echo_n "checking for lchflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11914 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11915 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11916 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11917 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11918 | ac_cv_have_lchflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11919 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11921 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11922 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11923 | #include <sys/stat.h> | 
|  | 11924 | #include <unistd.h> | 
|  | 11925 | int main(int argc, char*argv[]) | 
|  | 11926 | { | 
|  | 11927 | if(lchflags(argv[0], 0) != 0) | 
|  | 11928 | return 1; | 
|  | 11929 | return 0; | 
|  | 11930 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11931 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11932 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11933 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11934 | ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11935 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11936 | ac_cv_have_lchflags=no | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11937 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11938 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11939 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11940 | fi | 
|  | 11941 |  | 
|  | 11942 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11943 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
|  | 11945 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11946 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11947 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11948 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11949 | ac_cv_have_lchflags="yes" | 
|  | 11950 | else | 
|  | 11951 | ac_cv_have_lchflags="no" | 
|  | 11952 | fi | 
|  | 11953 |  | 
|  | 11954 | fi | 
|  | 11955 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11956 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11957 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11958 |  | 
|  | 11959 | fi | 
|  | 11960 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11961 | case $ac_sys_system/$ac_sys_release in | 
|  | 11962 | Darwin/*) | 
|  | 11963 | _CUR_CFLAGS="${CFLAGS}" | 
|  | 11964 | _CUR_LDFLAGS="${LDFLAGS}" | 
|  | 11965 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
|  | 11966 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
|  | 11967 | ;; | 
|  | 11968 | esac | 
|  | 11969 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
|  | 11971 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11972 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11973 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11974 | else | 
|  | 11975 | ac_check_lib_save_LIBS=$LIBS | 
|  | 11976 | LIBS="-lz  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11978 | /* end confdefs.h.  */ | 
|  | 11979 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11980 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11981 | Use char because int might match the return type of a GCC | 
|  | 11982 | builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11983 | #ifdef __cplusplus | 
|  | 11984 | extern "C" | 
|  | 11985 | #endif | 
|  | 11986 | char inflateCopy (); | 
|  | 11987 | int | 
|  | 11988 | main () | 
|  | 11989 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11990 | return inflateCopy (); | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11991 | ; | 
|  | 11992 | return 0; | 
|  | 11993 | } | 
|  | 11994 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11995 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11996 | ac_cv_lib_z_inflateCopy=yes | 
|  | 11997 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11998 | ac_cv_lib_z_inflateCopy=no | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11999 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12000 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12001 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12002 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12003 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
|  | 12005 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12006 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12007 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12008 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 12009 |  | 
|  | 12010 | fi | 
|  | 12011 |  | 
|  | 12012 |  | 
|  | 12013 | case $ac_sys_system/$ac_sys_release in | 
|  | 12014 | Darwin/*) | 
|  | 12015 | CFLAGS="${_CUR_CFLAGS}" | 
|  | 12016 | LDFLAGS="${_CUR_LDFLAGS}" | 
|  | 12017 | ;; | 
|  | 12018 | esac | 
|  | 12019 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
|  | 12021 | $as_echo_n "checking for hstrerror... " >&6; } | 
|  | 12022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12023 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12024 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12025 | #include <netdb.h> | 
|  | 12026 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12027 | int | 
|  | 12028 | main () | 
|  | 12029 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12030 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12031 | ; | 
|  | 12032 | return 0; | 
|  | 12033 | } | 
|  | 12034 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12035 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12036 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12037 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12038 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12040 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12041 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12043 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12044 |  | 
|  | 12045 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12046 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12047 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12048 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
|  | 12050 | $as_echo_n "checking for inet_aton... " >&6; } | 
|  | 12051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12052 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12053 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12054 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12055 | #include <sys/socket.h> | 
|  | 12056 | #include <netinet/in.h> | 
|  | 12057 | #include <arpa/inet.h> | 
|  | 12058 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12059 | int | 
|  | 12060 | main () | 
|  | 12061 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12062 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12063 | ; | 
|  | 12064 | return 0; | 
|  | 12065 | } | 
|  | 12066 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12067 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12068 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12069 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12070 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12072 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12073 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12075 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12076 |  | 
|  | 12077 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12078 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12079 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12080 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
|  | 12082 | $as_echo_n "checking for inet_pton... " >&6; } | 
|  | 12083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12084 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12085 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12086 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12087 | #include <sys/socket.h> | 
|  | 12088 | #include <netinet/in.h> | 
|  | 12089 | #include <arpa/inet.h> | 
|  | 12090 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12091 | int | 
|  | 12092 | main () | 
|  | 12093 | { | 
|  | 12094 | void* p = inet_pton | 
|  | 12095 | ; | 
|  | 12096 | return 0; | 
|  | 12097 | } | 
|  | 12098 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12099 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12100 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12101 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12102 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12104 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12105 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12107 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12108 |  | 
|  | 12109 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12110 | 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] | 12111 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12112 | # 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] | 12113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
|  | 12114 | $as_echo_n "checking for setgroups... " >&6; } | 
|  | 12115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12116 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12117 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12118 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12119 | #ifdef HAVE_GRP_H | 
|  | 12120 | #include <grp.h> | 
|  | 12121 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12122 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12123 | int | 
|  | 12124 | main () | 
|  | 12125 | { | 
|  | 12126 | void* p = setgroups | 
|  | 12127 | ; | 
|  | 12128 | return 0; | 
|  | 12129 | } | 
|  | 12130 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12131 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12132 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12133 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12134 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12136 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12137 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12139 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12140 |  | 
|  | 12141 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12142 | 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] | 12143 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12144 | # check for openpty and forkpty | 
|  | 12145 |  | 
|  | 12146 | for ac_func in openpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12147 | do : | 
|  | 12148 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12149 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12150 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12151 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12152 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12153 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12154 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
|  | 12156 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12157 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12158 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12159 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12160 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12161 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12163 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12164 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12165 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12166 | Use char because int might match the return type of a GCC | 
|  | 12167 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12168 | #ifdef __cplusplus | 
|  | 12169 | extern "C" | 
|  | 12170 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12171 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12172 | int | 
|  | 12173 | main () | 
|  | 12174 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12175 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12176 | ; | 
|  | 12177 | return 0; | 
|  | 12178 | } | 
|  | 12179 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12180 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12181 | ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12182 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12183 | ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12184 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12185 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12186 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12187 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12188 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
|  | 12190 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12191 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12192 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12193 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12194 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
|  | 12196 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12197 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12198 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12199 | else | 
|  | 12200 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12201 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12203 | /* end confdefs.h.  */ | 
|  | 12204 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12205 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12206 | Use char because int might match the return type of a GCC | 
|  | 12207 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12208 | #ifdef __cplusplus | 
|  | 12209 | extern "C" | 
|  | 12210 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12211 | char openpty (); | 
|  | 12212 | int | 
|  | 12213 | main () | 
|  | 12214 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12215 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12216 | ; | 
|  | 12217 | return 0; | 
|  | 12218 | } | 
|  | 12219 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12220 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12221 | ac_cv_lib_bsd_openpty=yes | 
|  | 12222 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12223 | ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12224 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12225 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12226 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12227 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12228 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
|  | 12230 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12231 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12232 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12233 | LIBS="$LIBS -lbsd" | 
|  | 12234 | fi | 
|  | 12235 |  | 
|  | 12236 |  | 
|  | 12237 | fi | 
|  | 12238 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12239 |  | 
|  | 12240 | fi | 
|  | 12241 | done | 
|  | 12242 |  | 
|  | 12243 | for ac_func in forkpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12244 | do : | 
|  | 12245 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12246 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12247 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12248 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12249 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12250 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12251 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
|  | 12253 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12254 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12255 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12256 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12257 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12258 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12260 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12261 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12262 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12263 | Use char because int might match the return type of a GCC | 
|  | 12264 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12265 | #ifdef __cplusplus | 
|  | 12266 | extern "C" | 
|  | 12267 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12268 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12269 | int | 
|  | 12270 | main () | 
|  | 12271 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12272 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12273 | ; | 
|  | 12274 | return 0; | 
|  | 12275 | } | 
|  | 12276 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12277 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12278 | ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12279 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12280 | ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12281 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12282 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12283 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12284 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12285 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
|  | 12287 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12288 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12289 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12290 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12291 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
|  | 12293 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12294 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12295 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12296 | else | 
|  | 12297 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12298 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12300 | /* end confdefs.h.  */ | 
|  | 12301 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12302 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12303 | Use char because int might match the return type of a GCC | 
|  | 12304 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12305 | #ifdef __cplusplus | 
|  | 12306 | extern "C" | 
|  | 12307 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12308 | char forkpty (); | 
|  | 12309 | int | 
|  | 12310 | main () | 
|  | 12311 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12312 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12313 | ; | 
|  | 12314 | return 0; | 
|  | 12315 | } | 
|  | 12316 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12317 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12318 | ac_cv_lib_bsd_forkpty=yes | 
|  | 12319 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12320 | ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12321 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12322 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12323 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12324 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12325 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
|  | 12327 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12328 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12329 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12330 | LIBS="$LIBS -lbsd" | 
|  | 12331 | fi | 
|  | 12332 |  | 
|  | 12333 |  | 
|  | 12334 | fi | 
|  | 12335 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12336 |  | 
|  | 12337 | fi | 
|  | 12338 | done | 
|  | 12339 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12340 |  | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12341 | # Stuff for expat. | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12342 | for ac_func in memmove | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12343 | do : | 
|  | 12344 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12345 | if test "x$ac_cv_func_memmove" = xyes; then : | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12346 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12347 | #define HAVE_MEMMOVE 1 | 
| Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12348 | _ACEOF | 
|  | 12349 |  | 
|  | 12350 | fi | 
|  | 12351 | done | 
|  | 12352 |  | 
|  | 12353 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12354 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12355 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12356 | do : | 
|  | 12357 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 12358 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12359 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12360 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12361 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12362 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12363 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12364 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12365 | done | 
|  | 12366 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12367 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12368 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12369 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12370 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12371 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12372 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12373 | case " $LIBOBJS " in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12374 | *" dup2.$ac_objext "* ) ;; | 
|  | 12375 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12376 | ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12377 | esac | 
|  | 12378 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12379 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12380 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12381 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12382 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12383 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
|  | 12384 |  | 
|  | 12385 | else | 
|  | 12386 | case " $LIBOBJS " in | 
|  | 12387 | *" strdup.$ac_objext "* ) ;; | 
|  | 12388 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
|  | 12389 | ;; | 
|  | 12390 | esac | 
|  | 12391 |  | 
|  | 12392 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12393 |  | 
|  | 12394 |  | 
|  | 12395 | for ac_func in getpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12396 | do : | 
|  | 12397 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12398 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12399 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12400 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12401 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12403 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12404 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12405 | int | 
|  | 12406 | main () | 
|  | 12407 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12408 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12409 | ; | 
|  | 12410 | return 0; | 
|  | 12411 | } | 
|  | 12412 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12413 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12414 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12415 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12416 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12417 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12418 | 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] | 12419 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12420 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12421 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12422 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12423 | for ac_func in setpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12424 | do : | 
|  | 12425 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12426 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12427 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12428 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12429 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12431 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12432 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12433 | int | 
|  | 12434 | main () | 
|  | 12435 | { | 
|  | 12436 | setpgrp(0,0); | 
|  | 12437 | ; | 
|  | 12438 | return 0; | 
|  | 12439 | } | 
|  | 12440 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12441 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12442 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12443 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12444 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12445 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12447 |  | 
|  | 12448 | fi | 
|  | 12449 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12450 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12451 | for ac_func in gettimeofday | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12452 | do : | 
|  | 12453 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12454 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12455 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12456 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12457 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12459 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12460 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12461 | int | 
|  | 12462 | main () | 
|  | 12463 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12464 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12465 | ; | 
|  | 12466 | return 0; | 
|  | 12467 | } | 
|  | 12468 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12469 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12470 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12471 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12472 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12473 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12474 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12475 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12476 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12477 | 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] | 12478 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12479 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12480 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12481 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12482 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12483 | for ac_func in clock_gettime | 
|  | 12484 | do : | 
|  | 12485 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | 
|  | 12486 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | 
|  | 12487 | cat >>confdefs.h <<_ACEOF | 
|  | 12488 | #define HAVE_CLOCK_GETTIME 1 | 
|  | 12489 | _ACEOF | 
|  | 12490 |  | 
|  | 12491 | else | 
|  | 12492 |  | 
|  | 12493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | 
|  | 12494 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | 
|  | 12495 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | 
|  | 12496 | $as_echo_n "(cached) " >&6 | 
|  | 12497 | else | 
|  | 12498 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12499 | LIBS="-lrt  $LIBS" | 
|  | 12500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12501 | /* end confdefs.h.  */ | 
|  | 12502 |  | 
|  | 12503 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12504 | Use char because int might match the return type of a GCC | 
|  | 12505 | builtin and then its argument prototype would still apply.  */ | 
|  | 12506 | #ifdef __cplusplus | 
|  | 12507 | extern "C" | 
|  | 12508 | #endif | 
|  | 12509 | char clock_gettime (); | 
|  | 12510 | int | 
|  | 12511 | main () | 
|  | 12512 | { | 
|  | 12513 | return clock_gettime (); | 
|  | 12514 | ; | 
|  | 12515 | return 0; | 
|  | 12516 | } | 
|  | 12517 | _ACEOF | 
|  | 12518 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 12519 | ac_cv_lib_rt_clock_gettime=yes | 
|  | 12520 | else | 
|  | 12521 | ac_cv_lib_rt_clock_gettime=no | 
|  | 12522 | fi | 
|  | 12523 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12524 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12525 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12526 | fi | 
|  | 12527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | 
|  | 12528 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | 
|  | 12529 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | 
|  | 12530 |  | 
| Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 12531 | LIBS="$LIBS -lrt" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12532 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | 
|  | 12533 |  | 
|  | 12534 |  | 
|  | 12535 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h | 
|  | 12536 |  | 
|  | 12537 |  | 
|  | 12538 | fi | 
|  | 12539 |  | 
|  | 12540 |  | 
|  | 12541 | fi | 
|  | 12542 | done | 
|  | 12543 |  | 
|  | 12544 |  | 
|  | 12545 | for ac_func in clock_getres | 
|  | 12546 | do : | 
|  | 12547 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | 
|  | 12548 | if test "x$ac_cv_func_clock_getres" = xyes; then : | 
|  | 12549 | cat >>confdefs.h <<_ACEOF | 
|  | 12550 | #define HAVE_CLOCK_GETRES 1 | 
|  | 12551 | _ACEOF | 
|  | 12552 |  | 
|  | 12553 | else | 
|  | 12554 |  | 
|  | 12555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 | 
|  | 12556 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | 
|  | 12557 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | 
|  | 12558 | $as_echo_n "(cached) " >&6 | 
|  | 12559 | else | 
|  | 12560 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12561 | LIBS="-lrt  $LIBS" | 
|  | 12562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12563 | /* end confdefs.h.  */ | 
|  | 12564 |  | 
|  | 12565 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12566 | Use char because int might match the return type of a GCC | 
|  | 12567 | builtin and then its argument prototype would still apply.  */ | 
|  | 12568 | #ifdef __cplusplus | 
|  | 12569 | extern "C" | 
|  | 12570 | #endif | 
|  | 12571 | char clock_getres (); | 
|  | 12572 | int | 
|  | 12573 | main () | 
|  | 12574 | { | 
|  | 12575 | return clock_getres (); | 
|  | 12576 | ; | 
|  | 12577 | return 0; | 
|  | 12578 | } | 
|  | 12579 | _ACEOF | 
|  | 12580 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 12581 | ac_cv_lib_rt_clock_getres=yes | 
|  | 12582 | else | 
|  | 12583 | ac_cv_lib_rt_clock_getres=no | 
|  | 12584 | fi | 
|  | 12585 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12586 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12587 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12588 | fi | 
|  | 12589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 | 
|  | 12590 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | 
|  | 12591 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | 
|  | 12592 |  | 
|  | 12593 | $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h | 
|  | 12594 |  | 
|  | 12595 |  | 
|  | 12596 | fi | 
|  | 12597 |  | 
|  | 12598 |  | 
|  | 12599 | fi | 
|  | 12600 | done | 
|  | 12601 |  | 
|  | 12602 |  | 
| Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 12603 | for ac_func in clock_settime | 
|  | 12604 | do : | 
|  | 12605 | ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" | 
|  | 12606 | if test "x$ac_cv_func_clock_settime" = xyes; then : | 
|  | 12607 | cat >>confdefs.h <<_ACEOF | 
|  | 12608 | #define HAVE_CLOCK_SETTIME 1 | 
|  | 12609 | _ACEOF | 
|  | 12610 |  | 
|  | 12611 | else | 
|  | 12612 |  | 
|  | 12613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 | 
|  | 12614 | $as_echo_n "checking for clock_settime in -lrt... " >&6; } | 
|  | 12615 | if ${ac_cv_lib_rt_clock_settime+:} false; then : | 
|  | 12616 | $as_echo_n "(cached) " >&6 | 
|  | 12617 | else | 
|  | 12618 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12619 | LIBS="-lrt  $LIBS" | 
|  | 12620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12621 | /* end confdefs.h.  */ | 
|  | 12622 |  | 
|  | 12623 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12624 | Use char because int might match the return type of a GCC | 
|  | 12625 | builtin and then its argument prototype would still apply.  */ | 
|  | 12626 | #ifdef __cplusplus | 
|  | 12627 | extern "C" | 
|  | 12628 | #endif | 
|  | 12629 | char clock_settime (); | 
|  | 12630 | int | 
|  | 12631 | main () | 
|  | 12632 | { | 
|  | 12633 | return clock_settime (); | 
|  | 12634 | ; | 
|  | 12635 | return 0; | 
|  | 12636 | } | 
|  | 12637 | _ACEOF | 
|  | 12638 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 12639 | ac_cv_lib_rt_clock_settime=yes | 
|  | 12640 | else | 
|  | 12641 | ac_cv_lib_rt_clock_settime=no | 
|  | 12642 | fi | 
|  | 12643 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12644 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12645 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12646 | fi | 
|  | 12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 | 
|  | 12648 | $as_echo "$ac_cv_lib_rt_clock_settime" >&6; } | 
|  | 12649 | if test "x$ac_cv_lib_rt_clock_settime" = xyes; then : | 
|  | 12650 |  | 
|  | 12651 | $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h | 
|  | 12652 |  | 
|  | 12653 |  | 
|  | 12654 | fi | 
|  | 12655 |  | 
|  | 12656 |  | 
|  | 12657 | fi | 
|  | 12658 | done | 
|  | 12659 |  | 
|  | 12660 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
|  | 12662 | $as_echo_n "checking for major... " >&6; } | 
|  | 12663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12664 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12665 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12666 | #if defined(MAJOR_IN_MKDEV) | 
|  | 12667 | #include <sys/mkdev.h> | 
|  | 12668 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 12669 | #include <sys/sysmacros.h> | 
|  | 12670 | #else | 
|  | 12671 | #include <sys/types.h> | 
|  | 12672 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12673 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12674 | int | 
|  | 12675 | main () | 
|  | 12676 | { | 
|  | 12677 |  | 
|  | 12678 | makedev(major(0),minor(0)); | 
|  | 12679 |  | 
|  | 12680 | ; | 
|  | 12681 | return 0; | 
|  | 12682 | } | 
|  | 12683 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12684 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12685 |  | 
|  | 12686 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12687 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12688 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 12690 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12691 |  | 
|  | 12692 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12693 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12695 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12696 |  | 
|  | 12697 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12698 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12699 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12700 |  | 
| Xavier de Gaye | 40e320b | 2016-12-21 17:29:59 +0100 | [diff] [blame] | 12701 | # On Android API level 24 with android-ndk-r13, if_nameindex() is available, | 
|  | 12702 | # but the if_nameindex structure is not defined. | 
| Xavier de Gaye | 7087842 | 2016-12-21 12:46:36 +0100 | [diff] [blame] | 12703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nameindex" >&5 | 
|  | 12704 | $as_echo_n "checking for if_nameindex... " >&6; } | 
|  | 12705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12706 | /* end confdefs.h.  */ | 
|  | 12707 |  | 
| Xavier de Gaye | 40e320b | 2016-12-21 17:29:59 +0100 | [diff] [blame] | 12708 | #include <stdio.h> | 
|  | 12709 | #ifdef STDC_HEADERS | 
|  | 12710 | # include <stdlib.h> | 
|  | 12711 | # include <stddef.h> | 
|  | 12712 | #else | 
|  | 12713 | # ifdef HAVE_STDLIB_H | 
|  | 12714 | #  include <stdlib.h> | 
|  | 12715 | # endif | 
|  | 12716 | #endif | 
|  | 12717 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 12718 | # include <sys/socket.h> | 
|  | 12719 | #endif | 
| Xavier de Gaye | 7087842 | 2016-12-21 12:46:36 +0100 | [diff] [blame] | 12720 | #ifdef HAVE_NET_IF_H | 
|  | 12721 | # include <net/if.h> | 
|  | 12722 | #endif | 
|  | 12723 |  | 
|  | 12724 | int | 
|  | 12725 | main () | 
|  | 12726 | { | 
|  | 12727 | struct if_nameindex *ni = if_nameindex(); int x = ni[0].if_index; | 
|  | 12728 | ; | 
|  | 12729 | return 0; | 
|  | 12730 | } | 
|  | 12731 | _ACEOF | 
|  | 12732 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 12733 |  | 
|  | 12734 | $as_echo "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h | 
|  | 12735 |  | 
|  | 12736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 12737 | $as_echo "yes" >&6; } | 
|  | 12738 | else | 
|  | 12739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12740 | $as_echo "no" >&6; } | 
|  | 12741 |  | 
|  | 12742 | fi | 
|  | 12743 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12744 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12745 |  | 
| Xavier de Gaye | bdf0d0f | 2016-12-22 10:38:59 +0100 | [diff] [blame] | 12746 | # Issue #28762: lockf() is available on Android API level 24, but the F_LOCK | 
|  | 12747 | # macro is not defined in android-ndk-r13. | 
|  | 12748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lockf" >&5 | 
|  | 12749 | $as_echo_n "checking for lockf... " >&6; } | 
|  | 12750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12751 | /* end confdefs.h.  */ | 
|  | 12752 | #include <unistd.h> | 
|  | 12753 | int | 
|  | 12754 | main () | 
|  | 12755 | { | 
|  | 12756 | lockf(0, F_LOCK, 0); | 
|  | 12757 | ; | 
|  | 12758 | return 0; | 
|  | 12759 | } | 
|  | 12760 | _ACEOF | 
|  | 12761 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 12762 |  | 
|  | 12763 | $as_echo "#define HAVE_LOCKF 1" >>confdefs.h | 
|  | 12764 |  | 
|  | 12765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 12766 | $as_echo "yes" >&6; } | 
|  | 12767 | else | 
|  | 12768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12769 | $as_echo "no" >&6; } | 
|  | 12770 |  | 
|  | 12771 | fi | 
|  | 12772 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12773 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12774 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12775 | # 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] | 12776 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
|  | 12778 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
|  | 12779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12780 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12781 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12782 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12783 | #include <sys/socket.h> | 
|  | 12784 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12785 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12786 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12787 | int | 
|  | 12788 | main () | 
|  | 12789 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12790 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12791 | ; | 
|  | 12792 | return 0; | 
|  | 12793 | } | 
|  | 12794 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12795 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12796 | have_getaddrinfo=yes | 
|  | 12797 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12798 | have_getaddrinfo=no | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12799 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12800 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12801 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
|  | 12803 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12804 | if test $have_getaddrinfo = yes | 
|  | 12805 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
|  | 12807 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12808 | if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12809 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12810 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12811 | if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12812 |  | 
|  | 12813 | if test "${enable_ipv6+set}" = set; then | 
|  | 12814 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | 
|  | 12815 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12816 | ac_cv_buggy_getaddrinfo=yes | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12817 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12818 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12820 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12821 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 12822 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12823 | #include <sys/types.h> | 
|  | 12824 | #include <netdb.h> | 
|  | 12825 | #include <string.h> | 
|  | 12826 | #include <sys/socket.h> | 
|  | 12827 | #include <netinet/in.h> | 
|  | 12828 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12829 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12830 | { | 
|  | 12831 | int passive, gaierr, inet4 = 0, inet6 = 0; | 
|  | 12832 | struct addrinfo hints, *ai, *aitop; | 
|  | 12833 | char straddr[INET6_ADDRSTRLEN], strport[16]; | 
|  | 12834 |  | 
|  | 12835 | for (passive = 0; passive <= 1; passive++) { | 
|  | 12836 | memset(&hints, 0, sizeof(hints)); | 
|  | 12837 | hints.ai_family = AF_UNSPEC; | 
|  | 12838 | hints.ai_flags = passive ? AI_PASSIVE : 0; | 
|  | 12839 | hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 12840 | hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12841 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
|  | 12842 | (void)gai_strerror(gaierr); | 
|  | 12843 | goto bad; | 
|  | 12844 | } | 
|  | 12845 | for (ai = aitop; ai; ai = ai->ai_next) { | 
|  | 12846 | if (ai->ai_addr == NULL || | 
|  | 12847 | ai->ai_addrlen == 0 || | 
|  | 12848 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
|  | 12849 | straddr, sizeof(straddr), strport, sizeof(strport), | 
|  | 12850 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
|  | 12851 | goto bad; | 
|  | 12852 | } | 
|  | 12853 | switch (ai->ai_family) { | 
|  | 12854 | case AF_INET: | 
|  | 12855 | if (strcmp(strport, "54321") != 0) { | 
|  | 12856 | goto bad; | 
|  | 12857 | } | 
|  | 12858 | if (passive) { | 
|  | 12859 | if (strcmp(straddr, "0.0.0.0") != 0) { | 
|  | 12860 | goto bad; | 
|  | 12861 | } | 
|  | 12862 | } else { | 
|  | 12863 | if (strcmp(straddr, "127.0.0.1") != 0) { | 
|  | 12864 | goto bad; | 
|  | 12865 | } | 
|  | 12866 | } | 
|  | 12867 | inet4++; | 
|  | 12868 | break; | 
|  | 12869 | case AF_INET6: | 
|  | 12870 | if (strcmp(strport, "54321") != 0) { | 
|  | 12871 | goto bad; | 
|  | 12872 | } | 
|  | 12873 | if (passive) { | 
|  | 12874 | if (strcmp(straddr, "::") != 0) { | 
|  | 12875 | goto bad; | 
|  | 12876 | } | 
|  | 12877 | } else { | 
|  | 12878 | if (strcmp(straddr, "::1") != 0) { | 
|  | 12879 | goto bad; | 
|  | 12880 | } | 
|  | 12881 | } | 
|  | 12882 | inet6++; | 
|  | 12883 | break; | 
|  | 12884 | case AF_UNSPEC: | 
|  | 12885 | goto bad; | 
|  | 12886 | break; | 
|  | 12887 | default: | 
|  | 12888 | /* another family support? */ | 
|  | 12889 | break; | 
|  | 12890 | } | 
|  | 12891 | } | 
| Benjamin Peterson | 01c340d | 2016-09-06 15:54:24 -0700 | [diff] [blame] | 12892 | freeaddrinfo(aitop); | 
|  | 12893 | aitop = NULL; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12894 | } | 
|  | 12895 |  | 
|  | 12896 | if (!(inet4 == 0 || inet4 == 2)) | 
|  | 12897 | goto bad; | 
|  | 12898 | if (!(inet6 == 0 || inet6 == 2)) | 
|  | 12899 | goto bad; | 
|  | 12900 |  | 
|  | 12901 | if (aitop) | 
|  | 12902 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12903 | return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12904 |  | 
|  | 12905 | bad: | 
|  | 12906 | if (aitop) | 
|  | 12907 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12908 | return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12909 | } | 
|  | 12910 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12911 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12912 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12913 | ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12914 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12915 | ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12916 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12917 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12918 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12919 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12920 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12921 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12922 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12923 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12924 |  | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
|  | 12926 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
|  | 12927 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12928 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12929 | then | 
|  | 12930 | if test $ipv6 = yes | 
|  | 12931 | then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12932 | echo 'Fatal: You must get working getaddrinfo() function.' | 
|  | 12933 | echo '       or you can specify "--disable-ipv6"'. | 
|  | 12934 | exit 1 | 
|  | 12935 | fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12936 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12937 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12938 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12939 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12940 | fi | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12941 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12942 | for ac_func in getnameinfo | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12943 | do : | 
|  | 12944 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12945 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12946 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12947 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12948 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12949 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12950 | fi | 
|  | 12951 | done | 
|  | 12952 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12953 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12954 | # checks for structures | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
|  | 12956 | $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] | 12957 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12958 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12959 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12961 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12962 | #include <sys/types.h> | 
|  | 12963 | #include <sys/time.h> | 
|  | 12964 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12965 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12966 | int | 
|  | 12967 | main () | 
|  | 12968 | { | 
|  | 12969 | if ((struct tm *) 0) | 
|  | 12970 | return 0; | 
|  | 12971 | ; | 
|  | 12972 | return 0; | 
|  | 12973 | } | 
|  | 12974 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12975 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12976 | ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12977 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12978 | ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12979 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12981 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
|  | 12983 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12984 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12985 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12986 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12987 |  | 
|  | 12988 | fi | 
|  | 12989 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|  | 12991 | $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] | 12992 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12993 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12994 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12996 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12997 | #include <sys/types.h> | 
|  | 12998 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12999 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13000 | int | 
|  | 13001 | main () | 
|  | 13002 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13003 | struct tm tm; | 
|  | 13004 | int *p = &tm.tm_sec; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13005 | return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13006 | ; | 
|  | 13007 | return 0; | 
|  | 13008 | } | 
|  | 13009 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13010 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13011 | ac_cv_struct_tm=time.h | 
|  | 13012 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13013 | ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13014 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13016 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
|  | 13018 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13019 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13020 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13021 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13022 |  | 
|  | 13023 | fi | 
|  | 13024 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13025 | 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] | 13026 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13027 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13028 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13029 | 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] | 13030 |  | 
|  | 13031 | cat >>confdefs.h <<_ACEOF | 
|  | 13032 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 13033 | _ACEOF | 
|  | 13034 |  | 
|  | 13035 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13036 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13037 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13038 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 13039 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13040 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13041 |  | 
|  | 13042 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13043 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 13044 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13045 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13046 | ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13047 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13048 | ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13049 | fi | 
|  | 13050 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13051 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13052 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13053 | _ACEOF | 
|  | 13054 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 13056 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13057 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13058 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13059 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13061 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13062 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13063 | #if !HAVE_DECL_TZNAME | 
|  | 13064 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13065 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13066 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13067 | int | 
|  | 13068 | main () | 
|  | 13069 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13070 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13071 | ; | 
|  | 13072 | return 0; | 
|  | 13073 | } | 
|  | 13074 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13075 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13076 | ac_cv_var_tzname=yes | 
|  | 13077 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13078 | ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13079 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13080 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13081 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13082 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 13084 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13085 | if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13086 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13087 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13088 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13089 | fi | 
|  | 13090 | fi | 
|  | 13091 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13092 | 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] | 13093 | 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] | 13094 |  | 
|  | 13095 | cat >>confdefs.h <<_ACEOF | 
|  | 13096 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
|  | 13097 | _ACEOF | 
|  | 13098 |  | 
|  | 13099 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13100 | fi | 
|  | 13101 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13102 | 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] | 13103 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13104 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | cat >>confdefs.h <<_ACEOF | 
|  | 13106 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
|  | 13107 | _ACEOF | 
|  | 13108 |  | 
|  | 13109 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13110 | fi | 
|  | 13111 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13112 | 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] | 13113 | 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] | 13114 |  | 
|  | 13115 | cat >>confdefs.h <<_ACEOF | 
|  | 13116 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
|  | 13117 | _ACEOF | 
|  | 13118 |  | 
|  | 13119 |  | 
|  | 13120 | fi | 
|  | 13121 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13122 | 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] | 13123 | 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] | 13124 |  | 
|  | 13125 | cat >>confdefs.h <<_ACEOF | 
|  | 13126 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
|  | 13127 | _ACEOF | 
|  | 13128 |  | 
|  | 13129 |  | 
|  | 13130 | fi | 
|  | 13131 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13132 | 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] | 13133 | 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] | 13134 |  | 
|  | 13135 | cat >>confdefs.h <<_ACEOF | 
|  | 13136 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
|  | 13137 | _ACEOF | 
|  | 13138 |  | 
|  | 13139 |  | 
|  | 13140 | fi | 
|  | 13141 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13142 | 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] | 13143 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13144 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13145 | cat >>confdefs.h <<_ACEOF | 
|  | 13146 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
|  | 13147 | _ACEOF | 
|  | 13148 |  | 
|  | 13149 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13150 | fi | 
|  | 13151 |  | 
| Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 13152 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " | 
|  | 13153 | #include <sys/types.h> | 
|  | 13154 | #include <pwd.h> | 
|  | 13155 |  | 
|  | 13156 | " | 
|  | 13157 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | 
|  | 13158 |  | 
|  | 13159 | cat >>confdefs.h <<_ACEOF | 
|  | 13160 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | 
|  | 13161 | _ACEOF | 
|  | 13162 |  | 
|  | 13163 |  | 
|  | 13164 | fi | 
|  | 13165 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " | 
|  | 13166 | #include <sys/types.h> | 
|  | 13167 | #include <pwd.h> | 
|  | 13168 |  | 
|  | 13169 | " | 
|  | 13170 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : | 
|  | 13171 |  | 
|  | 13172 | cat >>confdefs.h <<_ACEOF | 
|  | 13173 | #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 | 
|  | 13174 | _ACEOF | 
|  | 13175 |  | 
|  | 13176 |  | 
|  | 13177 | fi | 
|  | 13178 |  | 
| Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 13179 | # Issue #21085: In Cygwin, siginfo_t does not have si_band field. | 
|  | 13180 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> | 
|  | 13181 | " | 
|  | 13182 | if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then : | 
|  | 13183 |  | 
|  | 13184 | cat >>confdefs.h <<_ACEOF | 
|  | 13185 | #define HAVE_SIGINFO_T_SI_BAND 1 | 
|  | 13186 | _ACEOF | 
|  | 13187 |  | 
|  | 13188 |  | 
|  | 13189 | fi | 
|  | 13190 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13191 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
|  | 13193 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13194 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13195 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13196 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13197 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13199 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13200 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13201 | int | 
|  | 13202 | main () | 
|  | 13203 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13204 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13205 | ; | 
|  | 13206 | return 0; | 
|  | 13207 | } | 
|  | 13208 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13209 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13210 | ac_cv_header_time_altzone=yes | 
|  | 13211 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13212 | ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13213 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13215 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13216 | fi | 
|  | 13217 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
|  | 13219 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13220 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13221 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13222 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13223 |  | 
|  | 13224 | fi | 
|  | 13225 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13226 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
|  | 13228 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
|  | 13229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13230 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13231 |  | 
|  | 13232 | #include <sys/types.h> | 
|  | 13233 | #include <sys/select.h> | 
|  | 13234 | #include <sys/time.h> | 
|  | 13235 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13236 | int | 
|  | 13237 | main () | 
|  | 13238 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13239 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13240 | ; | 
|  | 13241 | return 0; | 
|  | 13242 | } | 
|  | 13243 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13244 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13245 |  | 
|  | 13246 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13247 | $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] | 13248 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13249 | was_it_defined=yes | 
|  | 13250 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13251 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 13254 | $as_echo "$was_it_defined" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13255 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
|  | 13257 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13258 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13259 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13260 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13262 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13263 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13264 | int | 
|  | 13265 | main () | 
|  | 13266 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13267 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13268 | ; | 
|  | 13269 | return 0; | 
|  | 13270 | } | 
|  | 13271 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13272 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13273 | ac_cv_struct_addrinfo=yes | 
|  | 13274 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13275 | ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13276 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13278 | fi | 
|  | 13279 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
|  | 13281 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13282 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13283 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13284 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13285 |  | 
|  | 13286 | fi | 
|  | 13287 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
|  | 13289 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13290 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13291 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13292 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13294 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13295 |  | 
|  | 13296 | #		include <sys/types.h> | 
|  | 13297 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13298 | int | 
|  | 13299 | main () | 
|  | 13300 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13301 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13302 | ; | 
|  | 13303 | return 0; | 
|  | 13304 | } | 
|  | 13305 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13306 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13307 | ac_cv_struct_sockaddr_storage=yes | 
|  | 13308 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13309 | ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13310 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13312 | fi | 
|  | 13313 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
|  | 13315 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13316 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13317 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13318 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13319 |  | 
|  | 13320 | fi | 
|  | 13321 |  | 
| Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 | 
|  | 13323 | $as_echo_n "checking for sockaddr_alg... " >&6; } | 
|  | 13324 | if ${ac_cv_struct_sockaddr_alg+:} false; then : | 
|  | 13325 | $as_echo_n "(cached) " >&6 | 
|  | 13326 | else | 
|  | 13327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13328 | /* end confdefs.h.  */ | 
|  | 13329 |  | 
|  | 13330 | #		include <sys/types.h> | 
|  | 13331 | #		include <sys/socket.h> | 
|  | 13332 | #		include <linux/if_alg.h> | 
|  | 13333 | int | 
|  | 13334 | main () | 
|  | 13335 | { | 
|  | 13336 | struct sockaddr_alg s | 
|  | 13337 | ; | 
|  | 13338 | return 0; | 
|  | 13339 | } | 
|  | 13340 | _ACEOF | 
|  | 13341 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13342 | ac_cv_struct_sockaddr_alg=yes | 
|  | 13343 | else | 
|  | 13344 | ac_cv_struct_sockaddr_alg=no | 
|  | 13345 | fi | 
|  | 13346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13347 | fi | 
|  | 13348 |  | 
|  | 13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 | 
|  | 13350 | $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } | 
|  | 13351 | if test $ac_cv_struct_sockaddr_alg = yes; then | 
|  | 13352 |  | 
|  | 13353 | $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h | 
|  | 13354 |  | 
|  | 13355 | fi | 
|  | 13356 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13357 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13358 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
|  | 13360 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13361 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13362 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13363 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13365 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13366 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13367 | int | 
|  | 13368 | main () | 
|  | 13369 | { | 
|  | 13370 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13371 | test_array [0] = 0; | 
|  | 13372 | return test_array [0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13373 |  | 
|  | 13374 | ; | 
|  | 13375 | return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13376 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13377 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13378 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13379 | ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13380 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13381 | ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13382 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13384 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
|  | 13386 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13387 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13388 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13389 |  | 
|  | 13390 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13391 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
|  | 13393 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13394 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13395 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13396 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13398 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13399 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13400 | int | 
|  | 13401 | main () | 
|  | 13402 | { | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13403 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13404 | #ifndef __cplusplus | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13405 | /* Ultrix mips cc rejects this sort of thing.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13406 | typedef int charset[2]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13407 | const charset cs = { 0, 0 }; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13408 | /* SunOS 4.1.1 cc rejects this.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13409 | char const *const *pcpcc; | 
|  | 13410 | char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13411 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|  | 13412 | struct point {int x, y;}; | 
|  | 13413 | static struct point const zero = {0,0}; | 
|  | 13414 | /* AIX XL C 1.02.0.0 rejects this. | 
|  | 13415 | It does not let you subtract one const X* pointer from another in | 
|  | 13416 | an arm of an if-expression whose if-part is not a constant | 
|  | 13417 | expression */ | 
|  | 13418 | const char *g = "string"; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13419 | pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13420 | /* HPUX 7.0 cc rejects these. */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13421 | ++pcpcc; | 
|  | 13422 | ppc = (char**) pcpcc; | 
|  | 13423 | pcpcc = (char const *const *) ppc; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13424 | { /* SCO 3.2v4 cc rejects this sort of thing.  */ | 
|  | 13425 | char tx; | 
|  | 13426 | char *t = &tx; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13427 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13428 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13429 | *t++ = 0; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13430 | if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13431 | } | 
|  | 13432 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|  | 13433 | int x[] = {25, 17}; | 
|  | 13434 | const int *foo = &x[0]; | 
|  | 13435 | ++foo; | 
|  | 13436 | } | 
|  | 13437 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|  | 13438 | typedef const int *iptr; | 
|  | 13439 | iptr p = 0; | 
|  | 13440 | ++p; | 
|  | 13441 | } | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13442 | { /* 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] | 13443 | "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] | 13444 | struct s { int j; const int *ap[3]; } bx; | 
|  | 13445 | struct s *b = &bx; b->j = 5; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13446 | } | 
|  | 13447 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|  | 13448 | const int foo = 10; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13449 | if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13450 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13451 | return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13452 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13453 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13454 | ; | 
|  | 13455 | return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13456 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13457 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13458 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13459 | ac_cv_c_const=yes | 
|  | 13460 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13461 | ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13462 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13464 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
|  | 13466 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13467 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13468 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13469 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13470 |  | 
|  | 13471 | fi | 
|  | 13472 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13473 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13474 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
|  | 13476 | $as_echo_n "checking for working volatile... " >&6; } | 
|  | 13477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13478 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13479 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13480 | int | 
|  | 13481 | main () | 
|  | 13482 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13483 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13484 | ; | 
|  | 13485 | return 0; | 
|  | 13486 | } | 
|  | 13487 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13488 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13489 | works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13490 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13491 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13492 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13493 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13494 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13495 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 13498 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13499 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13500 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
|  | 13502 | $as_echo_n "checking for working signed char... " >&6; } | 
|  | 13503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13504 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13505 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13506 | int | 
|  | 13507 | main () | 
|  | 13508 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13509 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13510 | ; | 
|  | 13511 | return 0; | 
|  | 13512 | } | 
|  | 13513 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13514 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13515 | works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13516 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13517 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13518 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13519 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13520 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13521 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 13524 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13525 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13526 | have_prototypes=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
|  | 13528 | $as_echo_n "checking for prototypes... " >&6; } | 
|  | 13529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13530 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13531 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13532 | int | 
|  | 13533 | main () | 
|  | 13534 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13535 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13536 | ; | 
|  | 13537 | return 0; | 
|  | 13538 | } | 
|  | 13539 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13540 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13541 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13542 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13543 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13544 | have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13545 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
|  | 13548 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13549 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13550 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
|  | 13552 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
|  | 13553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13554 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13555 |  | 
|  | 13556 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13557 | int foo(int x, ...) { | 
|  | 13558 | va_list va; | 
|  | 13559 | va_start(va, x); | 
|  | 13560 | va_arg(va, int); | 
|  | 13561 | va_arg(va, char *); | 
|  | 13562 | va_arg(va, double); | 
|  | 13563 | return 0; | 
|  | 13564 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13565 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13566 | int | 
|  | 13567 | main () | 
|  | 13568 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13569 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13570 | ; | 
|  | 13571 | return 0; | 
|  | 13572 | } | 
|  | 13573 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13574 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13575 |  | 
|  | 13576 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13577 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13578 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13579 | works=yes | 
|  | 13580 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13581 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 13584 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13585 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13586 | # check for socketpair | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
|  | 13588 | $as_echo_n "checking for socketpair... " >&6; } | 
|  | 13589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13590 | /* end confdefs.h.  */ | 
|  | 13591 |  | 
|  | 13592 | #include <sys/types.h> | 
|  | 13593 | #include <sys/socket.h> | 
|  | 13594 |  | 
|  | 13595 | int | 
|  | 13596 | main () | 
|  | 13597 | { | 
|  | 13598 | void *x=socketpair | 
|  | 13599 | ; | 
|  | 13600 | return 0; | 
|  | 13601 | } | 
|  | 13602 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13603 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13604 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13605 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13606 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13608 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13609 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13611 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13612 |  | 
|  | 13613 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13614 | 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] | 13615 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13616 | # check if sockaddr has sa_len member | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
|  | 13618 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
|  | 13619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13620 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13621 | #include <sys/types.h> | 
|  | 13622 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13623 | int | 
|  | 13624 | main () | 
|  | 13625 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13626 | struct sockaddr x; | 
|  | 13627 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13628 | ; | 
|  | 13629 | return 0; | 
|  | 13630 | } | 
|  | 13631 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13632 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13634 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13635 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13636 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13637 |  | 
|  | 13638 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13640 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13641 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13642 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13643 | 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] | 13644 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13645 | # 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] | 13646 |  | 
|  | 13647 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13648 | 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] | 13649 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13650 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13651 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13652 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
|  | 13654 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13655 | OLD_CFLAGS=$CFLAGS | 
|  | 13656 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13658 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13659 |  | 
|  | 13660 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13661 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13662 | int | 
|  | 13663 | main () | 
|  | 13664 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13665 |  | 
|  | 13666 | char *name; | 
|  | 13667 | struct hostent *he, *res; | 
|  | 13668 | char buffer[2048]; | 
|  | 13669 | int buflen = 2048; | 
|  | 13670 | int h_errnop; | 
|  | 13671 |  | 
|  | 13672 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13673 |  | 
|  | 13674 | ; | 
|  | 13675 | return 0; | 
|  | 13676 | } | 
|  | 13677 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13678 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13679 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13680 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13681 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13682 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13683 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13684 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13686 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13687 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13688 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13689 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13691 | $as_echo "no" >&6; } | 
|  | 13692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
|  | 13693 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
|  | 13694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13695 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13696 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13697 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13698 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13699 | int | 
|  | 13700 | main () | 
|  | 13701 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13702 |  | 
|  | 13703 | char *name; | 
|  | 13704 | struct hostent *he; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13705 | char buffer[2048]; | 
|  | 13706 | int buflen = 2048; | 
|  | 13707 | int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13708 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13709 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13710 |  | 
|  | 13711 | ; | 
|  | 13712 | return 0; | 
|  | 13713 | } | 
|  | 13714 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13715 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13716 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13717 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13718 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13719 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13720 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13721 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13723 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13724 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13725 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13726 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13728 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
|  | 13730 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
|  | 13731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13732 | /* end confdefs.h.  */ | 
|  | 13733 |  | 
|  | 13734 | #           include <netdb.h> | 
|  | 13735 |  | 
|  | 13736 | int | 
|  | 13737 | main () | 
|  | 13738 | { | 
|  | 13739 |  | 
|  | 13740 | char *name; | 
|  | 13741 | struct hostent *he; | 
|  | 13742 | struct hostent_data data; | 
|  | 13743 |  | 
|  | 13744 | (void) gethostbyname_r(name, he, &data); | 
|  | 13745 |  | 
|  | 13746 | ; | 
|  | 13747 | return 0; | 
|  | 13748 | } | 
|  | 13749 | _ACEOF | 
|  | 13750 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 13751 |  | 
|  | 13752 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
|  | 13753 |  | 
|  | 13754 |  | 
|  | 13755 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
|  | 13756 |  | 
|  | 13757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13758 | $as_echo "yes" >&6; } | 
|  | 13759 |  | 
|  | 13760 | else | 
|  | 13761 |  | 
|  | 13762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13763 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13764 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13765 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13766 | 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] | 13767 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13768 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13769 | 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] | 13770 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13771 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13773 | CFLAGS=$OLD_CFLAGS | 
|  | 13774 |  | 
|  | 13775 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13776 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13777 | for ac_func in gethostbyname | 
|  | 13778 | do : | 
|  | 13779 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13780 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13781 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13782 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13783 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13784 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13785 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13786 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13787 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13788 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13789 | fi | 
|  | 13790 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13791 |  | 
|  | 13792 |  | 
|  | 13793 |  | 
|  | 13794 |  | 
|  | 13795 |  | 
|  | 13796 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13797 | # checks for system services | 
|  | 13798 | # (none yet) | 
|  | 13799 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13800 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13801 | 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] | 13802 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13803 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13804 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
|  | 13806 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13807 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13808 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13809 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13810 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13811 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13813 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13814 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13815 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13816 | Use char because int might match the return type of a GCC | 
|  | 13817 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13818 | #ifdef __cplusplus | 
|  | 13819 | extern "C" | 
|  | 13820 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13821 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13822 | int | 
|  | 13823 | main () | 
|  | 13824 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13825 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13826 | ; | 
|  | 13827 | return 0; | 
|  | 13828 | } | 
|  | 13829 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13830 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13831 | ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13832 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13833 | ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13834 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13835 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13836 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13837 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13838 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
|  | 13840 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13841 | 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] | 13842 | cat >>confdefs.h <<_ACEOF | 
|  | 13843 | #define HAVE_LIBIEEE 1 | 
|  | 13844 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13845 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13846 | LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13847 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13848 | fi | 
|  | 13849 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13850 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13851 | fi | 
|  | 13852 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13853 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13854 | # Check for --with-fpectl | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
|  | 13856 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13857 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13858 | # Check whether --with-fpectl was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13859 | if test "${with_fpectl+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13860 | withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13861 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13862 | then | 
|  | 13863 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13864 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13865 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13867 | $as_echo "yes" >&6; } | 
|  | 13868 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13869 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13870 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13871 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13873 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13874 | fi | 
|  | 13875 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13876 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13877 | # check for --with-libm=... | 
|  | 13878 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13879 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 13880 | Darwin) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13881 | *) LIBM=-lm | 
|  | 13882 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
|  | 13884 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13885 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13886 | # Check whether --with-libm was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13887 | if test "${with_libm+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13888 | withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13889 | if test "$withval" = no | 
|  | 13890 | then LIBM= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
|  | 13892 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13893 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13894 | then LIBM=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
|  | 13896 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13897 | 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] | 13898 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13899 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
|  | 13901 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13902 | fi | 
|  | 13903 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13904 |  | 
|  | 13905 | # check for --with-libc=... | 
|  | 13906 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
|  | 13908 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13909 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13910 | # Check whether --with-libc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13911 | if test "${with_libc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13912 | withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13913 | if test "$withval" = no | 
|  | 13914 | then LIBC= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
|  | 13916 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13917 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13918 | then LIBC=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
|  | 13920 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13921 | 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] | 13922 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13923 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
|  | 13925 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13926 | fi | 
|  | 13927 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13928 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13929 | # ************************************** | 
|  | 13930 | # * Check for gcc x64 inline assembler * | 
|  | 13931 | # ************************************** | 
|  | 13932 |  | 
|  | 13933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 | 
|  | 13934 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | 
|  | 13935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13936 | /* end confdefs.h.  */ | 
|  | 13937 |  | 
|  | 13938 | int | 
|  | 13939 | main () | 
|  | 13940 | { | 
|  | 13941 |  | 
|  | 13942 | __asm__ __volatile__ ("movq %rcx, %rax"); | 
|  | 13943 |  | 
|  | 13944 | ; | 
|  | 13945 | return 0; | 
|  | 13946 | } | 
|  | 13947 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13948 | if ac_fn_c_try_link "$LINENO"; then : | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13949 | have_gcc_asm_for_x64=yes | 
|  | 13950 | else | 
|  | 13951 | have_gcc_asm_for_x64=no | 
|  | 13952 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13953 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13954 | conftest$ac_exeext conftest.$ac_ext | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 | 
|  | 13956 | $as_echo "$have_gcc_asm_for_x64" >&6; } | 
|  | 13957 | if test "$have_gcc_asm_for_x64" = yes | 
|  | 13958 | then | 
|  | 13959 |  | 
|  | 13960 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h | 
|  | 13961 |  | 
|  | 13962 | fi | 
|  | 13963 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13964 | # ************************************************** | 
|  | 13965 | # * Check for various properties of floating point * | 
|  | 13966 | # ************************************************** | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13967 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
|  | 13969 | $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] | 13970 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13971 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13972 | else | 
|  | 13973 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13974 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13975 | ac_cv_little_endian_double=no | 
|  | 13976 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13978 | /* end confdefs.h.  */ | 
|  | 13979 |  | 
|  | 13980 | #include <string.h> | 
|  | 13981 | int main() { | 
|  | 13982 | double x = 9006104071832581.0; | 
|  | 13983 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
|  | 13984 | return 0; | 
|  | 13985 | else | 
|  | 13986 | return 1; | 
|  | 13987 | } | 
|  | 13988 |  | 
|  | 13989 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13990 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13991 | ac_cv_little_endian_double=yes | 
|  | 13992 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13993 | ac_cv_little_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13994 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13995 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13996 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13997 | fi | 
|  | 13998 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13999 | fi | 
|  | 14000 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
|  | 14002 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14003 | if test "$ac_cv_little_endian_double" = yes | 
|  | 14004 | then | 
|  | 14005 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14006 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14007 |  | 
|  | 14008 | fi | 
|  | 14009 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
|  | 14011 | $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] | 14012 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14013 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14014 | else | 
|  | 14015 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14016 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14017 | ac_cv_big_endian_double=no | 
|  | 14018 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14020 | /* end confdefs.h.  */ | 
|  | 14021 |  | 
|  | 14022 | #include <string.h> | 
|  | 14023 | int main() { | 
|  | 14024 | double x = 9006104071832581.0; | 
|  | 14025 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
|  | 14026 | return 0; | 
|  | 14027 | else | 
|  | 14028 | return 1; | 
|  | 14029 | } | 
|  | 14030 |  | 
|  | 14031 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14032 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14033 | ac_cv_big_endian_double=yes | 
|  | 14034 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14035 | ac_cv_big_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14036 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14037 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14038 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14039 | fi | 
|  | 14040 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +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_big_endian_double" >&5 | 
|  | 14044 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14045 | if test "$ac_cv_big_endian_double" = yes | 
|  | 14046 | then | 
|  | 14047 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14048 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14049 |  | 
|  | 14050 | fi | 
|  | 14051 |  | 
|  | 14052 | # Some ARM platforms use a mixed-endian representation for doubles. | 
|  | 14053 | # While Python doesn't currently have full support for these platforms | 
|  | 14054 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
|  | 14055 | # conversions work. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
|  | 14057 | $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] | 14058 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14059 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14060 | else | 
|  | 14061 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14062 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14063 | ac_cv_mixed_endian_double=no | 
|  | 14064 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14066 | /* end confdefs.h.  */ | 
|  | 14067 |  | 
|  | 14068 | #include <string.h> | 
|  | 14069 | int main() { | 
|  | 14070 | double x = 9006104071832581.0; | 
|  | 14071 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
|  | 14072 | return 0; | 
|  | 14073 | else | 
|  | 14074 | return 1; | 
|  | 14075 | } | 
|  | 14076 |  | 
|  | 14077 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14078 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14079 | ac_cv_mixed_endian_double=yes | 
|  | 14080 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14081 | ac_cv_mixed_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14082 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14083 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14084 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14085 | fi | 
|  | 14086 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14087 | fi | 
|  | 14088 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
|  | 14090 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14091 | if test "$ac_cv_mixed_endian_double" = yes | 
|  | 14092 | then | 
|  | 14093 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14094 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14095 |  | 
|  | 14096 | fi | 
|  | 14097 |  | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 14098 | # The short float repr introduced in Python 3.1 requires the | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14099 | # correctly-rounded string <-> double conversion functions from | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 14100 | # 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] | 14101 | # 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] | 14102 | # 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] | 14103 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14104 |  | 
|  | 14105 | # This inline assembler syntax may also work for suncc and icc, | 
|  | 14106 | # so we try it on all platforms. | 
|  | 14107 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
|  | 14109 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
|  | 14110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14111 | /* end confdefs.h.  */ | 
|  | 14112 |  | 
|  | 14113 | int | 
|  | 14114 | main () | 
|  | 14115 | { | 
|  | 14116 |  | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14117 | unsigned short cw; | 
|  | 14118 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
|  | 14119 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14120 |  | 
|  | 14121 | ; | 
|  | 14122 | return 0; | 
|  | 14123 | } | 
|  | 14124 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14125 | if ac_fn_c_try_link "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14126 | have_gcc_asm_for_x87=yes | 
|  | 14127 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14128 | have_gcc_asm_for_x87=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14129 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14130 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14131 | conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
|  | 14133 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 14134 | if test "$have_gcc_asm_for_x87" = yes | 
|  | 14135 | then | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14136 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14137 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14138 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14139 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14140 |  | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 | 
|  | 14142 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } | 
|  | 14143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14144 | /* end confdefs.h.  */ | 
|  | 14145 |  | 
|  | 14146 | int | 
|  | 14147 | main () | 
|  | 14148 | { | 
|  | 14149 |  | 
|  | 14150 | unsigned int fpcr; | 
|  | 14151 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); | 
|  | 14152 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); | 
|  | 14153 |  | 
|  | 14154 | ; | 
|  | 14155 | return 0; | 
|  | 14156 | } | 
|  | 14157 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14158 | if ac_fn_c_try_link "$LINENO"; then : | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14159 | have_gcc_asm_for_mc68881=yes | 
|  | 14160 | else | 
|  | 14161 | have_gcc_asm_for_mc68881=no | 
|  | 14162 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14163 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14164 | conftest$ac_exeext conftest.$ac_ext | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 | 
|  | 14166 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } | 
|  | 14167 | if test "$have_gcc_asm_for_mc68881" = yes | 
|  | 14168 | then | 
|  | 14169 |  | 
|  | 14170 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h | 
|  | 14171 |  | 
|  | 14172 | fi | 
|  | 14173 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14174 | # Detect whether system arithmetic is subject to x87-style double | 
|  | 14175 | # rounding issues.  The result of this test has little meaning on non | 
|  | 14176 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
|  | 14177 | # mode is round-to-nearest and double rounding issues are present, and | 
|  | 14178 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
|  | 14180 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14181 | # $BASECFLAGS may affect the result | 
|  | 14182 | ac_save_cc="$CC" | 
|  | 14183 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14184 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14185 | ac_cv_x87_double_rounding=no | 
|  | 14186 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14188 | /* end confdefs.h.  */ | 
|  | 14189 |  | 
|  | 14190 | #include <stdlib.h> | 
|  | 14191 | #include <math.h> | 
|  | 14192 | int main() { | 
|  | 14193 | volatile double x, y, z; | 
|  | 14194 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
|  | 14195 | x = 0.99999999999999989; /* 1-2**-53 */ | 
|  | 14196 | y = 1./x; | 
|  | 14197 | if (y != 1.) | 
|  | 14198 | exit(0); | 
|  | 14199 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
|  | 14200 | x = 1e16; | 
|  | 14201 | y = 2.99999; | 
|  | 14202 | z = x + y; | 
|  | 14203 | if (z != 1e16+4.) | 
|  | 14204 | exit(0); | 
|  | 14205 | /* both tests show evidence of double rounding */ | 
|  | 14206 | exit(1); | 
|  | 14207 | } | 
|  | 14208 |  | 
|  | 14209 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14210 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14211 | ac_cv_x87_double_rounding=no | 
|  | 14212 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14213 | ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14214 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14215 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14216 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14217 | fi | 
|  | 14218 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14219 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
|  | 14221 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14222 | if test "$ac_cv_x87_double_rounding" = yes | 
|  | 14223 | then | 
|  | 14224 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14225 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14226 |  | 
|  | 14227 | fi | 
|  | 14228 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14229 | # ************************************ | 
|  | 14230 | # * Check for mathematical functions * | 
|  | 14231 | # ************************************ | 
|  | 14232 |  | 
|  | 14233 | LIBS_SAVE=$LIBS | 
|  | 14234 | LIBS="$LIBS $LIBM" | 
|  | 14235 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14236 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
|  | 14237 | do : | 
|  | 14238 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 14239 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14240 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14241 | cat >>confdefs.h <<_ACEOF | 
|  | 14242 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 14243 | _ACEOF | 
|  | 14244 |  | 
|  | 14245 | fi | 
|  | 14246 | done | 
|  | 14247 |  | 
| Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 14248 | for ac_func in hypot lgamma log1p log2 round tgamma | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14249 | do : | 
|  | 14250 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 14251 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14252 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14253 | cat >>confdefs.h <<_ACEOF | 
|  | 14254 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 14255 | _ACEOF | 
|  | 14256 |  | 
|  | 14257 | fi | 
|  | 14258 | done | 
|  | 14259 |  | 
|  | 14260 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
|  | 14261 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14262 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14263 | ac_have_decl=1 | 
|  | 14264 | else | 
|  | 14265 | ac_have_decl=0 | 
|  | 14266 | fi | 
|  | 14267 |  | 
|  | 14268 | cat >>confdefs.h <<_ACEOF | 
|  | 14269 | #define HAVE_DECL_ISINF $ac_have_decl | 
|  | 14270 | _ACEOF | 
|  | 14271 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
|  | 14272 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14273 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14274 | ac_have_decl=1 | 
|  | 14275 | else | 
|  | 14276 | ac_have_decl=0 | 
|  | 14277 | fi | 
|  | 14278 |  | 
|  | 14279 | cat >>confdefs.h <<_ACEOF | 
|  | 14280 | #define HAVE_DECL_ISNAN $ac_have_decl | 
|  | 14281 | _ACEOF | 
|  | 14282 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
|  | 14283 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14284 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14285 | ac_have_decl=1 | 
|  | 14286 | else | 
|  | 14287 | ac_have_decl=0 | 
|  | 14288 | fi | 
|  | 14289 |  | 
|  | 14290 | cat >>confdefs.h <<_ACEOF | 
|  | 14291 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
|  | 14292 | _ACEOF | 
|  | 14293 |  | 
|  | 14294 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14295 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
|  | 14296 | # -0. on some architectures. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
|  | 14298 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14299 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14300 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14301 | else | 
|  | 14302 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14303 | if test "$cross_compiling" = yes; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14304 | ac_cv_tanh_preserves_zero_sign=no | 
|  | 14305 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14307 | /* end confdefs.h.  */ | 
|  | 14308 |  | 
|  | 14309 | #include <math.h> | 
|  | 14310 | #include <stdlib.h> | 
|  | 14311 | int main() { | 
|  | 14312 | /* return 0 if either negative zeros don't exist | 
|  | 14313 | on this platform or if negative zeros exist | 
|  | 14314 | and tanh(-0.) == -0. */ | 
|  | 14315 | if (atan2(0., -1.) == atan2(-0., -1.) || | 
|  | 14316 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
|  | 14317 | else exit(1); | 
|  | 14318 | } | 
|  | 14319 |  | 
|  | 14320 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14321 | if ac_fn_c_try_run "$LINENO"; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14322 | ac_cv_tanh_preserves_zero_sign=yes | 
|  | 14323 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14324 | ac_cv_tanh_preserves_zero_sign=no | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14325 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14326 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14327 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14328 | fi | 
|  | 14329 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14330 | fi | 
|  | 14331 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
|  | 14333 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14334 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
|  | 14335 | then | 
|  | 14336 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14337 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14338 |  | 
|  | 14339 | fi | 
|  | 14340 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14341 | if test "$ac_cv_func_log1p" = yes | 
|  | 14342 | then | 
|  | 14343 | # On some versions of AIX, log1p(-0.) returns 0. instead of | 
|  | 14344 | # -0.  See issue #9920. | 
|  | 14345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | 
|  | 14346 | $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] | 14347 | if ${ac_cv_log1p_drops_zero_sign+:} false; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14348 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14349 | else | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14350 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14351 | if test "$cross_compiling" = yes; then : | 
|  | 14352 | ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14353 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14355 | /* end confdefs.h.  */ | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14356 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14357 | #include <math.h> | 
|  | 14358 | #include <stdlib.h> | 
|  | 14359 | int main() { | 
|  | 14360 | /* Fail if the signs of log1p(-0.) and -0. can be | 
|  | 14361 | distinguished. */ | 
|  | 14362 | if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | 
|  | 14363 | return 0; | 
|  | 14364 | else | 
|  | 14365 | return 1; | 
|  | 14366 | } | 
|  | 14367 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14368 | _ACEOF | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14369 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 14370 | ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14371 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14372 | ac_cv_log1p_drops_zero_sign=yes | 
|  | 14373 | fi | 
|  | 14374 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14375 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14376 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14377 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14378 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14379 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 | 
|  | 14381 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | 
|  | 14382 | fi | 
|  | 14383 | if test "$ac_cv_log1p_drops_zero_sign" = yes | 
|  | 14384 | then | 
|  | 14385 |  | 
|  | 14386 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | 
|  | 14387 |  | 
|  | 14388 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14389 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14390 | LIBS=$LIBS_SAVE | 
|  | 14391 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14392 | # For multiprocessing module, check that sem_open | 
|  | 14393 | # actually works.  For FreeBSD versions <= 7.2, | 
|  | 14394 | # the kernel module that provides POSIX semaphores | 
|  | 14395 | # isn't loaded by default, so an attempt to call | 
|  | 14396 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
|  | 14398 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14399 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14400 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14401 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14402 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14403 | ac_cv_posix_semaphores_enabled=yes | 
|  | 14404 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14406 | /* end confdefs.h.  */ | 
|  | 14407 |  | 
|  | 14408 | #include <unistd.h> | 
|  | 14409 | #include <fcntl.h> | 
|  | 14410 | #include <stdio.h> | 
|  | 14411 | #include <semaphore.h> | 
|  | 14412 | #include <sys/stat.h> | 
|  | 14413 |  | 
|  | 14414 | int main(void) { | 
|  | 14415 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
|  | 14416 | if (a == SEM_FAILED) { | 
|  | 14417 | perror("sem_open"); | 
|  | 14418 | return 1; | 
|  | 14419 | } | 
|  | 14420 | sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14421 | sem_unlink("/autoconf"); | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14422 | return 0; | 
|  | 14423 | } | 
|  | 14424 |  | 
|  | 14425 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14426 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14427 | ac_cv_posix_semaphores_enabled=yes | 
|  | 14428 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14429 | ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14430 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14431 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14432 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14433 | fi | 
|  | 14434 |  | 
|  | 14435 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14436 | fi | 
|  | 14437 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
|  | 14439 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14440 | if test $ac_cv_posix_semaphores_enabled = no | 
|  | 14441 | then | 
|  | 14442 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14443 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14444 |  | 
|  | 14445 | fi | 
|  | 14446 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14447 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
|  | 14449 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14450 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14451 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14452 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14453 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14454 | ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14455 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14457 | /* end confdefs.h.  */ | 
|  | 14458 |  | 
|  | 14459 | #include <unistd.h> | 
|  | 14460 | #include <fcntl.h> | 
|  | 14461 | #include <stdio.h> | 
|  | 14462 | #include <semaphore.h> | 
|  | 14463 | #include <sys/stat.h> | 
|  | 14464 |  | 
|  | 14465 | int main(void){ | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14466 | 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] | 14467 | int count; | 
|  | 14468 | int res; | 
|  | 14469 | if(a==SEM_FAILED){ | 
|  | 14470 | perror("sem_open"); | 
|  | 14471 | return 1; | 
|  | 14472 |  | 
|  | 14473 | } | 
|  | 14474 | res = sem_getvalue(a, &count); | 
|  | 14475 | sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14476 | sem_unlink("/autocftw"); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14477 | return res==-1 ? 1 : 0; | 
|  | 14478 | } | 
|  | 14479 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14480 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14481 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14482 | ac_cv_broken_sem_getvalue=no | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14483 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14484 | ac_cv_broken_sem_getvalue=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14485 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14486 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14487 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14488 | fi | 
|  | 14489 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14490 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14491 | fi | 
|  | 14492 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
|  | 14494 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14495 | if test $ac_cv_broken_sem_getvalue = yes | 
|  | 14496 | then | 
|  | 14497 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14498 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14499 |  | 
|  | 14500 | fi | 
|  | 14501 |  | 
| Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14502 | ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> | 
|  | 14503 | " | 
|  | 14504 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : | 
|  | 14505 | ac_have_decl=1 | 
|  | 14506 | else | 
|  | 14507 | ac_have_decl=0 | 
|  | 14508 | fi | 
|  | 14509 |  | 
|  | 14510 | cat >>confdefs.h <<_ACEOF | 
|  | 14511 | #define HAVE_DECL_RTLD_LAZY $ac_have_decl | 
|  | 14512 | _ACEOF | 
|  | 14513 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | 
|  | 14514 | " | 
|  | 14515 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : | 
|  | 14516 | ac_have_decl=1 | 
|  | 14517 | else | 
|  | 14518 | ac_have_decl=0 | 
|  | 14519 | fi | 
|  | 14520 |  | 
|  | 14521 | cat >>confdefs.h <<_ACEOF | 
|  | 14522 | #define HAVE_DECL_RTLD_NOW $ac_have_decl | 
|  | 14523 | _ACEOF | 
|  | 14524 | ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> | 
|  | 14525 | " | 
|  | 14526 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : | 
|  | 14527 | ac_have_decl=1 | 
|  | 14528 | else | 
|  | 14529 | ac_have_decl=0 | 
|  | 14530 | fi | 
|  | 14531 |  | 
|  | 14532 | cat >>confdefs.h <<_ACEOF | 
|  | 14533 | #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl | 
|  | 14534 | _ACEOF | 
|  | 14535 | ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> | 
|  | 14536 | " | 
|  | 14537 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : | 
|  | 14538 | ac_have_decl=1 | 
|  | 14539 | else | 
|  | 14540 | ac_have_decl=0 | 
|  | 14541 | fi | 
|  | 14542 |  | 
|  | 14543 | cat >>confdefs.h <<_ACEOF | 
|  | 14544 | #define HAVE_DECL_RTLD_LOCAL $ac_have_decl | 
|  | 14545 | _ACEOF | 
|  | 14546 | ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> | 
|  | 14547 | " | 
|  | 14548 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : | 
|  | 14549 | ac_have_decl=1 | 
|  | 14550 | else | 
|  | 14551 | ac_have_decl=0 | 
|  | 14552 | fi | 
|  | 14553 |  | 
|  | 14554 | cat >>confdefs.h <<_ACEOF | 
|  | 14555 | #define HAVE_DECL_RTLD_NODELETE $ac_have_decl | 
|  | 14556 | _ACEOF | 
|  | 14557 | ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> | 
|  | 14558 | " | 
|  | 14559 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : | 
|  | 14560 | ac_have_decl=1 | 
|  | 14561 | else | 
|  | 14562 | ac_have_decl=0 | 
|  | 14563 | fi | 
|  | 14564 |  | 
|  | 14565 | cat >>confdefs.h <<_ACEOF | 
|  | 14566 | #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl | 
|  | 14567 | _ACEOF | 
|  | 14568 | ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> | 
|  | 14569 | " | 
|  | 14570 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : | 
|  | 14571 | ac_have_decl=1 | 
|  | 14572 | else | 
|  | 14573 | ac_have_decl=0 | 
|  | 14574 | fi | 
|  | 14575 |  | 
|  | 14576 | cat >>confdefs.h <<_ACEOF | 
|  | 14577 | #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl | 
|  | 14578 | _ACEOF | 
|  | 14579 |  | 
|  | 14580 |  | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14581 | # determine what size digit to use for Python's longs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
|  | 14583 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14584 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14585 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14586 | enableval=$enable_big_digits; case $enable_big_digits in | 
|  | 14587 | yes) | 
|  | 14588 | enable_big_digits=30 ;; | 
|  | 14589 | no) | 
|  | 14590 | enable_big_digits=15 ;; | 
|  | 14591 | 15|30) | 
|  | 14592 | ;; | 
|  | 14593 | *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14594 | 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] | 14595 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
|  | 14597 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14598 |  | 
|  | 14599 | cat >>confdefs.h <<_ACEOF | 
|  | 14600 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
|  | 14601 | _ACEOF | 
|  | 14602 |  | 
|  | 14603 |  | 
|  | 14604 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 14606 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14607 | fi | 
|  | 14608 |  | 
|  | 14609 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14610 | # check for wchar.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14611 | 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] | 14612 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14613 |  | 
|  | 14614 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14615 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14616 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14617 | wchar_h="yes" | 
|  | 14618 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14619 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14620 | wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14621 |  | 
|  | 14622 | fi | 
|  | 14623 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14624 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14625 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14626 | # determine wchar_t size | 
|  | 14627 | if test "$wchar_h" = yes | 
|  | 14628 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14629 | # 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] | 14630 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 14631 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 14632 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
|  | 14634 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14635 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14636 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14637 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14638 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
|  | 14639 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14640 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14641 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14642 | if test "$ac_cv_type_wchar_t" = yes; then | 
|  | 14643 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 14644 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14645 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14646 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14647 | else | 
|  | 14648 | ac_cv_sizeof_wchar_t=0 | 
|  | 14649 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14650 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14651 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14652 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
|  | 14654 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14655 |  | 
|  | 14656 |  | 
|  | 14657 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14658 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14659 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14660 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14661 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14662 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14663 | fi | 
|  | 14664 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
|  | 14666 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14667 | have_ucs4_tcl=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14669 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14670 |  | 
|  | 14671 | #include <tcl.h> | 
|  | 14672 | #if TCL_UTF_MAX != 6 | 
|  | 14673 | # error "NOT UCS4_TCL" | 
|  | 14674 | #endif | 
|  | 14675 | int | 
|  | 14676 | main () | 
|  | 14677 | { | 
|  | 14678 |  | 
|  | 14679 | ; | 
|  | 14680 | return 0; | 
|  | 14681 | } | 
|  | 14682 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14683 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14684 |  | 
|  | 14685 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14686 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14687 |  | 
|  | 14688 | have_ucs4_tcl=yes | 
|  | 14689 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14690 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
|  | 14693 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14694 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14695 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14696 | if test "$wchar_h" = yes | 
|  | 14697 | then | 
|  | 14698 | # check whether wchar_t is signed or not | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
|  | 14700 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14701 | if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14702 | $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14703 | else | 
|  | 14704 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14705 | if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14706 | ac_cv_wchar_t_signed=yes | 
|  | 14707 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14709 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14710 |  | 
|  | 14711 | #include <wchar.h> | 
|  | 14712 | int main() | 
|  | 14713 | { | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14714 | /* Success: exit code 0 */ | 
|  | 14715 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14716 | } | 
|  | 14717 |  | 
|  | 14718 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14719 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14720 | ac_cv_wchar_t_signed=yes | 
|  | 14721 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14722 | ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14723 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14724 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14725 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14726 | fi | 
|  | 14727 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14728 | fi | 
|  | 14729 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
|  | 14731 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14732 | fi | 
|  | 14733 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14734 | # 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] | 14735 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 14736 | -a "$ac_cv_wchar_t_signed" = "no" | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14737 | then | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14738 | HAVE_USABLE_WCHAR_T="yes" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14739 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14740 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14741 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14742 | else | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14743 | HAVE_USABLE_WCHAR_T="no usable wchar_t found" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14744 | fi | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 | 
|  | 14746 | $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14747 |  | 
|  | 14748 | # check for endianness | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
|  | 14750 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14751 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14752 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14753 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14754 | ac_cv_c_bigendian=unknown | 
|  | 14755 | # See if we're dealing with a universal compiler. | 
|  | 14756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14757 | /* end confdefs.h.  */ | 
|  | 14758 | #ifndef __APPLE_CC__ | 
|  | 14759 | not a universal capable compiler | 
|  | 14760 | #endif | 
|  | 14761 | typedef int dummy; | 
|  | 14762 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14763 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14764 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14765 |  | 
|  | 14766 | # Check for potential -arch flags.  It is not universal unless | 
|  | 14767 | # there are at least two -arch flags with different values. | 
|  | 14768 | ac_arch= | 
|  | 14769 | ac_prev= | 
|  | 14770 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
|  | 14771 | if test -n "$ac_prev"; then | 
|  | 14772 | case $ac_word in | 
|  | 14773 | i?86 | x86_64 | ppc | ppc64) | 
|  | 14774 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
|  | 14775 | ac_arch=$ac_word | 
|  | 14776 | else | 
|  | 14777 | ac_cv_c_bigendian=universal | 
|  | 14778 | break | 
|  | 14779 | fi | 
|  | 14780 | ;; | 
|  | 14781 | esac | 
|  | 14782 | ac_prev= | 
|  | 14783 | elif test "x$ac_word" = "x-arch"; then | 
|  | 14784 | ac_prev=arch | 
|  | 14785 | fi | 
|  | 14786 | done | 
|  | 14787 | fi | 
|  | 14788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14789 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 14790 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 14791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14792 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14793 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14794 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14795 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14796 | int | 
|  | 14797 | main () | 
|  | 14798 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14799 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
|  | 14800 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
|  | 14801 | && LITTLE_ENDIAN) | 
|  | 14802 | bogus endian macros | 
|  | 14803 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14804 |  | 
|  | 14805 | ; | 
|  | 14806 | return 0; | 
|  | 14807 | } | 
|  | 14808 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14809 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14810 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14812 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14813 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14814 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14815 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14816 | int | 
|  | 14817 | main () | 
|  | 14818 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14819 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14820 | not big endian | 
|  | 14821 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14822 |  | 
|  | 14823 | ; | 
|  | 14824 | return 0; | 
|  | 14825 | } | 
|  | 14826 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14827 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14828 | ac_cv_c_bigendian=yes | 
|  | 14829 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14830 | ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14831 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14833 | fi | 
|  | 14834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14835 | fi | 
|  | 14836 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 14837 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
|  | 14838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14839 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14840 | #include <limits.h> | 
|  | 14841 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14842 | int | 
|  | 14843 | main () | 
|  | 14844 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14845 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
|  | 14846 | bogus endian macros | 
|  | 14847 | #endif | 
|  | 14848 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14849 | ; | 
|  | 14850 | return 0; | 
|  | 14851 | } | 
|  | 14852 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14853 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14854 | # It does; now see whether it defined to _BIG_ENDIAN or not. | 
|  | 14855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14856 | /* end confdefs.h.  */ | 
|  | 14857 | #include <limits.h> | 
|  | 14858 |  | 
|  | 14859 | int | 
|  | 14860 | main () | 
|  | 14861 | { | 
|  | 14862 | #ifndef _BIG_ENDIAN | 
|  | 14863 | not big endian | 
|  | 14864 | #endif | 
|  | 14865 |  | 
|  | 14866 | ; | 
|  | 14867 | return 0; | 
|  | 14868 | } | 
|  | 14869 | _ACEOF | 
|  | 14870 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14871 | ac_cv_c_bigendian=yes | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14872 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14873 | ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14874 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14876 | fi | 
|  | 14877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 14878 | fi | 
|  | 14879 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 14880 | # Compile a test program. | 
|  | 14881 | if test "$cross_compiling" = yes; then : | 
|  | 14882 | # Try to guess by grepping values from an object file. | 
|  | 14883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 14884 | /* end confdefs.h.  */ | 
|  | 14885 | short int ascii_mm[] = | 
|  | 14886 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 14887 | short int ascii_ii[] = | 
|  | 14888 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 14889 | int use_ascii (int i) { | 
|  | 14890 | return ascii_mm[i] + ascii_ii[i]; | 
|  | 14891 | } | 
|  | 14892 | short int ebcdic_ii[] = | 
|  | 14893 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 14894 | short int ebcdic_mm[] = | 
|  | 14895 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 14896 | int use_ebcdic (int i) { | 
|  | 14897 | return ebcdic_mm[i] + ebcdic_ii[i]; | 
|  | 14898 | } | 
|  | 14899 | extern int foo; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14900 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14901 | int | 
|  | 14902 | main () | 
|  | 14903 | { | 
|  | 14904 | return use_ascii (foo) == use_ebcdic (foo); | 
|  | 14905 | ; | 
|  | 14906 | return 0; | 
|  | 14907 | } | 
|  | 14908 | _ACEOF | 
|  | 14909 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 14910 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
|  | 14911 | ac_cv_c_bigendian=yes | 
|  | 14912 | fi | 
|  | 14913 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 14914 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 14915 | ac_cv_c_bigendian=no | 
|  | 14916 | else | 
|  | 14917 | # finding both strings is unlikely to happen, but who knows? | 
|  | 14918 | ac_cv_c_bigendian=unknown | 
|  | 14919 | fi | 
|  | 14920 | fi | 
|  | 14921 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14922 | 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] | 14923 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14925 | /* end confdefs.h.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14926 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14927 | int | 
|  | 14928 | main () | 
|  | 14929 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14930 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14931 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 14932 | union | 
|  | 14933 | { | 
|  | 14934 | long int l; | 
|  | 14935 | char c[sizeof (long int)]; | 
|  | 14936 | } u; | 
|  | 14937 | u.l = 1; | 
|  | 14938 | return u.c[sizeof (long int) - 1] == 1; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14939 |  | 
|  | 14940 | ; | 
|  | 14941 | return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14942 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14943 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14944 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14945 | ac_cv_c_bigendian=no | 
|  | 14946 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14947 | ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14948 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14949 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 14950 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14951 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14952 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14953 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14954 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
|  | 14956 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
|  | 14957 | case $ac_cv_c_bigendian in #( | 
|  | 14958 | yes) | 
|  | 14959 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
|  | 14960 | ;; #( | 
|  | 14961 | no) | 
|  | 14962 | ;; #( | 
|  | 14963 | universal) | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14964 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14965 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14966 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14967 | ;; #( | 
|  | 14968 | *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14969 | as_fn_error $? "unknown endianness | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14970 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14971 | esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14972 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14973 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14974 | # ABI version string for Python extension modules.  This appears between the | 
|  | 14975 | # periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated | 
|  | 14976 | # from the following attributes which affect the ABI of this Python build (in | 
|  | 14977 | # this order): | 
|  | 14978 | # | 
|  | 14979 | # * The Python implementation (always 'cpython-' for us) | 
|  | 14980 | # * The major and minor version numbers | 
|  | 14981 | # * --with-pydebug (adds a 'd') | 
|  | 14982 | # * --with-pymalloc (adds a 'm') | 
|  | 14983 | # * --with-wide-unicode (adds a 'u') | 
|  | 14984 | # | 
|  | 14985 | # 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] | 14986 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared | 
|  | 14987 | # libraries would be named 'foo.cpython-32dmu.so'. | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14988 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 | 
|  | 14990 | $as_echo_n "checking ABIFLAGS... " >&6; } | 
|  | 14991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | 
|  | 14992 | $as_echo "$ABIFLAGS" >&6; } | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | 
|  | 14994 | $as_echo_n "checking SOABI... " >&6; } | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 14995 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 | 
|  | 14997 | $as_echo "$SOABI" >&6; } | 
|  | 14998 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14999 |  | 
|  | 15000 | case $ac_sys_system in | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 15001 | Linux*|GNU*|Darwin) | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 15002 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; | 
|  | 15003 | *) | 
|  | 15004 | EXT_SUFFIX=${SHLIB_SUFFIX};; | 
|  | 15005 | esac | 
|  | 15006 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 15007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 | 
|  | 15008 | $as_echo_n "checking LDVERSION... " >&6; } | 
|  | 15009 | LDVERSION='$(VERSION)$(ABIFLAGS)' | 
|  | 15010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | 
|  | 15011 | $as_echo "$LDVERSION" >&6; } | 
|  | 15012 |  | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 15013 |  | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 15014 | if test x$PLATFORM_TRIPLET = x; then | 
|  | 15015 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" | 
|  | 15016 | else | 
|  | 15017 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | 
|  | 15018 | fi | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 15019 |  | 
|  | 15020 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15021 | # Check whether right shifting a negative integer extends the sign bit | 
|  | 15022 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
|  | 15024 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15025 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15026 | $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15027 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15028 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15029 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15030 | ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15031 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15033 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15034 |  | 
|  | 15035 | int main() | 
|  | 15036 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15037 | exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15038 | } | 
|  | 15039 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15040 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15041 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15042 | ac_cv_rshift_extends_sign=yes | 
|  | 15043 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15044 | ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15045 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15046 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15047 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15048 | fi | 
|  | 15049 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15050 | fi | 
|  | 15051 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
|  | 15053 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15054 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15055 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15056 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15057 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15058 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15059 | fi | 
|  | 15060 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15061 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
|  | 15063 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15064 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15065 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15066 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15067 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15069 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15070 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15071 | int | 
|  | 15072 | main () | 
|  | 15073 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15074 |  | 
|  | 15075 | FILE *f = fopen("/dev/null", "r"); | 
|  | 15076 | flockfile(f); | 
|  | 15077 | getc_unlocked(f); | 
|  | 15078 | funlockfile(f); | 
|  | 15079 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15080 | ; | 
|  | 15081 | return 0; | 
|  | 15082 | } | 
|  | 15083 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15084 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15085 | ac_cv_have_getc_unlocked=yes | 
|  | 15086 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15087 | ac_cv_have_getc_unlocked=no | 
|  | 15088 | fi | 
|  | 15089 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15090 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15091 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15092 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
|  | 15094 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15095 | if test "$ac_cv_have_getc_unlocked" = yes | 
|  | 15096 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15097 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15098 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15099 |  | 
|  | 15100 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15101 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15102 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15103 | # save the value of LIBS so we don't actually link Python with readline | 
|  | 15104 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15105 |  | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15106 | # On some systems we need to link readline to a termcap compatible | 
|  | 15107 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
|  | 15108 | # with setup.py. | 
|  | 15109 | py_cv_lib_readline=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
|  | 15111 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| doko@ubuntu.com | f2967c7 | 2012-06-30 17:32:23 +0200 | [diff] [blame] | 15112 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15113 | if test -z "$py_libtermcap"; then | 
|  | 15114 | READLINE_LIBS="-lreadline" | 
|  | 15115 | else | 
|  | 15116 | READLINE_LIBS="-lreadline -l$py_libtermcap" | 
|  | 15117 | fi | 
|  | 15118 | LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15120 | /* end confdefs.h.  */ | 
|  | 15121 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15122 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15123 | Use char because int might match the return type of a GCC | 
|  | 15124 | builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15125 | #ifdef __cplusplus | 
|  | 15126 | extern "C" | 
|  | 15127 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15128 | char readline (); | 
|  | 15129 | int | 
|  | 15130 | main () | 
|  | 15131 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15132 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15133 | ; | 
|  | 15134 | return 0; | 
|  | 15135 | } | 
|  | 15136 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15137 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15138 | py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15139 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15140 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15141 | conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15142 | if test $py_cv_lib_readline = yes; then | 
|  | 15143 | break | 
|  | 15144 | fi | 
|  | 15145 | done | 
|  | 15146 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
|  | 15147 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 15148 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 15150 | $as_echo "none" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15151 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
|  | 15153 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15154 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15155 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15156 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15157 | fi | 
|  | 15158 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15159 | # check for readline 2.1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
|  | 15161 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15162 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15163 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15164 | else | 
|  | 15165 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15166 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15168 | /* end confdefs.h.  */ | 
|  | 15169 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15170 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15171 | Use char because int might match the return type of a GCC | 
|  | 15172 | builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15173 | #ifdef __cplusplus | 
|  | 15174 | extern "C" | 
|  | 15175 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15176 | char rl_callback_handler_install (); | 
|  | 15177 | int | 
|  | 15178 | main () | 
|  | 15179 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15180 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15181 | ; | 
|  | 15182 | return 0; | 
|  | 15183 | } | 
|  | 15184 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15185 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15186 | ac_cv_lib_readline_rl_callback_handler_install=yes | 
|  | 15187 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15188 | ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15189 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15190 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15191 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15192 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15193 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
|  | 15195 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15196 | 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] | 15197 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15198 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15199 |  | 
|  | 15200 | fi | 
|  | 15201 |  | 
|  | 15202 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15203 | # check for readline 2.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15205 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15206 | #include <readline/readline.h> | 
|  | 15207 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15208 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15209 | have_readline=yes | 
|  | 15210 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15211 | have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15212 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15213 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15214 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15215 | if test $have_readline = yes | 
|  | 15216 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15218 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15219 | #include <readline/readline.h> | 
|  | 15220 |  | 
|  | 15221 | _ACEOF | 
|  | 15222 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15223 | $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] | 15224 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15225 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15226 |  | 
|  | 15227 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15228 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15229 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15231 | /* end confdefs.h.  */ | 
|  | 15232 | #include <readline/readline.h> | 
|  | 15233 |  | 
|  | 15234 | _ACEOF | 
|  | 15235 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15236 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15237 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15238 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15239 |  | 
|  | 15240 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15241 | rm -f conftest* | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15242 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15243 | fi | 
|  | 15244 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15245 | # check for readline 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
|  | 15247 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15248 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15249 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15250 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15251 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15252 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15254 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15255 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15256 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15257 | Use char because int might match the return type of a GCC | 
|  | 15258 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15259 | #ifdef __cplusplus | 
|  | 15260 | extern "C" | 
|  | 15261 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15262 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15263 | int | 
|  | 15264 | main () | 
|  | 15265 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15266 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15267 | ; | 
|  | 15268 | return 0; | 
|  | 15269 | } | 
|  | 15270 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15271 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15272 | ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15273 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15274 | ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15275 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15276 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15277 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15278 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15279 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
|  | 15281 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15282 | 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] | 15283 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15284 | $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] | 15285 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15286 | fi | 
|  | 15287 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15288 |  | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15289 | # also in 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
|  | 15291 | $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] | 15292 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15293 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15294 | else | 
|  | 15295 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15296 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15298 | /* end confdefs.h.  */ | 
|  | 15299 |  | 
|  | 15300 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15301 | Use char because int might match the return type of a GCC | 
|  | 15302 | builtin and then its argument prototype would still apply.  */ | 
|  | 15303 | #ifdef __cplusplus | 
|  | 15304 | extern "C" | 
|  | 15305 | #endif | 
|  | 15306 | char rl_completion_display_matches_hook (); | 
|  | 15307 | int | 
|  | 15308 | main () | 
|  | 15309 | { | 
|  | 15310 | return rl_completion_display_matches_hook (); | 
|  | 15311 | ; | 
|  | 15312 | return 0; | 
|  | 15313 | } | 
|  | 15314 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15315 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15316 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
|  | 15317 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15318 | ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15319 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15320 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15321 | conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15322 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15323 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
|  | 15325 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15326 | 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] | 15327 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15328 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15329 |  | 
|  | 15330 | fi | 
|  | 15331 |  | 
|  | 15332 |  | 
| Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15333 | # also in 4.0, but not in editline | 
|  | 15334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 | 
|  | 15335 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } | 
|  | 15336 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : | 
|  | 15337 | $as_echo_n "(cached) " >&6 | 
|  | 15338 | else | 
|  | 15339 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15340 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
|  | 15341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15342 | /* end confdefs.h.  */ | 
|  | 15343 |  | 
|  | 15344 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15345 | Use char because int might match the return type of a GCC | 
|  | 15346 | builtin and then its argument prototype would still apply.  */ | 
|  | 15347 | #ifdef __cplusplus | 
|  | 15348 | extern "C" | 
|  | 15349 | #endif | 
|  | 15350 | char rl_resize_terminal (); | 
|  | 15351 | int | 
|  | 15352 | main () | 
|  | 15353 | { | 
|  | 15354 | return rl_resize_terminal (); | 
|  | 15355 | ; | 
|  | 15356 | return 0; | 
|  | 15357 | } | 
|  | 15358 | _ACEOF | 
|  | 15359 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 15360 | ac_cv_lib_readline_rl_resize_terminal=yes | 
|  | 15361 | else | 
|  | 15362 | ac_cv_lib_readline_rl_resize_terminal=no | 
|  | 15363 | fi | 
|  | 15364 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15365 | conftest$ac_exeext conftest.$ac_ext | 
|  | 15366 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15367 | fi | 
|  | 15368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 | 
|  | 15369 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } | 
|  | 15370 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : | 
|  | 15371 |  | 
|  | 15372 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h | 
|  | 15373 |  | 
|  | 15374 | fi | 
|  | 15375 |  | 
|  | 15376 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15377 | # check for readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
|  | 15379 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15380 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15381 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15382 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15383 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15384 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15386 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15387 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15388 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15389 | Use char because int might match the return type of a GCC | 
|  | 15390 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15391 | #ifdef __cplusplus | 
|  | 15392 | extern "C" | 
|  | 15393 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15394 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15395 | int | 
|  | 15396 | main () | 
|  | 15397 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15398 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15399 | ; | 
|  | 15400 | return 0; | 
|  | 15401 | } | 
|  | 15402 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15403 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15404 | ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15405 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15406 | ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15407 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15408 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15409 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15410 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15411 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
|  | 15413 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15414 | 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] | 15415 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15416 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15417 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15418 | fi | 
|  | 15419 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15420 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15421 | # also in readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15423 | /* end confdefs.h.  */ | 
|  | 15424 | #include <readline/readline.h> | 
|  | 15425 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15426 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15427 | have_readline=yes | 
|  | 15428 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15429 | have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15430 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15431 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15432 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15433 | if test $have_readline = yes | 
|  | 15434 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15436 | /* end confdefs.h.  */ | 
|  | 15437 | #include <readline/readline.h> | 
|  | 15438 |  | 
|  | 15439 | _ACEOF | 
|  | 15440 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15441 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15442 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15443 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15444 |  | 
|  | 15445 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15446 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15447 |  | 
|  | 15448 | fi | 
|  | 15449 |  | 
| Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 | 
|  | 15451 | $as_echo_n "checking for append_history in -lreadline... " >&6; } | 
|  | 15452 | if ${ac_cv_lib_readline_append_history+:} false; then : | 
|  | 15453 | $as_echo_n "(cached) " >&6 | 
|  | 15454 | else | 
|  | 15455 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15456 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
|  | 15457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15458 | /* end confdefs.h.  */ | 
|  | 15459 |  | 
|  | 15460 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15461 | Use char because int might match the return type of a GCC | 
|  | 15462 | builtin and then its argument prototype would still apply.  */ | 
|  | 15463 | #ifdef __cplusplus | 
|  | 15464 | extern "C" | 
|  | 15465 | #endif | 
|  | 15466 | char append_history (); | 
|  | 15467 | int | 
|  | 15468 | main () | 
|  | 15469 | { | 
|  | 15470 | return append_history (); | 
|  | 15471 | ; | 
|  | 15472 | return 0; | 
|  | 15473 | } | 
|  | 15474 | _ACEOF | 
|  | 15475 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 15476 | ac_cv_lib_readline_append_history=yes | 
|  | 15477 | else | 
|  | 15478 | ac_cv_lib_readline_append_history=no | 
|  | 15479 | fi | 
|  | 15480 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15481 | conftest$ac_exeext conftest.$ac_ext | 
|  | 15482 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15483 | fi | 
|  | 15484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 | 
|  | 15485 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } | 
|  | 15486 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : | 
|  | 15487 |  | 
|  | 15488 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h | 
|  | 15489 |  | 
|  | 15490 | fi | 
|  | 15491 |  | 
|  | 15492 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15493 | # End of readline checks: restore LIBS | 
|  | 15494 | LIBS=$LIBS_no_readline | 
|  | 15495 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
|  | 15497 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15498 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15499 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15500 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15501 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15502 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15503 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15504 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15506 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15507 |  | 
|  | 15508 | int main() | 
|  | 15509 | { | 
|  | 15510 | int val1 = nice(1); | 
|  | 15511 | if (val1 != -1 && val1 == nice(2)) | 
|  | 15512 | exit(0); | 
|  | 15513 | exit(1); | 
|  | 15514 | } | 
|  | 15515 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15516 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15517 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15518 | ac_cv_broken_nice=yes | 
|  | 15519 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15520 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15521 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15522 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15523 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15524 | fi | 
|  | 15525 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15526 | fi | 
|  | 15527 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
|  | 15529 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15530 | if test "$ac_cv_broken_nice" = yes | 
|  | 15531 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15532 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15533 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15534 |  | 
|  | 15535 | fi | 
|  | 15536 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
|  | 15538 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15539 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15540 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15541 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15542 | if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15543 | ac_cv_broken_poll=no | 
|  | 15544 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15546 | /* end confdefs.h.  */ | 
|  | 15547 |  | 
|  | 15548 | #include <poll.h> | 
|  | 15549 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15550 | int main() | 
|  | 15551 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15552 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15553 | int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15554 |  | 
|  | 15555 | close (42); | 
|  | 15556 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15557 | poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15558 | if (poll_test < 0) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15559 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15560 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15561 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15562 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15563 | return 1; | 
|  | 15564 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15565 |  | 
|  | 15566 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15567 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15568 | ac_cv_broken_poll=yes | 
|  | 15569 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15570 | ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15571 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15572 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15573 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15574 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15575 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15576 | fi | 
|  | 15577 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
|  | 15579 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15580 | if test "$ac_cv_broken_poll" = yes | 
|  | 15581 | then | 
|  | 15582 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15583 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15584 |  | 
|  | 15585 | fi | 
|  | 15586 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15587 | # 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] | 15588 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
|  | 15589 | # tzname[] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15590 | 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] | 15591 | #include <$ac_cv_struct_tm> | 
|  | 15592 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15593 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15594 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15595 |  | 
|  | 15596 | cat >>confdefs.h <<_ACEOF | 
|  | 15597 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 15598 | _ACEOF | 
|  | 15599 |  | 
|  | 15600 |  | 
|  | 15601 | fi | 
|  | 15602 |  | 
|  | 15603 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 15604 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15605 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15606 |  | 
|  | 15607 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15608 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 15609 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15610 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15611 | ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15612 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15613 | ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15614 | fi | 
|  | 15615 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15616 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15617 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15618 | _ACEOF | 
|  | 15619 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 15621 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15622 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15623 | $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15624 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15626 | /* end confdefs.h.  */ | 
|  | 15627 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15628 | #if !HAVE_DECL_TZNAME | 
|  | 15629 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15630 | #endif | 
|  | 15631 |  | 
|  | 15632 | int | 
|  | 15633 | main () | 
|  | 15634 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15635 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15636 | ; | 
|  | 15637 | return 0; | 
|  | 15638 | } | 
|  | 15639 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15640 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15641 | ac_cv_var_tzname=yes | 
|  | 15642 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15643 | ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15644 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15645 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15646 | conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15647 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 15649 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15650 | if test $ac_cv_var_tzname = yes; then | 
|  | 15651 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15652 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15653 |  | 
|  | 15654 | fi | 
|  | 15655 | fi | 
|  | 15656 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15657 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15658 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
|  | 15660 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15661 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15662 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15663 | else | 
|  | 15664 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15665 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15666 | ac_cv_working_tzset=no | 
|  | 15667 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15669 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15670 |  | 
|  | 15671 | #include <stdlib.h> | 
|  | 15672 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15673 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15674 |  | 
|  | 15675 | #if HAVE_TZNAME | 
|  | 15676 | extern char *tzname[]; | 
|  | 15677 | #endif | 
|  | 15678 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15679 | int main() | 
|  | 15680 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15681 | /* Note that we need to ensure that not only does tzset(3) | 
|  | 15682 | do 'something' with localtime, but it works as documented | 
|  | 15683 | 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] | 15684 | This includes making sure that tzname is set properly if | 
|  | 15685 | tm->tm_zone does not exist since it is the alternative way | 
|  | 15686 | of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15687 |  | 
|  | 15688 | Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15689 | after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15690 | */ | 
|  | 15691 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15692 | time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15693 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
|  | 15694 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15695 | putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15696 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15697 | if (localtime(&groundhogday)->tm_hour != 0) | 
|  | 15698 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15699 | #if HAVE_TZNAME | 
|  | 15700 | /* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
|  | 15701 | if (strcmp(tzname[0], "UTC") || | 
|  | 15702 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
|  | 15703 | exit(1); | 
|  | 15704 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15705 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15706 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15707 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15708 | if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15709 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15710 | #if HAVE_TZNAME | 
|  | 15711 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
|  | 15712 | exit(1); | 
|  | 15713 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15714 |  | 
|  | 15715 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
|  | 15716 | tzset(); | 
|  | 15717 | if (localtime(&groundhogday)->tm_hour != 11) | 
|  | 15718 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15719 | #if HAVE_TZNAME | 
|  | 15720 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
|  | 15721 | exit(1); | 
|  | 15722 | #endif | 
|  | 15723 |  | 
|  | 15724 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15725 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
|  | 15726 | exit(1); | 
|  | 15727 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
|  | 15728 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15729 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15730 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15731 | exit(0); | 
|  | 15732 | } | 
|  | 15733 |  | 
|  | 15734 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15735 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15736 | ac_cv_working_tzset=yes | 
|  | 15737 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15738 | ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15739 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15740 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 15741 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15742 | fi | 
|  | 15743 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15744 | fi | 
|  | 15745 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
|  | 15747 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15748 | if test "$ac_cv_working_tzset" = yes | 
|  | 15749 | then | 
|  | 15750 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15751 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15752 |  | 
|  | 15753 | fi | 
|  | 15754 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15755 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
|  | 15757 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15758 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15759 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15760 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15762 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15763 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15764 | int | 
|  | 15765 | main () | 
|  | 15766 | { | 
|  | 15767 |  | 
|  | 15768 | struct stat st; | 
|  | 15769 | st.st_mtim.tv_nsec = 1; | 
|  | 15770 |  | 
|  | 15771 | ; | 
|  | 15772 | return 0; | 
|  | 15773 | } | 
|  | 15774 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15775 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 15776 | ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15777 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15778 | ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15779 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15781 | fi | 
|  | 15782 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
|  | 15784 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15785 | if test "$ac_cv_stat_tv_nsec" = yes | 
|  | 15786 | then | 
|  | 15787 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15788 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15789 |  | 
|  | 15790 | fi | 
|  | 15791 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15792 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
|  | 15794 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15795 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15796 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15797 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15799 | /* end confdefs.h.  */ | 
|  | 15800 | #include <sys/stat.h> | 
|  | 15801 | int | 
|  | 15802 | main () | 
|  | 15803 | { | 
|  | 15804 |  | 
|  | 15805 | struct stat st; | 
|  | 15806 | st.st_mtimespec.tv_nsec = 1; | 
|  | 15807 |  | 
|  | 15808 | ; | 
|  | 15809 | return 0; | 
|  | 15810 | } | 
|  | 15811 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15812 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15813 | ac_cv_stat_tv_nsec2=yes | 
|  | 15814 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15815 | ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15816 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15818 | fi | 
|  | 15819 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
|  | 15821 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15822 | if test "$ac_cv_stat_tv_nsec2" = yes | 
|  | 15823 | then | 
|  | 15824 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15825 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15826 |  | 
|  | 15827 | fi | 
|  | 15828 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15829 | # first curses header check | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15830 | ac_save_cppflags="$CPPFLAGS" | 
| Xavier de Gaye | e13c320 | 2016-12-13 16:04:14 +0100 | [diff] [blame] | 15831 | if test "$cross_compiling" = no; then | 
|  | 15832 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | 
|  | 15833 | fi | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15834 |  | 
|  | 15835 | for ac_header in curses.h ncurses.h | 
|  | 15836 | do : | 
|  | 15837 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 15838 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
|  | 15839 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
|  | 15840 | cat >>confdefs.h <<_ACEOF | 
|  | 15841 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 15842 | _ACEOF | 
|  | 15843 |  | 
|  | 15844 | fi | 
|  | 15845 |  | 
|  | 15846 | done | 
|  | 15847 |  | 
|  | 15848 |  | 
|  | 15849 | # On Solaris, term.h requires curses.h | 
|  | 15850 | for ac_header in term.h | 
|  | 15851 | do : | 
|  | 15852 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
|  | 15853 | #ifdef HAVE_CURSES_H | 
|  | 15854 | #include <curses.h> | 
|  | 15855 | #endif | 
|  | 15856 |  | 
|  | 15857 | " | 
|  | 15858 | if test "x$ac_cv_header_term_h" = xyes; then : | 
|  | 15859 | cat >>confdefs.h <<_ACEOF | 
|  | 15860 | #define HAVE_TERM_H 1 | 
|  | 15861 | _ACEOF | 
|  | 15862 |  | 
|  | 15863 | fi | 
|  | 15864 |  | 
|  | 15865 | done | 
|  | 15866 |  | 
|  | 15867 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15868 | # 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] | 15869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
|  | 15870 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15871 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15872 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15873 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15875 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15876 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15877 | int | 
|  | 15878 | main () | 
|  | 15879 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15880 |  | 
|  | 15881 | int rtn; | 
|  | 15882 | rtn = mvwdelch(0,0,0); | 
|  | 15883 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15884 | ; | 
|  | 15885 | return 0; | 
|  | 15886 | } | 
|  | 15887 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15888 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15889 | ac_cv_mvwdelch_is_expression=yes | 
|  | 15890 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15891 | ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15892 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15894 | fi | 
|  | 15895 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
|  | 15897 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15898 |  | 
|  | 15899 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
|  | 15900 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15901 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15902 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15903 |  | 
|  | 15904 | fi | 
|  | 15905 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
|  | 15907 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15908 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15909 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15910 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15912 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15913 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15914 | int | 
|  | 15915 | main () | 
|  | 15916 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15917 |  | 
|  | 15918 | WINDOW *w; | 
|  | 15919 | w->_flags = 0; | 
|  | 15920 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15921 | ; | 
|  | 15922 | return 0; | 
|  | 15923 | } | 
|  | 15924 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15925 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15926 | ac_cv_window_has_flags=yes | 
|  | 15927 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15928 | ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15929 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15931 | fi | 
|  | 15932 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
|  | 15934 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15935 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15936 |  | 
|  | 15937 | if test "$ac_cv_window_has_flags" = yes | 
|  | 15938 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15939 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15940 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15941 |  | 
|  | 15942 | fi | 
|  | 15943 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
|  | 15945 | $as_echo_n "checking for is_term_resized... " >&6; } | 
|  | 15946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15947 | /* end confdefs.h.  */ | 
|  | 15948 | #include <curses.h> | 
|  | 15949 | int | 
|  | 15950 | main () | 
|  | 15951 | { | 
|  | 15952 | void *x=is_term_resized | 
|  | 15953 | ; | 
|  | 15954 | return 0; | 
|  | 15955 | } | 
|  | 15956 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15957 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15958 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15959 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15960 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15962 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15963 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 15965 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15966 |  | 
|  | 15967 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15969 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
|  | 15971 | $as_echo_n "checking for resize_term... " >&6; } | 
|  | 15972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15973 | /* end confdefs.h.  */ | 
|  | 15974 | #include <curses.h> | 
|  | 15975 | int | 
|  | 15976 | main () | 
|  | 15977 | { | 
|  | 15978 | void *x=resize_term | 
|  | 15979 | ; | 
|  | 15980 | return 0; | 
|  | 15981 | } | 
|  | 15982 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15983 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15984 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15985 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15986 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15988 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15989 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 15991 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15992 |  | 
|  | 15993 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 15995 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
|  | 15997 | $as_echo_n "checking for resizeterm... " >&6; } | 
|  | 15998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15999 | /* end confdefs.h.  */ | 
|  | 16000 | #include <curses.h> | 
|  | 16001 | int | 
|  | 16002 | main () | 
|  | 16003 | { | 
|  | 16004 | void *x=resizeterm | 
|  | 16005 | ; | 
|  | 16006 | return 0; | 
|  | 16007 | } | 
|  | 16008 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16009 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16010 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16011 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16012 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 16013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16014 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16015 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 16017 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16018 |  | 
|  | 16019 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 16021 | # last curses configure check | 
|  | 16022 | CPPFLAGS=$ac_save_cppflags | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16023 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 | 
|  | 16025 | $as_echo "$as_me: checking for device files" >&6;} | 
|  | 16026 |  | 
|  | 16027 | if test "x$cross_compiling" = xyes; then | 
|  | 16028 | if test "${ac_cv_file__dev_ptmx+set}" != set; then | 
|  | 16029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
|  | 16030 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
|  | 16031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
|  | 16032 | $as_echo "not set" >&6; } | 
|  | 16033 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
|  | 16034 | fi | 
|  | 16035 | if test "${ac_cv_file__dev_ptc+set}" != set; then | 
|  | 16036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
|  | 16037 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
|  | 16038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
|  | 16039 | $as_echo "not set" >&6; } | 
|  | 16040 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
|  | 16041 | fi | 
|  | 16042 | fi | 
|  | 16043 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
|  | 16045 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16046 | if ${ac_cv_file__dev_ptmx+:} false; then : | 
|  | 16047 | $as_echo_n "(cached) " >&6 | 
|  | 16048 | else | 
|  | 16049 | test "$cross_compiling" = yes && | 
|  | 16050 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
|  | 16051 | if test -r "/dev/ptmx"; then | 
|  | 16052 | ac_cv_file__dev_ptmx=yes | 
|  | 16053 | else | 
|  | 16054 | ac_cv_file__dev_ptmx=no | 
|  | 16055 | fi | 
|  | 16056 | fi | 
|  | 16057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | 
|  | 16058 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | 
|  | 16059 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16060 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16061 | fi | 
|  | 16062 |  | 
|  | 16063 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16064 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16065 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16066 |  | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16067 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
|  | 16069 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16070 | if ${ac_cv_file__dev_ptc+:} false; then : | 
|  | 16071 | $as_echo_n "(cached) " >&6 | 
|  | 16072 | else | 
|  | 16073 | test "$cross_compiling" = yes && | 
|  | 16074 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
|  | 16075 | if test -r "/dev/ptc"; then | 
|  | 16076 | ac_cv_file__dev_ptc=yes | 
|  | 16077 | else | 
|  | 16078 | ac_cv_file__dev_ptc=no | 
|  | 16079 | fi | 
|  | 16080 | fi | 
|  | 16081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | 
|  | 16082 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | 
|  | 16083 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16084 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16085 | fi | 
|  | 16086 |  | 
|  | 16087 | if test "x$ac_cv_file__dev_ptc" = xyes; then | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16088 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16089 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16090 |  | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16091 | fi | 
|  | 16092 |  | 
| Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 16093 | if test $ac_sys_system = Darwin | 
|  | 16094 | then | 
|  | 16095 | LIBS="$LIBS -framework CoreFoundation" | 
|  | 16096 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 16097 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
|  | 16099 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16100 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16101 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16102 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16103 | if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16104 | ac_cv_have_size_t_format="cross -- assuming yes" | 
|  | 16105 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16106 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16108 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16109 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16110 | #include <stdio.h> | 
|  | 16111 | #include <stddef.h> | 
|  | 16112 | #include <string.h> | 
|  | 16113 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16114 | #ifdef HAVE_SYS_TYPES_H | 
|  | 16115 | #include <sys/types.h> | 
|  | 16116 | #endif | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16117 |  | 
|  | 16118 | #ifdef HAVE_SSIZE_T | 
|  | 16119 | typedef ssize_t Py_ssize_t; | 
|  | 16120 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
|  | 16121 | typedef long Py_ssize_t; | 
|  | 16122 | #else | 
|  | 16123 | typedef int Py_ssize_t; | 
|  | 16124 | #endif | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16125 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16126 | int main() | 
|  | 16127 | { | 
|  | 16128 | char buffer[256]; | 
|  | 16129 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16130 | if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
|  | 16131 | return 1; | 
|  | 16132 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16133 | if (strcmp(buffer, "123")) | 
|  | 16134 | return 1; | 
|  | 16135 |  | 
|  | 16136 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
|  | 16137 | return 1; | 
|  | 16138 |  | 
|  | 16139 | if (strcmp(buffer, "-123")) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16140 | return 1; | 
|  | 16141 |  | 
|  | 16142 | return 0; | 
|  | 16143 | } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16144 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16145 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16146 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16147 | ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16148 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16149 | ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16150 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16151 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16152 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 16153 | fi | 
|  | 16154 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16155 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
|  | 16157 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16158 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16159 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16160 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16161 |  | 
|  | 16162 | fi | 
|  | 16163 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16164 | 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] | 16165 | #ifdef HAVE_SYS_TYPES_H | 
|  | 16166 | #include <sys/types.h> | 
|  | 16167 | #endif | 
|  | 16168 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 16169 | #include <sys/socket.h> | 
|  | 16170 | #endif | 
|  | 16171 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16172 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16173 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16174 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16175 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16176 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16177 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16178 |  | 
|  | 16179 | fi | 
|  | 16180 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16181 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 | 
|  | 16183 | $as_echo_n "checking for broken mbstowcs... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16184 | if ${ac_cv_broken_mbstowcs+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16185 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16186 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16187 | if test "$cross_compiling" = yes; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16188 | ac_cv_broken_mbstowcs=no | 
|  | 16189 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16191 | /* end confdefs.h.  */ | 
|  | 16192 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 16193 | #include <stdio.h> | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16194 | #include<stdlib.h> | 
|  | 16195 | int main() { | 
|  | 16196 | size_t len = -1; | 
|  | 16197 | const char *str = "text"; | 
|  | 16198 | len = mbstowcs(NULL, str, 0); | 
|  | 16199 | return (len != 4); | 
|  | 16200 | } | 
|  | 16201 |  | 
|  | 16202 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16203 | if ac_fn_c_try_run "$LINENO"; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16204 | ac_cv_broken_mbstowcs=no | 
|  | 16205 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16206 | ac_cv_broken_mbstowcs=yes | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16207 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16208 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16209 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16210 | fi | 
|  | 16211 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16212 | fi | 
|  | 16213 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 | 
|  | 16215 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16216 | if test "$ac_cv_broken_mbstowcs" = yes | 
|  | 16217 | then | 
|  | 16218 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16219 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16220 |  | 
|  | 16221 | fi | 
|  | 16222 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16223 | # Check for --with-computed-gotos | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
|  | 16225 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16226 |  | 
|  | 16227 | # Check whether --with-computed-gotos was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16228 | if test "${with_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16229 | withval=$with_computed_gotos; | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16230 | if test "$withval" = yes | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16231 | then | 
|  | 16232 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16233 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16234 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 16236 | $as_echo "yes" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16237 | fi | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16238 | if test "$withval" = no | 
|  | 16239 | then | 
|  | 16240 |  | 
|  | 16241 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
|  | 16242 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 16244 | $as_echo "no" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16245 | fi | 
|  | 16246 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16247 | else | 
|  | 16248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 16249 | $as_echo "no value specified" >&6; } | 
|  | 16250 | fi | 
|  | 16251 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16252 |  | 
| Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
|  | 16254 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
|  | 16255 | if ${ac_cv_computed_gotos+:} false; then : | 
|  | 16256 | $as_echo_n "(cached) " >&6 | 
|  | 16257 | else | 
|  | 16258 | if test "$cross_compiling" = yes; then : | 
|  | 16259 | if test "${with_computed_gotos+set}" = set; then | 
|  | 16260 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | 
|  | 16261 | else | 
|  | 16262 | ac_cv_computed_gotos=no | 
|  | 16263 | fi | 
|  | 16264 | else | 
|  | 16265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16266 | /* end confdefs.h.  */ | 
|  | 16267 |  | 
|  | 16268 | int main(int argc, char **argv) | 
|  | 16269 | { | 
|  | 16270 | static void *targets[1] = { &&LABEL1 }; | 
|  | 16271 | goto LABEL2; | 
|  | 16272 | LABEL1: | 
|  | 16273 | return 0; | 
|  | 16274 | LABEL2: | 
|  | 16275 | goto *targets[0]; | 
|  | 16276 | return 1; | 
|  | 16277 | } | 
|  | 16278 |  | 
|  | 16279 | _ACEOF | 
|  | 16280 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 16281 | ac_cv_computed_gotos=yes | 
|  | 16282 | else | 
|  | 16283 | ac_cv_computed_gotos=no | 
|  | 16284 | fi | 
|  | 16285 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16286 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 16287 | fi | 
|  | 16288 |  | 
|  | 16289 | fi | 
|  | 16290 |  | 
|  | 16291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
|  | 16292 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
|  | 16293 | case "$ac_cv_computed_gotos" in yes*) | 
|  | 16294 |  | 
|  | 16295 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
|  | 16296 |  | 
|  | 16297 | esac | 
|  | 16298 |  | 
| Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 16299 | case $ac_sys_system in | 
|  | 16300 | AIX*) | 
|  | 16301 |  | 
|  | 16302 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
|  | 16303 | ;; | 
|  | 16304 | esac | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16305 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16306 |  | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 16307 |  | 
|  | 16308 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16309 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
|  | 16310 | do | 
|  | 16311 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
|  | 16312 | done | 
|  | 16313 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16314 |  | 
| Alex Dzyoba | 8a543c0 | 2017-03-24 11:23:43 +0300 | [diff] [blame] | 16315 | SRCDIRS="Parser Objects Python Modules Programs" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
|  | 16317 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16318 | for dir in $SRCDIRS; do | 
|  | 16319 | if test ! -d $dir; then | 
|  | 16320 | mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16321 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16322 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
|  | 16324 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16325 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16326 | # Availability of -O2: | 
|  | 16327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 | 
|  | 16328 | $as_echo_n "checking for -O2... " >&6; } | 
|  | 16329 | saved_cflags="$CFLAGS" | 
|  | 16330 | CFLAGS="-O2" | 
|  | 16331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16332 | /* end confdefs.h.  */ | 
|  | 16333 |  | 
|  | 16334 | int | 
|  | 16335 | main () | 
|  | 16336 | { | 
|  | 16337 |  | 
|  | 16338 |  | 
|  | 16339 | ; | 
|  | 16340 | return 0; | 
|  | 16341 | } | 
|  | 16342 | _ACEOF | 
|  | 16343 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 16344 | have_O2=yes | 
|  | 16345 | else | 
|  | 16346 | have_O2=no | 
|  | 16347 | fi | 
|  | 16348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 16349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | 
|  | 16350 | $as_echo "$have_O2" >&6; } | 
|  | 16351 | CFLAGS="$saved_cflags" | 
|  | 16352 |  | 
|  | 16353 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | 
|  | 16354 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | 
|  | 16355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 | 
|  | 16356 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | 
|  | 16357 | saved_cflags="$CFLAGS" | 
|  | 16358 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | 
|  | 16359 | if test "$have_O2" = no; then | 
|  | 16360 | CFLAGS="" | 
|  | 16361 | fi | 
|  | 16362 | if test "$cross_compiling" = yes; then : | 
|  | 16363 | have_glibc_memmove_bug=undefined | 
|  | 16364 | else | 
|  | 16365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16366 | /* end confdefs.h.  */ | 
|  | 16367 |  | 
|  | 16368 | #include <stdio.h> | 
|  | 16369 | #include <stdlib.h> | 
|  | 16370 | #include <string.h> | 
|  | 16371 | void foo(void *p, void *q) { memmove(p, q, 19); } | 
|  | 16372 | int main() { | 
|  | 16373 | char a[32] = "123456789000000000"; | 
|  | 16374 | foo(&a[9], a); | 
|  | 16375 | if (strcmp(a, "123456789123456789000000000") != 0) | 
|  | 16376 | return 1; | 
|  | 16377 | foo(a, &a[9]); | 
|  | 16378 | if (strcmp(a, "123456789000000000") != 0) | 
|  | 16379 | return 1; | 
|  | 16380 | return 0; | 
|  | 16381 | } | 
|  | 16382 |  | 
|  | 16383 | _ACEOF | 
|  | 16384 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 16385 | have_glibc_memmove_bug=no | 
|  | 16386 | else | 
|  | 16387 | have_glibc_memmove_bug=yes | 
|  | 16388 | fi | 
|  | 16389 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16390 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 16391 | fi | 
|  | 16392 |  | 
|  | 16393 | CFLAGS="$saved_cflags" | 
|  | 16394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 | 
|  | 16395 | $as_echo "$have_glibc_memmove_bug" >&6; } | 
|  | 16396 | if test "$have_glibc_memmove_bug" = yes; then | 
|  | 16397 |  | 
|  | 16398 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h | 
|  | 16399 |  | 
|  | 16400 | fi | 
|  | 16401 |  | 
|  | 16402 | if test "$have_gcc_asm_for_x87" = yes; then | 
|  | 16403 | # Some versions of gcc miscompile inline asm: | 
|  | 16404 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | 
|  | 16405 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | 
|  | 16406 | case $CC in | 
|  | 16407 | *gcc*) | 
|  | 16408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 | 
|  | 16409 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | 
|  | 16410 | saved_cflags="$CFLAGS" | 
|  | 16411 | CFLAGS="-O2" | 
|  | 16412 | if test "$cross_compiling" = yes; then : | 
|  | 16413 | have_ipa_pure_const_bug=undefined | 
|  | 16414 | else | 
|  | 16415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16416 | /* end confdefs.h.  */ | 
|  | 16417 |  | 
|  | 16418 | __attribute__((noinline)) int | 
|  | 16419 | foo(int *p) { | 
|  | 16420 | int r; | 
|  | 16421 | asm ( "movl \$6, (%1)\n\t" | 
|  | 16422 | "xorl %0, %0\n\t" | 
|  | 16423 | : "=r" (r) : "r" (p) : "memory" | 
|  | 16424 | ); | 
|  | 16425 | return r; | 
|  | 16426 | } | 
|  | 16427 | int main() { | 
|  | 16428 | int p = 8; | 
|  | 16429 | if ((foo(&p) ? : p) != 6) | 
|  | 16430 | return 1; | 
|  | 16431 | return 0; | 
|  | 16432 | } | 
|  | 16433 |  | 
|  | 16434 | _ACEOF | 
|  | 16435 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 16436 | have_ipa_pure_const_bug=no | 
|  | 16437 | else | 
|  | 16438 | have_ipa_pure_const_bug=yes | 
|  | 16439 | fi | 
|  | 16440 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 16441 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 16442 | fi | 
|  | 16443 |  | 
|  | 16444 | CFLAGS="$saved_cflags" | 
|  | 16445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 | 
|  | 16446 | $as_echo "$have_ipa_pure_const_bug" >&6; } | 
|  | 16447 | if test "$have_ipa_pure_const_bug" = yes; then | 
|  | 16448 |  | 
|  | 16449 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h | 
|  | 16450 |  | 
|  | 16451 | fi | 
|  | 16452 | ;; | 
|  | 16453 | esac | 
|  | 16454 | fi | 
|  | 16455 |  | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16456 | # Check for stdatomic.h | 
|  | 16457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 | 
|  | 16458 | $as_echo_n "checking for stdatomic.h... " >&6; } | 
|  | 16459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16460 | /* end confdefs.h.  */ | 
|  | 16461 |  | 
|  | 16462 |  | 
|  | 16463 | #include <stdatomic.h> | 
| Victor Stinner | 923e06f | 2015-01-14 16:01:46 +0100 | [diff] [blame] | 16464 | atomic_int value = ATOMIC_VAR_INIT(1); | 
|  | 16465 | _Atomic void *py_atomic_address = (void*) &value; | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16466 | int main() { | 
|  | 16467 | int loaded_value = atomic_load(&value); | 
|  | 16468 | return 0; | 
|  | 16469 | } | 
|  | 16470 |  | 
|  | 16471 |  | 
|  | 16472 | _ACEOF | 
|  | 16473 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16474 | have_stdatomic_h=yes | 
|  | 16475 | else | 
|  | 16476 | have_stdatomic_h=no | 
|  | 16477 | fi | 
|  | 16478 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16479 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16480 |  | 
|  | 16481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 | 
|  | 16482 | $as_echo "$have_stdatomic_h" >&6; } | 
|  | 16483 |  | 
|  | 16484 | if test "$have_stdatomic_h" = yes; then | 
|  | 16485 |  | 
|  | 16486 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h | 
|  | 16487 |  | 
|  | 16488 | fi | 
|  | 16489 |  | 
|  | 16490 | # Check for GCC >= 4.7 __atomic builtins | 
|  | 16491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 | 
|  | 16492 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } | 
|  | 16493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16494 | /* end confdefs.h.  */ | 
|  | 16495 |  | 
|  | 16496 |  | 
|  | 16497 | volatile int val = 1; | 
|  | 16498 | int main() { | 
|  | 16499 | __atomic_load_n(&val, __ATOMIC_SEQ_CST); | 
|  | 16500 | return 0; | 
|  | 16501 | } | 
|  | 16502 |  | 
|  | 16503 |  | 
|  | 16504 | _ACEOF | 
|  | 16505 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16506 | have_builtin_atomic=yes | 
|  | 16507 | else | 
|  | 16508 | have_builtin_atomic=no | 
|  | 16509 | fi | 
|  | 16510 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16511 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16512 |  | 
|  | 16513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 | 
|  | 16514 | $as_echo "$have_builtin_atomic" >&6; } | 
|  | 16515 |  | 
|  | 16516 | if test "$have_builtin_atomic" = yes; then | 
|  | 16517 |  | 
|  | 16518 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h | 
|  | 16519 |  | 
|  | 16520 | fi | 
|  | 16521 |  | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 16522 | # ensurepip option | 
|  | 16523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | 
|  | 16524 | $as_echo_n "checking for ensurepip... " >&6; } | 
|  | 16525 |  | 
|  | 16526 | # Check whether --with-ensurepip was given. | 
|  | 16527 | if test "${with_ensurepip+set}" = set; then : | 
|  | 16528 | withval=$with_ensurepip; | 
|  | 16529 | else | 
|  | 16530 | with_ensurepip=upgrade | 
|  | 16531 | fi | 
|  | 16532 |  | 
|  | 16533 | case $with_ensurepip in #( | 
|  | 16534 | yes|upgrade) : | 
|  | 16535 | ENSUREPIP=upgrade ;; #( | 
|  | 16536 | install) : | 
|  | 16537 | ENSUREPIP=install ;; #( | 
|  | 16538 | no) : | 
|  | 16539 | ENSUREPIP=no ;; #( | 
|  | 16540 | *) : | 
|  | 16541 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | 
|  | 16542 | esac | 
|  | 16543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | 
|  | 16544 | $as_echo "$ENSUREPIP" >&6; } | 
|  | 16545 |  | 
|  | 16546 |  | 
| Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 16547 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined | 
|  | 16548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 | 
|  | 16549 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } | 
|  | 16550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16551 | /* end confdefs.h.  */ | 
|  | 16552 |  | 
|  | 16553 |  | 
|  | 16554 | #include <dirent.h> | 
|  | 16555 |  | 
|  | 16556 | int main() { | 
|  | 16557 | struct dirent entry; | 
|  | 16558 | return entry.d_type == DT_UNKNOWN; | 
|  | 16559 | } | 
|  | 16560 |  | 
|  | 16561 |  | 
|  | 16562 | _ACEOF | 
|  | 16563 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16564 | have_dirent_d_type=yes | 
|  | 16565 | else | 
|  | 16566 | have_dirent_d_type=no | 
|  | 16567 | fi | 
|  | 16568 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16569 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 | 
|  | 16571 | $as_echo "$have_dirent_d_type" >&6; } | 
|  | 16572 |  | 
|  | 16573 | if test "$have_dirent_d_type" = yes; then | 
|  | 16574 |  | 
|  | 16575 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h | 
|  | 16576 |  | 
|  | 16577 | fi | 
|  | 16578 |  | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16579 | # check if the Linux getrandom() syscall is available | 
|  | 16580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 | 
|  | 16581 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } | 
|  | 16582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16583 | /* end confdefs.h.  */ | 
|  | 16584 |  | 
|  | 16585 |  | 
| Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 16586 | #include <unistd.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16587 | #include <sys/syscall.h> | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16588 | #include <linux/random.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16589 |  | 
|  | 16590 | int main() { | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16591 | char buffer[1]; | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16592 | const size_t buflen = sizeof(buffer); | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16593 | const int flags = GRND_NONBLOCK; | 
|  | 16594 | /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16595 | (void)syscall(SYS_getrandom, buffer, buflen, flags); | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16596 | return 0; | 
|  | 16597 | } | 
|  | 16598 |  | 
|  | 16599 |  | 
|  | 16600 | _ACEOF | 
|  | 16601 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16602 | have_getrandom_syscall=yes | 
|  | 16603 | else | 
|  | 16604 | have_getrandom_syscall=no | 
|  | 16605 | fi | 
|  | 16606 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16607 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 | 
|  | 16609 | $as_echo "$have_getrandom_syscall" >&6; } | 
|  | 16610 |  | 
|  | 16611 | if test "$have_getrandom_syscall" = yes; then | 
|  | 16612 |  | 
|  | 16613 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h | 
|  | 16614 |  | 
|  | 16615 | fi | 
|  | 16616 |  | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16617 | # check if the getrandom() function is available | 
|  | 16618 | # the test was written for the Solaris function of <sys/random.h> | 
|  | 16619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 | 
|  | 16620 | $as_echo_n "checking for the getrandom() function... " >&6; } | 
|  | 16621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16622 | /* end confdefs.h.  */ | 
|  | 16623 |  | 
|  | 16624 |  | 
|  | 16625 | #include <sys/random.h> | 
|  | 16626 |  | 
|  | 16627 | int main() { | 
|  | 16628 | char buffer[1]; | 
|  | 16629 | const size_t buflen = sizeof(buffer); | 
|  | 16630 | const int flags = 0; | 
|  | 16631 | /* ignore the result, Python checks for ENOSYS at runtime */ | 
|  | 16632 | (void)getrandom(buffer, buflen, flags); | 
|  | 16633 | return 0; | 
|  | 16634 | } | 
|  | 16635 |  | 
|  | 16636 |  | 
|  | 16637 | _ACEOF | 
|  | 16638 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16639 | have_getrandom=yes | 
|  | 16640 | else | 
|  | 16641 | have_getrandom=no | 
|  | 16642 | fi | 
|  | 16643 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16644 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 | 
|  | 16646 | $as_echo "$have_getrandom" >&6; } | 
|  | 16647 |  | 
|  | 16648 | if test "$have_getrandom" = yes; then | 
|  | 16649 |  | 
|  | 16650 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h | 
|  | 16651 |  | 
|  | 16652 | fi | 
|  | 16653 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16654 | # generate output files | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 16655 | 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] | 16656 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 16657 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
|  | 16658 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16659 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16660 | # This file is a shell script that caches the results of configure | 
|  | 16661 | # 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] | 16662 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 16663 | # It is not useful on other systems.  If it contains results you don't | 
|  | 16664 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16665 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16666 | # config.status only pays attention to the cache file if you give it | 
|  | 16667 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16668 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16669 | # `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] | 16670 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 16671 | # following values. | 
|  | 16672 |  | 
|  | 16673 | _ACEOF | 
|  | 16674 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16675 | # The following way of writing the cache mishandles newlines in values, | 
|  | 16676 | # but we know of no workaround that is simple, portable, and efficient. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16677 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16678 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 16679 | # 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] | 16680 | ( | 
|  | 16681 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
|  | 16682 | eval ac_val=\$$ac_var | 
|  | 16683 | case $ac_val in #( | 
|  | 16684 | *${as_nl}*) | 
|  | 16685 | case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16686 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 16687 | $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] | 16688 | esac | 
|  | 16689 | case $ac_var in #( | 
|  | 16690 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16691 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 16692 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16693 | esac ;; | 
|  | 16694 | esac | 
|  | 16695 | done | 
|  | 16696 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16697 | (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16698 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
|  | 16699 | *${as_nl}ac_space=\ *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16700 | # `set' does not quote correctly, so add quotes: double-quote | 
|  | 16701 | # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16702 | sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16703 | "s/'/'\\\\''/g; | 
|  | 16704 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16705 | ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16706 | *) | 
|  | 16707 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16708 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16709 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16710 | esac | | 
|  | 16711 | sort | 
|  | 16712 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16713 | sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16714 | /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16715 | t clear | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16716 | :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16717 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 16718 | t end | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16719 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 16720 | :end' >>confcache | 
|  | 16721 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
|  | 16722 | if test -w "$cache_file"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16723 | if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16724 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
|  | 16725 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16726 | if test ! -f "$cache_file" || test -h "$cache_file"; then | 
|  | 16727 | cat confcache >"$cache_file" | 
|  | 16728 | else | 
|  | 16729 | case $cache_file in #( | 
|  | 16730 | */* | ?:*) | 
|  | 16731 | mv -f confcache "$cache_file"$$ && | 
|  | 16732 | mv -f "$cache_file"$$ "$cache_file" ;; #( | 
|  | 16733 | *) | 
|  | 16734 | mv -f confcache "$cache_file" ;; | 
|  | 16735 | esac | 
|  | 16736 | fi | 
|  | 16737 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16738 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16739 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
|  | 16740 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16741 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16742 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16743 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16744 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16745 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 16746 | # Let make expand exec_prefix. | 
|  | 16747 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16748 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16749 | DEFS=-DHAVE_CONFIG_H | 
|  | 16750 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16751 | ac_libobjs= | 
|  | 16752 | ac_ltlibobjs= | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16753 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16754 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 16755 | # 1. Remove the extension, and $U if already installed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16756 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16757 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16758 | # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
|  | 16759 | #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16760 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
|  | 16761 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16762 | done | 
|  | 16763 | LIBOBJS=$ac_libobjs | 
|  | 16764 |  | 
|  | 16765 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 16766 |  | 
|  | 16767 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16768 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16769 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16770 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16771 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16772 | ac_clean_files_save=$ac_clean_files | 
|  | 16773 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16774 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
|  | 16775 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
|  | 16776 | as_write_fail=0 | 
|  | 16777 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16778 | #! $SHELL | 
|  | 16779 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16780 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16781 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16782 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16783 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16784 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16785 | ac_cs_recheck=false | 
|  | 16786 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16787 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16788 | SHELL=\${CONFIG_SHELL-$SHELL} | 
|  | 16789 | export SHELL | 
|  | 16790 | _ASEOF | 
|  | 16791 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
|  | 16792 | ## -------------------- ## | 
|  | 16793 | ## M4sh Initialization. ## | 
|  | 16794 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16795 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16796 | # Be more Bourne compatible | 
|  | 16797 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16798 | 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] | 16799 | emulate sh | 
|  | 16800 | NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16801 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16802 | # is contrary to our usage.  Disable this feature. | 
|  | 16803 | alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16804 | setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 16805 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16806 | case `(set -o) 2>/dev/null` in #( | 
|  | 16807 | *posix*) : | 
|  | 16808 | set -o posix ;; #( | 
|  | 16809 | *) : | 
|  | 16810 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16811 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16812 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16813 |  | 
|  | 16814 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16815 | as_nl=' | 
|  | 16816 | ' | 
|  | 16817 | export as_nl | 
|  | 16818 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 16819 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 16820 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 16821 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 16822 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 16823 | # but without wasting forks for bash or zsh. | 
|  | 16824 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 16825 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 16826 | as_echo='print -r --' | 
|  | 16827 | as_echo_n='print -rn --' | 
|  | 16828 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 16829 | as_echo='printf %s\n' | 
|  | 16830 | as_echo_n='printf %s' | 
|  | 16831 | else | 
|  | 16832 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 16833 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 16834 | as_echo_n='/usr/ucb/echo -n' | 
|  | 16835 | else | 
|  | 16836 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 16837 | as_echo_n_body='eval | 
|  | 16838 | arg=$1; | 
|  | 16839 | case $arg in #( | 
|  | 16840 | *"$as_nl"*) | 
|  | 16841 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 16842 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 16843 | esac; | 
|  | 16844 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 16845 | ' | 
|  | 16846 | export as_echo_n_body | 
|  | 16847 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 16848 | fi | 
|  | 16849 | export as_echo_body | 
|  | 16850 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 16851 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16852 |  | 
|  | 16853 | # The user is always right. | 
|  | 16854 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16855 | PATH_SEPARATOR=: | 
|  | 16856 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 16857 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 16858 | PATH_SEPARATOR=';' | 
|  | 16859 | } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16860 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16861 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16862 |  | 
|  | 16863 | # IFS | 
|  | 16864 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 16865 | # there to prevent editors from complaining about space-tab. | 
|  | 16866 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 16867 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16868 | IFS=" ""	$as_nl" | 
|  | 16869 |  | 
|  | 16870 | # 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] | 16871 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16872 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16873 | *[\\/]* ) as_myself=$0 ;; | 
|  | 16874 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16875 | for as_dir in $PATH | 
|  | 16876 | do | 
|  | 16877 | IFS=$as_save_IFS | 
|  | 16878 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16879 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 16880 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16881 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16882 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16883 | ;; | 
|  | 16884 | esac | 
|  | 16885 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 16886 | # in which case we are not to be found in the path. | 
|  | 16887 | if test "x$as_myself" = x; then | 
|  | 16888 | as_myself=$0 | 
|  | 16889 | fi | 
|  | 16890 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16891 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 16892 | exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16893 | fi | 
|  | 16894 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16895 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 16896 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 16897 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 16898 | # trigger a bug in pdksh 5.2.14. | 
|  | 16899 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 16900 | do eval test x\${$as_var+set} = xset \ | 
|  | 16901 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16902 | done | 
|  | 16903 | PS1='$ ' | 
|  | 16904 | PS2='> ' | 
|  | 16905 | PS4='+ ' | 
|  | 16906 |  | 
|  | 16907 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16908 | LC_ALL=C | 
|  | 16909 | export LC_ALL | 
|  | 16910 | LANGUAGE=C | 
|  | 16911 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16912 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16913 | # CDPATH. | 
|  | 16914 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 16915 |  | 
|  | 16916 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16917 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
|  | 16918 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16919 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 16920 | # 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] | 16921 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16922 | as_fn_error () | 
|  | 16923 | { | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16924 | as_status=$1; test $as_status -eq 0 && as_status=1 | 
|  | 16925 | if test "$4"; then | 
|  | 16926 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 16927 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16928 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16929 | $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16930 | as_fn_exit $as_status | 
|  | 16931 | } # as_fn_error | 
|  | 16932 |  | 
|  | 16933 |  | 
|  | 16934 | # as_fn_set_status STATUS | 
|  | 16935 | # ----------------------- | 
|  | 16936 | # Set $? to STATUS, without forking. | 
|  | 16937 | as_fn_set_status () | 
|  | 16938 | { | 
|  | 16939 | return $1 | 
|  | 16940 | } # as_fn_set_status | 
|  | 16941 |  | 
|  | 16942 | # as_fn_exit STATUS | 
|  | 16943 | # ----------------- | 
|  | 16944 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 16945 | as_fn_exit () | 
|  | 16946 | { | 
|  | 16947 | set +e | 
|  | 16948 | as_fn_set_status $1 | 
|  | 16949 | exit $1 | 
|  | 16950 | } # as_fn_exit | 
|  | 16951 |  | 
|  | 16952 | # as_fn_unset VAR | 
|  | 16953 | # --------------- | 
|  | 16954 | # Portably unset VAR. | 
|  | 16955 | as_fn_unset () | 
|  | 16956 | { | 
|  | 16957 | { eval $1=; unset $1;} | 
|  | 16958 | } | 
|  | 16959 | as_unset=as_fn_unset | 
|  | 16960 | # as_fn_append VAR VALUE | 
|  | 16961 | # ---------------------- | 
|  | 16962 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 16963 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 16964 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 16965 | # implementations. | 
|  | 16966 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 16967 | eval 'as_fn_append () | 
|  | 16968 | { | 
|  | 16969 | eval $1+=\$2 | 
|  | 16970 | }' | 
|  | 16971 | else | 
|  | 16972 | as_fn_append () | 
|  | 16973 | { | 
|  | 16974 | eval $1=\$$1\$2 | 
|  | 16975 | } | 
|  | 16976 | fi # as_fn_append | 
|  | 16977 |  | 
|  | 16978 | # as_fn_arith ARG... | 
|  | 16979 | # ------------------ | 
|  | 16980 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 16981 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 16982 | # must be portable across $(()) and expr. | 
|  | 16983 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 16984 | eval 'as_fn_arith () | 
|  | 16985 | { | 
|  | 16986 | as_val=$(( $* )) | 
|  | 16987 | }' | 
|  | 16988 | else | 
|  | 16989 | as_fn_arith () | 
|  | 16990 | { | 
|  | 16991 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 16992 | } | 
|  | 16993 | fi # as_fn_arith | 
|  | 16994 |  | 
|  | 16995 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16996 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 16997 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 16998 | as_expr=expr | 
|  | 16999 | else | 
|  | 17000 | as_expr=false | 
|  | 17001 | fi | 
|  | 17002 |  | 
|  | 17003 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 17004 | as_basename=basename | 
|  | 17005 | else | 
|  | 17006 | as_basename=false | 
|  | 17007 | fi | 
|  | 17008 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17009 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 17010 | as_dirname=dirname | 
|  | 17011 | else | 
|  | 17012 | as_dirname=false | 
|  | 17013 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17014 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17015 | as_me=`$as_basename -- "$0" || | 
|  | 17016 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 17017 | X"$0" : 'X\(//\)$' \| \ | 
|  | 17018 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17019 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17020 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 17021 | s//\1/ | 
|  | 17022 | q | 
|  | 17023 | } | 
|  | 17024 | /^X\/\(\/\/\)$/{ | 
|  | 17025 | s//\1/ | 
|  | 17026 | q | 
|  | 17027 | } | 
|  | 17028 | /^X\/\(\/\).*/{ | 
|  | 17029 | s//\1/ | 
|  | 17030 | q | 
|  | 17031 | } | 
|  | 17032 | s/.*/./; q'` | 
|  | 17033 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17034 | # Avoid depending upon Character Ranges. | 
|  | 17035 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 17036 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 17037 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 17038 | as_cr_digits='0123456789' | 
|  | 17039 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17040 |  | 
|  | 17041 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17042 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17043 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17044 | case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17045 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17046 | xy)  ECHO_C='\c';; | 
|  | 17047 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 17048 | ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17049 | esac;; | 
|  | 17050 | *) | 
|  | 17051 | ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17052 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17053 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17054 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17055 | if test -d conf$$.dir; then | 
|  | 17056 | rm -f conf$$.dir/conf$$.file | 
|  | 17057 | else | 
|  | 17058 | rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17059 | mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17060 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17061 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 17062 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 17063 | as_ln_s='ln -s' | 
|  | 17064 | # ... but there are two gotchas: | 
|  | 17065 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 17066 | # 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] | 17067 | # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17068 | 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] | 17069 | as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17070 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 17071 | as_ln_s=ln | 
|  | 17072 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17073 | as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17074 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17075 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17076 | as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17077 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17078 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 17079 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17080 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17081 |  | 
|  | 17082 | # as_fn_mkdir_p | 
|  | 17083 | # ------------- | 
|  | 17084 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 17085 | as_fn_mkdir_p () | 
|  | 17086 | { | 
|  | 17087 |  | 
|  | 17088 | case $as_dir in #( | 
|  | 17089 | -*) as_dir=./$as_dir;; | 
|  | 17090 | esac | 
|  | 17091 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 17092 | as_dirs= | 
|  | 17093 | while :; do | 
|  | 17094 | case $as_dir in #( | 
|  | 17095 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 17096 | *) as_qdir=$as_dir;; | 
|  | 17097 | esac | 
|  | 17098 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 17099 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 17100 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 17101 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 17102 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 17103 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 17104 | $as_echo X"$as_dir" | | 
|  | 17105 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 17106 | s//\1/ | 
|  | 17107 | q | 
|  | 17108 | } | 
|  | 17109 | /^X\(\/\/\)[^/].*/{ | 
|  | 17110 | s//\1/ | 
|  | 17111 | q | 
|  | 17112 | } | 
|  | 17113 | /^X\(\/\/\)$/{ | 
|  | 17114 | s//\1/ | 
|  | 17115 | q | 
|  | 17116 | } | 
|  | 17117 | /^X\(\/\).*/{ | 
|  | 17118 | s//\1/ | 
|  | 17119 | q | 
|  | 17120 | } | 
|  | 17121 | s/.*/./; q'` | 
|  | 17122 | test -d "$as_dir" && break | 
|  | 17123 | done | 
|  | 17124 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17125 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17126 |  | 
|  | 17127 |  | 
|  | 17128 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17129 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17130 | as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17131 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17132 | test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17133 | as_mkdir_p=false | 
|  | 17134 | fi | 
|  | 17135 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17136 |  | 
|  | 17137 | # as_fn_executable_p FILE | 
|  | 17138 | # ----------------------- | 
|  | 17139 | # Test if FILE is an executable regular file. | 
|  | 17140 | as_fn_executable_p () | 
|  | 17141 | { | 
|  | 17142 | test -f "$1" && test -x "$1" | 
|  | 17143 | } # as_fn_executable_p | 
|  | 17144 | as_test_x='test -x' | 
|  | 17145 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17146 |  | 
|  | 17147 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17148 | 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] | 17149 |  | 
|  | 17150 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17151 | 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] | 17152 |  | 
|  | 17153 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17154 | exec 6>&1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17155 | ## ----------------------------------- ## | 
|  | 17156 | ## Main body of $CONFIG_STATUS script. ## | 
|  | 17157 | ## ----------------------------------- ## | 
|  | 17158 | _ASEOF | 
|  | 17159 | 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] | 17160 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17161 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 17162 | # 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] | 17163 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17164 | # values after options handling. | 
|  | 17165 | ac_log=" | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 17166 | This file was extended by python $as_me 3.7, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17167 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17168 |  | 
|  | 17169 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 17170 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 17171 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 17172 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 17173 | $ $0 $@ | 
|  | 17174 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17175 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 17176 | " | 
|  | 17177 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17178 | _ACEOF | 
|  | 17179 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17180 | case $ac_config_files in *" | 
|  | 17181 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
|  | 17182 | esac | 
|  | 17183 |  | 
|  | 17184 | case $ac_config_headers in *" | 
|  | 17185 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
|  | 17186 | esac | 
|  | 17187 |  | 
|  | 17188 |  | 
|  | 17189 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17190 | # Files that config.status was made for. | 
| Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 17191 | config_files="$ac_config_files" | 
|  | 17192 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17193 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17194 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17195 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17196 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17197 | ac_cs_usage="\ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17198 | \`$as_me' instantiates files and other configuration actions | 
|  | 17199 | from templates according to the current configuration.  Unless the files | 
|  | 17200 | 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] | 17201 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17202 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17203 |  | 
|  | 17204 | -h, --help       print this help, then exit | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17205 | -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17206 | --config     print configuration, then exit | 
|  | 17207 | -q, --quiet, --silent | 
|  | 17208 | do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17209 | -d, --debug      don't remove temporary files | 
|  | 17210 | --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17211 | --file=FILE[:TEMPLATE] | 
|  | 17212 | instantiate the configuration file FILE | 
|  | 17213 | --header=FILE[:TEMPLATE] | 
|  | 17214 | instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17215 |  | 
|  | 17216 | Configuration files: | 
|  | 17217 | $config_files | 
|  | 17218 |  | 
|  | 17219 | Configuration headers: | 
|  | 17220 | $config_headers | 
|  | 17221 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 17222 | Report bugs to <https://bugs.python.org/>." | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 17223 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17224 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17225 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17226 | 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] | 17227 | ac_cs_version="\\ | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 17228 | python config.status 3.7 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17229 | configured by $0, generated by GNU Autoconf 2.69, | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17230 | with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17231 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17232 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17233 | This config.status script is free software; the Free Software Foundation | 
|  | 17234 | gives unlimited permission to copy, distribute and modify it." | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17235 |  | 
|  | 17236 | ac_pwd='$ac_pwd' | 
|  | 17237 | srcdir='$srcdir' | 
|  | 17238 | INSTALL='$INSTALL' | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17239 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17240 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17241 | _ACEOF | 
|  | 17242 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17243 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 17244 | # 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] | 17245 | ac_need_defaults=: | 
|  | 17246 | while test $# != 0 | 
|  | 17247 | do | 
|  | 17248 | case $1 in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17249 | --*=?*) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17250 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 17251 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17252 | ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17253 | ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17254 | --*=) | 
|  | 17255 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 17256 | ac_optarg= | 
|  | 17257 | ac_shift=: | 
|  | 17258 | ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17259 | *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17260 | ac_option=$1 | 
|  | 17261 | ac_optarg=$2 | 
|  | 17262 | ac_shift=shift | 
|  | 17263 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17264 | esac | 
|  | 17265 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17266 | case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17267 | # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17268 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 17269 | ac_cs_recheck=: ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17270 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17271 | $as_echo "$ac_cs_version"; exit ;; | 
|  | 17272 | --config | --confi | --conf | --con | --co | --c ) | 
|  | 17273 | $as_echo "$ac_cs_config"; exit ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17274 | --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17275 | debug=: ;; | 
|  | 17276 | --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17277 | $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17278 | case $ac_optarg in | 
|  | 17279 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17280 | '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17281 | esac | 
|  | 17282 | as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17283 | ac_need_defaults=false;; | 
|  | 17284 | --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17285 | $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17286 | case $ac_optarg in | 
|  | 17287 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 17288 | esac | 
|  | 17289 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17290 | ac_need_defaults=false;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17291 | --he | --h) | 
|  | 17292 | # Conflict between --help and --header | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17293 | as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17294 | Try \`$0 --help' for more information.";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17295 | --help | --hel | -h ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17296 | $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17297 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 17298 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 17299 | ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17300 |  | 
|  | 17301 | # This is an error. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17302 | -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17303 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17304 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17305 | *) as_fn_append ac_config_targets " $1" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17306 | ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17307 |  | 
|  | 17308 | esac | 
|  | 17309 | shift | 
|  | 17310 | done | 
|  | 17311 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17312 | ac_configure_extra_args= | 
|  | 17313 |  | 
|  | 17314 | if $ac_cs_silent; then | 
|  | 17315 | exec 6>/dev/null | 
|  | 17316 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 17317 | fi | 
|  | 17318 |  | 
|  | 17319 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17320 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17321 | if \$ac_cs_recheck; then | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17322 | 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] | 17323 | shift | 
|  | 17324 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
|  | 17325 | CONFIG_SHELL='$SHELL' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17326 | export CONFIG_SHELL | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17327 | exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17328 | fi | 
|  | 17329 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17330 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17331 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17332 | exec 5>>config.log | 
|  | 17333 | { | 
|  | 17334 | echo | 
|  | 17335 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 17336 | ## Running $as_me. ## | 
|  | 17337 | _ASBOX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17338 | $as_echo "$ac_log" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17339 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17340 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17341 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17342 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17343 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17344 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17345 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17346 |  | 
|  | 17347 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17348 | for ac_config_target in $ac_config_targets | 
|  | 17349 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17350 | case $ac_config_target in | 
|  | 17351 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
|  | 17352 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
|  | 17353 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 17354 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
|  | 17355 | "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] | 17356 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
|  | 17357 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17358 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17359 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17360 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17361 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17362 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17363 | esac | 
|  | 17364 | done | 
|  | 17365 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17366 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17367 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 17368 | # then the envvar interface is used.  Set only those that are not. | 
|  | 17369 | # We use the long form for the default assignment because of an extremely | 
|  | 17370 | # bizarre bug on SunOS 4.1.3. | 
|  | 17371 | if $ac_need_defaults; then | 
|  | 17372 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 17373 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
|  | 17374 | fi | 
|  | 17375 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17376 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17377 | # 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] | 17378 | # creating and moving files from /tmp can sometimes cause problems. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17379 | # Hook for its removal unless debugging. | 
|  | 17380 | # Note that there is a small window in which the directory will not be cleaned: | 
|  | 17381 | # 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] | 17382 | $debug || | 
|  | 17383 | { | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17384 | tmp= ac_tmp= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17385 | trap 'exit_status=$? | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17386 | : "${ac_tmp:=$tmp}" | 
|  | 17387 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17388 | ' 0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17389 | trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17390 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17391 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17392 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17393 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17394 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17395 | test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17396 | }  || | 
|  | 17397 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17398 | tmp=./conf$$-$RANDOM | 
|  | 17399 | (umask 077 && mkdir "$tmp") | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17400 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17401 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17402 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17403 | # Set up the scripts for CONFIG_FILES section. | 
|  | 17404 | # No need to generate them if there are no CONFIG_FILES. | 
|  | 17405 | # This happens for instance with `./config.status config.h'. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17406 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17407 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17408 |  | 
|  | 17409 | ac_cr=`echo X | tr X '\015'` | 
|  | 17410 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
|  | 17411 | # But we know of no other shell where ac_cr would be empty at this | 
|  | 17412 | # point, so we can use a bashism as a fallback. | 
|  | 17413 | if test "x$ac_cr" = x; then | 
|  | 17414 | eval ac_cr=\$\'\\r\' | 
|  | 17415 | fi | 
|  | 17416 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
|  | 17417 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17418 | ac_cs_awk_cr='\\r' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17419 | else | 
|  | 17420 | ac_cs_awk_cr=$ac_cr | 
|  | 17421 | fi | 
|  | 17422 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17423 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17424 | _ACEOF | 
|  | 17425 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17426 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17427 | { | 
|  | 17428 | echo "cat >conf$$subs.awk <<_ACEOF" && | 
|  | 17429 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
|  | 17430 | echo "_ACEOF" | 
|  | 17431 | } >conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17432 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
|  | 17433 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17434 | ac_delim='%!_!# ' | 
|  | 17435 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17436 | . ./conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17437 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17438 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17439 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
|  | 17440 | if test $ac_delim_n = $ac_delim_num; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17441 | break | 
|  | 17442 | elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17443 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17444 | else | 
|  | 17445 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17446 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17447 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17448 | rm -f conf$$subs.sh | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17449 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17450 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17451 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17452 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17453 | sed -n ' | 
|  | 17454 | h | 
|  | 17455 | s/^/S["/; s/!.*/"]=/ | 
|  | 17456 | p | 
|  | 17457 | g | 
|  | 17458 | s/^[^!]*!// | 
|  | 17459 | :repl | 
|  | 17460 | t repl | 
|  | 17461 | s/'"$ac_delim"'$// | 
|  | 17462 | t delim | 
|  | 17463 | :nl | 
|  | 17464 | h | 
|  | 17465 | s/\(.\{148\}\)..*/\1/ | 
|  | 17466 | t more1 | 
|  | 17467 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
|  | 17468 | p | 
|  | 17469 | n | 
|  | 17470 | b repl | 
|  | 17471 | :more1 | 
|  | 17472 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 17473 | p | 
|  | 17474 | g | 
|  | 17475 | s/.\{148\}// | 
|  | 17476 | t nl | 
|  | 17477 | :delim | 
|  | 17478 | h | 
|  | 17479 | s/\(.\{148\}\)..*/\1/ | 
|  | 17480 | t more2 | 
|  | 17481 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
|  | 17482 | p | 
|  | 17483 | b | 
|  | 17484 | :more2 | 
|  | 17485 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 17486 | p | 
|  | 17487 | g | 
|  | 17488 | s/.\{148\}// | 
|  | 17489 | t delim | 
|  | 17490 | ' <conf$$subs.awk | sed ' | 
|  | 17491 | /^[^""]/{ | 
|  | 17492 | N | 
|  | 17493 | s/\n// | 
|  | 17494 | } | 
|  | 17495 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 17496 | rm -f conf$$subs.awk | 
|  | 17497 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17498 | _ACAWK | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17499 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17500 | for (key in S) S_is_set[key] = 1 | 
|  | 17501 | FS = "" | 
|  | 17502 |  | 
|  | 17503 | } | 
|  | 17504 | { | 
|  | 17505 | line = $ 0 | 
|  | 17506 | nfields = split(line, field, "@") | 
|  | 17507 | substed = 0 | 
|  | 17508 | len = length(field[1]) | 
|  | 17509 | for (i = 2; i < nfields; i++) { | 
|  | 17510 | key = field[i] | 
|  | 17511 | keylen = length(key) | 
|  | 17512 | if (S_is_set[key]) { | 
|  | 17513 | value = S[key] | 
|  | 17514 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
|  | 17515 | len += length(value) + length(field[++i]) | 
|  | 17516 | substed = 1 | 
|  | 17517 | } else | 
|  | 17518 | len += 1 + keylen | 
|  | 17519 | } | 
|  | 17520 |  | 
|  | 17521 | print line | 
|  | 17522 | } | 
|  | 17523 |  | 
|  | 17524 | _ACAWK | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17525 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17526 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 17527 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
|  | 17528 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
|  | 17529 | else | 
|  | 17530 | cat | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17531 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17532 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17533 | _ACEOF | 
|  | 17534 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17535 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
|  | 17536 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17537 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 17538 | # (actually we leave an empty line to preserve line numbers). | 
|  | 17539 | if test "x$srcdir" = x.; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17540 | ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
|  | 17541 | h | 
|  | 17542 | s/// | 
|  | 17543 | s/^/:/ | 
|  | 17544 | s/[	 ]*$/:/ | 
|  | 17545 | s/:\$(srcdir):/:/g | 
|  | 17546 | s/:\${srcdir}:/:/g | 
|  | 17547 | s/:@srcdir@:/:/g | 
|  | 17548 | s/^:*// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17549 | s/:*$// | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17550 | x | 
|  | 17551 | s/\(=[	 ]*\).*/\1/ | 
|  | 17552 | G | 
|  | 17553 | s/\n// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17554 | s/^[^=]*=[	 ]*$// | 
|  | 17555 | }' | 
|  | 17556 | fi | 
|  | 17557 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17558 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17559 | fi # test -n "$CONFIG_FILES" | 
|  | 17560 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17561 | # Set up the scripts for CONFIG_HEADERS section. | 
|  | 17562 | # No need to generate them if there are no CONFIG_HEADERS. | 
|  | 17563 | # This happens for instance with `./config.status Makefile'. | 
|  | 17564 | if test -n "$CONFIG_HEADERS"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17565 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17566 | BEGIN { | 
|  | 17567 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17568 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17569 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
|  | 17570 | # here-document in config.status, that substitutes the proper values into | 
|  | 17571 | # config.h.in to produce config.h. | 
|  | 17572 |  | 
|  | 17573 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
|  | 17574 | # handling of long lines. | 
|  | 17575 | ac_delim='%!_!# ' | 
|  | 17576 | for ac_last_try in false false :; do | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17577 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
|  | 17578 | if test -z "$ac_tt"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17579 | break | 
|  | 17580 | elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17581 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17582 | else | 
|  | 17583 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 17584 | fi | 
|  | 17585 | done | 
|  | 17586 |  | 
|  | 17587 | # For the awk script, D is an array of macro values keyed by name, | 
|  | 17588 | # likewise P contains macro parameters if any.  Preserve backslash | 
|  | 17589 | # newline sequences. | 
|  | 17590 |  | 
|  | 17591 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
|  | 17592 | sed -n ' | 
|  | 17593 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 17594 | t rset | 
|  | 17595 | :rset | 
|  | 17596 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
|  | 17597 | t def | 
|  | 17598 | d | 
|  | 17599 | :def | 
|  | 17600 | s/\\$// | 
|  | 17601 | t bsnl | 
|  | 17602 | s/["\\]/\\&/g | 
|  | 17603 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 17604 | D["\1"]=" \3"/p | 
|  | 17605 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
|  | 17606 | d | 
|  | 17607 | :bsnl | 
|  | 17608 | s/["\\]/\\&/g | 
|  | 17609 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 17610 | D["\1"]=" \3\\\\\\n"\\/p | 
|  | 17611 | t cont | 
|  | 17612 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
|  | 17613 | t cont | 
|  | 17614 | d | 
|  | 17615 | :cont | 
|  | 17616 | n | 
|  | 17617 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 17618 | t clear | 
|  | 17619 | :clear | 
|  | 17620 | s/\\$// | 
|  | 17621 | t bsnlc | 
|  | 17622 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
|  | 17623 | d | 
|  | 17624 | :bsnlc | 
|  | 17625 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
|  | 17626 | b cont | 
|  | 17627 | ' <confdefs.h | sed ' | 
|  | 17628 | s/'"$ac_delim"'/"\\\ | 
|  | 17629 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 17630 |  | 
|  | 17631 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17632 | for (key in D) D_is_set[key] = 1 | 
|  | 17633 | FS = "" | 
|  | 17634 | } | 
|  | 17635 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
|  | 17636 | line = \$ 0 | 
|  | 17637 | split(line, arg, " ") | 
|  | 17638 | if (arg[1] == "#") { | 
|  | 17639 | defundef = arg[2] | 
|  | 17640 | mac1 = arg[3] | 
|  | 17641 | } else { | 
|  | 17642 | defundef = substr(arg[1], 2) | 
|  | 17643 | mac1 = arg[2] | 
|  | 17644 | } | 
|  | 17645 | split(mac1, mac2, "(") #) | 
|  | 17646 | macro = mac2[1] | 
|  | 17647 | prefix = substr(line, 1, index(line, defundef) - 1) | 
|  | 17648 | if (D_is_set[macro]) { | 
|  | 17649 | # Preserve the white space surrounding the "#". | 
|  | 17650 | print prefix "define", macro P[macro] D[macro] | 
|  | 17651 | next | 
|  | 17652 | } else { | 
|  | 17653 | # Replace #undef with comments.  This is necessary, for example, | 
|  | 17654 | # in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 17655 | # on some systems where configure will not decide to define it. | 
|  | 17656 | if (defundef == "undef") { | 
|  | 17657 | print "/*", prefix defundef, macro, "*/" | 
|  | 17658 | next | 
|  | 17659 | } | 
|  | 17660 | } | 
|  | 17661 | } | 
|  | 17662 | { print } | 
|  | 17663 | _ACAWK | 
|  | 17664 | _ACEOF | 
|  | 17665 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17666 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17667 | fi # test -n "$CONFIG_HEADERS" | 
|  | 17668 |  | 
|  | 17669 |  | 
|  | 17670 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
|  | 17671 | shift | 
|  | 17672 | for ac_tag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17673 | do | 
|  | 17674 | case $ac_tag in | 
|  | 17675 | :[FHLC]) ac_mode=$ac_tag; continue;; | 
|  | 17676 | esac | 
|  | 17677 | case $ac_mode$ac_tag in | 
|  | 17678 | :[FHL]*:*);; | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17679 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17680 | :[FH]-) ac_tag=-:-;; | 
|  | 17681 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
|  | 17682 | esac | 
|  | 17683 | ac_save_IFS=$IFS | 
|  | 17684 | IFS=: | 
|  | 17685 | set x $ac_tag | 
|  | 17686 | IFS=$ac_save_IFS | 
|  | 17687 | shift | 
|  | 17688 | ac_file=$1 | 
|  | 17689 | shift | 
|  | 17690 |  | 
|  | 17691 | case $ac_mode in | 
|  | 17692 | :L) ac_source=$1;; | 
|  | 17693 | :[FH]) | 
|  | 17694 | ac_file_inputs= | 
|  | 17695 | for ac_f | 
|  | 17696 | do | 
|  | 17697 | case $ac_f in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17698 | -) ac_f="$ac_tmp/stdin";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17699 | *) # Look for the file first in the build tree, then in the source tree | 
|  | 17700 | # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
|  | 17701 | # because $ac_f cannot contain `:'. | 
|  | 17702 | test -f "$ac_f" || | 
|  | 17703 | case $ac_f in | 
|  | 17704 | [\\/$]*) false;; | 
|  | 17705 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
|  | 17706 | esac || | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17707 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17708 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17709 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
|  | 17710 | as_fn_append ac_file_inputs " '$ac_f'" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17711 | done | 
|  | 17712 |  | 
|  | 17713 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 17714 | # use $as_me), people would be surprised to read: | 
|  | 17715 | #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17716 | configure_input='Generated from '` | 
|  | 17717 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
|  | 17718 | `' by configure.' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17719 | if test x"$ac_file" != x-; then | 
|  | 17720 | configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17721 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
|  | 17722 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17723 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17724 | # Neutralize special characters interpreted by sed in replacement strings. | 
|  | 17725 | case $configure_input in #( | 
|  | 17726 | *\&* | *\|* | *\\* ) | 
|  | 17727 | ac_sed_conf_input=`$as_echo "$configure_input" | | 
|  | 17728 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
|  | 17729 | *) ac_sed_conf_input=$configure_input;; | 
|  | 17730 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17731 |  | 
|  | 17732 | case $ac_tag in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17733 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
|  | 17734 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17735 | esac | 
|  | 17736 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17737 | esac | 
|  | 17738 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17739 | ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17740 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17741 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 17742 | X"$ac_file" : 'X\(//\)$' \| \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17743 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17744 | $as_echo X"$ac_file" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17745 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 17746 | s//\1/ | 
|  | 17747 | q | 
|  | 17748 | } | 
|  | 17749 | /^X\(\/\/\)[^/].*/{ | 
|  | 17750 | s//\1/ | 
|  | 17751 | q | 
|  | 17752 | } | 
|  | 17753 | /^X\(\/\/\)$/{ | 
|  | 17754 | s//\1/ | 
|  | 17755 | q | 
|  | 17756 | } | 
|  | 17757 | /^X\(\/\).*/{ | 
|  | 17758 | s//\1/ | 
|  | 17759 | q | 
|  | 17760 | } | 
|  | 17761 | s/.*/./; q'` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17762 | as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17763 | ac_builddir=. | 
|  | 17764 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17765 | case "$ac_dir" in | 
|  | 17766 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 17767 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17768 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17769 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17770 | 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] | 17771 | case $ac_top_builddir_sub in | 
|  | 17772 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 17773 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 17774 | esac ;; | 
|  | 17775 | esac | 
|  | 17776 | ac_abs_top_builddir=$ac_pwd | 
|  | 17777 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 17778 | # for backward compatibility: | 
|  | 17779 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17780 |  | 
|  | 17781 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17782 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17783 | ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17784 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 17785 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 17786 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17787 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17788 | ac_top_srcdir=$srcdir | 
|  | 17789 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 17790 | *) # Relative name. | 
|  | 17791 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 17792 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 17793 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17794 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17795 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17796 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17797 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17798 | case $ac_mode in | 
|  | 17799 | :F) | 
|  | 17800 | # | 
|  | 17801 | # CONFIG_FILE | 
|  | 17802 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17803 |  | 
|  | 17804 | case $INSTALL in | 
|  | 17805 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17806 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17807 | esac | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17808 | ac_MKDIR_P=$MKDIR_P | 
|  | 17809 | case $MKDIR_P in | 
|  | 17810 | [\\/$]* | ?:[\\/]* ) ;; | 
|  | 17811 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
|  | 17812 | esac | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17813 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17814 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17815 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17816 | # If the template does not know about datarootdir, expand it. | 
|  | 17817 | # FIXME: This hack should be removed a few years after 2.60. | 
|  | 17818 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17819 | ac_sed_dataroot=' | 
|  | 17820 | /datarootdir/ { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17821 | p | 
|  | 17822 | q | 
|  | 17823 | } | 
|  | 17824 | /@datadir@/p | 
|  | 17825 | /@docdir@/p | 
|  | 17826 | /@infodir@/p | 
|  | 17827 | /@localedir@/p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17828 | /@mandir@/p' | 
|  | 17829 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17830 | *datarootdir*) ac_datarootdir_seen=yes;; | 
|  | 17831 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
|  | 17833 | $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] | 17834 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17835 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17836 | ac_datarootdir_hack=' | 
|  | 17837 | s&@datadir@&$datadir&g | 
|  | 17838 | s&@docdir@&$docdir&g | 
|  | 17839 | s&@infodir@&$infodir&g | 
|  | 17840 | s&@localedir@&$localedir&g | 
|  | 17841 | s&@mandir@&$mandir&g | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17842 | s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17843 | esac | 
|  | 17844 | _ACEOF | 
|  | 17845 |  | 
|  | 17846 | # Neutralize VPATH when `$srcdir' = `.'. | 
|  | 17847 | # Shell code in configure.ac might set extrasub. | 
|  | 17848 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17849 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 17850 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17851 | $extrasub | 
|  | 17852 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17853 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17854 | :t | 
|  | 17855 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17856 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17857 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17858 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17859 | s&@srcdir@&$ac_srcdir&;t t | 
|  | 17860 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
|  | 17861 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
|  | 17862 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
|  | 17863 | s&@builddir@&$ac_builddir&;t t | 
|  | 17864 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
|  | 17865 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
|  | 17866 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17867 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17868 | $ac_datarootdir_hack | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17869 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17870 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
|  | 17871 | >$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] | 17872 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17873 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17874 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
|  | 17875 | { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
|  | 17876 | "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17877 | { $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] | 17878 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17879 | $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] | 17880 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17881 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17882 | rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17883 | case $ac_file in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17884 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
|  | 17885 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17886 | esac \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17887 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17888 | ;; | 
|  | 17889 | :H) | 
|  | 17890 | # | 
|  | 17891 | # CONFIG_HEADER | 
|  | 17892 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17893 | if test x"$ac_file" != x-; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17894 | { | 
|  | 17895 | $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17896 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
|  | 17897 | } >"$ac_tmp/config.h" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17898 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17899 | 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] | 17900 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
|  | 17901 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17902 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17903 | rm -f "$ac_file" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17904 | mv "$ac_tmp/config.h" "$ac_file" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17905 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17906 | fi | 
|  | 17907 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17908 | $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17909 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17910 | || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17911 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17912 | ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17913 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17914 |  | 
|  | 17915 | esac | 
|  | 17916 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17917 |  | 
|  | 17918 | case $ac_file$ac_mode in | 
|  | 17919 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
|  | 17920 |  | 
|  | 17921 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17922 | done # for ac_tag | 
|  | 17923 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17924 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17925 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17926 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17927 | ac_clean_files=$ac_clean_files_save | 
|  | 17928 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17929 | test $ac_write_fail = 0 || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17930 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17931 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17932 |  | 
|  | 17933 | # configure is writing to config.log, and then calls config.status. | 
|  | 17934 | # config.status does its own redirection, appending to config.log. | 
|  | 17935 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 17936 | # by configure, so config.status won't be able to write to it; its | 
|  | 17937 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 17938 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 17939 | # appended to by config.status.  When coming back to configure, we | 
|  | 17940 | # need to make the FD available again. | 
|  | 17941 | if test "$no_create" != yes; then | 
|  | 17942 | ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17943 | ac_config_status_args= | 
|  | 17944 | test "$silent" = yes && | 
|  | 17945 | ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17946 | exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17947 | $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] | 17948 | exec 5>>config.log | 
|  | 17949 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 17950 | # would make configure fail if this is the last instruction. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17951 | $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17952 | fi | 
|  | 17953 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
|  | 17954 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
|  | 17955 | $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] | 17956 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17957 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17958 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17959 | echo "creating Modules/Setup" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17960 | if test ! -f Modules/Setup | 
|  | 17961 | then | 
|  | 17962 | cp $srcdir/Modules/Setup.dist Modules/Setup | 
|  | 17963 | fi | 
|  | 17964 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17965 | echo "creating Modules/Setup.local" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17966 | if test ! -f Modules/Setup.local | 
|  | 17967 | then | 
|  | 17968 | echo "# Edit this file for local setup changes" >Modules/Setup.local | 
|  | 17969 | fi | 
|  | 17970 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17971 | echo "creating Makefile" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17972 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
|  | 17973 | -s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17974 | Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17975 | mv config.c Modules | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 17976 |  | 
|  | 17977 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then | 
|  | 17978 | echo "" >&6 | 
|  | 17979 | echo "" >&6 | 
| Brett Cannon | b4e5fee | 2017-06-09 13:56:57 -0700 | [diff] [blame^] | 17980 | echo "If you want a release build with all stable optimizations active (PGO, etc)," >&6 | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 17981 | echo "please run ./configure --enable-optimizations" >&6 | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 17982 | echo "" >&6 | 
|  | 17983 | echo "" >&6 | 
|  | 17984 | fi | 
|  | 17985 |  |