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 | 5489bda | 2018-01-31 17:44:09 -0500 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for python 3.8. |
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 | 5489bda | 2018-01-31 17:44:09 -0500 | [diff] [blame] | 583 | PACKAGE_VERSION='3.8' |
| 584 | PACKAGE_STRING='python 3.8' |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='https://bugs.python.org/' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 586 | PACKAGE_URL='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | |
| 588 | ac_unique_file="Include/object.h" |
| 589 | # Factoring default headers for most tests. |
| 590 | ac_includes_default="\ |
| 591 | #include <stdio.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 592 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <sys/types.h> |
| 594 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 595 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 596 | # include <sys/stat.h> |
| 597 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 598 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 599 | # include <stdlib.h> |
| 600 | # include <stddef.h> |
| 601 | #else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 602 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | # include <stdlib.h> |
| 604 | # endif |
| 605 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRING_H |
| 607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 608 | # include <memory.h> |
| 609 | # endif |
| 610 | # include <string.h> |
| 611 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 613 | # include <strings.h> |
| 614 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 615 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <inttypes.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 617 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 618 | #ifdef HAVE_STDINT_H |
| 619 | # include <stdint.h> |
| 620 | #endif |
| 621 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 622 | # include <unistd.h> |
| 623 | #endif" |
| 624 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 625 | ac_subst_vars='LTLIBOBJS |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 626 | OPENSSL_LDFLAGS |
| 627 | OPENSSL_LIBS |
| 628 | OPENSSL_INCLUDES |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 629 | ENSUREPIP |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 630 | SRCDIRS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 631 | THREADHEADERS |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 632 | LIBPL |
| 633 | PY_ENABLE_SHARED |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 634 | EXT_SUFFIX |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 635 | SOABI |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 636 | LIBC |
| 637 | LIBM |
| 638 | HAVE_GETHOSTBYNAME |
| 639 | HAVE_GETHOSTBYNAME_R |
| 640 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 641 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 642 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 643 | LIBOBJS |
| 644 | TRUE |
| 645 | MACHDEP_OBJS |
| 646 | DYNLOADFILE |
| 647 | DLINCLDIR |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 648 | DTRACE_OBJS |
| 649 | DTRACE_HEADERS |
| 650 | DFLAGS |
| 651 | DTRACE |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 652 | LDLAST |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 653 | TCLTK_LIBS |
| 654 | TCLTK_INCLUDES |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 655 | LIBFFI_INCLUDEDIR |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 656 | PKG_CONFIG_LIBDIR |
| 657 | PKG_CONFIG_PATH |
| 658 | PKG_CONFIG |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 659 | SHLIBS |
| 660 | CFLAGSFORSHARED |
| 661 | LINKFORSHARED |
| 662 | CCSHARED |
| 663 | BLDSHARED |
| 664 | LDCXXSHARED |
| 665 | LDSHARED |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 666 | SHLIB_SUFFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 667 | LIBTOOL_CRUFT |
| 668 | OTHER_LIBTOOL_OPT |
| 669 | UNIVERSAL_ARCH_FLAGS |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 670 | CFLAGS_NODIST |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 671 | BASECFLAGS |
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 672 | CFLAGS_ALIASING |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 673 | OPT |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 674 | LLVM_PROF_FOUND |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 675 | target_os |
| 676 | target_vendor |
| 677 | target_cpu |
| 678 | target |
| 679 | LLVM_PROFDATA |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 680 | LLVM_PROF_ERR |
| 681 | LLVM_PROF_FILE |
| 682 | LLVM_PROF_MERGER |
| 683 | PGO_PROF_USE_FLAG |
| 684 | PGO_PROF_GEN_FLAG |
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 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 698 | GNULD |
| 699 | LINKCC |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 700 | LDVERSION |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 701 | RUNSHARED |
| 702 | INSTSONAME |
| 703 | LDLIBRARYDIR |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 704 | PY3LIBRARY |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 705 | BLDLIBRARY |
| 706 | DLLLIBRARY |
| 707 | LDLIBRARY |
| 708 | LIBRARY |
| 709 | BUILDEXEEXT |
| 710 | EGREP |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 711 | NO_AS_NEEDED |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 712 | MULTIARCH_CPPFLAGS |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 713 | PLATFORM_TRIPLET |
| 714 | MULTIARCH |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 715 | ac_ct_CXX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 716 | MAINCC |
| 717 | CXX |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 718 | SED |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 719 | GREP |
| 720 | CPP |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 721 | OBJEXT |
| 722 | EXEEXT |
| 723 | ac_ct_CC |
| 724 | CPPFLAGS |
| 725 | LDFLAGS |
| 726 | CFLAGS |
| 727 | CC |
| 728 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 729 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 730 | _PYTHON_HOST_PLATFORM |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 731 | MACHDEP |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 732 | FRAMEWORKINSTALLAPPSPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 733 | FRAMEWORKUNIXTOOLSPREFIX |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 734 | FRAMEWORKPYTHONW |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 735 | FRAMEWORKALTINSTALLLAST |
| 736 | FRAMEWORKALTINSTALLFIRST |
| 737 | FRAMEWORKINSTALLLAST |
| 738 | FRAMEWORKINSTALLFIRST |
| 739 | PYTHONFRAMEWORKINSTALLDIR |
| 740 | PYTHONFRAMEWORKPREFIX |
| 741 | PYTHONFRAMEWORKDIR |
| 742 | PYTHONFRAMEWORKIDENTIFIER |
| 743 | PYTHONFRAMEWORK |
| 744 | LIPO_32BIT_FLAGS |
| 745 | ARCH_RUN_32BIT |
| 746 | UNIVERSALSDK |
| 747 | CONFIG_ARGS |
| 748 | SOVERSION |
| 749 | VERSION |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 750 | PYTHON_FOR_BUILD |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 751 | PYTHON_FOR_REGEN |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 752 | host_os |
| 753 | host_vendor |
| 754 | host_cpu |
| 755 | host |
| 756 | build_os |
| 757 | build_vendor |
| 758 | build_cpu |
| 759 | build |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 760 | HAS_GIT |
| 761 | GITBRANCH |
| 762 | GITTAG |
| 763 | GITVERSION |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 764 | BASECPPFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 765 | target_alias |
| 766 | host_alias |
| 767 | build_alias |
| 768 | LIBS |
| 769 | ECHO_T |
| 770 | ECHO_N |
| 771 | ECHO_C |
| 772 | DEFS |
| 773 | mandir |
| 774 | localedir |
| 775 | libdir |
| 776 | psdir |
| 777 | pdfdir |
| 778 | dvidir |
| 779 | htmldir |
| 780 | infodir |
| 781 | docdir |
| 782 | oldincludedir |
| 783 | includedir |
| 784 | localstatedir |
| 785 | sharedstatedir |
| 786 | sysconfdir |
| 787 | datadir |
| 788 | datarootdir |
| 789 | libexecdir |
| 790 | sbindir |
| 791 | bindir |
| 792 | program_transform_name |
| 793 | prefix |
| 794 | exec_prefix |
| 795 | PACKAGE_URL |
| 796 | PACKAGE_BUGREPORT |
| 797 | PACKAGE_STRING |
| 798 | PACKAGE_VERSION |
| 799 | PACKAGE_TARNAME |
| 800 | PACKAGE_NAME |
| 801 | PATH_SEPARATOR |
| 802 | SHELL' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 803 | ac_subst_files='' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 804 | ac_user_opts=' |
| 805 | enable_option_checking |
| 806 | enable_universalsdk |
| 807 | with_universal_archs |
| 808 | with_framework_name |
| 809 | enable_framework |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 810 | with_cxx_main |
| 811 | with_suffix |
| 812 | enable_shared |
| 813 | enable_profiling |
| 814 | with_pydebug |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 815 | with_assertions |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 816 | enable_optimizations |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 817 | with_lto |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 818 | with_hash_algorithm |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 819 | with_address_sanitizer |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 820 | with_libs |
| 821 | with_system_expat |
| 822 | with_system_ffi |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 823 | with_system_libmpdec |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 824 | enable_loadable_sqlite_extensions |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 825 | with_tcltk_includes |
| 826 | with_tcltk_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 827 | with_dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 828 | enable_ipv6 |
| 829 | with_doc_strings |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 830 | with_pymalloc |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 831 | with_c_locale_coercion |
| 832 | with_c_locale_warning |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 833 | with_valgrind |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 834 | with_dtrace |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 835 | with_libm |
| 836 | with_libc |
| 837 | enable_big_digits |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 838 | with_computed_gotos |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 839 | with_ensurepip |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 840 | with_openssl |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 841 | with_ssl_default_suites |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 842 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 843 | ac_precious_vars='build_alias |
| 844 | host_alias |
| 845 | target_alias |
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 846 | MACHDEP |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 847 | CC |
| 848 | CFLAGS |
| 849 | LDFLAGS |
| 850 | LIBS |
| 851 | CPPFLAGS |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 852 | CPP |
| 853 | PKG_CONFIG |
| 854 | PKG_CONFIG_PATH |
| 855 | PKG_CONFIG_LIBDIR' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 856 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 857 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 858 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 859 | ac_init_help= |
| 860 | ac_init_version=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 861 | ac_unrecognized_opts= |
| 862 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 863 | # The variables have the same names as the options, with |
| 864 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 865 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 866 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 867 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 868 | no_recursion= |
| 869 | prefix=NONE |
| 870 | program_prefix=NONE |
| 871 | program_suffix=NONE |
| 872 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 873 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 874 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 875 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 876 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 877 | x_includes=NONE |
| 878 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 879 | |
| 880 | # Installation directory options. |
| 881 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 882 | # and all the variables that are supposed to be based on exec_prefix |
| 883 | # by default will actually change. |
| 884 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 885 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 886 | bindir='${exec_prefix}/bin' |
| 887 | sbindir='${exec_prefix}/sbin' |
| 888 | libexecdir='${exec_prefix}/libexec' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 889 | datarootdir='${prefix}/share' |
| 890 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 891 | sysconfdir='${prefix}/etc' |
| 892 | sharedstatedir='${prefix}/com' |
| 893 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 894 | includedir='${prefix}/include' |
| 895 | oldincludedir='/usr/include' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 896 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 897 | infodir='${datarootdir}/info' |
| 898 | htmldir='${docdir}' |
| 899 | dvidir='${docdir}' |
| 900 | pdfdir='${docdir}' |
| 901 | psdir='${docdir}' |
| 902 | libdir='${exec_prefix}/lib' |
| 903 | localedir='${datarootdir}/locale' |
| 904 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 905 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 906 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 907 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 908 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 909 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 910 | # If the previous option needs an argument, assign it. |
| 911 | if test -n "$ac_prev"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 912 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 913 | ac_prev= |
| 914 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 915 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 916 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 917 | case $ac_option in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 918 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 919 | *=) ac_optarg= ;; |
| 920 | *) ac_optarg=yes ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 921 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 922 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 923 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 924 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 925 | case $ac_dashdash$ac_option in |
| 926 | --) |
| 927 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 928 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 929 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 930 | ac_prev=bindir ;; |
| 931 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 932 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 933 | |
| 934 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 935 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 936 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 937 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 938 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 939 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 940 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 941 | ac_prev=cache_file ;; |
| 942 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 943 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 944 | cache_file=$ac_optarg ;; |
| 945 | |
| 946 | --config-cache | -C) |
| 947 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 948 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 949 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 950 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 951 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 952 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 953 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 954 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 955 | | --dataroo | --dataro | --datar) |
| 956 | ac_prev=datarootdir ;; |
| 957 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 958 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 959 | datarootdir=$ac_optarg ;; |
| 960 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 961 | -disable-* | --disable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 962 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 963 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 964 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 965 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 966 | ac_useropt_orig=$ac_useropt |
| 967 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 968 | case $ac_user_opts in |
| 969 | *" |
| 970 | "enable_$ac_useropt" |
| 971 | "*) ;; |
| 972 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 973 | ac_unrecognized_sep=', ';; |
| 974 | esac |
| 975 | eval enable_$ac_useropt=no ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 976 | |
| 977 | -docdir | --docdir | --docdi | --doc | --do) |
| 978 | ac_prev=docdir ;; |
| 979 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 980 | docdir=$ac_optarg ;; |
| 981 | |
| 982 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 983 | ac_prev=dvidir ;; |
| 984 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 985 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 986 | |
| 987 | -enable-* | --enable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 988 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 989 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 990 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 991 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 992 | ac_useropt_orig=$ac_useropt |
| 993 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 994 | case $ac_user_opts in |
| 995 | *" |
| 996 | "enable_$ac_useropt" |
| 997 | "*) ;; |
| 998 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 999 | ac_unrecognized_sep=', ';; |
| 1000 | esac |
| 1001 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1002 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1003 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1004 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1005 | | --exec | --exe | --ex) |
| 1006 | ac_prev=exec_prefix ;; |
| 1007 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1008 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1009 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1010 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1011 | |
| 1012 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1013 | # Obsolete; use --with-gas. |
| 1014 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1016 | -help | --help | --hel | --he | -h) |
| 1017 | ac_init_help=long ;; |
| 1018 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1019 | ac_init_help=recursive ;; |
| 1020 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1021 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1022 | |
| 1023 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1024 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1025 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1026 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1027 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1028 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1029 | ac_prev=htmldir ;; |
| 1030 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1031 | | --ht=*) |
| 1032 | htmldir=$ac_optarg ;; |
| 1033 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1034 | -includedir | --includedir | --includedi | --included | --include \ |
| 1035 | | --includ | --inclu | --incl | --inc) |
| 1036 | ac_prev=includedir ;; |
| 1037 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1038 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1039 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1040 | |
| 1041 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1042 | ac_prev=infodir ;; |
| 1043 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1044 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1045 | |
| 1046 | -libdir | --libdir | --libdi | --libd) |
| 1047 | ac_prev=libdir ;; |
| 1048 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1049 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1050 | |
| 1051 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1052 | | --libexe | --libex | --libe) |
| 1053 | ac_prev=libexecdir ;; |
| 1054 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1055 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1056 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1057 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1058 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1059 | ac_prev=localedir ;; |
| 1060 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1061 | localedir=$ac_optarg ;; |
| 1062 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1063 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1064 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1065 | ac_prev=localstatedir ;; |
| 1066 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1067 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1068 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1069 | |
| 1070 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1071 | ac_prev=mandir ;; |
| 1072 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1074 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1075 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1076 | # Obsolete; use --without-fp. |
| 1077 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1078 | |
| 1079 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1080 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1081 | no_create=yes ;; |
| 1082 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1083 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1084 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1085 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1086 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1087 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1088 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1089 | | --oldin | --oldi | --old | --ol | --o) |
| 1090 | ac_prev=oldincludedir ;; |
| 1091 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1092 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1093 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1094 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1095 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1096 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1097 | ac_prev=prefix ;; |
| 1098 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1099 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1100 | |
| 1101 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1102 | | --program-pre | --program-pr | --program-p) |
| 1103 | ac_prev=program_prefix ;; |
| 1104 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1105 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1106 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1107 | |
| 1108 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1109 | | --program-suf | --program-su | --program-s) |
| 1110 | ac_prev=program_suffix ;; |
| 1111 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1112 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1113 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1114 | |
| 1115 | -program-transform-name | --program-transform-name \ |
| 1116 | | --program-transform-nam | --program-transform-na \ |
| 1117 | | --program-transform-n | --program-transform- \ |
| 1118 | | --program-transform | --program-transfor \ |
| 1119 | | --program-transfo | --program-transf \ |
| 1120 | | --program-trans | --program-tran \ |
| 1121 | | --progr-tra | --program-tr | --program-t) |
| 1122 | ac_prev=program_transform_name ;; |
| 1123 | -program-transform-name=* | --program-transform-name=* \ |
| 1124 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1125 | | --program-transform-n=* | --program-transform-=* \ |
| 1126 | | --program-transform=* | --program-transfor=* \ |
| 1127 | | --program-transfo=* | --program-transf=* \ |
| 1128 | | --program-trans=* | --program-tran=* \ |
| 1129 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1131 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1132 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1133 | ac_prev=pdfdir ;; |
| 1134 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1135 | pdfdir=$ac_optarg ;; |
| 1136 | |
| 1137 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1138 | ac_prev=psdir ;; |
| 1139 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1140 | psdir=$ac_optarg ;; |
| 1141 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1142 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1143 | | -silent | --silent | --silen | --sile | --sil) |
| 1144 | silent=yes ;; |
| 1145 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1146 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1147 | ac_prev=sbindir ;; |
| 1148 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1149 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1150 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1151 | |
| 1152 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1153 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1154 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1155 | | --sha | --sh) |
| 1156 | ac_prev=sharedstatedir ;; |
| 1157 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1158 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1159 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1160 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1161 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1162 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1163 | -site | --site | --sit) |
| 1164 | ac_prev=site ;; |
| 1165 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1166 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1167 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1168 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1169 | ac_prev=srcdir ;; |
| 1170 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1171 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1172 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1173 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1174 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1175 | ac_prev=sysconfdir ;; |
| 1176 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1177 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1178 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1179 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1180 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1181 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1182 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1183 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1184 | |
| 1185 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1186 | verbose=yes ;; |
| 1187 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1188 | -version | --version | --versio | --versi | --vers | -V) |
| 1189 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1190 | |
| 1191 | -with-* | --with-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1192 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1193 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1194 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1195 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1196 | ac_useropt_orig=$ac_useropt |
| 1197 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1198 | case $ac_user_opts in |
| 1199 | *" |
| 1200 | "with_$ac_useropt" |
| 1201 | "*) ;; |
| 1202 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1203 | ac_unrecognized_sep=', ';; |
| 1204 | esac |
| 1205 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1206 | |
| 1207 | -without-* | --without-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1208 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1209 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1210 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1211 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1212 | ac_useropt_orig=$ac_useropt |
| 1213 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1214 | case $ac_user_opts in |
| 1215 | *" |
| 1216 | "with_$ac_useropt" |
| 1217 | "*) ;; |
| 1218 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1219 | ac_unrecognized_sep=', ';; |
| 1220 | esac |
| 1221 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1222 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1223 | --x) |
| 1224 | # Obsolete; use --with-x. |
| 1225 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1226 | |
| 1227 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1228 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1229 | ac_prev=x_includes ;; |
| 1230 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1231 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1232 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1233 | |
| 1234 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1235 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1236 | ac_prev=x_libraries ;; |
| 1237 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1238 | | --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] | 1239 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1240 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1241 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1242 | Try \`$0 --help' for more information" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1243 | ;; |
| 1244 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1245 | *=*) |
| 1246 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1247 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1248 | case $ac_envvar in #( |
| 1249 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1250 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1251 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1252 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1253 | export $ac_envvar ;; |
| 1254 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1255 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1256 | # FIXME: should be removed in autoconf 3.0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1257 | $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] | 1258 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1259 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1260 | : "${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] | 1261 | ;; |
| 1262 | |
| 1263 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1264 | done |
| 1265 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1266 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1267 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1268 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1269 | fi |
| 1270 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1271 | if test -n "$ac_unrecognized_opts"; then |
| 1272 | case $enable_option_checking in |
| 1273 | no) ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1274 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1275 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1276 | esac |
| 1277 | fi |
| 1278 | |
| 1279 | # Check all directory arguments for consistency. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1280 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1281 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1282 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 1283 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1284 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1285 | eval ac_val=\$$ac_var |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1286 | # Remove trailing slashes. |
| 1287 | case $ac_val in |
| 1288 | */ ) |
| 1289 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1290 | eval $ac_var=\$ac_val;; |
| 1291 | esac |
| 1292 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1293 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1294 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1295 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1296 | esac |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1297 | 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] | 1298 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1299 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1300 | # There might be people who depend on the old broken behavior: `$host' |
| 1301 | # used to hold the argument of --host etc. |
| 1302 | # FIXME: To remove some day. |
| 1303 | build=$build_alias |
| 1304 | host=$host_alias |
| 1305 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1307 | # FIXME: To remove some day. |
| 1308 | if test "x$host_alias" != x; then |
| 1309 | if test "x$build_alias" = x; then |
| 1310 | cross_compiling=maybe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1311 | elif test "x$build_alias" != "x$host_alias"; then |
| 1312 | cross_compiling=yes |
| 1313 | fi |
| 1314 | fi |
| 1315 | |
| 1316 | ac_tool_prefix= |
| 1317 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1318 | |
| 1319 | test "$silent" = yes && exec 6>/dev/null |
| 1320 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1321 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1322 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1323 | ac_ls_di=`ls -di .` && |
| 1324 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1325 | as_fn_error $? "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1326 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1327 | as_fn_error $? "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1328 | |
| 1329 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1330 | # Find the source files, if location was not specified. |
| 1331 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1332 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1333 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1334 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1335 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1336 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1337 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1338 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1339 | $as_echo X"$as_myself" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1340 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1341 | s//\1/ |
| 1342 | q |
| 1343 | } |
| 1344 | /^X\(\/\/\)[^/].*/{ |
| 1345 | s//\1/ |
| 1346 | q |
| 1347 | } |
| 1348 | /^X\(\/\/\)$/{ |
| 1349 | s//\1/ |
| 1350 | q |
| 1351 | } |
| 1352 | /^X\(\/\).*/{ |
| 1353 | s//\1/ |
| 1354 | q |
| 1355 | } |
| 1356 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1357 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1358 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1359 | srcdir=.. |
| 1360 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1361 | else |
| 1362 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1363 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1364 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1365 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1366 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1367 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1368 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1369 | ac_abs_confdir=`( |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1370 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1371 | pwd)` |
| 1372 | # When building in place, set srcdir=. |
| 1373 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1374 | srcdir=. |
| 1375 | fi |
| 1376 | # Remove unnecessary trailing slashes from srcdir. |
| 1377 | # Double slashes in file names in object file debugging info |
| 1378 | # mess up M-x gdb in Emacs. |
| 1379 | case $srcdir in |
| 1380 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1381 | esac |
| 1382 | for ac_var in $ac_precious_vars; do |
| 1383 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1384 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1385 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1386 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1387 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1388 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1389 | # |
| 1390 | # Report the --help message. |
| 1391 | # |
| 1392 | if test "$ac_init_help" = "long"; then |
| 1393 | # Omit some internal or obsolete options to make the list less imposing. |
| 1394 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1395 | cat <<_ACEOF |
Ned Deily | 5489bda | 2018-01-31 17:44:09 -0500 | [diff] [blame] | 1396 | \`configure' configures python 3.8 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1397 | |
| 1398 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1399 | |
| 1400 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1401 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1402 | |
| 1403 | Defaults for the options are specified in brackets. |
| 1404 | |
| 1405 | Configuration: |
| 1406 | -h, --help display this help and exit |
| 1407 | --help=short display options specific to this package |
| 1408 | --help=recursive display the short help of all the included packages |
| 1409 | -V, --version display version information and exit |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1410 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1411 | --cache-file=FILE cache test results in FILE [disabled] |
| 1412 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1413 | -n, --no-create do not create output files |
| 1414 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1416 | Installation directories: |
| 1417 | --prefix=PREFIX install architecture-independent files in PREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1418 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1419 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1420 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1421 | |
| 1422 | By default, \`make install' will install all the files in |
| 1423 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1424 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1425 | for instance \`--prefix=\$HOME'. |
| 1426 | |
| 1427 | For better control, use the options below. |
| 1428 | |
| 1429 | Fine tuning of the installation directories: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1430 | --bindir=DIR user executables [EPREFIX/bin] |
| 1431 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1432 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1433 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1434 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1435 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1436 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1437 | --includedir=DIR C header files [PREFIX/include] |
| 1438 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1439 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1440 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1441 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1442 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1443 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1444 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1445 | --htmldir=DIR html documentation [DOCDIR] |
| 1446 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1447 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1448 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1449 | _ACEOF |
| 1450 | |
| 1451 | cat <<\_ACEOF |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1452 | |
| 1453 | System types: |
| 1454 | --build=BUILD configure for building on BUILD [guessed] |
| 1455 | --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] | 1456 | --target=TARGET configure for building compilers for TARGET [HOST] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1457 | _ACEOF |
| 1458 | fi |
| 1459 | |
| 1460 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1461 | case $ac_init_help in |
Ned Deily | 5489bda | 2018-01-31 17:44:09 -0500 | [diff] [blame] | 1462 | short | recursive ) echo "Configuration of python 3.8:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1463 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1464 | cat <<\_ACEOF |
| 1465 | |
| 1466 | Optional Features: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1467 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1468 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1469 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1470 | --enable-universalsdk[=SDKDIR] |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 1471 | Build fat binary against Mac OS X SDK |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1472 | --enable-framework[=INSTALLDIR] |
| 1473 | Build (MacOSX|Darwin) framework |
| 1474 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1475 | --enable-profiling enable C-level code profiling |
Brett Cannon | b4e5fee | 2017-06-09 13:56:57 -0700 | [diff] [blame] | 1476 | --enable-optimizations Enable expensive, stable optimizations (PGO, etc). |
| 1477 | Disabled by default. |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1478 | --enable-loadable-sqlite-extensions |
| 1479 | support loadable extensions in _sqlite module |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1480 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1481 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1482 | --enable-big-digits[=BITS] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1483 | use big digits for Python longs [[BITS=30]] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1484 | |
| 1485 | Optional Packages: |
| 1486 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1487 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1488 | --with-universal-archs=ARCH |
| 1489 | select architectures for universal build ("32-bit", |
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 1490 | "64-bit", "3-way", "intel", "intel-32", "intel-64", |
| 1491 | or "all") |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1492 | --with-framework-name=FRAMEWORK |
| 1493 | specify an alternate name of the framework built |
| 1494 | with --enable-framework |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1495 | --with-cxx-main=<compiler> |
| 1496 | compile main() and link python executable with C++ |
| 1497 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1498 | --with-suffix=.exe set executable suffix |
| 1499 | --with-pydebug build with Py_DEBUG defined |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 1500 | --with-assertions build with C assertions enabled |
octaviansoldea | 4c81401 | 2017-09-08 12:14:33 -0700 | [diff] [blame] | 1501 | --with-lto Enable Link Time Optimization in any build. Disabled |
| 1502 | by default. |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1503 | --with-hash-algorithm=[fnv|siphash24] |
| 1504 | select hash algorithm |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1505 | --with-address-sanitizer |
| 1506 | enable AddressSanitizer |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1507 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1508 | --with-system-expat build pyexpat module using an installed expat |
| 1509 | library |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1510 | --with-system-ffi build _ctypes module using an installed ffi library |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1511 | --with-system-libmpdec build _decimal module using an installed libmpdec |
| 1512 | library |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1513 | --with-tcltk-includes='-I...' |
| 1514 | override search for Tcl and Tk include files |
| 1515 | --with-tcltk-libs='-L...' |
| 1516 | override search for Tcl and Tk libs |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1517 | --with-dbmliborder=db1:db2:... |
| 1518 | order to check db backends for dbm. Valid value is a |
| 1519 | colon separated string with the backend names |
| 1520 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1521 | --with(out)-doc-strings disable/enable documentation strings |
| 1522 | --with(out)-pymalloc disable/enable specialized mallocs |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 1523 | --with(out)-c-locale-coercion |
| 1524 | disable/enable C locale coercion to a UTF-8 based |
| 1525 | locale |
| 1526 | --with(out)-c-locale-warning |
| 1527 | disable/enable locale compatibility warning in the C |
| 1528 | locale |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1529 | --with-valgrind Enable Valgrind support |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 1530 | --with(out)-dtrace disable/enable DTrace support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1531 | --with-libm=STRING math library |
| 1532 | --with-libc=STRING C library |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1533 | --with(out)-computed-gotos |
| 1534 | Use computed gotos in evaluation loop (enabled by |
| 1535 | default on supported compilers) |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 1536 | --with(out)-ensurepip=[=upgrade] |
| 1537 | "install" or "upgrade" using bundled pip |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 1538 | --with-openssl=DIR root of the OpenSSL directory |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 1539 | --with-ssl-default-suites=[python|openssl|STRING] |
| 1540 | Override default cipher suites string, python: use |
| 1541 | Python's preferred selection (default), openssl: |
| 1542 | leave OpenSSL's defaults untouched, STRING: use a |
| 1543 | custom string, PROTOCOL_SSLv2 ignores the setting |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1544 | |
| 1545 | Some influential environment variables: |
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1546 | MACHDEP name for machine-dependent library files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1547 | CC C compiler command |
| 1548 | CFLAGS C compiler flags |
| 1549 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1550 | nonstandard directory <lib dir> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1551 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1552 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1553 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1554 | CPP C preprocessor |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 1555 | PKG_CONFIG path to pkg-config utility |
| 1556 | PKG_CONFIG_PATH |
| 1557 | directories to add to pkg-config's search path |
| 1558 | PKG_CONFIG_LIBDIR |
| 1559 | path overriding pkg-config's built-in search path |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1560 | |
| 1561 | Use these variables to override the choices made by `configure' or to help |
| 1562 | it to find libraries and programs with nonstandard names/locations. |
| 1563 | |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1564 | Report bugs to <https://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1565 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1566 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1567 | fi |
| 1568 | |
| 1569 | if test "$ac_init_help" = "recursive"; then |
| 1570 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1571 | 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] | 1572 | test -d "$ac_dir" || |
| 1573 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1574 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1575 | ac_builddir=. |
| 1576 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1577 | case "$ac_dir" in |
| 1578 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1579 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1580 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1581 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1582 | 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] | 1583 | case $ac_top_builddir_sub in |
| 1584 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1585 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1586 | esac ;; |
| 1587 | esac |
| 1588 | ac_abs_top_builddir=$ac_pwd |
| 1589 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1590 | # for backward compatibility: |
| 1591 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1592 | |
| 1593 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1594 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1595 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1596 | ac_top_srcdir=$ac_top_builddir_sub |
| 1597 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1598 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1599 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1600 | ac_top_srcdir=$srcdir |
| 1601 | ac_abs_top_srcdir=$srcdir ;; |
| 1602 | *) # Relative name. |
| 1603 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1604 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1605 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1606 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1607 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1608 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1609 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1610 | # Check for guested configure. |
| 1611 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1612 | echo && |
| 1613 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1614 | elif test -f "$ac_srcdir/configure"; then |
| 1615 | echo && |
| 1616 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1617 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1618 | $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] | 1619 | fi || ac_status=$? |
| 1620 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1621 | done |
| 1622 | fi |
| 1623 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1624 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1625 | if $ac_init_version; then |
| 1626 | cat <<\_ACEOF |
Ned Deily | 5489bda | 2018-01-31 17:44:09 -0500 | [diff] [blame] | 1627 | python configure 3.8 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1628 | generated by GNU Autoconf 2.69 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1629 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1630 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1631 | This configure script is free software; the Free Software Foundation |
| 1632 | gives unlimited permission to copy, distribute and modify it. |
| 1633 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1634 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1635 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1636 | |
| 1637 | ## ------------------------ ## |
| 1638 | ## Autoconf initialization. ## |
| 1639 | ## ------------------------ ## |
| 1640 | |
| 1641 | # ac_fn_c_try_compile LINENO |
| 1642 | # -------------------------- |
| 1643 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1644 | ac_fn_c_try_compile () |
| 1645 | { |
| 1646 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1647 | rm -f conftest.$ac_objext |
| 1648 | if { { ac_try="$ac_compile" |
| 1649 | case "(($ac_try" in |
| 1650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1651 | *) ac_try_echo=$ac_try;; |
| 1652 | esac |
| 1653 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1654 | $as_echo "$ac_try_echo"; } >&5 |
| 1655 | (eval "$ac_compile") 2>conftest.err |
| 1656 | ac_status=$? |
| 1657 | if test -s conftest.err; then |
| 1658 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1659 | cat conftest.er1 >&5 |
| 1660 | mv -f conftest.er1 conftest.err |
| 1661 | fi |
| 1662 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1663 | test $ac_status = 0; } && { |
| 1664 | test -z "$ac_c_werror_flag" || |
| 1665 | test ! -s conftest.err |
| 1666 | } && test -s conftest.$ac_objext; then : |
| 1667 | ac_retval=0 |
| 1668 | else |
| 1669 | $as_echo "$as_me: failed program was:" >&5 |
| 1670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1671 | |
| 1672 | ac_retval=1 |
| 1673 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1674 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1675 | as_fn_set_status $ac_retval |
| 1676 | |
| 1677 | } # ac_fn_c_try_compile |
| 1678 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1679 | # ac_fn_c_try_cpp LINENO |
| 1680 | # ---------------------- |
| 1681 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1682 | ac_fn_c_try_cpp () |
| 1683 | { |
| 1684 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1685 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1686 | case "(($ac_try" in |
| 1687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1688 | *) ac_try_echo=$ac_try;; |
| 1689 | esac |
| 1690 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1691 | $as_echo "$ac_try_echo"; } >&5 |
| 1692 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1693 | ac_status=$? |
| 1694 | if test -s conftest.err; then |
| 1695 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1696 | cat conftest.er1 >&5 |
| 1697 | mv -f conftest.er1 conftest.err |
| 1698 | fi |
| 1699 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1700 | test $ac_status = 0; } > conftest.i && { |
| 1701 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1702 | test ! -s conftest.err |
| 1703 | }; then : |
| 1704 | ac_retval=0 |
| 1705 | else |
| 1706 | $as_echo "$as_me: failed program was:" >&5 |
| 1707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1708 | |
| 1709 | ac_retval=1 |
| 1710 | fi |
| 1711 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1712 | as_fn_set_status $ac_retval |
| 1713 | |
| 1714 | } # ac_fn_c_try_cpp |
| 1715 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1716 | # ac_fn_c_try_link LINENO |
| 1717 | # ----------------------- |
| 1718 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1719 | ac_fn_c_try_link () |
| 1720 | { |
| 1721 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1722 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1723 | if { { ac_try="$ac_link" |
| 1724 | case "(($ac_try" in |
| 1725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1726 | *) ac_try_echo=$ac_try;; |
| 1727 | esac |
| 1728 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1729 | $as_echo "$ac_try_echo"; } >&5 |
| 1730 | (eval "$ac_link") 2>conftest.err |
| 1731 | ac_status=$? |
| 1732 | if test -s conftest.err; then |
| 1733 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1734 | cat conftest.er1 >&5 |
| 1735 | mv -f conftest.er1 conftest.err |
| 1736 | fi |
| 1737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1738 | test $ac_status = 0; } && { |
| 1739 | test -z "$ac_c_werror_flag" || |
| 1740 | test ! -s conftest.err |
| 1741 | } && test -s conftest$ac_exeext && { |
| 1742 | test "$cross_compiling" = yes || |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1743 | test -x conftest$ac_exeext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1744 | }; then : |
| 1745 | ac_retval=0 |
| 1746 | else |
| 1747 | $as_echo "$as_me: failed program was:" >&5 |
| 1748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1749 | |
| 1750 | ac_retval=1 |
| 1751 | fi |
| 1752 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1753 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1754 | # interfere with the next link command; also delete a directory that is |
| 1755 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1756 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1757 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1758 | as_fn_set_status $ac_retval |
| 1759 | |
| 1760 | } # ac_fn_c_try_link |
| 1761 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1762 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1763 | # ------------------------------------------------------- |
| 1764 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1765 | # the include files in INCLUDES and setting the cache variable VAR |
| 1766 | # accordingly. |
| 1767 | ac_fn_c_check_header_mongrel () |
| 1768 | { |
| 1769 | 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] | 1770 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1772 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1773 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1774 | $as_echo_n "(cached) " >&6 |
| 1775 | fi |
| 1776 | eval ac_res=\$$3 |
| 1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1778 | $as_echo "$ac_res" >&6; } |
| 1779 | else |
| 1780 | # Is the header compilable? |
| 1781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1782 | $as_echo_n "checking $2 usability... " >&6; } |
| 1783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1784 | /* end confdefs.h. */ |
| 1785 | $4 |
| 1786 | #include <$2> |
| 1787 | _ACEOF |
| 1788 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1789 | ac_header_compiler=yes |
| 1790 | else |
| 1791 | ac_header_compiler=no |
| 1792 | fi |
| 1793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1795 | $as_echo "$ac_header_compiler" >&6; } |
| 1796 | |
| 1797 | # Is the header present? |
| 1798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1799 | $as_echo_n "checking $2 presence... " >&6; } |
| 1800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1801 | /* end confdefs.h. */ |
| 1802 | #include <$2> |
| 1803 | _ACEOF |
| 1804 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1805 | ac_header_preproc=yes |
| 1806 | else |
| 1807 | ac_header_preproc=no |
| 1808 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1809 | rm -f conftest.err conftest.i conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1811 | $as_echo "$ac_header_preproc" >&6; } |
| 1812 | |
| 1813 | # So? What about this header? |
| 1814 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1815 | yes:no: ) |
| 1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1817 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1819 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1820 | ;; |
| 1821 | no:yes:* ) |
| 1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1823 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1825 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1827 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1829 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1831 | $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] | 1832 | ( $as_echo "## --------------------------------------- ## |
| 1833 | ## Report this to https://bugs.python.org/ ## |
| 1834 | ## --------------------------------------- ##" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1835 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1836 | ;; |
| 1837 | esac |
| 1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1839 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1840 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1841 | $as_echo_n "(cached) " >&6 |
| 1842 | else |
| 1843 | eval "$3=\$ac_header_compiler" |
| 1844 | fi |
| 1845 | eval ac_res=\$$3 |
| 1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1847 | $as_echo "$ac_res" >&6; } |
| 1848 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1849 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1850 | |
| 1851 | } # ac_fn_c_check_header_mongrel |
| 1852 | |
| 1853 | # ac_fn_c_try_run LINENO |
| 1854 | # ---------------------- |
| 1855 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1856 | # that executables *can* be run. |
| 1857 | ac_fn_c_try_run () |
| 1858 | { |
| 1859 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1860 | if { { ac_try="$ac_link" |
| 1861 | case "(($ac_try" in |
| 1862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1863 | *) ac_try_echo=$ac_try;; |
| 1864 | esac |
| 1865 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1866 | $as_echo "$ac_try_echo"; } >&5 |
| 1867 | (eval "$ac_link") 2>&5 |
| 1868 | ac_status=$? |
| 1869 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1870 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1871 | { { case "(($ac_try" in |
| 1872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1873 | *) ac_try_echo=$ac_try;; |
| 1874 | esac |
| 1875 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1876 | $as_echo "$ac_try_echo"; } >&5 |
| 1877 | (eval "$ac_try") 2>&5 |
| 1878 | ac_status=$? |
| 1879 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1880 | test $ac_status = 0; }; }; then : |
| 1881 | ac_retval=0 |
| 1882 | else |
| 1883 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1884 | $as_echo "$as_me: failed program was:" >&5 |
| 1885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1886 | |
| 1887 | ac_retval=$ac_status |
| 1888 | fi |
| 1889 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1890 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1891 | as_fn_set_status $ac_retval |
| 1892 | |
| 1893 | } # ac_fn_c_try_run |
| 1894 | |
| 1895 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1896 | # ------------------------------------------------------- |
| 1897 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1898 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1899 | ac_fn_c_check_header_compile () |
| 1900 | { |
| 1901 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1903 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1904 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1905 | $as_echo_n "(cached) " >&6 |
| 1906 | else |
| 1907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1908 | /* end confdefs.h. */ |
| 1909 | $4 |
| 1910 | #include <$2> |
| 1911 | _ACEOF |
| 1912 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1913 | eval "$3=yes" |
| 1914 | else |
| 1915 | eval "$3=no" |
| 1916 | fi |
| 1917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1918 | fi |
| 1919 | eval ac_res=\$$3 |
| 1920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1921 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1922 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1923 | |
| 1924 | } # ac_fn_c_check_header_compile |
| 1925 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1926 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1927 | # ------------------------------------------- |
| 1928 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1929 | # variable VAR accordingly. |
| 1930 | ac_fn_c_check_type () |
| 1931 | { |
| 1932 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1934 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1935 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1936 | $as_echo_n "(cached) " >&6 |
| 1937 | else |
| 1938 | eval "$3=no" |
| 1939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1940 | /* end confdefs.h. */ |
| 1941 | $4 |
| 1942 | int |
| 1943 | main () |
| 1944 | { |
| 1945 | if (sizeof ($2)) |
| 1946 | return 0; |
| 1947 | ; |
| 1948 | return 0; |
| 1949 | } |
| 1950 | _ACEOF |
| 1951 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1953 | /* end confdefs.h. */ |
| 1954 | $4 |
| 1955 | int |
| 1956 | main () |
| 1957 | { |
| 1958 | if (sizeof (($2))) |
| 1959 | return 0; |
| 1960 | ; |
| 1961 | return 0; |
| 1962 | } |
| 1963 | _ACEOF |
| 1964 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1965 | |
| 1966 | else |
| 1967 | eval "$3=yes" |
| 1968 | fi |
| 1969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1970 | fi |
| 1971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1972 | fi |
| 1973 | eval ac_res=\$$3 |
| 1974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1975 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1976 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1977 | |
| 1978 | } # ac_fn_c_check_type |
| 1979 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1980 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1981 | # -------------------------------------------- |
| 1982 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1983 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1984 | # computed |
| 1985 | ac_fn_c_compute_int () |
| 1986 | { |
| 1987 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1988 | if test "$cross_compiling" = yes; then |
| 1989 | # Depending upon the size, compute the lo and hi bounds. |
| 1990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1991 | /* end confdefs.h. */ |
| 1992 | $4 |
| 1993 | int |
| 1994 | main () |
| 1995 | { |
| 1996 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1997 | test_array [0] = 0; |
| 1998 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1999 | |
| 2000 | ; |
| 2001 | return 0; |
| 2002 | } |
| 2003 | _ACEOF |
| 2004 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2005 | ac_lo=0 ac_mid=0 |
| 2006 | while :; do |
| 2007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2008 | /* end confdefs.h. */ |
| 2009 | $4 |
| 2010 | int |
| 2011 | main () |
| 2012 | { |
| 2013 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2014 | test_array [0] = 0; |
| 2015 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2016 | |
| 2017 | ; |
| 2018 | return 0; |
| 2019 | } |
| 2020 | _ACEOF |
| 2021 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2022 | ac_hi=$ac_mid; break |
| 2023 | else |
| 2024 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2025 | if test $ac_lo -le $ac_mid; then |
| 2026 | ac_lo= ac_hi= |
| 2027 | break |
| 2028 | fi |
| 2029 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2030 | fi |
| 2031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2032 | done |
| 2033 | else |
| 2034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2035 | /* end confdefs.h. */ |
| 2036 | $4 |
| 2037 | int |
| 2038 | main () |
| 2039 | { |
| 2040 | static int test_array [1 - 2 * !(($2) < 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2041 | test_array [0] = 0; |
| 2042 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2043 | |
| 2044 | ; |
| 2045 | return 0; |
| 2046 | } |
| 2047 | _ACEOF |
| 2048 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2049 | ac_hi=-1 ac_mid=-1 |
| 2050 | while :; do |
| 2051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2052 | /* end confdefs.h. */ |
| 2053 | $4 |
| 2054 | int |
| 2055 | main () |
| 2056 | { |
| 2057 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2058 | test_array [0] = 0; |
| 2059 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2060 | |
| 2061 | ; |
| 2062 | return 0; |
| 2063 | } |
| 2064 | _ACEOF |
| 2065 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2066 | ac_lo=$ac_mid; break |
| 2067 | else |
| 2068 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2069 | if test $ac_mid -le $ac_hi; then |
| 2070 | ac_lo= ac_hi= |
| 2071 | break |
| 2072 | fi |
| 2073 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2074 | fi |
| 2075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2076 | done |
| 2077 | else |
| 2078 | ac_lo= ac_hi= |
| 2079 | fi |
| 2080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2081 | fi |
| 2082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2083 | # Binary search between lo and hi bounds. |
| 2084 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2085 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2087 | /* end confdefs.h. */ |
| 2088 | $4 |
| 2089 | int |
| 2090 | main () |
| 2091 | { |
| 2092 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2093 | test_array [0] = 0; |
| 2094 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2095 | |
| 2096 | ; |
| 2097 | return 0; |
| 2098 | } |
| 2099 | _ACEOF |
| 2100 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2101 | ac_hi=$ac_mid |
| 2102 | else |
| 2103 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2104 | fi |
| 2105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2106 | done |
| 2107 | case $ac_lo in #(( |
| 2108 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2109 | '') ac_retval=1 ;; |
| 2110 | esac |
| 2111 | else |
| 2112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2113 | /* end confdefs.h. */ |
| 2114 | $4 |
| 2115 | static long int longval () { return $2; } |
| 2116 | static unsigned long int ulongval () { return $2; } |
| 2117 | #include <stdio.h> |
| 2118 | #include <stdlib.h> |
| 2119 | int |
| 2120 | main () |
| 2121 | { |
| 2122 | |
| 2123 | FILE *f = fopen ("conftest.val", "w"); |
| 2124 | if (! f) |
| 2125 | return 1; |
| 2126 | if (($2) < 0) |
| 2127 | { |
| 2128 | long int i = longval (); |
| 2129 | if (i != ($2)) |
| 2130 | return 1; |
| 2131 | fprintf (f, "%ld", i); |
| 2132 | } |
| 2133 | else |
| 2134 | { |
| 2135 | unsigned long int i = ulongval (); |
| 2136 | if (i != ($2)) |
| 2137 | return 1; |
| 2138 | fprintf (f, "%lu", i); |
| 2139 | } |
| 2140 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2141 | on some platforms. */ |
| 2142 | return ferror (f) || fclose (f) != 0; |
| 2143 | |
| 2144 | ; |
| 2145 | return 0; |
| 2146 | } |
| 2147 | _ACEOF |
| 2148 | if ac_fn_c_try_run "$LINENO"; then : |
| 2149 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2150 | else |
| 2151 | ac_retval=1 |
| 2152 | fi |
| 2153 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2154 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2155 | rm -f conftest.val |
| 2156 | |
| 2157 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2158 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2159 | as_fn_set_status $ac_retval |
| 2160 | |
| 2161 | } # ac_fn_c_compute_int |
| 2162 | |
| 2163 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2164 | # ---------------------------------- |
| 2165 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2166 | ac_fn_c_check_func () |
| 2167 | { |
| 2168 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2170 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2171 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2172 | $as_echo_n "(cached) " >&6 |
| 2173 | else |
| 2174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2175 | /* end confdefs.h. */ |
| 2176 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2177 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2178 | #define $2 innocuous_$2 |
| 2179 | |
| 2180 | /* System header to define __stub macros and hopefully few prototypes, |
| 2181 | which can conflict with char $2 (); below. |
| 2182 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2183 | <limits.h> exists even on freestanding compilers. */ |
| 2184 | |
| 2185 | #ifdef __STDC__ |
| 2186 | # include <limits.h> |
| 2187 | #else |
| 2188 | # include <assert.h> |
| 2189 | #endif |
| 2190 | |
| 2191 | #undef $2 |
| 2192 | |
| 2193 | /* Override any GCC internal prototype to avoid an error. |
| 2194 | Use char because int might match the return type of a GCC |
| 2195 | builtin and then its argument prototype would still apply. */ |
| 2196 | #ifdef __cplusplus |
| 2197 | extern "C" |
| 2198 | #endif |
| 2199 | char $2 (); |
| 2200 | /* The GNU C library defines this for functions which it implements |
| 2201 | to always fail with ENOSYS. Some functions are actually named |
| 2202 | something starting with __ and the normal name is an alias. */ |
| 2203 | #if defined __stub_$2 || defined __stub___$2 |
| 2204 | choke me |
| 2205 | #endif |
| 2206 | |
| 2207 | int |
| 2208 | main () |
| 2209 | { |
| 2210 | return $2 (); |
| 2211 | ; |
| 2212 | return 0; |
| 2213 | } |
| 2214 | _ACEOF |
| 2215 | if ac_fn_c_try_link "$LINENO"; then : |
| 2216 | eval "$3=yes" |
| 2217 | else |
| 2218 | eval "$3=no" |
| 2219 | fi |
| 2220 | rm -f core conftest.err conftest.$ac_objext \ |
| 2221 | conftest$ac_exeext conftest.$ac_ext |
| 2222 | fi |
| 2223 | eval ac_res=\$$3 |
| 2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2225 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2226 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2227 | |
| 2228 | } # ac_fn_c_check_func |
| 2229 | |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2230 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2231 | # --------------------------------------------- |
| 2232 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2233 | # accordingly. |
| 2234 | ac_fn_c_check_decl () |
| 2235 | { |
| 2236 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2237 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2238 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2240 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2241 | if eval \${$3+:} false; then : |
| 2242 | $as_echo_n "(cached) " >&6 |
| 2243 | else |
| 2244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2245 | /* end confdefs.h. */ |
| 2246 | $4 |
| 2247 | int |
| 2248 | main () |
| 2249 | { |
| 2250 | #ifndef $as_decl_name |
| 2251 | #ifdef __cplusplus |
| 2252 | (void) $as_decl_use; |
| 2253 | #else |
| 2254 | (void) $as_decl_name; |
| 2255 | #endif |
| 2256 | #endif |
| 2257 | |
| 2258 | ; |
| 2259 | return 0; |
| 2260 | } |
| 2261 | _ACEOF |
| 2262 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2263 | eval "$3=yes" |
| 2264 | else |
| 2265 | eval "$3=no" |
| 2266 | fi |
| 2267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2268 | fi |
| 2269 | eval ac_res=\$$3 |
| 2270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2271 | $as_echo "$ac_res" >&6; } |
| 2272 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2273 | |
| 2274 | } # ac_fn_c_check_decl |
| 2275 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2276 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2277 | # ---------------------------------------------------- |
| 2278 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2279 | # INCLUDES, setting cache variable VAR accordingly. |
| 2280 | ac_fn_c_check_member () |
| 2281 | { |
| 2282 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2284 | $as_echo_n "checking for $2.$3... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2285 | if eval \${$4+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2286 | $as_echo_n "(cached) " >&6 |
| 2287 | else |
| 2288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2289 | /* end confdefs.h. */ |
| 2290 | $5 |
| 2291 | int |
| 2292 | main () |
| 2293 | { |
| 2294 | static $2 ac_aggr; |
| 2295 | if (ac_aggr.$3) |
| 2296 | return 0; |
| 2297 | ; |
| 2298 | return 0; |
| 2299 | } |
| 2300 | _ACEOF |
| 2301 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2302 | eval "$4=yes" |
| 2303 | else |
| 2304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2305 | /* end confdefs.h. */ |
| 2306 | $5 |
| 2307 | int |
| 2308 | main () |
| 2309 | { |
| 2310 | static $2 ac_aggr; |
| 2311 | if (sizeof ac_aggr.$3) |
| 2312 | return 0; |
| 2313 | ; |
| 2314 | return 0; |
| 2315 | } |
| 2316 | _ACEOF |
| 2317 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2318 | eval "$4=yes" |
| 2319 | else |
| 2320 | eval "$4=no" |
| 2321 | fi |
| 2322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2323 | fi |
| 2324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2325 | fi |
| 2326 | eval ac_res=\$$4 |
| 2327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2328 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2329 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2330 | |
| 2331 | } # ac_fn_c_check_member |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2332 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2333 | This file contains any messages produced by compilers while |
| 2334 | running configure, to aid debugging if configure makes a mistake. |
| 2335 | |
Ned Deily | 5489bda | 2018-01-31 17:44:09 -0500 | [diff] [blame] | 2336 | It was created by python $as_me 3.8, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2337 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2338 | |
| 2339 | $ $0 $@ |
| 2340 | |
| 2341 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2342 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2343 | { |
| 2344 | cat <<_ASUNAME |
| 2345 | ## --------- ## |
| 2346 | ## Platform. ## |
| 2347 | ## --------- ## |
| 2348 | |
| 2349 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2350 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2351 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2352 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2353 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2354 | |
| 2355 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2356 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2357 | |
| 2358 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2359 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2360 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2361 | /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] | 2362 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2363 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2364 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2365 | |
| 2366 | _ASUNAME |
| 2367 | |
| 2368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2369 | for as_dir in $PATH |
| 2370 | do |
| 2371 | IFS=$as_save_IFS |
| 2372 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2373 | $as_echo "PATH: $as_dir" |
| 2374 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2375 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2376 | |
| 2377 | } >&5 |
| 2378 | |
| 2379 | cat >&5 <<_ACEOF |
| 2380 | |
| 2381 | |
| 2382 | ## ----------- ## |
| 2383 | ## Core tests. ## |
| 2384 | ## ----------- ## |
| 2385 | |
| 2386 | _ACEOF |
| 2387 | |
| 2388 | |
| 2389 | # Keep a trace of the command line. |
| 2390 | # 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] | 2391 | # 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] | 2392 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2393 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2394 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2395 | ac_configure_args0= |
| 2396 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2397 | ac_must_keep_next=false |
| 2398 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2399 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2400 | for ac_arg |
| 2401 | do |
| 2402 | case $ac_arg in |
| 2403 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2404 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2405 | | -silent | --silent | --silen | --sile | --sil) |
| 2406 | continue ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2407 | *\'*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2408 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2409 | esac |
| 2410 | case $ac_pass in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2411 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2412 | 2) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2413 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2414 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2415 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2416 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2417 | case $ac_arg in |
| 2418 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2419 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2420 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2421 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2422 | case "$ac_configure_args0 " in |
| 2423 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2424 | esac |
| 2425 | ;; |
| 2426 | -* ) ac_must_keep_next=true ;; |
| 2427 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2428 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2429 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2430 | ;; |
| 2431 | esac |
| 2432 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2433 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2434 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2435 | { ac_configure_args1=; unset ac_configure_args1;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2436 | |
| 2437 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2438 | # config.log. We remove comments because anyway the quotes in there |
| 2439 | # would cause problems or look ugly. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2440 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2441 | # 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] | 2442 | trap 'exit_status=$? |
| 2443 | # Save into config.log some information that might help in debugging. |
| 2444 | { |
| 2445 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2446 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2447 | $as_echo "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2448 | ## Cache variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2449 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2450 | echo |
| 2451 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2452 | ( |
| 2453 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2454 | eval ac_val=\$$ac_var |
| 2455 | case $ac_val in #( |
| 2456 | *${as_nl}*) |
| 2457 | case $ac_var in #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2458 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2459 | $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] | 2460 | esac |
| 2461 | case $ac_var in #( |
| 2462 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2463 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2464 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2465 | esac ;; |
| 2466 | esac |
| 2467 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2468 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2469 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2470 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2471 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2472 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2473 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2474 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2475 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2476 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2477 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2478 | esac | |
| 2479 | sort |
| 2480 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2481 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2482 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2483 | $as_echo "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2484 | ## Output variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2485 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2486 | echo |
| 2487 | for ac_var in $ac_subst_vars |
| 2488 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2489 | eval ac_val=\$$ac_var |
| 2490 | case $ac_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2491 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2492 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2493 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2494 | done | sort |
| 2495 | echo |
| 2496 | |
| 2497 | if test -n "$ac_subst_files"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2498 | $as_echo "## ------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2499 | ## File substitutions. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2500 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2501 | echo |
| 2502 | for ac_var in $ac_subst_files |
| 2503 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2504 | eval ac_val=\$$ac_var |
| 2505 | case $ac_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2506 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2507 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2508 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2509 | done | sort |
| 2510 | echo |
| 2511 | fi |
| 2512 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2513 | if test -s confdefs.h; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2514 | $as_echo "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2515 | ## confdefs.h. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2516 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2517 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2518 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2519 | echo |
| 2520 | fi |
| 2521 | test "$ac_signal" != 0 && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2522 | $as_echo "$as_me: caught signal $ac_signal" |
| 2523 | $as_echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2524 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2525 | rm -f core *.core core.conftest.* && |
| 2526 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2527 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2528 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2529 | for ac_signal in 1 2 13 15; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2530 | 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] | 2531 | done |
| 2532 | ac_signal=0 |
| 2533 | |
| 2534 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2535 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2536 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2537 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2539 | # Predefined preprocessor variables. |
| 2540 | |
| 2541 | cat >>confdefs.h <<_ACEOF |
| 2542 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2543 | _ACEOF |
| 2544 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2545 | cat >>confdefs.h <<_ACEOF |
| 2546 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2547 | _ACEOF |
| 2548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2549 | cat >>confdefs.h <<_ACEOF |
| 2550 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2551 | _ACEOF |
| 2552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2553 | cat >>confdefs.h <<_ACEOF |
| 2554 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2555 | _ACEOF |
| 2556 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2557 | cat >>confdefs.h <<_ACEOF |
| 2558 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2559 | _ACEOF |
| 2560 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2561 | cat >>confdefs.h <<_ACEOF |
| 2562 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2563 | _ACEOF |
| 2564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2565 | |
| 2566 | # 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] | 2567 | # Prefer an explicitly selected file to automatically selected ones. |
| 2568 | ac_site_file1=NONE |
| 2569 | ac_site_file2=NONE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2570 | if test -n "$CONFIG_SITE"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2571 | # We do not want a PATH search for config.site. |
| 2572 | case $CONFIG_SITE in #(( |
| 2573 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2574 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2575 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2576 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2577 | elif test "x$prefix" != xNONE; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2578 | ac_site_file1=$prefix/share/config.site |
| 2579 | ac_site_file2=$prefix/etc/config.site |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2580 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2581 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2582 | ac_site_file2=$ac_default_prefix/etc/config.site |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2583 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2584 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2585 | do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2586 | test "x$ac_site_file" = xNONE && continue |
| 2587 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2589 | $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] | 2590 | sed 's/^/| /' "$ac_site_file" >&5 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2591 | . "$ac_site_file" \ |
| 2592 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2593 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2594 | as_fn_error $? "failed to load site script $ac_site_file |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2595 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2596 | fi |
| 2597 | done |
| 2598 | |
| 2599 | if test -r "$cache_file"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2600 | # Some versions of bash will fail to source /dev/null (special files |
| 2601 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2602 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2604 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2605 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2606 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2607 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2608 | esac |
| 2609 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2610 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2612 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2613 | >$cache_file |
| 2614 | fi |
| 2615 | |
| 2616 | # Check that the precious variables saved in the cache have kept the same |
| 2617 | # value. |
| 2618 | ac_cache_corrupted=false |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2619 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2620 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2621 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2622 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2623 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | case $ac_old_set,$ac_new_set in |
| 2625 | set,) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2627 | $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] | 2628 | ac_cache_corrupted=: ;; |
| 2629 | ,set) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2631 | $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] | 2632 | ac_cache_corrupted=: ;; |
| 2633 | ,);; |
| 2634 | *) |
| 2635 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2636 | # differences in whitespace do not lead to failure. |
| 2637 | ac_old_val_w=`echo x $ac_old_val` |
| 2638 | ac_new_val_w=`echo x $ac_new_val` |
| 2639 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2641 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2642 | ac_cache_corrupted=: |
| 2643 | else |
| 2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2645 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2646 | eval $ac_var=\$ac_old_val |
| 2647 | fi |
| 2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2649 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2651 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2652 | fi;; |
| 2653 | esac |
| 2654 | # Pass precious variables to config.status. |
| 2655 | if test "$ac_new_set" = set; then |
| 2656 | case $ac_new_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2657 | *\'*) 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] | 2658 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2659 | esac |
| 2660 | case " $ac_configure_args " in |
| 2661 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2662 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2663 | esac |
| 2664 | fi |
| 2665 | done |
| 2666 | if $ac_cache_corrupted; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2668 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2670 | $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] | 2671 | 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] | 2672 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2673 | ## -------------------- ## |
| 2674 | ## Main body of script. ## |
| 2675 | ## -------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2676 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2677 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2678 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2679 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2680 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2681 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2682 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2683 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2684 | |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2685 | |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 2686 | |
| 2687 | |
Martin Panter | c5ee3ca | 2016-09-12 01:32:03 +0000 | [diff] [blame] | 2688 | if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2689 | # If we're building out-of-tree, we need to make sure the following |
| 2690 | # resources get picked up before their $srcdir counterparts. |
| 2691 | # Objects/ -> typeslots.inc |
| 2692 | # Include/ -> Python-ast.h, graminit.h |
| 2693 | # Python/ -> importlib.h |
| 2694 | # (A side effect of this is that these resources will automatically be |
| 2695 | # regenerated when building out-of-tree, regardless of whether or not |
| 2696 | # the $srcdir counterpart is up-to-date. This is an acceptable trade |
| 2697 | # off.) |
| 2698 | BASECPPFLAGS="-IObjects -IInclude -IPython" |
| 2699 | else |
| 2700 | BASECPPFLAGS="" |
| 2701 | fi |
| 2702 | |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2703 | |
| 2704 | |
| 2705 | |
| 2706 | |
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 2707 | if test -e $srcdir/.git |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2708 | then |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2709 | # Extract the first word of "git", so it can be a program name with args. |
| 2710 | set dummy git; ac_word=$2 |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2712 | $as_echo_n "checking for $ac_word... " >&6; } |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2713 | if ${ac_cv_prog_HAS_GIT+:} false; then : |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2714 | $as_echo_n "(cached) " >&6 |
| 2715 | else |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2716 | if test -n "$HAS_GIT"; then |
| 2717 | 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] | 2718 | else |
| 2719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2720 | for as_dir in $PATH |
| 2721 | do |
| 2722 | IFS=$as_save_IFS |
| 2723 | test -z "$as_dir" && as_dir=. |
| 2724 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 2725 | 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] | 2726 | ac_cv_prog_HAS_GIT="found" |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2728 | break 2 |
| 2729 | fi |
| 2730 | done |
| 2731 | done |
| 2732 | IFS=$as_save_IFS |
| 2733 | |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2734 | 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] | 2735 | fi |
| 2736 | fi |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2737 | HAS_GIT=$ac_cv_prog_HAS_GIT |
| 2738 | if test -n "$HAS_GIT"; then |
| 2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 |
| 2740 | $as_echo "$HAS_GIT" >&6; } |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2741 | else |
| 2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2743 | $as_echo "no" >&6; } |
| 2744 | fi |
| 2745 | |
| 2746 | |
| 2747 | else |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2748 | HAS_GIT=no-repository |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2749 | fi |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2750 | if test $HAS_GIT = found |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2751 | then |
Ned Deily | 554626a | 2017-03-20 23:41:52 -0400 | [diff] [blame] | 2752 | GITVERSION="git -C \$(srcdir) rev-parse --short HEAD" |
| 2753 | GITTAG="git -C \$(srcdir) describe --all --always --dirty" |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2754 | GITBRANCH="git -C \$(srcdir) name-rev --name-only HEAD" |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2755 | else |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2756 | GITVERSION="" |
| 2757 | GITTAG="" |
| 2758 | GITBRANCH="" |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2759 | fi |
| 2760 | |
| 2761 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2762 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2763 | |
| 2764 | |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2765 | ac_aux_dir= |
| 2766 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2767 | if test -f "$ac_dir/install-sh"; then |
| 2768 | ac_aux_dir=$ac_dir |
| 2769 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2770 | break |
| 2771 | elif test -f "$ac_dir/install.sh"; then |
| 2772 | ac_aux_dir=$ac_dir |
| 2773 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2774 | break |
| 2775 | elif test -f "$ac_dir/shtool"; then |
| 2776 | ac_aux_dir=$ac_dir |
| 2777 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2778 | break |
| 2779 | fi |
| 2780 | done |
| 2781 | if test -z "$ac_aux_dir"; then |
| 2782 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2783 | fi |
| 2784 | |
| 2785 | # These three variables are undocumented and unsupported, |
| 2786 | # and are intended to be withdrawn in a future Autoconf release. |
| 2787 | # They can cause serious problems if a builder's source tree is in a directory |
| 2788 | # whose full name contains unusual characters. |
| 2789 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2790 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2791 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2792 | |
| 2793 | |
| 2794 | # Make sure we can run config.sub. |
| 2795 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2796 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 2797 | |
| 2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2799 | $as_echo_n "checking build system type... " >&6; } |
| 2800 | if ${ac_cv_build+:} false; then : |
| 2801 | $as_echo_n "(cached) " >&6 |
| 2802 | else |
| 2803 | ac_build_alias=$build_alias |
| 2804 | test "x$ac_build_alias" = x && |
| 2805 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2806 | test "x$ac_build_alias" = x && |
| 2807 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 2808 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2809 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 2810 | |
| 2811 | fi |
| 2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2813 | $as_echo "$ac_cv_build" >&6; } |
| 2814 | case $ac_cv_build in |
| 2815 | *-*-*) ;; |
| 2816 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 2817 | esac |
| 2818 | build=$ac_cv_build |
| 2819 | ac_save_IFS=$IFS; IFS='-' |
| 2820 | set x $ac_cv_build |
| 2821 | shift |
| 2822 | build_cpu=$1 |
| 2823 | build_vendor=$2 |
| 2824 | shift; shift |
| 2825 | # Remember, the first character of IFS is used to create $*, |
| 2826 | # except with old shells: |
| 2827 | build_os=$* |
| 2828 | IFS=$ac_save_IFS |
| 2829 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2830 | |
| 2831 | |
| 2832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2833 | $as_echo_n "checking host system type... " >&6; } |
| 2834 | if ${ac_cv_host+:} false; then : |
| 2835 | $as_echo_n "(cached) " >&6 |
| 2836 | else |
| 2837 | if test "x$host_alias" = x; then |
| 2838 | ac_cv_host=$ac_cv_build |
| 2839 | else |
| 2840 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2841 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 2842 | fi |
| 2843 | |
| 2844 | fi |
| 2845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2846 | $as_echo "$ac_cv_host" >&6; } |
| 2847 | case $ac_cv_host in |
| 2848 | *-*-*) ;; |
| 2849 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 2850 | esac |
| 2851 | host=$ac_cv_host |
| 2852 | ac_save_IFS=$IFS; IFS='-' |
| 2853 | set x $ac_cv_host |
| 2854 | shift |
| 2855 | host_cpu=$1 |
| 2856 | host_vendor=$2 |
| 2857 | shift; shift |
| 2858 | # Remember, the first character of IFS is used to create $*, |
| 2859 | # except with old shells: |
| 2860 | host_os=$* |
| 2861 | IFS=$ac_save_IFS |
| 2862 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2863 | |
| 2864 | |
| 2865 | |
doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 2866 | |
| 2867 | |
Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 2868 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile |
| 2869 | rm -f pybuilddir.txt |
| 2870 | |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2871 | for ac_prog in python$PACKAGE_VERSION python3 python |
| 2872 | do |
| 2873 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2874 | set dummy $ac_prog; ac_word=$2 |
| 2875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2876 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2877 | if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then : |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2878 | $as_echo_n "(cached) " >&6 |
| 2879 | else |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2880 | if test -n "$PYTHON_FOR_REGEN"; then |
| 2881 | 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] | 2882 | else |
| 2883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2884 | for as_dir in $PATH |
| 2885 | do |
| 2886 | IFS=$as_save_IFS |
| 2887 | test -z "$as_dir" && as_dir=. |
| 2888 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2889 | 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] | 2890 | ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2892 | break 2 |
| 2893 | fi |
| 2894 | done |
| 2895 | done |
| 2896 | IFS=$as_save_IFS |
| 2897 | |
| 2898 | fi |
| 2899 | fi |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2900 | PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN |
| 2901 | if test -n "$PYTHON_FOR_REGEN"; then |
| 2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 |
| 2903 | $as_echo "$PYTHON_FOR_REGEN" >&6; } |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2904 | else |
| 2905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2906 | $as_echo "no" >&6; } |
| 2907 | fi |
| 2908 | |
| 2909 | |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2910 | test -n "$PYTHON_FOR_REGEN" && break |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2911 | done |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2912 | test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2913 | |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2914 | |
| 2915 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2916 | if test "$cross_compiling" = yes; then |
| 2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 |
| 2918 | $as_echo_n "checking for python interpreter for cross build... " >&6; } |
| 2919 | if test -z "$PYTHON_FOR_BUILD"; then |
| 2920 | for interp in python$PACKAGE_VERSION python3 python; do |
| 2921 | which $interp >/dev/null 2>&1 || continue |
Xavier de Gaye | 4afd143 | 2016-07-07 18:00:22 +0200 | [diff] [blame] | 2922 | 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] | 2923 | break |
| 2924 | fi |
| 2925 | interp= |
| 2926 | done |
| 2927 | if test x$interp = x; then |
| 2928 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 |
| 2929 | fi |
| 2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 |
| 2931 | $as_echo "$interp" >&6; } |
Xavier de Gaye | 92dec54 | 2016-09-11 22:22:24 +0200 | [diff] [blame] | 2932 | 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] | 2933 | fi |
Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 2934 | elif test "$cross_compiling" = maybe; then |
| 2935 | 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] | 2936 | else |
| 2937 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' |
| 2938 | fi |
| 2939 | |
| 2940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2941 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2942 | if test "$prefix" != "/"; then |
| 2943 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 2944 | fi |
| 2945 | |
| 2946 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2947 | |
| 2948 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2949 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 2950 | # with other autoconf-based packages that include Python.h |
| 2951 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 2952 | rm confdefs.h |
| 2953 | mv confdefs.h.new confdefs.h |
| 2954 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2955 | |
Ned Deily | 5489bda | 2018-01-31 17:44:09 -0500 | [diff] [blame] | 2956 | VERSION=3.8 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2957 | |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 2958 | # Version number of Python's own shared library file. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2959 | |
| 2960 | SOVERSION=1.0 |
| 2961 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2962 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 2963 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 2964 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2965 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2966 | |
| 2967 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2968 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2969 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 2970 | # them. |
| 2971 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2972 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2973 | |
| 2974 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2975 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2976 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 2977 | # them. |
| 2978 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2979 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2980 | |
| 2981 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2982 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2983 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 2984 | # them. |
| 2985 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2986 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2987 | |
| 2988 | |
| 2989 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2990 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2991 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2992 | # Arguments passed to configure. |
| 2993 | |
| 2994 | CONFIG_ARGS="$ac_configure_args" |
| 2995 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
| 2997 | $as_echo_n "checking for --enable-universalsdk... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2998 | # Check whether --enable-universalsdk was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2999 | if test "${enable_universalsdk+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3000 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3001 | case $enableval in |
| 3002 | yes) |
Serhiy Storchaka | 88cc339 | 2018-06-04 08:20:25 +0300 | [diff] [blame^] | 3003 | # Locate the best usable SDK, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3004 | # information |
| 3005 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3006 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3007 | then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3008 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 3009 | if test ! -d "${enableval}" |
| 3010 | then |
| 3011 | enableval=/ |
| 3012 | fi |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3013 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3014 | ;; |
| 3015 | esac |
| 3016 | case $enableval in |
| 3017 | no) |
| 3018 | UNIVERSALSDK= |
| 3019 | enable_universalsdk= |
| 3020 | ;; |
| 3021 | *) |
| 3022 | UNIVERSALSDK=$enableval |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3023 | if test ! -d "${UNIVERSALSDK}" |
| 3024 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3025 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3026 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3027 | ;; |
| 3028 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3029 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3030 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3031 | else |
| 3032 | |
| 3033 | UNIVERSALSDK= |
| 3034 | enable_universalsdk= |
| 3035 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3036 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3037 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3038 | if test -n "${UNIVERSALSDK}" |
| 3039 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
| 3041 | $as_echo "${UNIVERSALSDK}" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3042 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3044 | $as_echo "no" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3045 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3046 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3047 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3048 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3049 | ARCH_RUN_32BIT="" |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3050 | |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3051 | # For backward compatibility reasons we prefer to select '32-bit' if available, |
| 3052 | # otherwise use 'intel' |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3053 | UNIVERSAL_ARCHS="32-bit" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3054 | if test "`uname -s`" = "Darwin" |
| 3055 | then |
| 3056 | if test -n "${UNIVERSALSDK}" |
| 3057 | then |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3058 | 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] | 3059 | then |
| 3060 | UNIVERSAL_ARCHS="intel" |
| 3061 | fi |
| 3062 | fi |
| 3063 | fi |
| 3064 | |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3065 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
| 3067 | $as_echo_n "checking for --with-universal-archs... " >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3068 | |
| 3069 | # Check whether --with-universal-archs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3070 | if test "${with_universal_archs+set}" = set; then : |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3071 | withval=$with_universal_archs; |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3072 | UNIVERSAL_ARCHS="$withval" |
| 3073 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3074 | fi |
| 3075 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3076 | if test -n "${UNIVERSALSDK}" |
| 3077 | then |
| 3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 |
| 3079 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } |
| 3080 | else |
| 3081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3082 | $as_echo "no" >&6; } |
| 3083 | fi |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3084 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3085 | |
| 3086 | # Check whether --with-framework-name was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3087 | if test "${with_framework_name+set}" = set; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3088 | withval=$with_framework_name; |
| 3089 | PYTHONFRAMEWORK=${withval} |
| 3090 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 3091 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 3092 | |
| 3093 | else |
| 3094 | |
| 3095 | PYTHONFRAMEWORK=Python |
| 3096 | PYTHONFRAMEWORKDIR=Python.framework |
| 3097 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 3098 | |
| 3099 | fi |
| 3100 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3101 | # Check whether --enable-framework was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3102 | if test "${enable_framework+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3103 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3104 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3105 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3106 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3107 | esac |
| 3108 | case $enableval in |
| 3109 | no) |
| 3110 | PYTHONFRAMEWORK= |
| 3111 | PYTHONFRAMEWORKDIR=no-framework |
| 3112 | PYTHONFRAMEWORKPREFIX= |
| 3113 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3114 | FRAMEWORKINSTALLFIRST= |
| 3115 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3116 | FRAMEWORKALTINSTALLFIRST= |
| 3117 | FRAMEWORKALTINSTALLLAST= |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3118 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3119 | if test "x${prefix}" = "xNONE"; then |
| 3120 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 3121 | else |
| 3122 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3123 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3124 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3125 | ;; |
| 3126 | *) |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3127 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3128 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3129 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3130 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3131 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 3132 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3133 | FRAMEWORKPYTHONW="frameworkpythonw" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3134 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3135 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3136 | if test "x${prefix}" = "xNONE" ; then |
| 3137 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3138 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3139 | else |
| 3140 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3141 | fi |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3142 | |
| 3143 | case "${enableval}" in |
| 3144 | /System*) |
| 3145 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3146 | if test "${prefix}" = "NONE" ; then |
| 3147 | # See below |
| 3148 | FRAMEWORKUNIXTOOLSPREFIX="/usr" |
| 3149 | fi |
| 3150 | ;; |
| 3151 | |
| 3152 | /Library*) |
| 3153 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3154 | ;; |
| 3155 | |
| 3156 | */Library/Frameworks) |
| 3157 | MDIR="`dirname "${enableval}"`" |
| 3158 | MDIR="`dirname "${MDIR}"`" |
| 3159 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" |
| 3160 | |
| 3161 | if test "${prefix}" = "NONE"; then |
| 3162 | # User hasn't specified the |
| 3163 | # --prefix option, but wants to install |
| 3164 | # the framework in a non-default location, |
| 3165 | # ensure that the compatibility links get |
| 3166 | # installed relative to that prefix as well |
| 3167 | # instead of in /usr/local. |
| 3168 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" |
| 3169 | fi |
| 3170 | ;; |
| 3171 | |
| 3172 | *) |
| 3173 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3174 | ;; |
| 3175 | esac |
| 3176 | |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3177 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3178 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3179 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3180 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3181 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3182 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3183 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3184 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3185 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 3186 | |
| 3187 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 3188 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3189 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3190 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3191 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3192 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3193 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3194 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3195 | PYTHONFRAMEWORKPREFIX= |
| 3196 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3197 | FRAMEWORKINSTALLFIRST= |
| 3198 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3199 | FRAMEWORKALTINSTALLFIRST= |
| 3200 | FRAMEWORKALTINSTALLLAST= |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3201 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3202 | if test "x${prefix}" = "xNONE" ; then |
| 3203 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 3204 | else |
| 3205 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3206 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3207 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3208 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3209 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3210 | fi |
| 3211 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3212 | |
| 3213 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3214 | |
| 3215 | |
| 3216 | |
| 3217 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3218 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3219 | |
| 3220 | |
| 3221 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3222 | |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3223 | |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3224 | |
INADA Naoki | a8f8d5b | 2017-06-29 00:31:53 +0900 | [diff] [blame] | 3225 | |
| 3226 | cat >>confdefs.h <<_ACEOF |
INADA Naoki | 6b42eb1 | 2017-06-29 15:31:38 +0900 | [diff] [blame] | 3227 | #define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}" |
INADA Naoki | a8f8d5b | 2017-06-29 00:31:53 +0900 | [diff] [blame] | 3228 | _ACEOF |
| 3229 | |
| 3230 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3231 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3232 | ## AS_HELP_STRING([--with-dyld], |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3233 | ## [Use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3234 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3235 | # Set name for machine-dependent library files |
| 3236 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
| 3238 | $as_echo_n "checking MACHDEP... " >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3239 | if test -z "$MACHDEP" |
| 3240 | then |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3241 | # avoid using uname for cross builds |
| 3242 | if test "$cross_compiling" = yes; then |
doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3243 | # ac_sys_system and ac_sys_release are used for setting |
| 3244 | # a lot of different things including 'define_xopen_source' |
| 3245 | # in the case statement below. |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3246 | case "$host" in |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 3247 | *-*-linux-android*) |
| 3248 | ac_sys_system=Linux-android |
| 3249 | ;; |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3250 | *-*-linux*) |
| 3251 | ac_sys_system=Linux |
| 3252 | ;; |
| 3253 | *-*-cygwin*) |
| 3254 | ac_sys_system=Cygwin |
| 3255 | ;; |
| 3256 | *) |
| 3257 | # for now, limit cross builds to known configurations |
| 3258 | MACHDEP="unknown" |
| 3259 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 |
| 3260 | esac |
| 3261 | ac_sys_release= |
| 3262 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3263 | ac_sys_system=`uname -s` |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3264 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3265 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3266 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3267 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3268 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3269 | fi |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3270 | fi |
| 3271 | ac_md_system=`echo $ac_sys_system | |
| 3272 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 3273 | ac_md_release=`echo $ac_sys_release | |
| 3274 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
| 3275 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3276 | |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3277 | case $MACHDEP in |
Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3278 | linux*) MACHDEP="linux";; |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3279 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3280 | darwin*) MACHDEP="darwin";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3281 | '') MACHDEP="unknown";; |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3282 | esac |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3283 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3284 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3285 | |
| 3286 | if test "$cross_compiling" = yes; then |
| 3287 | case "$host" in |
| 3288 | *-*-linux*) |
| 3289 | case "$host_cpu" in |
| 3290 | arm*) |
| 3291 | _host_cpu=arm |
| 3292 | ;; |
| 3293 | *) |
| 3294 | _host_cpu=$host_cpu |
| 3295 | esac |
| 3296 | ;; |
| 3297 | *-*-cygwin*) |
| 3298 | _host_cpu= |
| 3299 | ;; |
| 3300 | *) |
| 3301 | # for now, limit cross builds to known configurations |
| 3302 | MACHDEP="unknown" |
| 3303 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 |
| 3304 | esac |
| 3305 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" |
| 3306 | fi |
| 3307 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3308 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 3309 | # disable features if it is defined, without any means to access these |
| 3310 | # features as extensions. For these systems, we skip the definition of |
| 3311 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 3312 | # some feature, make sure there is no alternative way to access this |
| 3313 | # feature. Also, when using wildcards, make sure you have verified the |
| 3314 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 3315 | # wildcard, and that the wildcard does not include future systems |
| 3316 | # (which may remove their limitations). |
| 3317 | case $ac_sys_system/$ac_sys_release in |
| 3318 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 3319 | # 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] | 3320 | # 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] | 3321 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
| 3322 | # OpenBSD 4.6, but is fixed in 4.7. |
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3323 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3324 | define_xopen_source=no |
| 3325 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3326 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3327 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3328 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3329 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3330 | |
| 3331 | ;; |
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3332 | OpenBSD/*) |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3333 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3334 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3335 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3336 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3337 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3338 | |
| 3339 | ;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3340 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 3341 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 3342 | # Marc Recht |
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3343 | 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] | 3344 | define_xopen_source=no;; |
Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3345 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a |
| 3346 | # request to enable features supported by the standard as a request |
| 3347 | # to disable features not supported by the standard. The best way |
| 3348 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out |
| 3349 | # entirely and define __EXTENSIONS__ instead. |
| 3350 | SunOS/*) |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3351 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3352 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 3353 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3354 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3355 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3356 | define_xopen_source=no;; |
| 3357 | # 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] | 3358 | # 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] | 3359 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3360 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 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 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3425 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 3426 | # it may influence the way we can build extensions, so distutils |
| 3427 | # needs to check it |
| 3428 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3429 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3430 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3431 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3432 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3433 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3434 | |
| 3435 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 3436 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 3437 | # just to get things to compile and link. Users are free to override OPT |
| 3438 | # when running configure or make. The build should not break if they do. |
| 3439 | # BASECFLAGS should generally not be messed with, however. |
| 3440 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3441 | # If the user switches compilers, we can't believe the cache |
| 3442 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 3443 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3444 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3445 | (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] | 3446 | fi |
| 3447 | |
Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3448 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 |
| 3449 | # when the compiler supports them, but we don't always want -O2, and |
| 3450 | # we set -g later. |
| 3451 | if test -z "$CFLAGS"; then |
| 3452 | CFLAGS= |
| 3453 | fi |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3454 | |
| 3455 | if test "$ac_sys_system" = "Darwin" |
| 3456 | then |
| 3457 | # Compiler selection on MacOSX is more complicated than |
Serhiy Storchaka | 88cc339 | 2018-06-04 08:20:25 +0300 | [diff] [blame^] | 3458 | # AC_PROG_CC can handle, see Mac/README for more |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3459 | # information |
| 3460 | if test -z "${CC}" |
| 3461 | then |
| 3462 | found_gcc= |
| 3463 | found_clang= |
| 3464 | as_save_IFS=$IFS; IFS=: |
| 3465 | for as_dir in $PATH |
| 3466 | do |
| 3467 | IFS=$as_save_IFS |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3468 | if test -x "${as_dir}/gcc"; then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3469 | if test -z "${found_gcc}"; then |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3470 | found_gcc="${as_dir}/gcc" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3471 | fi |
| 3472 | fi |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3473 | if test -x "${as_dir}/clang"; then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3474 | if test -z "${found_clang}"; then |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3475 | found_clang="${as_dir}/clang" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3476 | fi |
| 3477 | fi |
| 3478 | done |
| 3479 | IFS=$as_save_IFS |
| 3480 | |
| 3481 | if test -n "$found_gcc" -a -n "$found_clang" |
| 3482 | then |
| 3483 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" |
| 3484 | then |
| 3485 | { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 |
| 3486 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} |
| 3487 | CC="$found_clang" |
| 3488 | CXX="$found_clang++" |
| 3489 | fi |
| 3490 | |
| 3491 | |
| 3492 | elif test -z "$found_gcc" -a -n "$found_clang" |
| 3493 | then |
| 3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 |
| 3495 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} |
| 3496 | CC="$found_clang" |
| 3497 | CXX="$found_clang++" |
| 3498 | |
| 3499 | elif test -z "$found_gcc" -a -z "$found_clang" |
| 3500 | then |
| 3501 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` |
| 3502 | if test -n "${found_clang}" |
| 3503 | then |
| 3504 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 |
| 3505 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} |
| 3506 | CC="${found_clang}" |
| 3507 | CXX="`/usr/bin/xcrun -find clang++`" |
| 3508 | |
| 3509 | # else: use default behaviour |
| 3510 | fi |
| 3511 | fi |
| 3512 | fi |
| 3513 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3514 | ac_ext=c |
| 3515 | ac_cpp='$CPP $CPPFLAGS' |
| 3516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3519 | if test -n "$ac_tool_prefix"; then |
| 3520 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3521 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3523 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3524 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3525 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3526 | else |
| 3527 | if test -n "$CC"; then |
| 3528 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3531 | for as_dir in $PATH |
| 3532 | do |
| 3533 | IFS=$as_save_IFS |
| 3534 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3535 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3536 | 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] | 3537 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3538 | $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] | 3539 | break 2 |
| 3540 | fi |
| 3541 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3542 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3543 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3544 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3545 | fi |
| 3546 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3547 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3548 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3550 | $as_echo "$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3551 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3553 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3554 | fi |
| 3555 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3556 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3557 | fi |
| 3558 | if test -z "$ac_cv_prog_CC"; then |
| 3559 | ac_ct_CC=$CC |
| 3560 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3561 | set dummy gcc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3563 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3564 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3565 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 | else |
| 3567 | if test -n "$ac_ct_CC"; then |
| 3568 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3569 | else |
| 3570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3571 | for as_dir in $PATH |
| 3572 | do |
| 3573 | IFS=$as_save_IFS |
| 3574 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3575 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3576 | 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] | 3577 | ac_cv_prog_ac_ct_CC="gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3578 | $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] | 3579 | break 2 |
| 3580 | fi |
| 3581 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3582 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3583 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3584 | |
| 3585 | fi |
| 3586 | fi |
| 3587 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3588 | if test -n "$ac_ct_CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3590 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3591 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3593 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3594 | fi |
| 3595 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3596 | if test "x$ac_ct_CC" = x; then |
| 3597 | CC="" |
| 3598 | else |
| 3599 | case $cross_compiling:$ac_tool_warned in |
| 3600 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3601 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3602 | $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] | 3603 | ac_tool_warned=yes ;; |
| 3604 | esac |
| 3605 | CC=$ac_ct_CC |
| 3606 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3607 | else |
| 3608 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3609 | fi |
| 3610 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3611 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3612 | if test -n "$ac_tool_prefix"; then |
| 3613 | # 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] | 3614 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3616 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3617 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3618 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3619 | else |
| 3620 | if test -n "$CC"; then |
| 3621 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3622 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3624 | for as_dir in $PATH |
| 3625 | do |
| 3626 | IFS=$as_save_IFS |
| 3627 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3628 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3629 | 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] | 3630 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3631 | $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] | 3632 | break 2 |
| 3633 | fi |
| 3634 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3635 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3636 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3637 | |
| 3638 | fi |
| 3639 | fi |
| 3640 | CC=$ac_cv_prog_CC |
| 3641 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3643 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3644 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3646 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3647 | fi |
| 3648 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3650 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3651 | fi |
| 3652 | if test -z "$CC"; then |
| 3653 | # Extract the first word of "cc", so it can be a program name with args. |
| 3654 | set dummy cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3656 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3657 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3658 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3659 | else |
| 3660 | if test -n "$CC"; then |
| 3661 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3662 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3663 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3665 | for as_dir in $PATH |
| 3666 | do |
| 3667 | IFS=$as_save_IFS |
| 3668 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3669 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3670 | 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] | 3671 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3672 | ac_prog_rejected=yes |
| 3673 | continue |
| 3674 | fi |
| 3675 | ac_cv_prog_CC="cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3676 | $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] | 3677 | break 2 |
| 3678 | fi |
| 3679 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3680 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3681 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3682 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3683 | if test $ac_prog_rejected = yes; then |
| 3684 | # We found a bogon in the path, so make sure we never use it. |
| 3685 | set dummy $ac_cv_prog_CC |
| 3686 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3687 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3688 | # We chose a different compiler from the bogus one. |
| 3689 | # However, it has the same basename, so the bogon will be chosen |
| 3690 | # first if we set CC to just the basename; use the full file name. |
| 3691 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3692 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3693 | fi |
| 3694 | fi |
| 3695 | fi |
| 3696 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3697 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3698 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3700 | $as_echo "$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3701 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3703 | $as_echo "no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3704 | fi |
| 3705 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3706 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3707 | fi |
| 3708 | if test -z "$CC"; then |
| 3709 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3710 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3711 | do |
| 3712 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3713 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3715 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3716 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3717 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3718 | else |
| 3719 | if test -n "$CC"; then |
| 3720 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3721 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3723 | for as_dir in $PATH |
| 3724 | do |
| 3725 | IFS=$as_save_IFS |
| 3726 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3727 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3728 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3730 | $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] | 3731 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3732 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3733 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3734 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3735 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3736 | |
| 3737 | fi |
| 3738 | fi |
| 3739 | CC=$ac_cv_prog_CC |
| 3740 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3742 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3743 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3745 | $as_echo "no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3746 | fi |
| 3747 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3749 | test -n "$CC" && break |
| 3750 | done |
| 3751 | fi |
| 3752 | if test -z "$CC"; then |
| 3753 | ac_ct_CC=$CC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3754 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3755 | do |
| 3756 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3757 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3759 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3760 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3761 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3762 | else |
| 3763 | if test -n "$ac_ct_CC"; then |
| 3764 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3765 | else |
| 3766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3767 | for as_dir in $PATH |
| 3768 | do |
| 3769 | IFS=$as_save_IFS |
| 3770 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3771 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3772 | 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] | 3773 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3774 | $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] | 3775 | break 2 |
| 3776 | fi |
| 3777 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3778 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3779 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3781 | fi |
| 3782 | fi |
| 3783 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3784 | if test -n "$ac_ct_CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3786 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3787 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3789 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3790 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3791 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3793 | test -n "$ac_ct_CC" && break |
| 3794 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3795 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3796 | if test "x$ac_ct_CC" = x; then |
| 3797 | CC="" |
| 3798 | else |
| 3799 | case $cross_compiling:$ac_tool_warned in |
| 3800 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3801 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3802 | $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] | 3803 | ac_tool_warned=yes ;; |
| 3804 | esac |
| 3805 | CC=$ac_ct_CC |
| 3806 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3807 | fi |
| 3808 | |
| 3809 | fi |
| 3810 | |
| 3811 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3812 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3813 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3814 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3815 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3816 | |
| 3817 | # Provide some information about the compiler. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3818 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3819 | set X $ac_compile |
| 3820 | ac_compiler=$2 |
| 3821 | for ac_option in --version -v -V -qversion; do |
| 3822 | { { ac_try="$ac_compiler $ac_option >&5" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3823 | case "(($ac_try" in |
| 3824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3825 | *) ac_try_echo=$ac_try;; |
| 3826 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3827 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3828 | $as_echo "$ac_try_echo"; } >&5 |
| 3829 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3830 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3831 | if test -s conftest.err; then |
| 3832 | sed '10a\ |
| 3833 | ... rest of stderr output deleted ... |
| 3834 | 10q' conftest.err >conftest.er1 |
| 3835 | cat conftest.er1 >&5 |
| 3836 | fi |
| 3837 | rm -f conftest.er1 conftest.err |
| 3838 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3839 | test $ac_status = 0; } |
| 3840 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3841 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3843 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3845 | int |
| 3846 | main () |
| 3847 | { |
| 3848 | |
| 3849 | ; |
| 3850 | return 0; |
| 3851 | } |
| 3852 | _ACEOF |
| 3853 | ac_clean_files_save=$ac_clean_files |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3854 | 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] | 3855 | # Try to create an executable without -o first, disregard a.out. |
| 3856 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3857 | # of exeext. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3859 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3860 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3861 | |
| 3862 | # The possible output files: |
| 3863 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3864 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3865 | ac_rmfiles= |
| 3866 | for ac_file in $ac_files |
| 3867 | do |
| 3868 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3869 | *.$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] | 3870 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3871 | esac |
| 3872 | done |
| 3873 | rm -f $ac_rmfiles |
| 3874 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3875 | if { { ac_try="$ac_link_default" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3876 | case "(($ac_try" in |
| 3877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3878 | *) ac_try_echo=$ac_try;; |
| 3879 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3880 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3881 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3882 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3883 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3884 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3885 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3886 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3887 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3888 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3889 | # so that the user can short-circuit this test for compilers unknown to |
| 3890 | # Autoconf. |
| 3891 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3892 | do |
| 3893 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3894 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3895 | *.$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] | 3896 | ;; |
| 3897 | [ab].out ) |
| 3898 | # We found the default executable, but exeext='' is most |
| 3899 | # certainly right. |
| 3900 | break;; |
| 3901 | *.* ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3902 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3903 | then :; else |
| 3904 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3905 | fi |
| 3906 | # We set ac_cv_exeext here because the later test for it is not |
| 3907 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3908 | # argument, so we may need to know it at that point already. |
| 3909 | # Even if this section looks crufty: it has the advantage of |
| 3910 | # actually working. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3911 | break;; |
| 3912 | * ) |
| 3913 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3914 | esac |
| 3915 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3916 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3917 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3918 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3919 | ac_file='' |
| 3920 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3921 | if test -z "$ac_file"; then : |
| 3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3923 | $as_echo "no" >&6; } |
| 3924 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3926 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3927 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3928 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3929 | as_fn_error 77 "C compiler cannot create executables |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3930 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3931 | else |
| 3932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3933 | $as_echo "yes" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3934 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3936 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3938 | $as_echo "$ac_file" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3939 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3940 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3941 | 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] | 3942 | ac_clean_files=$ac_clean_files_save |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3944 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3945 | if { { ac_try="$ac_link" |
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") 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 | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3956 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3957 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3958 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3959 | # `rm'. |
| 3960 | for ac_file in conftest.exe conftest conftest.*; do |
| 3961 | test -f "$ac_file" || continue |
| 3962 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3963 | *.$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] | 3964 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3965 | break;; |
| 3966 | * ) break;; |
| 3967 | esac |
| 3968 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3969 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3970 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3971 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3972 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3973 | See \`config.log' for more details" "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3974 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3975 | rm -f conftest conftest$ac_cv_exeext |
| 3976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3977 | $as_echo "$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3978 | |
| 3979 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3980 | EXEEXT=$ac_cv_exeext |
| 3981 | ac_exeext=$EXEEXT |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3983 | /* end confdefs.h. */ |
| 3984 | #include <stdio.h> |
| 3985 | int |
| 3986 | main () |
| 3987 | { |
| 3988 | FILE *f = fopen ("conftest.out", "w"); |
| 3989 | return ferror (f) || fclose (f) != 0; |
| 3990 | |
| 3991 | ; |
| 3992 | return 0; |
| 3993 | } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3994 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3995 | ac_clean_files="$ac_clean_files conftest.out" |
| 3996 | # Check that the compiler produces executables we can run. If not, either |
| 3997 | # the compiler is broken, or we cross compile. |
| 3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3999 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 4000 | if test "$cross_compiling" != yes; then |
| 4001 | { { ac_try="$ac_link" |
| 4002 | case "(($ac_try" in |
| 4003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4004 | *) ac_try_echo=$ac_try;; |
| 4005 | esac |
| 4006 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4007 | $as_echo "$ac_try_echo"; } >&5 |
| 4008 | (eval "$ac_link") 2>&5 |
| 4009 | ac_status=$? |
| 4010 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4011 | test $ac_status = 0; } |
| 4012 | if { ac_try='./conftest$ac_cv_exeext' |
| 4013 | { { case "(($ac_try" in |
| 4014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4015 | *) ac_try_echo=$ac_try;; |
| 4016 | esac |
| 4017 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4018 | $as_echo "$ac_try_echo"; } >&5 |
| 4019 | (eval "$ac_try") 2>&5 |
| 4020 | ac_status=$? |
| 4021 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4022 | test $ac_status = 0; }; }; then |
| 4023 | cross_compiling=no |
| 4024 | else |
| 4025 | if test "$cross_compiling" = maybe; then |
| 4026 | cross_compiling=yes |
| 4027 | else |
| 4028 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4029 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4030 | as_fn_error $? "cannot run C compiled programs. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4031 | If you meant to cross compile, use \`--host'. |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4032 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4033 | fi |
| 4034 | fi |
| 4035 | fi |
| 4036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4037 | $as_echo "$cross_compiling" >&6; } |
| 4038 | |
| 4039 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4040 | ac_clean_files=$ac_clean_files_save |
| 4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4042 | $as_echo_n "checking for suffix of object files... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4043 | if ${ac_cv_objext+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4044 | $as_echo_n "(cached) " >&6 |
| 4045 | else |
| 4046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4047 | /* end confdefs.h. */ |
| 4048 | |
| 4049 | int |
| 4050 | main () |
| 4051 | { |
| 4052 | |
| 4053 | ; |
| 4054 | return 0; |
| 4055 | } |
| 4056 | _ACEOF |
| 4057 | rm -f conftest.o conftest.obj |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4058 | if { { ac_try="$ac_compile" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4059 | case "(($ac_try" in |
| 4060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4061 | *) ac_try_echo=$ac_try;; |
| 4062 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4063 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4064 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4065 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4066 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4067 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4068 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4069 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4070 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4071 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4072 | *.$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] | 4073 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4074 | break;; |
| 4075 | esac |
| 4076 | done |
| 4077 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4078 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4080 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4081 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4082 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4083 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4084 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4085 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4086 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4087 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4089 | $as_echo "$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4090 | OBJEXT=$ac_cv_objext |
| 4091 | ac_objext=$OBJEXT |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4093 | $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] | 4094 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4095 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4096 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4098 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4099 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4100 | int |
| 4101 | main () |
| 4102 | { |
| 4103 | #ifndef __GNUC__ |
| 4104 | choke me |
| 4105 | #endif |
| 4106 | |
| 4107 | ; |
| 4108 | return 0; |
| 4109 | } |
| 4110 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4111 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4112 | ac_compiler_gnu=yes |
| 4113 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4114 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4115 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4116 | 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] | 4117 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4118 | |
| 4119 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4121 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4122 | if test $ac_compiler_gnu = yes; then |
| 4123 | GCC=yes |
| 4124 | else |
| 4125 | GCC= |
| 4126 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4127 | ac_test_CFLAGS=${CFLAGS+set} |
| 4128 | ac_save_CFLAGS=$CFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4130 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4131 | if ${ac_cv_prog_cc_g+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4132 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4133 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4134 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4135 | ac_c_werror_flag=yes |
| 4136 | ac_cv_prog_cc_g=no |
| 4137 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4139 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4141 | int |
| 4142 | main () |
| 4143 | { |
| 4144 | |
| 4145 | ; |
| 4146 | return 0; |
| 4147 | } |
| 4148 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4149 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4150 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4151 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4152 | CFLAGS="" |
| 4153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4154 | /* end confdefs.h. */ |
| 4155 | |
| 4156 | int |
| 4157 | main () |
| 4158 | { |
| 4159 | |
| 4160 | ; |
| 4161 | return 0; |
| 4162 | } |
| 4163 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4164 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4165 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4166 | else |
| 4167 | ac_c_werror_flag=$ac_save_c_werror_flag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4168 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4170 | /* end confdefs.h. */ |
| 4171 | |
| 4172 | int |
| 4173 | main () |
| 4174 | { |
| 4175 | |
| 4176 | ; |
| 4177 | return 0; |
| 4178 | } |
| 4179 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4180 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4181 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4182 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4184 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4186 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4188 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 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_prog_cc_g" >&5 |
| 4191 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4192 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4193 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4194 | elif test $ac_cv_prog_cc_g = yes; then |
| 4195 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4196 | CFLAGS="-g -O2" |
| 4197 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4198 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4199 | fi |
| 4200 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4201 | if test "$GCC" = yes; then |
| 4202 | CFLAGS="-O2" |
| 4203 | else |
| 4204 | CFLAGS= |
| 4205 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4206 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4208 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4209 | if ${ac_cv_prog_cc_c89+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4210 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4211 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4212 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4213 | ac_save_CC=$CC |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4215 | /* end confdefs.h. */ |
| 4216 | #include <stdarg.h> |
| 4217 | #include <stdio.h> |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4218 | struct stat; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4219 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4220 | struct buf { int x; }; |
| 4221 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4222 | static char *e (p, i) |
| 4223 | char **p; |
| 4224 | int i; |
| 4225 | { |
| 4226 | return p[i]; |
| 4227 | } |
| 4228 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4229 | { |
| 4230 | char *s; |
| 4231 | va_list v; |
| 4232 | va_start (v,p); |
| 4233 | s = g (p, va_arg (v,int)); |
| 4234 | va_end (v); |
| 4235 | return s; |
| 4236 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4237 | |
| 4238 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4239 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4240 | These don't provoke an error unfortunately, instead are silently treated |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4241 | 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] | 4242 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4243 | 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] | 4244 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4245 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4246 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4247 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4248 | inside strings and character constants. */ |
| 4249 | #define FOO(x) 'x' |
| 4250 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4251 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4252 | int test (int i, double x); |
| 4253 | struct s1 {int (*f) (int a);}; |
| 4254 | struct s2 {int (*f) (double a);}; |
| 4255 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4256 | int argc; |
| 4257 | char **argv; |
| 4258 | int |
| 4259 | main () |
| 4260 | { |
| 4261 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4262 | ; |
| 4263 | return 0; |
| 4264 | } |
| 4265 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4266 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4267 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4268 | do |
| 4269 | CC="$ac_save_CC $ac_arg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4270 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4271 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4272 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4273 | rm -f core conftest.err conftest.$ac_objext |
| 4274 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4275 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4276 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4277 | CC=$ac_save_CC |
| 4278 | |
| 4279 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4280 | # AC_CACHE_VAL |
| 4281 | case "x$ac_cv_prog_cc_c89" in |
| 4282 | x) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4284 | $as_echo "none needed" >&6; } ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4285 | xno) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4287 | $as_echo "unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4288 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4289 | CC="$CC $ac_cv_prog_cc_c89" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4291 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4292 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4293 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4294 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4295 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4297 | ac_ext=c |
| 4298 | ac_cpp='$CPP $CPPFLAGS' |
| 4299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4302 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4303 | ac_ext=c |
| 4304 | ac_cpp='$CPP $CPPFLAGS' |
| 4305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4309 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 4310 | # On Suns, sometimes $CPP names a directory. |
| 4311 | if test -n "$CPP" && test -d "$CPP"; then |
| 4312 | CPP= |
| 4313 | fi |
| 4314 | if test -z "$CPP"; then |
| 4315 | if ${ac_cv_prog_CPP+:} false; then : |
| 4316 | $as_echo_n "(cached) " >&6 |
| 4317 | else |
| 4318 | # Double quotes because CPP needs to be expanded |
| 4319 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4320 | do |
| 4321 | ac_preproc_ok=false |
| 4322 | for ac_c_preproc_warn_flag in '' yes |
| 4323 | do |
| 4324 | # Use a header file that comes with gcc, so configuring glibc |
| 4325 | # with a fresh cross-compiler works. |
| 4326 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4327 | # <limits.h> exists even on freestanding compilers. |
| 4328 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4329 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4331 | /* end confdefs.h. */ |
| 4332 | #ifdef __STDC__ |
| 4333 | # include <limits.h> |
| 4334 | #else |
| 4335 | # include <assert.h> |
| 4336 | #endif |
| 4337 | Syntax error |
| 4338 | _ACEOF |
| 4339 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4340 | |
| 4341 | else |
| 4342 | # Broken: fails on valid input. |
| 4343 | continue |
| 4344 | fi |
| 4345 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4346 | |
| 4347 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4348 | # can be detected and how. |
| 4349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4350 | /* end confdefs.h. */ |
| 4351 | #include <ac_nonexistent.h> |
| 4352 | _ACEOF |
| 4353 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4354 | # Broken: success on invalid input. |
| 4355 | continue |
| 4356 | else |
| 4357 | # Passes both tests. |
| 4358 | ac_preproc_ok=: |
| 4359 | break |
| 4360 | fi |
| 4361 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4362 | |
| 4363 | done |
| 4364 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4365 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4366 | if $ac_preproc_ok; then : |
| 4367 | break |
| 4368 | fi |
| 4369 | |
| 4370 | done |
| 4371 | ac_cv_prog_CPP=$CPP |
| 4372 | |
| 4373 | fi |
| 4374 | CPP=$ac_cv_prog_CPP |
| 4375 | else |
| 4376 | ac_cv_prog_CPP=$CPP |
| 4377 | fi |
| 4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4379 | $as_echo "$CPP" >&6; } |
| 4380 | ac_preproc_ok=false |
| 4381 | for ac_c_preproc_warn_flag in '' yes |
| 4382 | do |
| 4383 | # Use a header file that comes with gcc, so configuring glibc |
| 4384 | # with a fresh cross-compiler works. |
| 4385 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4386 | # <limits.h> exists even on freestanding compilers. |
| 4387 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4388 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4390 | /* end confdefs.h. */ |
| 4391 | #ifdef __STDC__ |
| 4392 | # include <limits.h> |
| 4393 | #else |
| 4394 | # include <assert.h> |
| 4395 | #endif |
| 4396 | Syntax error |
| 4397 | _ACEOF |
| 4398 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4399 | |
| 4400 | else |
| 4401 | # Broken: fails on valid input. |
| 4402 | continue |
| 4403 | fi |
| 4404 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4405 | |
| 4406 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4407 | # can be detected and how. |
| 4408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4409 | /* end confdefs.h. */ |
| 4410 | #include <ac_nonexistent.h> |
| 4411 | _ACEOF |
| 4412 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4413 | # Broken: success on invalid input. |
| 4414 | continue |
| 4415 | else |
| 4416 | # Passes both tests. |
| 4417 | ac_preproc_ok=: |
| 4418 | break |
| 4419 | fi |
| 4420 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4421 | |
| 4422 | done |
| 4423 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4424 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4425 | if $ac_preproc_ok; then : |
| 4426 | |
| 4427 | else |
| 4428 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4429 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4430 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4431 | See \`config.log' for more details" "$LINENO" 5; } |
| 4432 | fi |
| 4433 | |
| 4434 | ac_ext=c |
| 4435 | ac_cpp='$CPP $CPPFLAGS' |
| 4436 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4437 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4438 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4439 | |
| 4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4441 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4442 | if ${ac_cv_path_GREP+:} false; then : |
| 4443 | $as_echo_n "(cached) " >&6 |
| 4444 | else |
| 4445 | if test -z "$GREP"; then |
| 4446 | ac_path_GREP_found=false |
| 4447 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4449 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4450 | do |
| 4451 | IFS=$as_save_IFS |
| 4452 | test -z "$as_dir" && as_dir=. |
| 4453 | for ac_prog in grep ggrep; do |
| 4454 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4455 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4456 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4457 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4458 | # Check for GNU $ac_path_GREP |
| 4459 | case `"$ac_path_GREP" --version 2>&1` in |
| 4460 | *GNU*) |
| 4461 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4462 | *) |
| 4463 | ac_count=0 |
| 4464 | $as_echo_n 0123456789 >"conftest.in" |
| 4465 | while : |
| 4466 | do |
| 4467 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4468 | mv "conftest.tmp" "conftest.in" |
| 4469 | cp "conftest.in" "conftest.nl" |
| 4470 | $as_echo 'GREP' >> "conftest.nl" |
| 4471 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4472 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4473 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4474 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4475 | # Best one so far, save it but keep looking for a better one |
| 4476 | ac_cv_path_GREP="$ac_path_GREP" |
| 4477 | ac_path_GREP_max=$ac_count |
| 4478 | fi |
| 4479 | # 10*(2^10) chars as input seems more than enough |
| 4480 | test $ac_count -gt 10 && break |
| 4481 | done |
| 4482 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4483 | esac |
| 4484 | |
| 4485 | $ac_path_GREP_found && break 3 |
| 4486 | done |
| 4487 | done |
| 4488 | done |
| 4489 | IFS=$as_save_IFS |
| 4490 | if test -z "$ac_cv_path_GREP"; then |
| 4491 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4492 | fi |
| 4493 | else |
| 4494 | ac_cv_path_GREP=$GREP |
| 4495 | fi |
| 4496 | |
| 4497 | fi |
| 4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4499 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4500 | GREP="$ac_cv_path_GREP" |
| 4501 | |
| 4502 | |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4504 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 4505 | if ${ac_cv_path_SED+:} false; then : |
| 4506 | $as_echo_n "(cached) " >&6 |
| 4507 | else |
| 4508 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4509 | for ac_i in 1 2 3 4 5 6 7; do |
| 4510 | ac_script="$ac_script$as_nl$ac_script" |
| 4511 | done |
| 4512 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4513 | { ac_script=; unset ac_script;} |
| 4514 | if test -z "$SED"; then |
| 4515 | ac_path_SED_found=false |
| 4516 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4518 | for as_dir in $PATH |
| 4519 | do |
| 4520 | IFS=$as_save_IFS |
| 4521 | test -z "$as_dir" && as_dir=. |
| 4522 | for ac_prog in sed gsed; do |
| 4523 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4524 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4525 | as_fn_executable_p "$ac_path_SED" || continue |
| 4526 | # Check for GNU ac_path_SED and select it if it is found. |
| 4527 | # Check for GNU $ac_path_SED |
| 4528 | case `"$ac_path_SED" --version 2>&1` in |
| 4529 | *GNU*) |
| 4530 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4531 | *) |
| 4532 | ac_count=0 |
| 4533 | $as_echo_n 0123456789 >"conftest.in" |
| 4534 | while : |
| 4535 | do |
| 4536 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4537 | mv "conftest.tmp" "conftest.in" |
| 4538 | cp "conftest.in" "conftest.nl" |
| 4539 | $as_echo '' >> "conftest.nl" |
| 4540 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4541 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4542 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4543 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4544 | # Best one so far, save it but keep looking for a better one |
| 4545 | ac_cv_path_SED="$ac_path_SED" |
| 4546 | ac_path_SED_max=$ac_count |
| 4547 | fi |
| 4548 | # 10*(2^10) chars as input seems more than enough |
| 4549 | test $ac_count -gt 10 && break |
| 4550 | done |
| 4551 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4552 | esac |
| 4553 | |
| 4554 | $ac_path_SED_found && break 3 |
| 4555 | done |
| 4556 | done |
| 4557 | done |
| 4558 | IFS=$as_save_IFS |
| 4559 | if test -z "$ac_cv_path_SED"; then |
| 4560 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 4561 | fi |
| 4562 | else |
| 4563 | ac_cv_path_SED=$SED |
| 4564 | fi |
| 4565 | |
| 4566 | fi |
| 4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4568 | $as_echo "$ac_cv_path_SED" >&6; } |
| 4569 | SED="$ac_cv_path_SED" |
| 4570 | rm -f conftest.sed |
| 4571 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4572 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4573 | |
| 4574 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
| 4576 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4577 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4578 | # Check whether --with-cxx_main was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4579 | if test "${with_cxx_main+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4580 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4581 | |
| 4582 | case $withval in |
| 4583 | no) with_cxx_main=no |
| 4584 | MAINCC='$(CC)';; |
| 4585 | yes) with_cxx_main=yes |
| 4586 | MAINCC='$(CXX)';; |
| 4587 | *) with_cxx_main=yes |
| 4588 | MAINCC=$withval |
| 4589 | if test -z "$CXX" |
| 4590 | then |
| 4591 | CXX=$withval |
| 4592 | fi;; |
| 4593 | esac |
| 4594 | else |
| 4595 | |
| 4596 | with_cxx_main=no |
| 4597 | MAINCC='$(CC)' |
| 4598 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4599 | fi |
| 4600 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
| 4602 | $as_echo "$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4603 | |
| 4604 | preset_cxx="$CXX" |
| 4605 | if test -z "$CXX" |
| 4606 | then |
| 4607 | case "$CC" in |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4608 | gcc) if test -n "$ac_tool_prefix"; then |
| 4609 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. |
| 4610 | set dummy ${ac_tool_prefix}g++; ac_word=$2 |
| 4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4612 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4613 | if ${ac_cv_path_CXX+:} false; then : |
| 4614 | $as_echo_n "(cached) " >&6 |
| 4615 | else |
| 4616 | case $CXX in |
| 4617 | [\\/]* | ?:[\\/]*) |
| 4618 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4619 | ;; |
| 4620 | *) |
| 4621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4622 | for as_dir in notfound |
| 4623 | do |
| 4624 | IFS=$as_save_IFS |
| 4625 | test -z "$as_dir" && as_dir=. |
| 4626 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4628 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4630 | break 2 |
| 4631 | fi |
| 4632 | done |
| 4633 | done |
| 4634 | IFS=$as_save_IFS |
| 4635 | |
| 4636 | ;; |
| 4637 | esac |
| 4638 | fi |
| 4639 | CXX=$ac_cv_path_CXX |
| 4640 | if test -n "$CXX"; then |
| 4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4642 | $as_echo "$CXX" >&6; } |
| 4643 | else |
| 4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4645 | $as_echo "no" >&6; } |
| 4646 | fi |
| 4647 | |
| 4648 | |
| 4649 | fi |
| 4650 | if test -z "$ac_cv_path_CXX"; then |
| 4651 | ac_pt_CXX=$CXX |
| 4652 | # Extract the first word of "g++", so it can be a program name with args. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4653 | set dummy g++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4655 | $as_echo_n "checking for $ac_word... " >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4656 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
| 4657 | $as_echo_n "(cached) " >&6 |
| 4658 | else |
| 4659 | case $ac_pt_CXX in |
| 4660 | [\\/]* | ?:[\\/]*) |
| 4661 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
| 4662 | ;; |
| 4663 | *) |
| 4664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4665 | for as_dir in notfound |
| 4666 | do |
| 4667 | IFS=$as_save_IFS |
| 4668 | test -z "$as_dir" && as_dir=. |
| 4669 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4670 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4671 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4673 | break 2 |
| 4674 | fi |
| 4675 | done |
| 4676 | done |
| 4677 | IFS=$as_save_IFS |
| 4678 | |
| 4679 | ;; |
| 4680 | esac |
| 4681 | fi |
| 4682 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 4683 | if test -n "$ac_pt_CXX"; then |
| 4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 4685 | $as_echo "$ac_pt_CXX" >&6; } |
| 4686 | else |
| 4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4688 | $as_echo "no" >&6; } |
| 4689 | fi |
| 4690 | |
| 4691 | if test "x$ac_pt_CXX" = x; then |
| 4692 | CXX="g++" |
| 4693 | else |
| 4694 | case $cross_compiling:$ac_tool_warned in |
| 4695 | yes:) |
| 4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4697 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4698 | ac_tool_warned=yes ;; |
| 4699 | esac |
| 4700 | CXX=$ac_pt_CXX |
| 4701 | fi |
| 4702 | else |
| 4703 | CXX="$ac_cv_path_CXX" |
| 4704 | fi |
| 4705 | ;; |
| 4706 | cc) if test -n "$ac_tool_prefix"; then |
| 4707 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. |
| 4708 | set dummy ${ac_tool_prefix}c++; ac_word=$2 |
| 4709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4710 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4711 | if ${ac_cv_path_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4712 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4713 | else |
| 4714 | case $CXX in |
| 4715 | [\\/]* | ?:[\\/]*) |
| 4716 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4717 | ;; |
| 4718 | *) |
| 4719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4720 | for as_dir in notfound |
| 4721 | do |
| 4722 | IFS=$as_save_IFS |
| 4723 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4724 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4725 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4726 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4728 | break 2 |
| 4729 | fi |
| 4730 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4731 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4732 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4733 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4734 | ;; |
| 4735 | esac |
| 4736 | fi |
| 4737 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4738 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4740 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4741 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4743 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4744 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4745 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4746 | |
| 4747 | fi |
| 4748 | if test -z "$ac_cv_path_CXX"; then |
| 4749 | ac_pt_CXX=$CXX |
| 4750 | # Extract the first word of "c++", so it can be a program name with args. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4751 | set dummy c++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4753 | $as_echo_n "checking for $ac_word... " >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4754 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4755 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4756 | else |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4757 | case $ac_pt_CXX in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4758 | [\\/]* | ?:[\\/]*) |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4759 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4760 | ;; |
| 4761 | *) |
| 4762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4763 | for as_dir in notfound |
| 4764 | do |
| 4765 | IFS=$as_save_IFS |
| 4766 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4767 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4768 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4769 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4771 | break 2 |
| 4772 | fi |
| 4773 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4774 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4775 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4776 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4777 | ;; |
| 4778 | esac |
| 4779 | fi |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4780 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 4781 | if test -n "$ac_pt_CXX"; then |
| 4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 4783 | $as_echo "$ac_pt_CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4784 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4786 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4787 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4788 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4789 | if test "x$ac_pt_CXX" = x; then |
| 4790 | CXX="c++" |
| 4791 | else |
| 4792 | case $cross_compiling:$ac_tool_warned in |
| 4793 | yes:) |
| 4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4795 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4796 | ac_tool_warned=yes ;; |
| 4797 | esac |
| 4798 | CXX=$ac_pt_CXX |
| 4799 | fi |
| 4800 | else |
| 4801 | CXX="$ac_cv_path_CXX" |
| 4802 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4803 | ;; |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4804 | clang|*/clang) if test -n "$ac_tool_prefix"; then |
| 4805 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. |
| 4806 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4808 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4809 | if ${ac_cv_path_CXX+:} false; then : |
| 4810 | $as_echo_n "(cached) " >&6 |
| 4811 | else |
| 4812 | case $CXX in |
| 4813 | [\\/]* | ?:[\\/]*) |
| 4814 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4815 | ;; |
| 4816 | *) |
| 4817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4818 | for as_dir in notfound |
| 4819 | do |
| 4820 | IFS=$as_save_IFS |
| 4821 | test -z "$as_dir" && as_dir=. |
| 4822 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4823 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4824 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4826 | break 2 |
| 4827 | fi |
| 4828 | done |
| 4829 | done |
| 4830 | IFS=$as_save_IFS |
| 4831 | |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4832 | ;; |
| 4833 | esac |
| 4834 | fi |
| 4835 | CXX=$ac_cv_path_CXX |
| 4836 | if test -n "$CXX"; then |
| 4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4838 | $as_echo "$CXX" >&6; } |
| 4839 | else |
| 4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4841 | $as_echo "no" >&6; } |
| 4842 | fi |
| 4843 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4844 | |
| 4845 | fi |
| 4846 | if test -z "$ac_cv_path_CXX"; then |
| 4847 | ac_pt_CXX=$CXX |
| 4848 | # Extract the first word of "clang++", so it can be a program name with args. |
| 4849 | set dummy clang++; ac_word=$2 |
| 4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4851 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4852 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
| 4853 | $as_echo_n "(cached) " >&6 |
| 4854 | else |
| 4855 | case $ac_pt_CXX in |
| 4856 | [\\/]* | ?:[\\/]*) |
| 4857 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
| 4858 | ;; |
| 4859 | *) |
| 4860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4861 | for as_dir in notfound |
| 4862 | do |
| 4863 | IFS=$as_save_IFS |
| 4864 | test -z "$as_dir" && as_dir=. |
| 4865 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4866 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4867 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4869 | break 2 |
| 4870 | fi |
| 4871 | done |
| 4872 | done |
| 4873 | IFS=$as_save_IFS |
| 4874 | |
| 4875 | ;; |
| 4876 | esac |
| 4877 | fi |
| 4878 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 4879 | if test -n "$ac_pt_CXX"; then |
| 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 4881 | $as_echo "$ac_pt_CXX" >&6; } |
| 4882 | else |
| 4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4884 | $as_echo "no" >&6; } |
| 4885 | fi |
| 4886 | |
| 4887 | if test "x$ac_pt_CXX" = x; then |
| 4888 | CXX="clang++" |
| 4889 | else |
| 4890 | case $cross_compiling:$ac_tool_warned in |
| 4891 | yes:) |
| 4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4893 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4894 | ac_tool_warned=yes ;; |
| 4895 | esac |
| 4896 | CXX=$ac_pt_CXX |
| 4897 | fi |
| 4898 | else |
| 4899 | CXX="$ac_cv_path_CXX" |
| 4900 | fi |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4901 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 4902 | icc|*/icc) if test -n "$ac_tool_prefix"; then |
| 4903 | # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. |
| 4904 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 |
| 4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4906 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4907 | if ${ac_cv_path_CXX+:} false; then : |
| 4908 | $as_echo_n "(cached) " >&6 |
| 4909 | else |
| 4910 | case $CXX in |
| 4911 | [\\/]* | ?:[\\/]*) |
| 4912 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4913 | ;; |
| 4914 | *) |
| 4915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4916 | for as_dir in notfound |
| 4917 | do |
| 4918 | IFS=$as_save_IFS |
| 4919 | test -z "$as_dir" && as_dir=. |
| 4920 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4922 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4924 | break 2 |
| 4925 | fi |
| 4926 | done |
| 4927 | done |
| 4928 | IFS=$as_save_IFS |
| 4929 | |
| 4930 | ;; |
| 4931 | esac |
| 4932 | fi |
| 4933 | CXX=$ac_cv_path_CXX |
| 4934 | if test -n "$CXX"; then |
| 4935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4936 | $as_echo "$CXX" >&6; } |
| 4937 | else |
| 4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4939 | $as_echo "no" >&6; } |
| 4940 | fi |
| 4941 | |
| 4942 | |
| 4943 | fi |
| 4944 | if test -z "$ac_cv_path_CXX"; then |
| 4945 | ac_pt_CXX=$CXX |
| 4946 | # Extract the first word of "icpc", so it can be a program name with args. |
| 4947 | set dummy icpc; ac_word=$2 |
| 4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4949 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4950 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
| 4951 | $as_echo_n "(cached) " >&6 |
| 4952 | else |
| 4953 | case $ac_pt_CXX in |
| 4954 | [\\/]* | ?:[\\/]*) |
| 4955 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
| 4956 | ;; |
| 4957 | *) |
| 4958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4959 | for as_dir in notfound |
| 4960 | do |
| 4961 | IFS=$as_save_IFS |
| 4962 | test -z "$as_dir" && as_dir=. |
| 4963 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4964 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4965 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4967 | break 2 |
| 4968 | fi |
| 4969 | done |
| 4970 | done |
| 4971 | IFS=$as_save_IFS |
| 4972 | |
| 4973 | ;; |
| 4974 | esac |
| 4975 | fi |
| 4976 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 4977 | if test -n "$ac_pt_CXX"; then |
| 4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 4979 | $as_echo "$ac_pt_CXX" >&6; } |
| 4980 | else |
| 4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4982 | $as_echo "no" >&6; } |
| 4983 | fi |
| 4984 | |
| 4985 | if test "x$ac_pt_CXX" = x; then |
| 4986 | CXX="icpc" |
| 4987 | else |
| 4988 | case $cross_compiling:$ac_tool_warned in |
| 4989 | yes:) |
| 4990 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4991 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4992 | ac_tool_warned=yes ;; |
| 4993 | esac |
| 4994 | CXX=$ac_pt_CXX |
| 4995 | fi |
| 4996 | else |
| 4997 | CXX="$ac_cv_path_CXX" |
| 4998 | fi |
| 4999 | ;; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5000 | esac |
| 5001 | if test "$CXX" = "notfound" |
| 5002 | then |
| 5003 | CXX="" |
| 5004 | fi |
| 5005 | fi |
| 5006 | if test -z "$CXX" |
| 5007 | then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5008 | if test -n "$ac_tool_prefix"; then |
| 5009 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 5010 | do |
| 5011 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5012 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5014 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5015 | if ${ac_cv_prog_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5016 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5017 | else |
| 5018 | if test -n "$CXX"; then |
| 5019 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5020 | else |
| 5021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5022 | for as_dir in $PATH |
| 5023 | do |
| 5024 | IFS=$as_save_IFS |
| 5025 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5026 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5027 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5028 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5029 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5030 | break 2 |
| 5031 | fi |
| 5032 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5033 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5034 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5035 | |
| 5036 | fi |
| 5037 | fi |
| 5038 | CXX=$ac_cv_prog_CXX |
| 5039 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5041 | $as_echo "$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5042 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5044 | $as_echo "no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5045 | fi |
| 5046 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5047 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5048 | test -n "$CXX" && break |
| 5049 | done |
| 5050 | fi |
| 5051 | if test -z "$CXX"; then |
| 5052 | ac_ct_CXX=$CXX |
| 5053 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 5054 | do |
| 5055 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5056 | set dummy $ac_prog; ac_word=$2 |
| 5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5058 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5059 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 5060 | $as_echo_n "(cached) " >&6 |
| 5061 | else |
| 5062 | if test -n "$ac_ct_CXX"; then |
| 5063 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5064 | else |
| 5065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5066 | for as_dir in $PATH |
| 5067 | do |
| 5068 | IFS=$as_save_IFS |
| 5069 | test -z "$as_dir" && as_dir=. |
| 5070 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5071 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5072 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5074 | break 2 |
| 5075 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5076 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5077 | done |
| 5078 | IFS=$as_save_IFS |
| 5079 | |
| 5080 | fi |
| 5081 | fi |
| 5082 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5083 | if test -n "$ac_ct_CXX"; then |
| 5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 5085 | $as_echo "$ac_ct_CXX" >&6; } |
| 5086 | else |
| 5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5088 | $as_echo "no" >&6; } |
| 5089 | fi |
| 5090 | |
| 5091 | |
| 5092 | test -n "$ac_ct_CXX" && break |
| 5093 | done |
| 5094 | |
| 5095 | if test "x$ac_ct_CXX" = x; then |
| 5096 | CXX="notfound" |
| 5097 | else |
| 5098 | case $cross_compiling:$ac_tool_warned in |
| 5099 | yes:) |
| 5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5101 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5102 | ac_tool_warned=yes ;; |
| 5103 | esac |
| 5104 | CXX=$ac_ct_CXX |
| 5105 | fi |
| 5106 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5107 | |
| 5108 | if test "$CXX" = "notfound" |
| 5109 | then |
| 5110 | CXX="" |
| 5111 | fi |
| 5112 | fi |
| 5113 | if test "$preset_cxx" != "$CXX" |
| 5114 | then |
Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5116 | |
| 5117 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 5118 | If this is not intended, then set CXX on the configure command line. |
| 5119 | " >&5 |
Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5120 | $as_echo "$as_me: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5121 | |
| 5122 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 5123 | If this is not intended, then set CXX on the configure command line. |
Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5124 | " >&6;} |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5125 | fi |
| 5126 | |
| 5127 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5128 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) |
| 5129 | |
| 5130 | |
| 5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 |
| 5132 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } |
| 5133 | cat >> conftest.c <<EOF |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5134 | #undef bfin |
| 5135 | #undef cris |
| 5136 | #undef fr30 |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5137 | #undef linux |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5138 | #undef hppa |
| 5139 | #undef hpux |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5140 | #undef i386 |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5141 | #undef mips |
doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5142 | #undef powerpc |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5143 | #undef sparc |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5144 | #undef unix |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5145 | #if defined(__ANDROID__) |
Xavier de Gaye | 32cf1ac | 2016-12-10 17:31:28 +0100 | [diff] [blame] | 5146 | # Android is not a multiarch system. |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5147 | #elif defined(__linux__) |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5148 | # if defined(__x86_64__) && defined(__LP64__) |
| 5149 | x86_64-linux-gnu |
| 5150 | # elif defined(__x86_64__) && defined(__ILP32__) |
| 5151 | x86_64-linux-gnux32 |
| 5152 | # elif defined(__i386__) |
| 5153 | i386-linux-gnu |
| 5154 | # elif defined(__aarch64__) && defined(__AARCH64EL__) |
| 5155 | # if defined(__ILP32__) |
| 5156 | aarch64_ilp32-linux-gnu |
| 5157 | # else |
| 5158 | aarch64-linux-gnu |
| 5159 | # endif |
| 5160 | # elif defined(__aarch64__) && defined(__AARCH64EB__) |
| 5161 | # if defined(__ILP32__) |
| 5162 | aarch64_be_ilp32-linux-gnu |
| 5163 | # else |
| 5164 | aarch64_be-linux-gnu |
| 5165 | # endif |
| 5166 | # elif defined(__alpha__) |
| 5167 | alpha-linux-gnu |
| 5168 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) |
| 5169 | # if defined(__ARMEL__) |
| 5170 | arm-linux-gnueabihf |
| 5171 | # else |
| 5172 | armeb-linux-gnueabihf |
| 5173 | # endif |
| 5174 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) |
| 5175 | # if defined(__ARMEL__) |
| 5176 | arm-linux-gnueabi |
| 5177 | # else |
| 5178 | armeb-linux-gnueabi |
| 5179 | # endif |
| 5180 | # elif defined(__hppa__) |
| 5181 | hppa-linux-gnu |
| 5182 | # elif defined(__ia64__) |
| 5183 | ia64-linux-gnu |
| 5184 | # elif defined(__m68k__) && !defined(__mcoldfire__) |
| 5185 | m68k-linux-gnu |
Matthias Klose | ddbe976 | 2018-04-30 19:22:16 +0200 | [diff] [blame] | 5186 | # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL) |
| 5187 | # if _MIPS_SIM == _ABIO32 |
| 5188 | mipsisa32r6el-linux-gnu |
| 5189 | # elif _MIPS_SIM == _ABIN32 |
| 5190 | mipsisa64r6el-linux-gnuabin32 |
| 5191 | # elif _MIPS_SIM == _ABI64 |
| 5192 | mipsisa64r6el-linux-gnuabi64 |
| 5193 | # else |
| 5194 | # error unknown platform triplet |
| 5195 | # endif |
| 5196 | # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) |
| 5197 | # if _MIPS_SIM == _ABIO32 |
| 5198 | mipsisa32r6-linux-gnu |
| 5199 | # elif _MIPS_SIM == _ABIN32 |
| 5200 | mipsisa64r6-linux-gnuabin32 |
| 5201 | # elif _MIPS_SIM == _ABI64 |
| 5202 | mipsisa64r6-linux-gnuabi64 |
| 5203 | # else |
| 5204 | # error unknown platform triplet |
| 5205 | # endif |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5206 | # elif defined(__mips_hard_float) && defined(_MIPSEL) |
| 5207 | # if _MIPS_SIM == _ABIO32 |
| 5208 | mipsel-linux-gnu |
| 5209 | # elif _MIPS_SIM == _ABIN32 |
| 5210 | mips64el-linux-gnuabin32 |
| 5211 | # elif _MIPS_SIM == _ABI64 |
| 5212 | mips64el-linux-gnuabi64 |
| 5213 | # else |
| 5214 | # error unknown platform triplet |
| 5215 | # endif |
| 5216 | # elif defined(__mips_hard_float) |
| 5217 | # if _MIPS_SIM == _ABIO32 |
| 5218 | mips-linux-gnu |
| 5219 | # elif _MIPS_SIM == _ABIN32 |
| 5220 | mips64-linux-gnuabin32 |
| 5221 | # elif _MIPS_SIM == _ABI64 |
| 5222 | mips64-linux-gnuabi64 |
| 5223 | # else |
| 5224 | # error unknown platform triplet |
| 5225 | # endif |
| 5226 | # elif defined(__or1k__) |
| 5227 | or1k-linux-gnu |
| 5228 | # elif defined(__powerpc__) && defined(__SPE__) |
| 5229 | powerpc-linux-gnuspe |
| 5230 | # elif defined(__powerpc64__) |
| 5231 | # if defined(__LITTLE_ENDIAN__) |
| 5232 | powerpc64le-linux-gnu |
| 5233 | # else |
| 5234 | powerpc64-linux-gnu |
| 5235 | # endif |
| 5236 | # elif defined(__powerpc__) |
| 5237 | powerpc-linux-gnu |
| 5238 | # elif defined(__s390x__) |
| 5239 | s390x-linux-gnu |
| 5240 | # elif defined(__s390__) |
| 5241 | s390-linux-gnu |
| 5242 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) |
| 5243 | sh4-linux-gnu |
| 5244 | # elif defined(__sparc__) && defined(__arch64__) |
| 5245 | sparc64-linux-gnu |
| 5246 | # elif defined(__sparc__) |
| 5247 | sparc-linux-gnu |
Matthias Klose | ddbe976 | 2018-04-30 19:22:16 +0200 | [diff] [blame] | 5248 | # elif defined(__riscv) |
| 5249 | # if __riscv_xlen == 32 |
| 5250 | riscv32-linux-gnu |
| 5251 | # elif __riscv_xlen == 64 |
| 5252 | riscv64-linux-gnu |
| 5253 | # else |
| 5254 | # error unknown platform triplet |
| 5255 | # endif |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5256 | # else |
| 5257 | # error unknown platform triplet |
| 5258 | # endif |
| 5259 | #elif defined(__FreeBSD_kernel__) |
| 5260 | # if defined(__LP64__) |
| 5261 | x86_64-kfreebsd-gnu |
| 5262 | # elif defined(__i386__) |
| 5263 | i386-kfreebsd-gnu |
| 5264 | # else |
| 5265 | # error unknown platform triplet |
| 5266 | # endif |
| 5267 | #elif defined(__gnu_hurd__) |
| 5268 | i386-gnu |
Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5269 | #elif defined(__APPLE__) |
| 5270 | darwin |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5271 | #else |
| 5272 | # error unknown platform triplet |
| 5273 | #endif |
| 5274 | |
| 5275 | EOF |
| 5276 | |
Xavier de Gaye | 3a32bdf | 2016-07-30 11:28:35 +0200 | [diff] [blame] | 5277 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5278 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` |
| 5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 |
| 5280 | $as_echo "$PLATFORM_TRIPLET" >&6; } |
| 5281 | else |
| 5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5283 | $as_echo "none" >&6; } |
| 5284 | fi |
| 5285 | rm -f conftest.c conftest.out |
| 5286 | |
| 5287 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then |
| 5288 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then |
| 5289 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 |
| 5290 | fi |
doko@ubuntu.com | 75b1cb1 | 2016-08-29 20:03:25 +0200 | [diff] [blame] | 5291 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then |
| 5292 | MULTIARCH=$PLATFORM_TRIPLET |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5293 | fi |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5294 | |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 5295 | if test x$MULTIARCH != x; then |
| 5296 | MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" |
| 5297 | fi |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5298 | |
| 5299 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 |
| 5301 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } |
| 5302 | save_LDFLAGS="$LDFLAGS" |
| 5303 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5304 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5306 | /* end confdefs.h. */ |
| 5307 | |
| 5308 | int |
| 5309 | main () |
| 5310 | { |
| 5311 | |
| 5312 | ; |
| 5313 | return 0; |
| 5314 | } |
| 5315 | _ACEOF |
| 5316 | if ac_fn_c_try_link "$LINENO"; then : |
| 5317 | NO_AS_NEEDED="-Wl,--no-as-needed" |
| 5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5319 | $as_echo "yes" >&6; } |
| 5320 | else |
| 5321 | NO_AS_NEEDED="" |
| 5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5323 | $as_echo "no" >&6; } |
| 5324 | fi |
| 5325 | rm -f core conftest.err conftest.$ac_objext \ |
| 5326 | conftest$ac_exeext conftest.$ac_ext |
| 5327 | LDFLAGS="$save_LDFLAGS" |
| 5328 | |
| 5329 | |
| 5330 | |
| 5331 | # checks for UNIX variants that set C preprocessor variables |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5332 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5334 | $as_echo_n "checking for egrep... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5335 | if ${ac_cv_path_EGREP+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5336 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5337 | else |
| 5338 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5339 | then ac_cv_path_EGREP="$GREP -E" |
| 5340 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5341 | if test -z "$EGREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5342 | ac_path_EGREP_found=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5343 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5345 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5346 | do |
| 5347 | IFS=$as_save_IFS |
| 5348 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5349 | for ac_prog in egrep; do |
| 5350 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5351 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5352 | as_fn_executable_p "$ac_path_EGREP" || continue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5353 | # Check for GNU ac_path_EGREP and select it if it is found. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5354 | # Check for GNU $ac_path_EGREP |
| 5355 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5356 | *GNU*) |
| 5357 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5358 | *) |
| 5359 | ac_count=0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5360 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5361 | while : |
| 5362 | do |
| 5363 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5364 | mv "conftest.tmp" "conftest.in" |
| 5365 | cp "conftest.in" "conftest.nl" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5366 | $as_echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5367 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5368 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5369 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5370 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5371 | # Best one so far, save it but keep looking for a better one |
| 5372 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5373 | ac_path_EGREP_max=$ac_count |
| 5374 | fi |
| 5375 | # 10*(2^10) chars as input seems more than enough |
| 5376 | test $ac_count -gt 10 && break |
| 5377 | done |
| 5378 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5379 | esac |
| 5380 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5381 | $ac_path_EGREP_found && break 3 |
| 5382 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5383 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5384 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5385 | IFS=$as_save_IFS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5386 | if test -z "$ac_cv_path_EGREP"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5387 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5388 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5389 | else |
| 5390 | ac_cv_path_EGREP=$EGREP |
| 5391 | fi |
| 5392 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5393 | fi |
| 5394 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5396 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5397 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5398 | |
| 5399 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 5401 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5402 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5403 | $as_echo_n "(cached) " >&6 |
| 5404 | else |
| 5405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5406 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5407 | #include <stdlib.h> |
| 5408 | #include <stdarg.h> |
| 5409 | #include <string.h> |
| 5410 | #include <float.h> |
| 5411 | |
| 5412 | int |
| 5413 | main () |
| 5414 | { |
| 5415 | |
| 5416 | ; |
| 5417 | return 0; |
| 5418 | } |
| 5419 | _ACEOF |
| 5420 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5421 | ac_cv_header_stdc=yes |
| 5422 | else |
| 5423 | ac_cv_header_stdc=no |
| 5424 | fi |
| 5425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5426 | |
| 5427 | if test $ac_cv_header_stdc = yes; then |
| 5428 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5430 | /* end confdefs.h. */ |
| 5431 | #include <string.h> |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5432 | |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5433 | _ACEOF |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5434 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5435 | $EGREP "memchr" >/dev/null 2>&1; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5436 | |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5437 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5438 | ac_cv_header_stdc=no |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5439 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5440 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5441 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5442 | fi |
| 5443 | |
| 5444 | if test $ac_cv_header_stdc = yes; then |
| 5445 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5447 | /* end confdefs.h. */ |
| 5448 | #include <stdlib.h> |
| 5449 | |
| 5450 | _ACEOF |
| 5451 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5452 | $EGREP "free" >/dev/null 2>&1; then : |
| 5453 | |
| 5454 | else |
| 5455 | ac_cv_header_stdc=no |
| 5456 | fi |
| 5457 | rm -f conftest* |
| 5458 | |
| 5459 | fi |
| 5460 | |
| 5461 | if test $ac_cv_header_stdc = yes; then |
| 5462 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5463 | if test "$cross_compiling" = yes; then : |
| 5464 | : |
| 5465 | else |
| 5466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5467 | /* end confdefs.h. */ |
| 5468 | #include <ctype.h> |
| 5469 | #include <stdlib.h> |
| 5470 | #if ((' ' & 0x0FF) == 0x020) |
| 5471 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5472 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5473 | #else |
| 5474 | # define ISLOWER(c) \ |
| 5475 | (('a' <= (c) && (c) <= 'i') \ |
| 5476 | || ('j' <= (c) && (c) <= 'r') \ |
| 5477 | || ('s' <= (c) && (c) <= 'z')) |
| 5478 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5479 | #endif |
| 5480 | |
| 5481 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5482 | int |
| 5483 | main () |
| 5484 | { |
| 5485 | int i; |
| 5486 | for (i = 0; i < 256; i++) |
| 5487 | if (XOR (islower (i), ISLOWER (i)) |
| 5488 | || toupper (i) != TOUPPER (i)) |
| 5489 | return 2; |
| 5490 | return 0; |
| 5491 | } |
| 5492 | _ACEOF |
| 5493 | if ac_fn_c_try_run "$LINENO"; then : |
| 5494 | |
| 5495 | else |
| 5496 | ac_cv_header_stdc=no |
| 5497 | fi |
| 5498 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5499 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5500 | fi |
| 5501 | |
| 5502 | fi |
| 5503 | fi |
| 5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 5505 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 5506 | if test $ac_cv_header_stdc = yes; then |
| 5507 | |
| 5508 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 5509 | |
| 5510 | fi |
| 5511 | |
| 5512 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5513 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5514 | inttypes.h stdint.h unistd.h |
| 5515 | do : |
| 5516 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5517 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5518 | " |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5519 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5520 | cat >>confdefs.h <<_ACEOF |
| 5521 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5522 | _ACEOF |
| 5523 | |
| 5524 | fi |
| 5525 | |
| 5526 | done |
| 5527 | |
| 5528 | |
| 5529 | |
| 5530 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5531 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5532 | MINIX=yes |
| 5533 | else |
| 5534 | MINIX= |
| 5535 | fi |
| 5536 | |
| 5537 | |
| 5538 | if test "$MINIX" = yes; then |
| 5539 | |
| 5540 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5541 | |
| 5542 | |
| 5543 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5544 | |
| 5545 | |
| 5546 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 5547 | |
| 5548 | fi |
| 5549 | |
| 5550 | |
| 5551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5552 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5553 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5554 | $as_echo_n "(cached) " >&6 |
| 5555 | else |
| 5556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5557 | /* end confdefs.h. */ |
| 5558 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5559 | # define __EXTENSIONS__ 1 |
| 5560 | $ac_includes_default |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5561 | int |
| 5562 | main () |
| 5563 | { |
| 5564 | |
| 5565 | ; |
| 5566 | return 0; |
| 5567 | } |
| 5568 | _ACEOF |
| 5569 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5570 | ac_cv_safe_to_define___extensions__=yes |
| 5571 | else |
| 5572 | ac_cv_safe_to_define___extensions__=no |
| 5573 | fi |
| 5574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5575 | fi |
| 5576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5577 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5578 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 5579 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5580 | |
| 5581 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 5582 | |
| 5583 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 5584 | |
| 5585 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5586 | |
| 5587 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5588 | |
| 5589 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5590 | |
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 |
| 5592 | $as_echo_n "checking for the Android API level... " >&6; } |
| 5593 | cat >> conftest.c <<EOF |
| 5594 | #ifdef __ANDROID__ |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5595 | android_api = __ANDROID_API__ |
| 5596 | arm_arch = __ARM_ARCH |
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5597 | #else |
| 5598 | #error not Android |
| 5599 | #endif |
| 5600 | EOF |
| 5601 | |
| 5602 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5603 | ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` |
| 5604 | _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] | 5605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 |
| 5606 | $as_echo "$ANDROID_API_LEVEL" >&6; } |
xdegaye | c06c22e | 2017-11-23 11:44:38 +0100 | [diff] [blame] | 5607 | if test -z "$ANDROID_API_LEVEL"; then |
| 5608 | echo 'Fatal: you must define __ANDROID_API__' |
| 5609 | exit 1 |
| 5610 | fi |
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5611 | |
| 5612 | cat >>confdefs.h <<_ACEOF |
| 5613 | #define ANDROID_API_LEVEL $ANDROID_API_LEVEL |
| 5614 | _ACEOF |
| 5615 | |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5616 | |
| 5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 |
| 5618 | $as_echo_n "checking for the Android arm ABI... " >&6; } |
| 5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 |
| 5620 | $as_echo "$_arm_arch" >&6; } |
| 5621 | if test "$_arm_arch" = 7; then |
| 5622 | BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" |
| 5623 | LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" |
| 5624 | fi |
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5625 | else |
| 5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 |
| 5627 | $as_echo "not Android" >&6; } |
| 5628 | fi |
| 5629 | rm -f conftest.c conftest.out |
| 5630 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5631 | # Check for unsupported systems |
| 5632 | case $ac_sys_system/$ac_sys_release in |
| 5633 | atheos*|Linux*/1*) |
| 5634 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 5635 | echo See README for details. |
| 5636 | exit 1;; |
| 5637 | esac |
| 5638 | |
| 5639 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
| 5641 | $as_echo_n "checking for --with-suffix... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5642 | |
| 5643 | # Check whether --with-suffix was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5644 | if test "${with_suffix+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5645 | withval=$with_suffix; |
| 5646 | case $withval in |
| 5647 | no) EXEEXT=;; |
| 5648 | yes) EXEEXT=.exe;; |
| 5649 | *) EXEEXT=$withval;; |
| 5650 | esac |
| 5651 | fi |
| 5652 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
| 5654 | $as_echo "$EXEEXT" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5655 | |
| 5656 | # Test whether we're running on a non-case-sensitive system, in which |
| 5657 | # case we give a warning if no ext is given |
| 5658 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
| 5660 | $as_echo_n "checking for case-insensitive build directory... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5661 | if test ! -d CaseSensitiveTestDir; then |
| 5662 | mkdir CaseSensitiveTestDir |
| 5663 | fi |
| 5664 | |
| 5665 | if test -d casesensitivetestdir |
| 5666 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5668 | $as_echo "yes" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5669 | BUILDEXEEXT=.exe |
| 5670 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5672 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5673 | BUILDEXEEXT=$EXEEXT |
| 5674 | fi |
| 5675 | rmdir CaseSensitiveTestDir |
| 5676 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5677 | case $ac_sys_system in |
| 5678 | hp*|HP*) |
| 5679 | case $CC in |
| 5680 | cc|*/cc) CC="$CC -Ae";; |
| 5681 | esac;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5682 | esac |
| 5683 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5684 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
| 5686 | $as_echo_n "checking LIBRARY... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5687 | if test -z "$LIBRARY" |
| 5688 | then |
Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5689 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5690 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
| 5692 | $as_echo "$LIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5693 | |
| 5694 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 5695 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 5696 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 5697 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 5698 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 5699 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 5700 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 5701 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 5702 | # |
| 5703 | # RUNSHARED is used to run shared python without installed libraries |
| 5704 | # |
| 5705 | # INSTSONAME is the name of the shared library that will be use to install |
| 5706 | # on the system - some systems like version suffix, others don't |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5707 | # |
| 5708 | # LDVERSION is the shared library version number, normally the Python version |
| 5709 | # with the ABI build flags appended. |
| 5710 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5711 | |
| 5712 | |
| 5713 | |
| 5714 | |
| 5715 | |
| 5716 | |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5717 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5718 | LDLIBRARY="$LIBRARY" |
| 5719 | BLDLIBRARY='$(LDLIBRARY)' |
| 5720 | INSTSONAME='$(LDLIBRARY)' |
| 5721 | DLLLIBRARY='' |
| 5722 | LDLIBRARYDIR='' |
| 5723 | RUNSHARED='' |
Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5724 | LDVERSION="$VERSION" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5725 | |
| 5726 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 5727 | # If CXX is set, and if it is needed to link a main function that was |
| 5728 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 5729 | # python might then depend on the C++ runtime |
| 5730 | # This is altered for AIX in order to build the export list before |
| 5731 | # linking. |
| 5732 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
| 5734 | $as_echo_n "checking LINKCC... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5735 | if test -z "$LINKCC" |
| 5736 | then |
| 5737 | LINKCC='$(PURIFY) $(MAINCC)' |
| 5738 | case $ac_sys_system in |
| 5739 | AIX*) |
| 5740 | exp_extra="\"\"" |
| 5741 | if test $ac_sys_release -ge 5 -o \ |
| 5742 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 5743 | exp_extra="." |
| 5744 | fi |
| 5745 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5746 | QNX*) |
| 5747 | # qcc must be used because the other compilers do not |
| 5748 | # support -N. |
| 5749 | LINKCC=qcc;; |
| 5750 | esac |
| 5751 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
| 5753 | $as_echo "$LINKCC" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5754 | |
| 5755 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 5756 | # make sure we default having it set to "no": this is used by |
| 5757 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 5758 | # to linker command lines, and failing to detect GNU ld simply results |
| 5759 | # in the same bahaviour as before. |
| 5760 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 5762 | $as_echo_n "checking for GNU ld... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5763 | ac_prog=ld |
| 5764 | if test "$GCC" = yes; then |
| 5765 | ac_prog=`$CC -print-prog-name=ld` |
| 5766 | fi |
| 5767 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 5768 | *GNU*) |
| 5769 | GNULD=yes;; |
| 5770 | *) |
| 5771 | GNULD=no;; |
| 5772 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
| 5774 | $as_echo "$GNULD" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5775 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
| 5777 | $as_echo_n "checking for --enable-shared... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5778 | # Check whether --enable-shared was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5779 | if test "${enable_shared+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5780 | enableval=$enable_shared; |
| 5781 | fi |
| 5782 | |
| 5783 | |
| 5784 | if test -z "$enable_shared" |
| 5785 | then |
| 5786 | case $ac_sys_system in |
Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5787 | CYGWIN*) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5788 | enable_shared="yes";; |
| 5789 | *) |
| 5790 | enable_shared="no";; |
| 5791 | esac |
| 5792 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 5794 | $as_echo "$enable_shared" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5795 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
| 5797 | $as_echo_n "checking for --enable-profiling... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5798 | # Check whether --enable-profiling was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5799 | if test "${enable_profiling+set}" = set; then : |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5800 | enableval=$enable_profiling; |
| 5801 | fi |
| 5802 | |
| 5803 | if test "x$enable_profiling" = xyes; then |
| 5804 | ac_save_cc="$CC" |
Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5805 | CC="$CC -pg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5807 | /* end confdefs.h. */ |
| 5808 | int main() { return 0; } |
| 5809 | _ACEOF |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5810 | if ac_fn_c_try_link "$LINENO"; then : |
| 5811 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5812 | else |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5813 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5814 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5815 | rm -f core conftest.err conftest.$ac_objext \ |
| 5816 | conftest$ac_exeext conftest.$ac_ext |
| 5817 | CC="$ac_save_cc" |
| 5818 | else |
| 5819 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5820 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 |
| 5822 | $as_echo "$enable_profiling" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5823 | |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5824 | if test "x$enable_profiling" = xyes; then |
| 5825 | BASECFLAGS="-pg $BASECFLAGS" |
| 5826 | LDFLAGS="-pg $LDFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5827 | fi |
| 5828 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
| 5830 | $as_echo_n "checking LDLIBRARY... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5831 | |
| 5832 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 5833 | # library that we build, but we do not want to link against it (we |
| 5834 | # will find it with a -framework option). For this reason there is an |
| 5835 | # extra variable BLDLIBRARY against which Python and the extension |
| 5836 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 5837 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 5838 | if test "$enable_framework" |
| 5839 | then |
| 5840 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5841 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5842 | BLDLIBRARY='' |
| 5843 | else |
| 5844 | BLDLIBRARY='$(LDLIBRARY)' |
| 5845 | fi |
| 5846 | |
| 5847 | # Other platforms follow |
| 5848 | if test $enable_shared = "yes"; then |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5849 | PY_ENABLE_SHARED=1 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5850 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5851 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5852 | |
| 5853 | case $ac_sys_system in |
| 5854 | CYGWIN*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5855 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
| 5856 | DLLLIBRARY='libpython$(LDVERSION).dll' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5857 | ;; |
| 5858 | SunOS*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5859 | LDLIBRARY='libpython$(LDVERSION).so' |
| 5860 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5861 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5862 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5863 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5864 | then |
| 5865 | PY3LIBRARY=libpython3.so |
| 5866 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5867 | ;; |
Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 5868 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5869 | LDLIBRARY='libpython$(LDVERSION).so' |
| 5870 | BLDLIBRARY='-L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5871 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5872 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5873 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5874 | then |
| 5875 | PY3LIBRARY=libpython3.so |
| 5876 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5877 | ;; |
| 5878 | hp*|HP*) |
| 5879 | case `uname -m` in |
| 5880 | ia64) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5881 | LDLIBRARY='libpython$(LDVERSION).so' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5882 | ;; |
| 5883 | *) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5884 | LDLIBRARY='libpython$(LDVERSION).sl' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5885 | ;; |
| 5886 | esac |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5887 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5888 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5889 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5890 | Darwin*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5891 | LDLIBRARY='libpython$(LDVERSION).dylib' |
| 5892 | BLDLIBRARY='-L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5893 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5894 | ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5895 | AIX*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5896 | LDLIBRARY='libpython$(LDVERSION).so' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5897 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5898 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5899 | |
| 5900 | esac |
| 5901 | else # shared is disabled |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5902 | PY_ENABLE_SHARED=0 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5903 | case $ac_sys_system in |
| 5904 | CYGWIN*) |
| 5905 | BLDLIBRARY='$(LIBRARY)' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5906 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5907 | ;; |
| 5908 | esac |
| 5909 | fi |
| 5910 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 5911 | if test "$cross_compiling" = yes; then |
| 5912 | RUNSHARED= |
| 5913 | fi |
| 5914 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
| 5916 | $as_echo "$LDLIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5917 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5918 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5919 | if test -n "$ac_tool_prefix"; then |
| 5920 | for ac_prog in ar aal |
| 5921 | do |
| 5922 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5923 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5925 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5926 | if ${ac_cv_prog_AR+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5927 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5928 | else |
| 5929 | if test -n "$AR"; then |
| 5930 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5931 | else |
| 5932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5933 | for as_dir in $PATH |
| 5934 | do |
| 5935 | IFS=$as_save_IFS |
| 5936 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5937 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5938 | 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] | 5939 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5940 | $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] | 5941 | break 2 |
| 5942 | fi |
| 5943 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5944 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5945 | IFS=$as_save_IFS |
| 5946 | |
| 5947 | fi |
| 5948 | fi |
| 5949 | AR=$ac_cv_prog_AR |
| 5950 | if test -n "$AR"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5952 | $as_echo "$AR" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5953 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5955 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5956 | fi |
| 5957 | |
| 5958 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5959 | test -n "$AR" && break |
| 5960 | done |
| 5961 | fi |
| 5962 | if test -z "$AR"; then |
| 5963 | ac_ct_AR=$AR |
| 5964 | for ac_prog in ar aal |
| 5965 | do |
| 5966 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5967 | set dummy $ac_prog; ac_word=$2 |
| 5968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5969 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5970 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 5971 | $as_echo_n "(cached) " >&6 |
| 5972 | else |
| 5973 | if test -n "$ac_ct_AR"; then |
| 5974 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5975 | else |
| 5976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5977 | for as_dir in $PATH |
| 5978 | do |
| 5979 | IFS=$as_save_IFS |
| 5980 | test -z "$as_dir" && as_dir=. |
| 5981 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5982 | 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] | 5983 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 5984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5985 | break 2 |
| 5986 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5987 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5988 | done |
| 5989 | IFS=$as_save_IFS |
| 5990 | |
| 5991 | fi |
| 5992 | fi |
| 5993 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5994 | if test -n "$ac_ct_AR"; then |
| 5995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 5996 | $as_echo "$ac_ct_AR" >&6; } |
| 5997 | else |
| 5998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5999 | $as_echo "no" >&6; } |
| 6000 | fi |
| 6001 | |
| 6002 | |
| 6003 | test -n "$ac_ct_AR" && break |
| 6004 | done |
| 6005 | |
| 6006 | if test "x$ac_ct_AR" = x; then |
| 6007 | AR="ar" |
| 6008 | else |
| 6009 | case $cross_compiling:$ac_tool_warned in |
| 6010 | yes:) |
| 6011 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6012 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6013 | ac_tool_warned=yes ;; |
| 6014 | esac |
| 6015 | AR=$ac_ct_AR |
| 6016 | fi |
| 6017 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6018 | |
| 6019 | |
| 6020 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 6021 | |
| 6022 | if test -z "$ARFLAGS" |
| 6023 | then |
Benjamin Peterson | d15108a | 2017-09-29 08:42:41 -0700 | [diff] [blame] | 6024 | ARFLAGS="rcs" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6025 | fi |
| 6026 | |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6027 | if test -n "$ac_tool_prefix"; then |
| 6028 | for ac_prog in readelf |
| 6029 | do |
| 6030 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6031 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6033 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6034 | if ${ac_cv_prog_READELF+:} false; then : |
| 6035 | $as_echo_n "(cached) " >&6 |
| 6036 | else |
| 6037 | if test -n "$READELF"; then |
| 6038 | ac_cv_prog_READELF="$READELF" # Let the user override the test. |
| 6039 | else |
| 6040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6041 | for as_dir in $PATH |
| 6042 | do |
| 6043 | IFS=$as_save_IFS |
| 6044 | test -z "$as_dir" && as_dir=. |
| 6045 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6046 | 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] | 6047 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" |
| 6048 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6049 | break 2 |
| 6050 | fi |
| 6051 | done |
| 6052 | done |
| 6053 | IFS=$as_save_IFS |
| 6054 | |
| 6055 | fi |
| 6056 | fi |
| 6057 | READELF=$ac_cv_prog_READELF |
| 6058 | if test -n "$READELF"; then |
| 6059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 |
| 6060 | $as_echo "$READELF" >&6; } |
| 6061 | else |
| 6062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6063 | $as_echo "no" >&6; } |
| 6064 | fi |
| 6065 | |
| 6066 | |
| 6067 | test -n "$READELF" && break |
| 6068 | done |
| 6069 | fi |
| 6070 | if test -z "$READELF"; then |
| 6071 | ac_ct_READELF=$READELF |
| 6072 | for ac_prog in readelf |
| 6073 | do |
| 6074 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6075 | set dummy $ac_prog; ac_word=$2 |
| 6076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6077 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6078 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : |
| 6079 | $as_echo_n "(cached) " >&6 |
| 6080 | else |
| 6081 | if test -n "$ac_ct_READELF"; then |
| 6082 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. |
| 6083 | else |
| 6084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6085 | for as_dir in $PATH |
| 6086 | do |
| 6087 | IFS=$as_save_IFS |
| 6088 | test -z "$as_dir" && as_dir=. |
| 6089 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6090 | 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] | 6091 | ac_cv_prog_ac_ct_READELF="$ac_prog" |
| 6092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6093 | break 2 |
| 6094 | fi |
| 6095 | done |
| 6096 | done |
| 6097 | IFS=$as_save_IFS |
| 6098 | |
| 6099 | fi |
| 6100 | fi |
| 6101 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF |
| 6102 | if test -n "$ac_ct_READELF"; then |
| 6103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 |
| 6104 | $as_echo "$ac_ct_READELF" >&6; } |
| 6105 | else |
| 6106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6107 | $as_echo "no" >&6; } |
| 6108 | fi |
| 6109 | |
| 6110 | |
| 6111 | test -n "$ac_ct_READELF" && break |
| 6112 | done |
| 6113 | |
| 6114 | if test "x$ac_ct_READELF" = x; then |
| 6115 | READELF=":" |
| 6116 | else |
| 6117 | case $cross_compiling:$ac_tool_warned in |
| 6118 | yes:) |
| 6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6120 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6121 | ac_tool_warned=yes ;; |
| 6122 | esac |
| 6123 | READELF=$ac_ct_READELF |
| 6124 | fi |
| 6125 | fi |
| 6126 | |
| 6127 | if test "$cross_compiling" = yes; then |
| 6128 | case "$READELF" in |
| 6129 | readelf|:) |
| 6130 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 |
| 6131 | ;; |
| 6132 | esac |
| 6133 | fi |
| 6134 | |
| 6135 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6136 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6137 | case $MACHDEP in |
Benjamin Peterson | 288d1da | 2017-09-28 22:44:27 -0700 | [diff] [blame] | 6138 | hp*|HP*) |
| 6139 | # install -d does not work on HP-UX |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6140 | if test -z "$INSTALL" |
| 6141 | then |
| 6142 | INSTALL="${srcdir}/install-sh -c" |
| 6143 | fi |
| 6144 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6145 | # Find a good install program. We prefer a C program (faster), |
| 6146 | # so one script is as good as another. But avoid the broken or |
| 6147 | # incompatible versions: |
| 6148 | # SysV /etc/install, /usr/sbin/install |
| 6149 | # SunOS /usr/etc/install |
| 6150 | # IRIX /sbin/install |
| 6151 | # AIX /bin/install |
| 6152 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6153 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6154 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6155 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 6156 | # OS/2's system install, which has a completely different semantic |
| 6157 | # ./install, which can be erroneously created by make from ./install.sh. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6158 | # Reject install programs that cannot install multiple files. |
| 6159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 6160 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6161 | if test -z "$INSTALL"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6162 | if ${ac_cv_path_install+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6163 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6164 | else |
| 6165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6166 | for as_dir in $PATH |
| 6167 | do |
| 6168 | IFS=$as_save_IFS |
| 6169 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6170 | # Account for people who put trailing slashes in PATH elements. |
| 6171 | case $as_dir/ in #(( |
| 6172 | ./ | .// | /[cC]/* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6173 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6174 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6175 | /usr/ucb/* ) ;; |
| 6176 | *) |
| 6177 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6178 | # Don't use installbsd from OSF since it installs stuff as root |
| 6179 | # by default. |
| 6180 | for ac_prog in ginstall scoinst install; do |
| 6181 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6182 | 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] | 6183 | if test $ac_prog = install && |
| 6184 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6185 | # AIX install. It has an incompatible calling convention. |
| 6186 | : |
| 6187 | elif test $ac_prog = install && |
| 6188 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6189 | # program-specific install script used by HP pwplus--don't use. |
| 6190 | : |
| 6191 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6192 | rm -rf conftest.one conftest.two conftest.dir |
| 6193 | echo one > conftest.one |
| 6194 | echo two > conftest.two |
| 6195 | mkdir conftest.dir |
| 6196 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 6197 | test -s conftest.one && test -s conftest.two && |
| 6198 | test -s conftest.dir/conftest.one && |
| 6199 | test -s conftest.dir/conftest.two |
| 6200 | then |
| 6201 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6202 | break 3 |
| 6203 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6204 | fi |
| 6205 | fi |
| 6206 | done |
| 6207 | done |
| 6208 | ;; |
| 6209 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6210 | |
| 6211 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6212 | IFS=$as_save_IFS |
| 6213 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6214 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6215 | |
| 6216 | fi |
| 6217 | if test "${ac_cv_path_install+set}" = set; then |
| 6218 | INSTALL=$ac_cv_path_install |
| 6219 | else |
| 6220 | # As a last resort, use the slow shell script. Don't cache a |
| 6221 | # value for INSTALL within a source directory, because that will |
| 6222 | # break other packages using the cache if that directory is |
| 6223 | # removed, or if the value is a relative name. |
| 6224 | INSTALL=$ac_install_sh |
| 6225 | fi |
| 6226 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 6228 | $as_echo "$INSTALL" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6229 | |
| 6230 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6231 | # It thinks the first close brace ends the variable substitution. |
| 6232 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6233 | |
| 6234 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 6235 | |
| 6236 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6237 | |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 6239 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 6240 | if test -z "$MKDIR_P"; then |
| 6241 | if ${ac_cv_path_mkdir+:} false; then : |
| 6242 | $as_echo_n "(cached) " >&6 |
| 6243 | else |
| 6244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6245 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 6246 | do |
| 6247 | IFS=$as_save_IFS |
| 6248 | test -z "$as_dir" && as_dir=. |
| 6249 | for ac_prog in mkdir gmkdir; do |
| 6250 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6251 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6252 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 6253 | 'mkdir (GNU coreutils) '* | \ |
| 6254 | 'mkdir (coreutils) '* | \ |
| 6255 | 'mkdir (fileutils) '4.1*) |
| 6256 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 6257 | break 3;; |
| 6258 | esac |
| 6259 | done |
| 6260 | done |
| 6261 | done |
| 6262 | IFS=$as_save_IFS |
| 6263 | |
| 6264 | fi |
| 6265 | |
| 6266 | test -d ./--version && rmdir ./--version |
| 6267 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 6268 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 6269 | else |
| 6270 | # As a last resort, use the slow shell script. Don't cache a |
| 6271 | # value for MKDIR_P within a source directory, because that will |
| 6272 | # break other packages using the cache if that directory is |
| 6273 | # removed, or if the value is a relative name. |
| 6274 | MKDIR_P="$ac_install_sh -d" |
| 6275 | fi |
| 6276 | fi |
| 6277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 6278 | $as_echo "$MKDIR_P" >&6; } |
| 6279 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6280 | |
| 6281 | # Not every filesystem supports hard links |
| 6282 | |
| 6283 | if test -z "$LN" ; then |
| 6284 | case $ac_sys_system in |
| 6285 | CYGWIN*) LN="ln -s";; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6286 | *) LN=ln;; |
| 6287 | esac |
| 6288 | fi |
| 6289 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6290 | # For calculating the .so ABI tag. |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6291 | |
| 6292 | ABIFLAGS="" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6293 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6294 | # Check for --with-pydebug |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
| 6296 | $as_echo_n "checking for --with-pydebug... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6297 | |
| 6298 | # Check whether --with-pydebug was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6299 | if test "${with_pydebug+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6300 | withval=$with_pydebug; |
| 6301 | if test "$withval" != no |
| 6302 | then |
| 6303 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6304 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6305 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6307 | $as_echo "yes" >&6; }; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6308 | Py_DEBUG='true' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6309 | ABIFLAGS="${ABIFLAGS}d" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6310 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6311 | $as_echo "no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6312 | fi |
| 6313 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6315 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6316 | fi |
| 6317 | |
| 6318 | |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6319 | # Check for --with-assertions. Py_DEBUG implies assertions, but also changes |
| 6320 | # the ABI. This allows enabling assertions without changing the ABI. |
| 6321 | assertions='false' |
| 6322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 |
| 6323 | $as_echo_n "checking for --with-assertions... " >&6; } |
| 6324 | |
| 6325 | # Check whether --with-assertions was given. |
| 6326 | if test "${with_assertions+set}" = set; then : |
| 6327 | withval=$with_assertions; |
| 6328 | if test "$withval" != no |
| 6329 | then |
| 6330 | assertions='true' |
| 6331 | fi |
| 6332 | fi |
| 6333 | |
| 6334 | if test "$assertions" = 'true'; then |
| 6335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6336 | $as_echo "yes" >&6; } |
| 6337 | elif test "$Py_DEBUG" = 'true'; then |
| 6338 | assertions='true' |
| 6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 |
| 6340 | $as_echo "implied by --with-pydebug" >&6; } |
| 6341 | else |
| 6342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6343 | $as_echo "no" >&6; } |
| 6344 | fi |
| 6345 | |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6346 | # Enable optimization flags |
| 6347 | |
| 6348 | |
| 6349 | Py_OPT='false' |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 |
| 6351 | $as_echo_n "checking for --enable-optimizations... " >&6; } |
| 6352 | # Check whether --enable-optimizations was given. |
| 6353 | if test "${enable_optimizations+set}" = set; then : |
| 6354 | enableval=$enable_optimizations; |
Alex Wang | 8cea592 | 2017-03-28 08:50:51 -0400 | [diff] [blame] | 6355 | if test "$enableval" != no |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6356 | then |
| 6357 | Py_OPT='true' |
| 6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6359 | $as_echo "yes" >&6; }; |
| 6360 | else |
| 6361 | Py_OPT='false' |
| 6362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6363 | $as_echo "no" >&6; }; |
| 6364 | fi |
| 6365 | else |
| 6366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6367 | $as_echo "no" >&6; } |
| 6368 | fi |
| 6369 | |
| 6370 | if test "$Py_OPT" = 'true' ; then |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 6371 | # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not |
| 6372 | # 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] | 6373 | # 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] | 6374 | # who want LTO need to use --with-lto themselves. |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6375 | DEF_MAKE_ALL_RULE="profile-opt" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6376 | REQUIRE_PGO="yes" |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6377 | DEF_MAKE_RULE="build_all" |
| 6378 | else |
| 6379 | DEF_MAKE_ALL_RULE="build_all" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6380 | REQUIRE_PGO="no" |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6381 | DEF_MAKE_RULE="all" |
| 6382 | fi |
| 6383 | |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6384 | # Enable LTO flags |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 |
| 6386 | $as_echo_n "checking for --with-lto... " >&6; } |
| 6387 | |
| 6388 | # Check whether --with-lto was given. |
| 6389 | if test "${with_lto+set}" = set; then : |
| 6390 | withval=$with_lto; |
| 6391 | if test "$withval" != no |
| 6392 | then |
| 6393 | Py_LTO='true' |
| 6394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6395 | $as_echo "yes" >&6; }; |
| 6396 | else |
| 6397 | Py_LTO='false' |
| 6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6399 | $as_echo "no" >&6; }; |
| 6400 | fi |
| 6401 | else |
| 6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6403 | $as_echo "no" >&6; } |
| 6404 | fi |
| 6405 | |
| 6406 | if test "$Py_LTO" = 'true' ; then |
| 6407 | case $CC in |
| 6408 | *clang*) |
Ned Deily | 8482ce4 | 2016-09-06 15:09:20 -0700 | [diff] [blame] | 6409 | case $ac_sys_system in |
| 6410 | Darwin*) |
| 6411 | # Any changes made here should be reflected in the GCC+Darwin case below |
| 6412 | LTOFLAGS="-flto -Wl,-export_dynamic" |
| 6413 | ;; |
| 6414 | *) |
| 6415 | LTOFLAGS="-flto" |
| 6416 | ;; |
| 6417 | esac |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6418 | ;; |
| 6419 | *gcc*) |
| 6420 | case $ac_sys_system in |
| 6421 | Darwin*) |
Ned Deily | 8482ce4 | 2016-09-06 15:09:20 -0700 | [diff] [blame] | 6422 | LTOFLAGS="-flto -Wl,-export_dynamic" |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6423 | ;; |
| 6424 | *) |
| 6425 | LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" |
| 6426 | ;; |
| 6427 | esac |
| 6428 | ;; |
| 6429 | esac |
octaviansoldea | 4c81401 | 2017-09-08 12:14:33 -0700 | [diff] [blame] | 6430 | CFLAGS="$CFLAGS $LTOFLAGS" |
| 6431 | LDFLAGS="$LDFLAGS $LTOFLAGS" |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6432 | fi |
| 6433 | |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6434 | # Enable PGO flags. |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6435 | |
| 6436 | |
| 6437 | |
| 6438 | |
| 6439 | |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6440 | # Make this work on systems where llvm tools are not installed with their |
| 6441 | # normal names in the default $PATH (ie: Ubuntu). They exist under the |
| 6442 | # non-suffixed name in their versioned llvm directory. |
| 6443 | llvm_bin_dir='' |
| 6444 | llvm_path="${PATH}" |
| 6445 | if test "${CC}" = "clang" |
| 6446 | then |
| 6447 | clang_bin=`which clang` |
| 6448 | # Some systems install clang elsewhere as a symlink to the real path |
| 6449 | # which is where the related llvm tools are located. |
| 6450 | if test -L "${clang_bin}" |
| 6451 | then |
| 6452 | clang_dir=`dirname "${clang_bin}"` |
| 6453 | clang_bin=`readlink "${clang_bin}"` |
| 6454 | llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` |
| 6455 | llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" |
| 6456 | fi |
| 6457 | fi |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6458 | |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 6460 | $as_echo_n "checking target system type... " >&6; } |
| 6461 | if ${ac_cv_target+:} false; then : |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6462 | $as_echo_n "(cached) " >&6 |
| 6463 | else |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6464 | if test "x$target_alias" = x; then |
| 6465 | ac_cv_target=$ac_cv_host |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6466 | else |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6467 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 6468 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
| 6469 | fi |
| 6470 | |
| 6471 | fi |
| 6472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 6473 | $as_echo "$ac_cv_target" >&6; } |
| 6474 | case $ac_cv_target in |
| 6475 | *-*-*) ;; |
| 6476 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
| 6477 | esac |
| 6478 | target=$ac_cv_target |
| 6479 | ac_save_IFS=$IFS; IFS='-' |
| 6480 | set x $ac_cv_target |
| 6481 | shift |
| 6482 | target_cpu=$1 |
| 6483 | target_vendor=$2 |
| 6484 | shift; shift |
| 6485 | # Remember, the first character of IFS is used to create $*, |
| 6486 | # except with old shells: |
| 6487 | target_os=$* |
| 6488 | IFS=$ac_save_IFS |
| 6489 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 6490 | |
| 6491 | |
| 6492 | # The aliases save the names the user supplied, while $host etc. |
| 6493 | # will get canonicalized. |
| 6494 | test -n "$target_alias" && |
| 6495 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 6496 | NONENONEs,x,x, && |
| 6497 | program_prefix=${target_alias}- |
| 6498 | # Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args. |
| 6499 | set dummy $target_alias-llvm-profdata; ac_word=$2 |
| 6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6501 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6502 | if ${ac_cv_path_LLVM_PROFDATA+:} false; then : |
| 6503 | $as_echo_n "(cached) " >&6 |
| 6504 | else |
| 6505 | case $LLVM_PROFDATA in |
| 6506 | [\\/]* | ?:[\\/]*) |
| 6507 | ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. |
| 6508 | ;; |
| 6509 | *) |
| 6510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6511 | for as_dir in ${llvm_path} |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6512 | do |
| 6513 | IFS=$as_save_IFS |
| 6514 | test -z "$as_dir" && as_dir=. |
| 6515 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6516 | 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] | 6517 | ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6519 | break 2 |
| 6520 | fi |
| 6521 | done |
| 6522 | done |
| 6523 | IFS=$as_save_IFS |
| 6524 | |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6525 | ;; |
| 6526 | esac |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6527 | fi |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6528 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA |
| 6529 | if test -n "$LLVM_PROFDATA"; then |
| 6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 |
| 6531 | $as_echo "$LLVM_PROFDATA" >&6; } |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6532 | else |
| 6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6534 | $as_echo "no" >&6; } |
| 6535 | fi |
| 6536 | |
| 6537 | |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6538 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then |
| 6539 | if test "$build" = "$target"; then |
| 6540 | ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA |
| 6541 | # Extract the first word of "llvm-profdata", so it can be a program name with args. |
| 6542 | set dummy llvm-profdata; ac_word=$2 |
| 6543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6544 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6545 | if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : |
| 6546 | $as_echo_n "(cached) " >&6 |
| 6547 | else |
| 6548 | case $ac_pt_LLVM_PROFDATA in |
| 6549 | [\\/]* | ?:[\\/]*) |
| 6550 | ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. |
| 6551 | ;; |
| 6552 | *) |
| 6553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6554 | for as_dir in ${llvm_path} |
| 6555 | do |
| 6556 | IFS=$as_save_IFS |
| 6557 | test -z "$as_dir" && as_dir=. |
| 6558 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6559 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6560 | ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" |
| 6561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6562 | break 2 |
| 6563 | fi |
| 6564 | done |
| 6565 | done |
| 6566 | IFS=$as_save_IFS |
| 6567 | |
| 6568 | test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''" |
| 6569 | ;; |
| 6570 | esac |
| 6571 | fi |
| 6572 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA |
| 6573 | if test -n "$ac_pt_LLVM_PROFDATA"; then |
| 6574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 |
| 6575 | $as_echo "$ac_pt_LLVM_PROFDATA" >&6; } |
| 6576 | else |
| 6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6578 | $as_echo "no" >&6; } |
| 6579 | fi |
| 6580 | |
| 6581 | LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA |
| 6582 | else |
| 6583 | LLVM_PROFDATA="''" |
| 6584 | fi |
| 6585 | else |
| 6586 | LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" |
| 6587 | fi |
| 6588 | |
| 6589 | |
| 6590 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" |
| 6591 | then |
| 6592 | LLVM_PROF_FOUND="found" |
| 6593 | else |
| 6594 | LLVM_PROF_FOUND="not-found" |
| 6595 | fi |
| 6596 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" |
| 6597 | then |
| 6598 | found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` |
| 6599 | if test -n "${found_llvm_profdata}" |
| 6600 | then |
| 6601 | # llvm-profdata isn't directly in $PATH in some cases. |
| 6602 | # https://apple.stackexchange.com/questions/197053/ |
| 6603 | LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' |
| 6604 | LLVM_PROF_FOUND=found |
| 6605 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 |
| 6606 | $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} |
| 6607 | fi |
| 6608 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6609 | LLVM_PROF_ERR=no |
| 6610 | case $CC in |
| 6611 | *clang*) |
| 6612 | # Any changes made here should be reflected in the GCC+Darwin case below |
| 6613 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" |
| 6614 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6615 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6616 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
| 6617 | if test $LLVM_PROF_FOUND = not-found |
| 6618 | then |
| 6619 | LLVM_PROF_ERR=yes |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6620 | if test "${REQUIRE_PGO}" = "yes" |
| 6621 | then |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6622 | 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] | 6623 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6624 | fi |
| 6625 | ;; |
| 6626 | *gcc*) |
| 6627 | case $ac_sys_system in |
| 6628 | Darwin*) |
| 6629 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" |
| 6630 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6631 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6632 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6633 | if test "${LLVM_PROF_FOUND}" = "not-found" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6634 | then |
| 6635 | LLVM_PROF_ERR=yes |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6636 | if test "${REQUIRE_PGO}" = "yes" |
| 6637 | then |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6638 | 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] | 6639 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6640 | fi |
| 6641 | ;; |
| 6642 | *) |
| 6643 | PGO_PROF_GEN_FLAG="-fprofile-generate" |
| 6644 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" |
| 6645 | LLVM_PROF_MERGER="true" |
| 6646 | LLVM_PROF_FILE="" |
| 6647 | ;; |
| 6648 | esac |
| 6649 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6650 | *icc*) |
| 6651 | PGO_PROF_GEN_FLAG="-prof-gen" |
| 6652 | PGO_PROF_USE_FLAG="-prof-use" |
| 6653 | LLVM_PROF_MERGER="true" |
| 6654 | LLVM_PROF_FILE="" |
| 6655 | ;; |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6656 | esac |
| 6657 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6658 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 6659 | # merged with this chunk of code? |
| 6660 | |
| 6661 | # Optimizer/debugger flags |
| 6662 | # ------------------------ |
| 6663 | # (The following bit of code is complicated enough - please keep things |
| 6664 | # indented properly. Just pretend you're editing Python code. ;-) |
| 6665 | |
| 6666 | # There are two parallel sets of case statements below, one that checks to |
| 6667 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 6668 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 6669 | # user set OPT. |
| 6670 | |
| 6671 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 6672 | # it on the command line |
| 6673 | |
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 6674 | |
Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6675 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6676 | then |
| 6677 | case $GCC in |
| 6678 | yes) |
| 6679 | if test "$CC" != 'g++' ; then |
| 6680 | STRICT_PROTO="-Wstrict-prototypes" |
| 6681 | fi |
| 6682 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 6683 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 6684 | WRAP="-fwrapv" |
| 6685 | fi |
Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6686 | |
Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6687 | case $CC in |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6688 | *clang*) |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6689 | cc_is_clang=1 |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6690 | ;; |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6691 | *) |
| 6692 | if $CC --version 2>&1 | grep -q clang |
| 6693 | then |
| 6694 | cc_is_clang=1 |
| 6695 | else |
| 6696 | cc_is_clang= |
| 6697 | fi |
Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6698 | esac |
Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6699 | |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6700 | if test -n "${cc_is_clang}" |
| 6701 | then |
| 6702 | # Clang also needs -fwrapv |
| 6703 | WRAP="-fwrapv" |
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 6704 | # bpo-30104: disable strict aliasing to compile correctly dtoa.c, |
| 6705 | # see Makefile.pre.in for more information |
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 6706 | CFLAGS_ALIASING="-fno-strict-aliasing" |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6707 | fi |
| 6708 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6709 | case $ac_cv_prog_cc_g in |
| 6710 | yes) |
| 6711 | if test "$Py_DEBUG" = 'true' ; then |
| 6712 | # Optimization messes up debuggers, so turn it off for |
| 6713 | # debug builds. |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6714 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6715 | OPT="-g -Og -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6716 | else |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6717 | OPT="-g -O0 -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6718 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6719 | else |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6720 | OPT="-g $WRAP -O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6721 | fi |
| 6722 | ;; |
| 6723 | *) |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6724 | OPT="-O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6725 | ;; |
| 6726 | esac |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6727 | |
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 6728 | OPT="$OPT $STRICT_PROTO" |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6729 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6730 | case $ac_sys_system in |
| 6731 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 6732 | ;; |
| 6733 | esac |
| 6734 | ;; |
| 6735 | |
| 6736 | *) |
| 6737 | OPT="-O" |
| 6738 | ;; |
| 6739 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6740 | fi |
| 6741 | |
| 6742 | |
| 6743 | |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6744 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6745 | # The -arch flags for universal builds on OSX |
| 6746 | UNIVERSAL_ARCH_FLAGS= |
| 6747 | |
| 6748 | |
| 6749 | # tweak BASECFLAGS based on compiler and platform |
| 6750 | case $GCC in |
| 6751 | yes) |
Benjamin Peterson | 050af5d | 2016-09-10 17:53:13 -0700 | [diff] [blame] | 6752 | CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" |
Benjamin Peterson | d170256 | 2016-09-07 12:00:06 -0700 | [diff] [blame] | 6753 | |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 |
| 6755 | $as_echo_n "checking for -Wextra... " >&6; } |
| 6756 | ac_save_cc="$CC" |
| 6757 | CC="$CC -Wextra -Werror" |
| 6758 | if ${ac_cv_extra_warnings+:} false; then : |
| 6759 | $as_echo_n "(cached) " >&6 |
| 6760 | else |
| 6761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6762 | /* end confdefs.h. */ |
| 6763 | |
| 6764 | |
| 6765 | int |
| 6766 | main () |
| 6767 | { |
| 6768 | |
| 6769 | ; |
| 6770 | return 0; |
| 6771 | } |
| 6772 | |
| 6773 | _ACEOF |
| 6774 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6775 | |
| 6776 | ac_cv_extra_warnings=yes |
| 6777 | |
| 6778 | else |
| 6779 | |
| 6780 | ac_cv_extra_warnings=no |
| 6781 | |
| 6782 | fi |
| 6783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6784 | fi |
| 6785 | |
| 6786 | CC="$ac_save_cc" |
| 6787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 |
| 6788 | $as_echo "$ac_cv_extra_warnings" >&6; } |
| 6789 | |
| 6790 | if test $ac_cv_extra_warnings = yes |
| 6791 | then |
| 6792 | CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" |
| 6793 | fi |
| 6794 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6795 | # Python doesn't violate C99 aliasing rules, but older versions of |
| 6796 | # GCC produce warnings for legal Python code. Enable |
| 6797 | # -fno-strict-aliasing on versions of GCC that support but produce |
| 6798 | # warnings. See Issue3326 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
| 6800 | $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] | 6801 | ac_save_cc="$CC" |
| 6802 | CC="$CC -fno-strict-aliasing" |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6803 | save_CFLAGS="$CFLAGS" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6804 | if ${ac_cv_no_strict_aliasing+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6805 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6806 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6808 | /* end confdefs.h. */ |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6809 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6810 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6811 | int |
| 6812 | main () |
| 6813 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6814 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6815 | ; |
| 6816 | return 0; |
| 6817 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6818 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6819 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6820 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6821 | |
| 6822 | CC="$ac_save_cc -fstrict-aliasing" |
| 6823 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" |
| 6824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6825 | /* end confdefs.h. */ |
| 6826 | |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6827 | void f(int **x) {} |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6828 | int |
| 6829 | main () |
| 6830 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6831 | double *x; f((int **) &x); |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6832 | ; |
| 6833 | return 0; |
| 6834 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6835 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6836 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6837 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6838 | |
| 6839 | ac_cv_no_strict_aliasing=no |
| 6840 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6841 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6842 | |
| 6843 | ac_cv_no_strict_aliasing=yes |
| 6844 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6845 | fi |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6847 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6848 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6849 | |
| 6850 | ac_cv_no_strict_aliasing=no |
| 6851 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6852 | fi |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6854 | fi |
| 6855 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6856 | CFLAGS="$save_CFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6857 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
| 6859 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6860 | if test $ac_cv_no_strict_aliasing = yes |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6861 | then |
| 6862 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 6863 | fi |
| 6864 | |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6865 | # ICC doesn't recognize the option, but only emits a warning |
| 6866 | ## XXX does it emit an unused result warning and can it be disabled? |
| 6867 | case "$CC" in |
| 6868 | *icc*) |
| 6869 | ac_cv_disable_unused_result_warning=no |
| 6870 | ;; |
| 6871 | *) |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 |
| 6873 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } |
| 6874 | ac_save_cc="$CC" |
| 6875 | CC="$CC -Wunused-result -Werror" |
| 6876 | save_CFLAGS="$CFLAGS" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6877 | if ${ac_cv_disable_unused_result_warning+:} false; then : |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6878 | $as_echo_n "(cached) " >&6 |
| 6879 | else |
| 6880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6881 | /* end confdefs.h. */ |
| 6882 | |
| 6883 | |
| 6884 | int |
| 6885 | main () |
| 6886 | { |
| 6887 | |
| 6888 | ; |
| 6889 | return 0; |
| 6890 | } |
| 6891 | |
| 6892 | _ACEOF |
| 6893 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6894 | |
| 6895 | ac_cv_disable_unused_result_warning=yes |
| 6896 | |
| 6897 | else |
| 6898 | |
| 6899 | ac_cv_disable_unused_result_warning=no |
| 6900 | |
| 6901 | fi |
| 6902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6903 | fi |
| 6904 | |
| 6905 | CFLAGS="$save_CFLAGS" |
| 6906 | CC="$ac_save_cc" |
| 6907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 |
| 6908 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6909 | ;; |
| 6910 | esac |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6911 | |
| 6912 | if test $ac_cv_disable_unused_result_warning = yes |
| 6913 | then |
| 6914 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 6915 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" |
| 6916 | fi |
| 6917 | |
| 6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 |
| 6919 | $as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } |
| 6920 | ac_save_cc="$CC" |
| 6921 | CC="$CC -Wunused-parameter -Werror" |
| 6922 | if ${ac_cv_disable_unused_parameter_warning+:} false; then : |
| 6923 | $as_echo_n "(cached) " >&6 |
| 6924 | else |
| 6925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6926 | /* end confdefs.h. */ |
| 6927 | |
| 6928 | |
| 6929 | int |
| 6930 | main () |
| 6931 | { |
| 6932 | |
| 6933 | ; |
| 6934 | return 0; |
| 6935 | } |
| 6936 | |
| 6937 | _ACEOF |
| 6938 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6939 | |
| 6940 | ac_cv_disable_unused_parameter_warning=yes |
| 6941 | |
| 6942 | else |
| 6943 | |
| 6944 | ac_cv_disable_unused_parameter_warning=no |
| 6945 | |
| 6946 | fi |
| 6947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6948 | fi |
| 6949 | |
| 6950 | CC="$ac_save_cc" |
| 6951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 |
| 6952 | $as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } |
| 6953 | |
| 6954 | if test $ac_cv_disable_unused_parameter_warning = yes |
| 6955 | then |
| 6956 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" |
| 6957 | fi |
| 6958 | |
| 6959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 |
| 6960 | $as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } |
| 6961 | ac_save_cc="$CC" |
| 6962 | CC="$CC -Wmissing-field-initializers -Werror" |
| 6963 | if ${ac_cv_disable_missing_field_initializers+:} false; then : |
| 6964 | $as_echo_n "(cached) " >&6 |
| 6965 | else |
| 6966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6967 | /* end confdefs.h. */ |
| 6968 | |
| 6969 | |
| 6970 | int |
| 6971 | main () |
| 6972 | { |
| 6973 | |
| 6974 | ; |
| 6975 | return 0; |
| 6976 | } |
| 6977 | |
| 6978 | _ACEOF |
| 6979 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6980 | |
| 6981 | ac_cv_disable_missing_field_initializers=yes |
| 6982 | |
| 6983 | else |
| 6984 | |
| 6985 | ac_cv_disable_missing_field_initializers=no |
| 6986 | |
| 6987 | fi |
| 6988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6989 | fi |
| 6990 | |
| 6991 | CC="$ac_save_cc" |
| 6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 |
| 6993 | $as_echo "$ac_cv_disable_missing_field_initializers" >&6; } |
| 6994 | |
| 6995 | if test $ac_cv_disable_missing_field_initializers = yes |
| 6996 | then |
| 6997 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6998 | fi |
| 6999 | |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 |
| 7001 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } |
| 7002 | ac_save_cc="$CC" |
| 7003 | CC="$CC -Wsign-compare" |
| 7004 | save_CFLAGS="$CFLAGS" |
| 7005 | if ${ac_cv_enable_sign_compare_warning+:} false; then : |
| 7006 | $as_echo_n "(cached) " >&6 |
| 7007 | else |
| 7008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7009 | /* end confdefs.h. */ |
| 7010 | |
| 7011 | |
| 7012 | int |
| 7013 | main () |
| 7014 | { |
| 7015 | |
| 7016 | ; |
| 7017 | return 0; |
| 7018 | } |
| 7019 | |
| 7020 | _ACEOF |
| 7021 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7022 | |
| 7023 | ac_cv_enable_sign_compare_warning=yes |
| 7024 | |
| 7025 | else |
| 7026 | |
| 7027 | ac_cv_enable_sign_compare_warning=no |
| 7028 | |
| 7029 | fi |
| 7030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7031 | fi |
| 7032 | |
| 7033 | CFLAGS="$save_CFLAGS" |
| 7034 | CC="$ac_save_cc" |
| 7035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 |
| 7036 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } |
| 7037 | |
| 7038 | if test $ac_cv_enable_sign_compare_warning = yes |
| 7039 | then |
| 7040 | BASECFLAGS="$BASECFLAGS -Wsign-compare" |
| 7041 | fi |
| 7042 | |
| 7043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 |
| 7044 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } |
| 7045 | ac_save_cc="$CC" |
| 7046 | CC="$CC -Wunreachable-code" |
| 7047 | save_CFLAGS="$CFLAGS" |
| 7048 | if ${ac_cv_enable_unreachable_code_warning+:} false; then : |
| 7049 | $as_echo_n "(cached) " >&6 |
| 7050 | else |
| 7051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7052 | /* end confdefs.h. */ |
| 7053 | |
| 7054 | |
| 7055 | int |
| 7056 | main () |
| 7057 | { |
| 7058 | |
| 7059 | ; |
| 7060 | return 0; |
| 7061 | } |
| 7062 | |
| 7063 | _ACEOF |
| 7064 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7065 | |
| 7066 | ac_cv_enable_unreachable_code_warning=yes |
| 7067 | |
| 7068 | else |
| 7069 | |
| 7070 | ac_cv_enable_unreachable_code_warning=no |
| 7071 | |
| 7072 | fi |
| 7073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7074 | fi |
| 7075 | |
| 7076 | CFLAGS="$save_CFLAGS" |
| 7077 | CC="$ac_save_cc" |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7078 | |
| 7079 | # Don't enable unreachable code warning in debug mode, since it usually |
| 7080 | # results in non-standard code paths. |
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7081 | # Issue #24324: Unfortunately, the unreachable code warning does not work |
| 7082 | # correctly on gcc and has been silently removed from the compiler. |
| 7083 | # It is supported on clang but on OS X systems gcc may be an alias |
| 7084 | # for clang. Try to determine if the compiler is not really gcc and, |
| 7085 | # if so, only then enable the warning. |
| 7086 | if test $ac_cv_enable_unreachable_code_warning = yes && \ |
| 7087 | test "$Py_DEBUG" != "true" && \ |
| 7088 | 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] | 7089 | then |
| 7090 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" |
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7091 | else |
| 7092 | ac_cv_enable_unreachable_code_warning=no |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7093 | fi |
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 |
| 7095 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7096 | |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 |
| 7098 | $as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; } |
| 7099 | ac_save_cc="$CC" |
| 7100 | CC="$CC -Werror=implicit-function-declaration" |
| 7101 | if ${ac_cv_enable_implicit_function_declaration_error+:} false; then : |
| 7102 | $as_echo_n "(cached) " >&6 |
| 7103 | else |
| 7104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7105 | /* end confdefs.h. */ |
| 7106 | |
| 7107 | |
| 7108 | int |
| 7109 | main () |
| 7110 | { |
| 7111 | |
| 7112 | ; |
| 7113 | return 0; |
| 7114 | } |
| 7115 | |
| 7116 | _ACEOF |
| 7117 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7118 | |
| 7119 | ac_cv_enable_implicit_function_declaration_error=yes |
| 7120 | |
| 7121 | else |
| 7122 | |
| 7123 | ac_cv_enable_implicit_function_declaration_error=no |
| 7124 | |
| 7125 | fi |
| 7126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7127 | fi |
| 7128 | |
| 7129 | CC="$ac_save_cc" |
| 7130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 |
| 7131 | $as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; } |
| 7132 | |
| 7133 | if test $ac_cv_enable_implicit_function_declaration_error = yes |
| 7134 | then |
| 7135 | CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" |
| 7136 | fi |
| 7137 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7138 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 7139 | # support. Without this, treatment of subnormals doesn't follow |
| 7140 | # the standard. |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 7141 | case $host in |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7142 | alpha*) |
| 7143 | BASECFLAGS="$BASECFLAGS -mieee" |
| 7144 | ;; |
| 7145 | esac |
| 7146 | |
| 7147 | case $ac_sys_system in |
| 7148 | SCO_SV*) |
| 7149 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 7150 | ;; |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7151 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7152 | Darwin*) |
| 7153 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 7154 | # used to be here, but non-Apple gcc doesn't accept them. |
| 7155 | if test "${CC}" = gcc |
| 7156 | then |
| 7157 | { $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] | 7158 | $as_echo_n "checking which compiler should be used... " >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7159 | case "${UNIVERSALSDK}" in |
| 7160 | */MacOSX10.4u.sdk) |
| 7161 | # Build using 10.4 SDK, force usage of gcc when the |
| 7162 | # compiler is gcc, otherwise the user will get very |
| 7163 | # confusing error messages when building on OSX 10.6 |
| 7164 | CC=gcc-4.0 |
| 7165 | CPP=cpp-4.0 |
| 7166 | ;; |
| 7167 | esac |
| 7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7169 | $as_echo "$CC" >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7170 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7171 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7172 | if test "${enable_universalsdk}" |
| 7173 | then |
| 7174 | case "$UNIVERSAL_ARCHS" in |
| 7175 | 32-bit) |
| 7176 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 7177 | LIPO_32BIT_FLAGS="" |
| 7178 | ARCH_RUN_32BIT="" |
| 7179 | ;; |
| 7180 | 64-bit) |
| 7181 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 7182 | LIPO_32BIT_FLAGS="" |
| 7183 | ARCH_RUN_32BIT="true" |
| 7184 | ;; |
| 7185 | all) |
| 7186 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 7187 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 7188 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
| 7189 | ;; |
| 7190 | intel) |
| 7191 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 7192 | LIPO_32BIT_FLAGS="-extract i386" |
| 7193 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
| 7194 | ;; |
| 7195 | intel-32) |
| 7196 | UNIVERSAL_ARCH_FLAGS="-arch i386" |
| 7197 | LIPO_32BIT_FLAGS="" |
| 7198 | ARCH_RUN_32BIT="" |
| 7199 | ;; |
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 7200 | intel-64) |
| 7201 | UNIVERSAL_ARCH_FLAGS="-arch x86_64" |
| 7202 | LIPO_32BIT_FLAGS="" |
| 7203 | ARCH_RUN_32BIT="true" |
| 7204 | ;; |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7205 | 3-way) |
| 7206 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 7207 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 7208 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
| 7209 | ;; |
| 7210 | *) |
| 7211 | as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 |
| 7212 | ;; |
| 7213 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7214 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7215 | if test "${UNIVERSALSDK}" != "/" |
| 7216 | then |
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 7217 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 7218 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7219 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
Ned Deily | 8c9bb72 | 2018-01-30 07:42:14 -0500 | [diff] [blame] | 7220 | else |
| 7221 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" |
| 7222 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}" |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7223 | fi |
| 7224 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7225 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7226 | # Calculate an appropriate deployment target for this build: |
| 7227 | # The deployment target value is used explicitly to enable certain |
| 7228 | # features are enabled (such as builtin libedit support for readline) |
Raymond Hettinger | 15f44ab | 2016-08-30 10:47:49 -0700 | [diff] [blame] | 7229 | # 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] | 7230 | # component of the string returned by distutils.get_platform(). |
| 7231 | # |
| 7232 | # Use the value from: |
| 7233 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified |
| 7234 | # 2. the operating system version of the build machine if >= 10.6 |
| 7235 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests |
| 7236 | # below to pick either 10.3, 10.4, or 10.5 as the target. |
| 7237 | # 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] | 7238 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 |
| 7240 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7241 | cur_target_major=`sw_vers -productVersion | \ |
| 7242 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` |
| 7243 | cur_target_minor=`sw_vers -productVersion | \ |
| 7244 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` |
| 7245 | cur_target="${cur_target_major}.${cur_target_minor}" |
| 7246 | if test ${cur_target_major} -eq 10 && \ |
| 7247 | test ${cur_target_minor} -ge 3 && \ |
| 7248 | test ${cur_target_minor} -le 5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7249 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7250 | # OS X 10.3 through 10.5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7251 | cur_target=10.3 |
| 7252 | if test ${enable_universalsdk} |
| 7253 | then |
| 7254 | case "$UNIVERSAL_ARCHS" in |
| 7255 | all|3-way|intel|64-bit) |
| 7256 | # These configurations were first supported in 10.5 |
| 7257 | cur_target='10.5' |
| 7258 | ;; |
| 7259 | esac |
| 7260 | else |
| 7261 | if test `/usr/bin/arch` = "i386" |
| 7262 | then |
| 7263 | # 10.4 was the first release to support Intel archs |
| 7264 | cur_target="10.4" |
| 7265 | fi |
| 7266 | fi |
| 7267 | fi |
| 7268 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7269 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7270 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 7271 | # environment with a value that is the same as what we'll use |
| 7272 | # in the Makefile to ensure that we'll get the same compiler |
| 7273 | # environment during configure and build time. |
| 7274 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 7275 | export MACOSX_DEPLOYMENT_TARGET |
| 7276 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 7277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 |
| 7278 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7279 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7280 | # end of Darwin* tests |
| 7281 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7282 | esac |
| 7283 | ;; |
| 7284 | |
| 7285 | *) |
| 7286 | case $ac_sys_system in |
| 7287 | OpenUNIX*|UnixWare*) |
| 7288 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 7289 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7290 | SCO_SV*) |
| 7291 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 7292 | ;; |
| 7293 | esac |
| 7294 | ;; |
| 7295 | esac |
| 7296 | |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7297 | # ICC needs -fp-model strict or floats behave badly |
| 7298 | case "$CC" in |
| 7299 | *icc*) |
| 7300 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" |
| 7301 | ;; |
| 7302 | esac |
| 7303 | |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 7304 | if test "$assertions" = 'true'; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7305 | : |
| 7306 | else |
| 7307 | OPT="-DNDEBUG $OPT" |
| 7308 | fi |
| 7309 | |
| 7310 | if test "$ac_arch_flags" |
| 7311 | then |
| 7312 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 7313 | fi |
| 7314 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7315 | # On some compilers, pthreads are available without further options |
| 7316 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 7317 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 7318 | # So we have to see first whether pthreads are available without |
| 7319 | # options before we can check whether -Kpthread improves anything. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
| 7321 | $as_echo_n "checking whether pthreads are available without options... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7322 | if ${ac_cv_pthread_is_default+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7323 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7324 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7325 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7326 | ac_cv_pthread_is_default=no |
| 7327 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7329 | /* end confdefs.h. */ |
| 7330 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7331 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7332 | #include <pthread.h> |
| 7333 | |
| 7334 | void* routine(void* p){return NULL;} |
| 7335 | |
| 7336 | int main(){ |
| 7337 | pthread_t p; |
| 7338 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7339 | return 1; |
| 7340 | (void)pthread_detach(p); |
| 7341 | return 0; |
| 7342 | } |
| 7343 | |
| 7344 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7345 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7346 | |
| 7347 | ac_cv_pthread_is_default=yes |
| 7348 | ac_cv_kthread=no |
| 7349 | ac_cv_pthread=no |
| 7350 | |
| 7351 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7352 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7353 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7354 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7355 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7356 | fi |
| 7357 | |
| 7358 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7359 | fi |
| 7360 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
| 7362 | $as_echo "$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7363 | |
| 7364 | |
| 7365 | if test $ac_cv_pthread_is_default = yes |
| 7366 | then |
| 7367 | ac_cv_kpthread=no |
| 7368 | else |
| 7369 | # -Kpthread, if available, provides the right #defines |
| 7370 | # and linker options to make pthread_create available |
| 7371 | # Some compilers won't report that they do not support -Kpthread, |
| 7372 | # so we need to run a program to see whether it really made the |
| 7373 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
| 7375 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7376 | if ${ac_cv_kpthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7377 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7378 | else |
| 7379 | ac_save_cc="$CC" |
| 7380 | CC="$CC -Kpthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7381 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7382 | ac_cv_kpthread=no |
| 7383 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7385 | /* end confdefs.h. */ |
| 7386 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7387 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7388 | #include <pthread.h> |
| 7389 | |
| 7390 | void* routine(void* p){return NULL;} |
| 7391 | |
| 7392 | int main(){ |
| 7393 | pthread_t p; |
| 7394 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7395 | return 1; |
| 7396 | (void)pthread_detach(p); |
| 7397 | return 0; |
| 7398 | } |
| 7399 | |
| 7400 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7401 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7402 | ac_cv_kpthread=yes |
| 7403 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7404 | ac_cv_kpthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7405 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7406 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7407 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7408 | fi |
| 7409 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7410 | CC="$ac_save_cc" |
| 7411 | fi |
| 7412 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
| 7414 | $as_echo "$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7415 | fi |
| 7416 | |
| 7417 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 7418 | then |
| 7419 | # -Kthread, if available, provides the right #defines |
| 7420 | # and linker options to make pthread_create available |
| 7421 | # Some compilers won't report that they do not support -Kthread, |
| 7422 | # so we need to run a program to see whether it really made the |
| 7423 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
| 7425 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7426 | if ${ac_cv_kthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7427 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7428 | else |
| 7429 | ac_save_cc="$CC" |
| 7430 | CC="$CC -Kthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7431 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7432 | ac_cv_kthread=no |
| 7433 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7435 | /* end confdefs.h. */ |
| 7436 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7437 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7438 | #include <pthread.h> |
| 7439 | |
| 7440 | void* routine(void* p){return NULL;} |
| 7441 | |
| 7442 | int main(){ |
| 7443 | pthread_t p; |
| 7444 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7445 | return 1; |
| 7446 | (void)pthread_detach(p); |
| 7447 | return 0; |
| 7448 | } |
| 7449 | |
| 7450 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7451 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7452 | ac_cv_kthread=yes |
| 7453 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7454 | ac_cv_kthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7455 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7456 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7457 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7458 | fi |
| 7459 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7460 | CC="$ac_save_cc" |
| 7461 | fi |
| 7462 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
| 7464 | $as_echo "$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7465 | fi |
| 7466 | |
| 7467 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 7468 | then |
| 7469 | # -pthread, if available, provides the right #defines |
| 7470 | # and linker options to make pthread_create available |
| 7471 | # Some compilers won't report that they do not support -pthread, |
| 7472 | # so we need to run a program to see whether it really made the |
| 7473 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
| 7475 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } |
doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 7476 | if ${ac_cv_pthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7477 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7478 | else |
| 7479 | ac_save_cc="$CC" |
| 7480 | CC="$CC -pthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7481 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7482 | ac_cv_pthread=no |
| 7483 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7485 | /* end confdefs.h. */ |
| 7486 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7487 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7488 | #include <pthread.h> |
| 7489 | |
| 7490 | void* routine(void* p){return NULL;} |
| 7491 | |
| 7492 | int main(){ |
| 7493 | pthread_t p; |
| 7494 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7495 | return 1; |
| 7496 | (void)pthread_detach(p); |
| 7497 | return 0; |
| 7498 | } |
| 7499 | |
| 7500 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7501 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7502 | ac_cv_pthread=yes |
| 7503 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7504 | ac_cv_pthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7505 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7506 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7507 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7508 | fi |
| 7509 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7510 | CC="$ac_save_cc" |
| 7511 | fi |
| 7512 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
| 7514 | $as_echo "$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7515 | fi |
| 7516 | |
| 7517 | # If we have set a CC compiler flag for thread support then |
| 7518 | # check if it works for CXX, too. |
| 7519 | ac_cv_cxx_thread=no |
| 7520 | if test ! -z "$CXX" |
| 7521 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
| 7523 | $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] | 7524 | ac_save_cxx="$CXX" |
| 7525 | |
| 7526 | if test "$ac_cv_kpthread" = "yes" |
| 7527 | then |
| 7528 | CXX="$CXX -Kpthread" |
| 7529 | ac_cv_cxx_thread=yes |
| 7530 | elif test "$ac_cv_kthread" = "yes" |
| 7531 | then |
| 7532 | CXX="$CXX -Kthread" |
| 7533 | ac_cv_cxx_thread=yes |
| 7534 | elif test "$ac_cv_pthread" = "yes" |
| 7535 | then |
| 7536 | CXX="$CXX -pthread" |
| 7537 | ac_cv_cxx_thread=yes |
| 7538 | fi |
| 7539 | |
| 7540 | if test $ac_cv_cxx_thread = yes |
| 7541 | then |
| 7542 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 7543 | $CXX -c conftest.$ac_ext 2>&5 |
| 7544 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 7545 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 7546 | then |
| 7547 | ac_cv_cxx_thread=yes |
| 7548 | else |
| 7549 | ac_cv_cxx_thread=no |
| 7550 | fi |
| 7551 | rm -fr conftest* |
| 7552 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
| 7554 | $as_echo "$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7555 | fi |
| 7556 | CXX="$ac_save_cxx" |
| 7557 | |
| 7558 | |
| 7559 | # checks for header files |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7561 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7562 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7563 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7564 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7566 | /* end confdefs.h. */ |
| 7567 | #include <stdlib.h> |
| 7568 | #include <stdarg.h> |
| 7569 | #include <string.h> |
| 7570 | #include <float.h> |
| 7571 | |
| 7572 | int |
| 7573 | main () |
| 7574 | { |
| 7575 | |
| 7576 | ; |
| 7577 | return 0; |
| 7578 | } |
| 7579 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7580 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7581 | ac_cv_header_stdc=yes |
| 7582 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7583 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7584 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7586 | |
| 7587 | if test $ac_cv_header_stdc = yes; then |
| 7588 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7590 | /* end confdefs.h. */ |
| 7591 | #include <string.h> |
| 7592 | |
| 7593 | _ACEOF |
| 7594 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7595 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7596 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7597 | else |
| 7598 | ac_cv_header_stdc=no |
| 7599 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7600 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7601 | |
| 7602 | fi |
| 7603 | |
| 7604 | if test $ac_cv_header_stdc = yes; then |
| 7605 | # 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] | 7606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7607 | /* end confdefs.h. */ |
| 7608 | #include <stdlib.h> |
| 7609 | |
| 7610 | _ACEOF |
| 7611 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7612 | $EGREP "free" >/dev/null 2>&1; then : |
| 7613 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7614 | else |
| 7615 | ac_cv_header_stdc=no |
| 7616 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7617 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7618 | |
| 7619 | fi |
| 7620 | |
| 7621 | if test $ac_cv_header_stdc = yes; then |
| 7622 | # /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] | 7623 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7624 | : |
| 7625 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7627 | /* end confdefs.h. */ |
| 7628 | #include <ctype.h> |
| 7629 | #include <stdlib.h> |
| 7630 | #if ((' ' & 0x0FF) == 0x020) |
| 7631 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7632 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7633 | #else |
| 7634 | # define ISLOWER(c) \ |
| 7635 | (('a' <= (c) && (c) <= 'i') \ |
| 7636 | || ('j' <= (c) && (c) <= 'r') \ |
| 7637 | || ('s' <= (c) && (c) <= 'z')) |
| 7638 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7639 | #endif |
| 7640 | |
| 7641 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7642 | int |
| 7643 | main () |
| 7644 | { |
| 7645 | int i; |
| 7646 | for (i = 0; i < 256; i++) |
| 7647 | if (XOR (islower (i), ISLOWER (i)) |
| 7648 | || toupper (i) != TOUPPER (i)) |
| 7649 | return 2; |
| 7650 | return 0; |
| 7651 | } |
| 7652 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7653 | if ac_fn_c_try_run "$LINENO"; then : |
| 7654 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7655 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7656 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7657 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7658 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7659 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7660 | fi |
| 7661 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7662 | fi |
| 7663 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 7665 | $as_echo "$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7666 | if test $ac_cv_header_stdc = yes; then |
| 7667 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7668 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7669 | |
| 7670 | fi |
| 7671 | |
stratakis | e768c86 | 2018-01-23 16:11:24 +0100 | [diff] [blame] | 7672 | for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7673 | fcntl.h grp.h \ |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7674 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ |
Benjamin Peterson | 4fe5510 | 2016-09-06 11:58:01 -0700 | [diff] [blame] | 7675 | sched.h shadow.h signal.h stropts.h termios.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 7676 | unistd.h utime.h \ |
Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7677 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ |
Antoine Pitrou | bcf2b59 | 2012-02-08 23:28:36 +0100 | [diff] [blame] | 7678 | 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] | 7679 | 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] | 7680 | 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] | 7681 | 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] | 7682 | 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] | 7683 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 7684 | linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \ |
Christian Heimes | 75b9618 | 2017-09-05 15:53:09 +0200 | [diff] [blame] | 7685 | sys/endian.h sys/sysmacros.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7686 | do : |
| 7687 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7688 | 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] | 7689 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7690 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7691 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7692 | _ACEOF |
| 7693 | |
| 7694 | fi |
| 7695 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7696 | done |
| 7697 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7698 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7699 | 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] | 7700 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 7701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 7702 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7703 | if eval \${$as_ac_Header+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7704 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7705 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7707 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7708 | #include <sys/types.h> |
| 7709 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7710 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7711 | int |
| 7712 | main () |
| 7713 | { |
| 7714 | if ((DIR *) 0) |
| 7715 | return 0; |
| 7716 | ; |
| 7717 | return 0; |
| 7718 | } |
| 7719 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7720 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7721 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7722 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7723 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7724 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7726 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7727 | eval ac_res=\$$as_ac_Header |
| 7728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7729 | $as_echo "$ac_res" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7730 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7731 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7732 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7733 | _ACEOF |
| 7734 | |
| 7735 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7736 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7737 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7738 | done |
| 7739 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 7740 | if test $ac_header_dirent = dirent.h; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 7742 | $as_echo_n "checking for library containing opendir... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7743 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7744 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7746 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7748 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7749 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7750 | /* Override any GCC internal prototype to avoid an error. |
| 7751 | Use char because int might match the return type of a GCC |
| 7752 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7753 | #ifdef __cplusplus |
| 7754 | extern "C" |
| 7755 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7756 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7757 | int |
| 7758 | main () |
| 7759 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7760 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7761 | ; |
| 7762 | return 0; |
| 7763 | } |
| 7764 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7765 | for ac_lib in '' dir; do |
| 7766 | if test -z "$ac_lib"; then |
| 7767 | ac_res="none required" |
| 7768 | else |
| 7769 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7770 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7771 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7772 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7773 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7774 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7775 | rm -f core conftest.err conftest.$ac_objext \ |
| 7776 | conftest$ac_exeext |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7777 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7778 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7779 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7780 | done |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7781 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7782 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7783 | else |
| 7784 | ac_cv_search_opendir=no |
| 7785 | fi |
| 7786 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7787 | LIBS=$ac_func_search_save_LIBS |
| 7788 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 7790 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7791 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7792 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7793 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7794 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7795 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7796 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7797 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 7799 | $as_echo_n "checking for library containing opendir... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7800 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7801 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7802 | else |
| 7803 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7805 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7806 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7807 | /* Override any GCC internal prototype to avoid an error. |
| 7808 | Use char because int might match the return type of a GCC |
| 7809 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7810 | #ifdef __cplusplus |
| 7811 | extern "C" |
| 7812 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7813 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7814 | int |
| 7815 | main () |
| 7816 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7817 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7818 | ; |
| 7819 | return 0; |
| 7820 | } |
| 7821 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7822 | for ac_lib in '' x; do |
| 7823 | if test -z "$ac_lib"; then |
| 7824 | ac_res="none required" |
| 7825 | else |
| 7826 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7827 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7828 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7829 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7830 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7831 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7832 | rm -f core conftest.err conftest.$ac_objext \ |
| 7833 | conftest$ac_exeext |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7834 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7835 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7836 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7837 | done |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7838 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7839 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7840 | else |
| 7841 | ac_cv_search_opendir=no |
| 7842 | fi |
| 7843 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7844 | LIBS=$ac_func_search_save_LIBS |
| 7845 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 7847 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7848 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7849 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7850 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7851 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7852 | fi |
| 7853 | |
| 7854 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7855 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
| 7857 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7858 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7859 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7860 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7862 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7863 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7864 | int |
| 7865 | main () |
| 7866 | { |
| 7867 | return makedev(0, 0); |
| 7868 | ; |
| 7869 | return 0; |
| 7870 | } |
| 7871 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7872 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7873 | ac_cv_header_sys_types_h_makedev=yes |
| 7874 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7875 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7876 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7877 | rm -f core conftest.err conftest.$ac_objext \ |
| 7878 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7879 | |
| 7880 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 7882 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7883 | |
| 7884 | if test $ac_cv_header_sys_types_h_makedev = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7885 | 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] | 7886 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7887 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7888 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7889 | |
| 7890 | fi |
| 7891 | |
| 7892 | |
| 7893 | |
| 7894 | if test $ac_cv_header_sys_mkdev_h = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7895 | 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] | 7896 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7897 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7898 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7899 | |
| 7900 | fi |
| 7901 | |
| 7902 | |
| 7903 | fi |
| 7904 | fi |
| 7905 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7906 | |
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 7907 | # bluetooth/bluetooth.h has been known to not compile with -std=c99. |
| 7908 | # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 |
| 7909 | SAVE_CFLAGS=$CFLAGS |
| 7910 | CFLAGS="-std=c99 $CFLAGS" |
| 7911 | for ac_header in bluetooth/bluetooth.h |
| 7912 | do : |
| 7913 | ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" |
| 7914 | if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : |
| 7915 | cat >>confdefs.h <<_ACEOF |
| 7916 | #define HAVE_BLUETOOTH_BLUETOOTH_H 1 |
| 7917 | _ACEOF |
| 7918 | |
| 7919 | fi |
| 7920 | |
| 7921 | done |
| 7922 | |
| 7923 | CFLAGS=$SAVE_CFLAGS |
| 7924 | |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7925 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. |
| 7926 | for ac_header in net/if.h |
| 7927 | do : |
| 7928 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> |
| 7929 | #ifdef STDC_HEADERS |
| 7930 | # include <stdlib.h> |
| 7931 | # include <stddef.h> |
| 7932 | #else |
| 7933 | # ifdef HAVE_STDLIB_H |
| 7934 | # include <stdlib.h> |
| 7935 | # endif |
| 7936 | #endif |
| 7937 | #ifdef HAVE_SYS_SOCKET_H |
| 7938 | # include <sys/socket.h> |
| 7939 | #endif |
| 7940 | |
| 7941 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7942 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7943 | cat >>confdefs.h <<_ACEOF |
| 7944 | #define HAVE_NET_IF_H 1 |
| 7945 | _ACEOF |
| 7946 | |
| 7947 | fi |
| 7948 | |
| 7949 | done |
| 7950 | |
| 7951 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7952 | # On Linux, netlink.h requires asm/types.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7953 | for ac_header in linux/netlink.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7954 | do : |
| 7955 | 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] | 7956 | #ifdef HAVE_ASM_TYPES_H |
| 7957 | #include <asm/types.h> |
| 7958 | #endif |
| 7959 | #ifdef HAVE_SYS_SOCKET_H |
| 7960 | #include <sys/socket.h> |
| 7961 | #endif |
| 7962 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7963 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7964 | 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] | 7965 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7966 | #define HAVE_LINUX_NETLINK_H 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7967 | _ACEOF |
| 7968 | |
| 7969 | fi |
| 7970 | |
| 7971 | done |
| 7972 | |
| 7973 | |
caavery | effc12f | 2017-09-06 18:18:10 -0400 | [diff] [blame] | 7974 | for ac_header in linux/vm_sockets.h |
| 7975 | do : |
| 7976 | ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" " |
| 7977 | #ifdef HAVE_SYS_SOCKET_H |
| 7978 | #include <sys/socket.h> |
| 7979 | #endif |
| 7980 | |
| 7981 | " |
| 7982 | if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then : |
| 7983 | cat >>confdefs.h <<_ACEOF |
| 7984 | #define HAVE_LINUX_VM_SOCKETS_H 1 |
| 7985 | _ACEOF |
| 7986 | |
| 7987 | fi |
| 7988 | |
| 7989 | done |
| 7990 | |
| 7991 | |
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 7992 | # 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] | 7993 | 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] | 7994 | do : |
| 7995 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7996 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
| 7997 | #ifdef HAVE_SYS_SOCKET_H |
| 7998 | #include <sys/socket.h> |
| 7999 | #endif |
| 8000 | |
| 8001 | " |
| 8002 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 8003 | cat >>confdefs.h <<_ACEOF |
| 8004 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8005 | _ACEOF |
| 8006 | |
| 8007 | fi |
| 8008 | |
| 8009 | done |
| 8010 | |
| 8011 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8012 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8013 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
| 8015 | $as_echo_n "checking for clock_t in time.h... " >&6; } |
| 8016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8017 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8018 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8019 | |
| 8020 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8021 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8022 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8023 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8024 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8025 | |
| 8026 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8027 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8028 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8029 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8030 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8031 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8032 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 8034 | $as_echo "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8035 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
| 8037 | $as_echo_n "checking for makedev... " >&6; } |
| 8038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8039 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8040 | |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8041 | #if defined(MAJOR_IN_MKDEV) |
| 8042 | #include <sys/mkdev.h> |
| 8043 | #elif defined(MAJOR_IN_SYSMACROS) |
| 8044 | #include <sys/sysmacros.h> |
| 8045 | #else |
| 8046 | #include <sys/types.h> |
| 8047 | #endif |
| 8048 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8049 | int |
| 8050 | main () |
| 8051 | { |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8052 | |
| 8053 | makedev(0, 0) |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8054 | ; |
| 8055 | return 0; |
| 8056 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8057 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8058 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8059 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8060 | ac_cv_has_makedev=yes |
| 8061 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8062 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8063 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8064 | rm -f core conftest.err conftest.$ac_objext \ |
| 8065 | conftest$ac_exeext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
| 8067 | $as_echo "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8068 | if test "$ac_cv_has_makedev" = "yes"; then |
| 8069 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8070 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8071 | |
| 8072 | fi |
| 8073 | |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8074 | # byte swapping |
| 8075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 |
| 8076 | $as_echo_n "checking for le64toh... " >&6; } |
| 8077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8078 | /* end confdefs.h. */ |
| 8079 | |
| 8080 | #ifdef HAVE_ENDIAN_H |
| 8081 | #include <endian.h> |
| 8082 | #elif defined(HAVE_SYS_ENDIAN_H) |
| 8083 | #include <sys/endian.h> |
| 8084 | #endif |
| 8085 | |
| 8086 | int |
| 8087 | main () |
| 8088 | { |
| 8089 | |
| 8090 | le64toh(1) |
| 8091 | ; |
| 8092 | return 0; |
| 8093 | } |
| 8094 | |
| 8095 | _ACEOF |
| 8096 | if ac_fn_c_try_link "$LINENO"; then : |
| 8097 | ac_cv_has_le64toh=yes |
| 8098 | else |
| 8099 | ac_cv_has_le64toh=no |
| 8100 | fi |
| 8101 | rm -f core conftest.err conftest.$ac_objext \ |
| 8102 | conftest$ac_exeext conftest.$ac_ext |
| 8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 |
| 8104 | $as_echo "$ac_cv_has_le64toh" >&6; } |
| 8105 | if test "$ac_cv_has_le64toh" = "yes"; then |
| 8106 | |
| 8107 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h |
| 8108 | |
| 8109 | fi |
| 8110 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8111 | use_lfs=yes |
doko@ubuntu.com | 006a56c | 2016-06-14 10:15:25 +0200 | [diff] [blame] | 8112 | # Don't use largefile support for GNU/Hurd |
| 8113 | case $ac_sys_system in GNU*) |
| 8114 | use_lfs=no |
| 8115 | esac |
| 8116 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8117 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8118 | # Two defines needed to enable largefile support on various platforms |
| 8119 | # These may affect some typedefs |
Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 8120 | case $ac_sys_system/$ac_sys_release in |
| 8121 | AIX*) |
| 8122 | |
| 8123 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h |
| 8124 | |
| 8125 | ;; |
| 8126 | esac |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8127 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8128 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | |
| 8130 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8131 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8132 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8133 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8134 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8135 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 8136 | cat >> confdefs.h <<\EOF |
| 8137 | #if defined(SCO_DS) |
| 8138 | #undef _OFF_T |
| 8139 | #endif |
| 8140 | EOF |
| 8141 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8142 | # Type availability checks |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8143 | 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] | 8144 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8145 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8146 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8147 | |
| 8148 | cat >>confdefs.h <<_ACEOF |
| 8149 | #define mode_t int |
| 8150 | _ACEOF |
| 8151 | |
| 8152 | fi |
| 8153 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8154 | 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] | 8155 | if test "x$ac_cv_type_off_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8156 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8158 | |
| 8159 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8160 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8161 | _ACEOF |
| 8162 | |
| 8163 | fi |
| 8164 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8165 | 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] | 8166 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8167 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8168 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8169 | |
| 8170 | cat >>confdefs.h <<_ACEOF |
| 8171 | #define pid_t int |
| 8172 | _ACEOF |
| 8173 | |
| 8174 | fi |
| 8175 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8176 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8177 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 8178 | #define RETSIGTYPE void |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8180 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8181 | 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] | 8182 | if test "x$ac_cv_type_size_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8183 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8184 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8185 | |
| 8186 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8187 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8188 | _ACEOF |
| 8189 | |
| 8190 | fi |
| 8191 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 8193 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8194 | if ${ac_cv_type_uid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8195 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8196 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8198 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8199 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8200 | |
| 8201 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8202 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8203 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8204 | ac_cv_type_uid_t=yes |
| 8205 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8206 | ac_cv_type_uid_t=no |
| 8207 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8208 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8209 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8210 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 8212 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8213 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8214 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8215 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8216 | |
| 8217 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8218 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8219 | |
| 8220 | fi |
| 8221 | |
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8222 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8223 | 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] | 8224 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8225 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8226 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8227 | |
| 8228 | fi |
| 8229 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8230 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" |
| 8231 | if test "x$ac_cv_type___uint128_t" = xyes; then : |
| 8232 | |
| 8233 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h |
| 8234 | |
| 8235 | fi |
| 8236 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8237 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8238 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8239 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8240 | # The cast to long int works around a bug in the HP C Compiler |
| 8241 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8242 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8243 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 8245 | $as_echo_n "checking size of int... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8246 | if ${ac_cv_sizeof_int+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8247 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8248 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8249 | 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] | 8250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8251 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8252 | if test "$ac_cv_type_int" = yes; then |
| 8253 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8254 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8255 | as_fn_error 77 "cannot compute sizeof (int) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8256 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8257 | else |
| 8258 | ac_cv_sizeof_int=0 |
| 8259 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8260 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8261 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8262 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 8264 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8265 | |
| 8266 | |
| 8267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8268 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8269 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8270 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8271 | |
| 8272 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8273 | # The cast to long int works around a bug in the HP C Compiler |
| 8274 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8275 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8276 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 8278 | $as_echo_n "checking size of long... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8279 | if ${ac_cv_sizeof_long+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8280 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8281 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8282 | 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] | 8283 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8284 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8285 | if test "$ac_cv_type_long" = yes; then |
| 8286 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8287 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8288 | as_fn_error 77 "cannot compute sizeof (long) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8289 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8290 | else |
| 8291 | ac_cv_sizeof_long=0 |
| 8292 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8293 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8295 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 8297 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8298 | |
| 8299 | |
| 8300 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8301 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8302 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8303 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8304 | |
| 8305 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8306 | # The cast to long int works around a bug in the HP C Compiler |
| 8307 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8308 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8309 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 8311 | $as_echo_n "checking size of long long... " >&6; } |
| 8312 | if ${ac_cv_sizeof_long_long+:} false; then : |
| 8313 | $as_echo_n "(cached) " >&6 |
| 8314 | else |
| 8315 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
| 8316 | |
| 8317 | else |
| 8318 | if test "$ac_cv_type_long_long" = yes; then |
| 8319 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8320 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8321 | as_fn_error 77 "cannot compute sizeof (long long) |
| 8322 | See \`config.log' for more details" "$LINENO" 5; } |
| 8323 | else |
| 8324 | ac_cv_sizeof_long_long=0 |
| 8325 | fi |
| 8326 | fi |
| 8327 | |
| 8328 | fi |
| 8329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 8330 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
| 8331 | |
| 8332 | |
| 8333 | |
| 8334 | cat >>confdefs.h <<_ACEOF |
| 8335 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 8336 | _ACEOF |
| 8337 | |
| 8338 | |
| 8339 | # The cast to long int works around a bug in the HP C Compiler |
| 8340 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8341 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8342 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 8344 | $as_echo_n "checking size of void *... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8345 | if ${ac_cv_sizeof_void_p+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8346 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8347 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8348 | 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] | 8349 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8350 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8351 | if test "$ac_cv_type_void_p" = yes; then |
| 8352 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8353 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8354 | as_fn_error 77 "cannot compute sizeof (void *) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8355 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8356 | else |
| 8357 | ac_cv_sizeof_void_p=0 |
| 8358 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8359 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8360 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8361 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 8363 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8364 | |
| 8365 | |
| 8366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8367 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8368 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8369 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8370 | |
| 8371 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8372 | # The cast to long int works around a bug in the HP C Compiler |
| 8373 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8374 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8375 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 8377 | $as_echo_n "checking size of short... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8378 | if ${ac_cv_sizeof_short+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8379 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8380 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8381 | 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] | 8382 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8383 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8384 | if test "$ac_cv_type_short" = yes; then |
| 8385 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8386 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8387 | as_fn_error 77 "cannot compute sizeof (short) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8388 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8389 | else |
| 8390 | ac_cv_sizeof_short=0 |
| 8391 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8392 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8393 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8394 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 8396 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8397 | |
| 8398 | |
| 8399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8400 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8401 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8402 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8403 | |
| 8404 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8405 | # The cast to long int works around a bug in the HP C Compiler |
| 8406 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8407 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8408 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
| 8410 | $as_echo_n "checking size of float... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8411 | if ${ac_cv_sizeof_float+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8412 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8413 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8414 | 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] | 8415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8416 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8417 | if test "$ac_cv_type_float" = yes; then |
| 8418 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8419 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8420 | as_fn_error 77 "cannot compute sizeof (float) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8421 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8422 | else |
| 8423 | ac_cv_sizeof_float=0 |
| 8424 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8425 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8427 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
| 8429 | $as_echo "$ac_cv_sizeof_float" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8430 | |
| 8431 | |
| 8432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8433 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8434 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8435 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8436 | |
| 8437 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8438 | # The cast to long int works around a bug in the HP C Compiler |
| 8439 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8440 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8441 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
| 8443 | $as_echo_n "checking size of double... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8444 | if ${ac_cv_sizeof_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8445 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8446 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8447 | 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] | 8448 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8449 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8450 | if test "$ac_cv_type_double" = yes; then |
| 8451 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8452 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8453 | as_fn_error 77 "cannot compute sizeof (double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8454 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8455 | else |
| 8456 | ac_cv_sizeof_double=0 |
| 8457 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8458 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8460 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
| 8462 | $as_echo "$ac_cv_sizeof_double" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8463 | |
| 8464 | |
| 8465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8466 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8467 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8468 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8469 | |
| 8470 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8471 | # The cast to long int works around a bug in the HP C Compiler |
| 8472 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8473 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8474 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
| 8476 | $as_echo_n "checking size of fpos_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8477 | if ${ac_cv_sizeof_fpos_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8478 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8479 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8480 | 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] | 8481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8482 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8483 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8484 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8485 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8486 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8487 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8488 | else |
| 8489 | ac_cv_sizeof_fpos_t=0 |
| 8490 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8491 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8493 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8495 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8496 | |
| 8497 | |
| 8498 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8499 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8500 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8501 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8502 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8503 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8504 | # The cast to long int works around a bug in the HP C Compiler |
| 8505 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8506 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8507 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 8509 | $as_echo_n "checking size of size_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8510 | if ${ac_cv_sizeof_size_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8511 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8512 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8513 | 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] | 8514 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8515 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8516 | if test "$ac_cv_type_size_t" = yes; then |
| 8517 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8518 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8519 | as_fn_error 77 "cannot compute sizeof (size_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8520 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8521 | else |
| 8522 | ac_cv_sizeof_size_t=0 |
| 8523 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8524 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8525 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8526 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 8528 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8529 | |
| 8530 | |
| 8531 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8532 | cat >>confdefs.h <<_ACEOF |
| 8533 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 8534 | _ACEOF |
| 8535 | |
| 8536 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8537 | # The cast to long int works around a bug in the HP C Compiler |
| 8538 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8539 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8540 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
| 8542 | $as_echo_n "checking size of pid_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8543 | if ${ac_cv_sizeof_pid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8544 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8545 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8546 | 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] | 8547 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8548 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8549 | if test "$ac_cv_type_pid_t" = yes; then |
| 8550 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8551 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8552 | as_fn_error 77 "cannot compute sizeof (pid_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8553 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8554 | else |
| 8555 | ac_cv_sizeof_pid_t=0 |
| 8556 | fi |
| 8557 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8558 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8559 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
| 8561 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8562 | |
| 8563 | |
| 8564 | |
| 8565 | cat >>confdefs.h <<_ACEOF |
| 8566 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 8567 | _ACEOF |
| 8568 | |
| 8569 | |
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 8570 | # The cast to long int works around a bug in the HP C Compiler |
| 8571 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8572 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8573 | # This bug is HP SR number 8606223364. |
| 8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
| 8575 | $as_echo_n "checking size of uintptr_t... " >&6; } |
| 8576 | if ${ac_cv_sizeof_uintptr_t+:} false; then : |
| 8577 | $as_echo_n "(cached) " >&6 |
| 8578 | else |
| 8579 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : |
| 8580 | |
| 8581 | else |
| 8582 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8583 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8584 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8585 | as_fn_error 77 "cannot compute sizeof (uintptr_t) |
| 8586 | See \`config.log' for more details" "$LINENO" 5; } |
| 8587 | else |
| 8588 | ac_cv_sizeof_uintptr_t=0 |
| 8589 | fi |
| 8590 | fi |
| 8591 | |
| 8592 | fi |
| 8593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8594 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } |
| 8595 | |
| 8596 | |
| 8597 | |
| 8598 | cat >>confdefs.h <<_ACEOF |
| 8599 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
| 8600 | _ACEOF |
| 8601 | |
| 8602 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8603 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8604 | |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 8605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
| 8606 | $as_echo_n "checking for long double... " >&6; } |
| 8607 | if ${ac_cv_type_long_double+:} false; then : |
| 8608 | $as_echo_n "(cached) " >&6 |
| 8609 | else |
| 8610 | if test "$GCC" = yes; then |
| 8611 | ac_cv_type_long_double=yes |
| 8612 | else |
| 8613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8614 | /* end confdefs.h. */ |
| 8615 | /* The Stardent Vistra knows sizeof (long double), but does |
| 8616 | not support it. */ |
| 8617 | long double foo = 0.0L; |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8618 | int |
| 8619 | main () |
| 8620 | { |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 8621 | static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 8622 | sizeof (double) <= sizeof (long double))]; |
| 8623 | test_array [0] = 0; |
| 8624 | return test_array [0]; |
| 8625 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8626 | ; |
| 8627 | return 0; |
| 8628 | } |
| 8629 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8630 | if ac_fn_c_try_compile "$LINENO"; then : |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 8631 | ac_cv_type_long_double=yes |
| 8632 | else |
| 8633 | ac_cv_type_long_double=no |
| 8634 | fi |
| 8635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8636 | fi |
| 8637 | fi |
| 8638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 |
| 8639 | $as_echo "$ac_cv_type_long_double" >&6; } |
| 8640 | if test $ac_cv_type_long_double = yes; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8641 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8642 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8643 | |
Eitan Adler | 3055c94 | 2018-05-15 22:58:09 -0700 | [diff] [blame] | 8644 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8645 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8646 | # The cast to long int works around a bug in the HP C Compiler |
| 8647 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8648 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8649 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
| 8651 | $as_echo_n "checking size of long double... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8652 | if ${ac_cv_sizeof_long_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8653 | $as_echo_n "(cached) " >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8654 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8655 | 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] | 8656 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8657 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8658 | if test "$ac_cv_type_long_double" = yes; then |
| 8659 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8660 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8661 | as_fn_error 77 "cannot compute sizeof (long double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8662 | See \`config.log' for more details" "$LINENO" 5; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8663 | else |
| 8664 | ac_cv_sizeof_long_double=0 |
| 8665 | fi |
| 8666 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8667 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8668 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
| 8670 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8671 | |
| 8672 | |
| 8673 | |
| 8674 | cat >>confdefs.h <<_ACEOF |
| 8675 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 8676 | _ACEOF |
| 8677 | |
| 8678 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8679 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8680 | # The cast to long int works around a bug in the HP C Compiler |
| 8681 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8682 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8683 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
| 8685 | $as_echo_n "checking size of _Bool... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8686 | if ${ac_cv_sizeof__Bool+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8687 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8688 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8689 | 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] | 8690 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8691 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8692 | if test "$ac_cv_type__Bool" = yes; then |
| 8693 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8694 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8695 | as_fn_error 77 "cannot compute sizeof (_Bool) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8696 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8697 | else |
| 8698 | ac_cv_sizeof__Bool=0 |
| 8699 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8700 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8701 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8702 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
| 8704 | $as_echo "$ac_cv_sizeof__Bool" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8705 | |
| 8706 | |
| 8707 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8708 | cat >>confdefs.h <<_ACEOF |
| 8709 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 8710 | _ACEOF |
| 8711 | |
| 8712 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8713 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8714 | # The cast to long int works around a bug in the HP C Compiler |
| 8715 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8716 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8717 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 8719 | $as_echo_n "checking size of off_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8720 | if ${ac_cv_sizeof_off_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8721 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8722 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8723 | 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] | 8724 | #ifdef HAVE_SYS_TYPES_H |
| 8725 | #include <sys/types.h> |
| 8726 | #endif |
| 8727 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8728 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8729 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8730 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8731 | if test "$ac_cv_type_off_t" = yes; then |
| 8732 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8733 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8734 | as_fn_error 77 "cannot compute sizeof (off_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8735 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8736 | else |
| 8737 | ac_cv_sizeof_off_t=0 |
| 8738 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8739 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8740 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8741 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 8743 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8744 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8745 | |
| 8746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8747 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8748 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8749 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8750 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8751 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8752 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
| 8754 | $as_echo_n "checking whether to enable large file support... " >&6; } |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8755 | 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] | 8756 | "$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] | 8757 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8758 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8759 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8761 | $as_echo "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8762 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8764 | $as_echo "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8765 | fi |
| 8766 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8767 | # The cast to long int works around a bug in the HP C Compiler |
| 8768 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8769 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8770 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 8772 | $as_echo_n "checking size of time_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8773 | if ${ac_cv_sizeof_time_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8774 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8775 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8776 | 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] | 8777 | #ifdef HAVE_SYS_TYPES_H |
| 8778 | #include <sys/types.h> |
| 8779 | #endif |
| 8780 | #ifdef HAVE_TIME_H |
| 8781 | #include <time.h> |
| 8782 | #endif |
| 8783 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8784 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8785 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8786 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8787 | if test "$ac_cv_type_time_t" = yes; then |
| 8788 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8789 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8790 | as_fn_error 77 "cannot compute sizeof (time_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8791 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8792 | else |
| 8793 | ac_cv_sizeof_time_t=0 |
| 8794 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8795 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8796 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8797 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 8799 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8800 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8801 | |
| 8802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8803 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8804 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8805 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8806 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8807 | |
| 8808 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8809 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8810 | ac_save_cc="$CC" |
| 8811 | if test "$ac_cv_kpthread" = "yes" |
| 8812 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8813 | elif test "$ac_cv_kthread" = "yes" |
| 8814 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8815 | elif test "$ac_cv_pthread" = "yes" |
| 8816 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8817 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8818 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
| 8820 | $as_echo_n "checking for pthread_t... " >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8821 | have_pthread_t=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8823 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8824 | |
| 8825 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8826 | int |
| 8827 | main () |
| 8828 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8829 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8830 | ; |
| 8831 | return 0; |
| 8832 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8833 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8834 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8835 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8836 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8837 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
| 8840 | $as_echo "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8841 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8842 | # 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] | 8843 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8844 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8845 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
| 8847 | $as_echo_n "checking size of pthread_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8848 | if ${ac_cv_sizeof_pthread_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8849 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8850 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8851 | 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] | 8852 | #ifdef HAVE_PTHREAD_H |
| 8853 | #include <pthread.h> |
| 8854 | #endif |
| 8855 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8856 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8857 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8858 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8859 | if test "$ac_cv_type_pthread_t" = yes; then |
| 8860 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8861 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8862 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8863 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8864 | else |
| 8865 | ac_cv_sizeof_pthread_t=0 |
| 8866 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8867 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8868 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8869 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
| 8871 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8872 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8873 | |
| 8874 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8875 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8876 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8877 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8878 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8879 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8880 | fi |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 8881 | |
| 8882 | # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int. |
| 8883 | # This checking will be unnecessary after removing deprecated TLS API. |
| 8884 | # The cast to long int works around a bug in the HP C Compiler |
| 8885 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8886 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8887 | # This bug is HP SR number 8606223364. |
| 8888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5 |
| 8889 | $as_echo_n "checking size of pthread_key_t... " >&6; } |
| 8890 | if ${ac_cv_sizeof_pthread_key_t+:} false; then : |
| 8891 | $as_echo_n "(cached) " >&6 |
| 8892 | else |
| 8893 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h> |
| 8894 | "; then : |
| 8895 | |
| 8896 | else |
| 8897 | if test "$ac_cv_type_pthread_key_t" = yes; then |
| 8898 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8899 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8900 | as_fn_error 77 "cannot compute sizeof (pthread_key_t) |
| 8901 | See \`config.log' for more details" "$LINENO" 5; } |
| 8902 | else |
| 8903 | ac_cv_sizeof_pthread_key_t=0 |
| 8904 | fi |
| 8905 | fi |
| 8906 | |
| 8907 | fi |
| 8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5 |
| 8909 | $as_echo "$ac_cv_sizeof_pthread_key_t" >&6; } |
| 8910 | |
| 8911 | |
| 8912 | |
| 8913 | cat >>confdefs.h <<_ACEOF |
| 8914 | #define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t |
| 8915 | _ACEOF |
| 8916 | |
| 8917 | |
| 8918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5 |
| 8919 | $as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; } |
| 8920 | if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then |
| 8921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8922 | /* end confdefs.h. */ |
| 8923 | #include <pthread.h> |
| 8924 | int |
| 8925 | main () |
| 8926 | { |
| 8927 | pthread_key_t k; k * 1; |
| 8928 | ; |
| 8929 | return 0; |
| 8930 | } |
| 8931 | _ACEOF |
| 8932 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8933 | ac_pthread_key_t_is_arithmetic_type=yes |
| 8934 | else |
| 8935 | ac_pthread_key_t_is_arithmetic_type=no |
| 8936 | |
| 8937 | fi |
| 8938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5 |
| 8940 | $as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; } |
| 8941 | if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then |
| 8942 | |
| 8943 | $as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h |
| 8944 | |
| 8945 | fi |
| 8946 | else |
| 8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8948 | $as_echo "no" >&6; } |
| 8949 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8950 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8951 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8952 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8953 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8954 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8955 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 8956 | ;; |
| 8957 | Darwin/*) |
| 8958 | OTHER_LIBTOOL_OPT="" |
| 8959 | ;; |
| 8960 | esac |
| 8961 | |
| 8962 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8963 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8964 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8965 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8966 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 8967 | if test "${enable_universalsdk}"; then |
| 8968 | : |
| 8969 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8970 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8971 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8972 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8973 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8974 | Darwin/*) |
Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 8975 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8976 | if test ${gcc_version} '<' 4.0 |
| 8977 | then |
| 8978 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 8979 | else |
| 8980 | LIBTOOL_CRUFT="" |
| 8981 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8982 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8983 | ac_osx_32bit=yes |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8984 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8986 | /* end confdefs.h. */ |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8987 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8988 | #include <unistd.h> |
| 8989 | int main(int argc, char*argv[]) |
| 8990 | { |
| 8991 | if (sizeof(long) == 4) { |
| 8992 | return 0; |
| 8993 | } else { |
| 8994 | return 1; |
| 8995 | } |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8996 | } |
| 8997 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8998 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8999 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9000 | ac_osx_32bit=yes |
| 9001 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9002 | ac_osx_32bit=no |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9003 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9004 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9005 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9006 | fi |
| 9007 | |
| 9008 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9009 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9010 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9011 | i386) |
| 9012 | MACOSX_DEFAULT_ARCH="i386" |
| 9013 | ;; |
| 9014 | ppc) |
| 9015 | MACOSX_DEFAULT_ARCH="ppc" |
| 9016 | ;; |
| 9017 | *) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9018 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9019 | ;; |
| 9020 | esac |
| 9021 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9022 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9023 | i386) |
| 9024 | MACOSX_DEFAULT_ARCH="x86_64" |
| 9025 | ;; |
| 9026 | ppc) |
| 9027 | MACOSX_DEFAULT_ARCH="ppc64" |
| 9028 | ;; |
| 9029 | *) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9030 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9031 | ;; |
| 9032 | esac |
| 9033 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9034 | fi |
| 9035 | |
| 9036 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9037 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9038 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9039 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
| 9041 | $as_echo_n "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9042 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9043 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9044 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9045 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9046 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9047 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9048 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9049 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9051 | $as_echo "yes" >&6; } |
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9052 | if test $enable_shared = "yes" |
| 9053 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9054 | 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] | 9055 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9056 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9058 | $as_echo "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9059 | fi |
| 9060 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
| 9062 | $as_echo_n "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9063 | case $ac_sys_system/$ac_sys_release in |
| 9064 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9065 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9066 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9067 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
| 9069 | $as_echo "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9070 | ;; |
| 9071 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9073 | $as_echo "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9074 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9075 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9076 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9077 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9078 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9079 | |
| 9080 | |
| 9081 | |
| 9082 | |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9083 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9084 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9085 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) |
| 9086 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
| 9087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 |
| 9088 | $as_echo_n "checking the extension of shared libraries... " >&6; } |
| 9089 | if test -z "$SHLIB_SUFFIX"; then |
| 9090 | case $ac_sys_system in |
| 9091 | hp*|HP*) |
| 9092 | case `uname -m` in |
| 9093 | ia64) SHLIB_SUFFIX=.so;; |
| 9094 | *) SHLIB_SUFFIX=.sl;; |
| 9095 | esac |
| 9096 | ;; |
| 9097 | CYGWIN*) SHLIB_SUFFIX=.dll;; |
| 9098 | *) SHLIB_SUFFIX=.so;; |
| 9099 | esac |
| 9100 | fi |
| 9101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 |
| 9102 | $as_echo "$SHLIB_SUFFIX" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9103 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9104 | # LDSHARED is the ld *command* used to create shared library |
Benjamin Peterson | 0693063 | 2017-09-04 16:36:05 -0700 | [diff] [blame] | 9105 | # -- "cc -G" on SunOS 5.x. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9106 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9107 | # Python, as opposed to building Python itself as a shared library.) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
| 9109 | $as_echo_n "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9110 | if test -z "$LDSHARED" |
| 9111 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9112 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9113 | AIX*) |
Martin Panter | 395733d | 2016-11-20 07:56:37 +0000 | [diff] [blame] | 9114 | BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 9115 | LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9116 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9117 | SunOS/5*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9118 | if test "$GCC" = "yes" ; then |
| 9119 | LDSHARED='$(CC) -shared' |
| 9120 | LDCXXSHARED='$(CXX) -shared' |
| 9121 | else |
| 9122 | LDSHARED='$(CC) -G' |
| 9123 | LDCXXSHARED='$(CXX) -G' |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9124 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9125 | hp*|HP*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9126 | if test "$GCC" = "yes" ; then |
| 9127 | LDSHARED='$(CC) -shared' |
| 9128 | LDCXXSHARED='$(CXX) -shared' |
| 9129 | else |
Rob Boehne | 9d25bd1 | 2017-12-06 11:58:17 -0600 | [diff] [blame] | 9130 | LDSHARED='$(CC) -b' |
Benjamin Peterson | 62ed6be | 2017-12-21 21:43:09 -0800 | [diff] [blame] | 9131 | LDCXXSHARED='$(CXX) -b' |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9132 | fi ;; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9133 | Darwin/1.3*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9134 | LDSHARED='$(CC) -bundle' |
| 9135 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9136 | if test "$enable_framework" ; then |
| 9137 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9138 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 9139 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9140 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9141 | else |
| 9142 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9143 | LDSHARED="$LDSHARED -undefined suppress" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9144 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9145 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9146 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9147 | LDSHARED='$(CC) -bundle' |
| 9148 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9149 | if test "$enable_framework" ; then |
| 9150 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9151 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 9152 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9153 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9154 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9155 | # No framework, use the Python app as bundle-loader |
| 9156 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9157 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9158 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9159 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9160 | Darwin/*) |
| 9161 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 9162 | # This allows an extension to be used in any Python |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 9163 | |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9164 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
| 9165 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` |
| 9166 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
| 9167 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` |
| 9168 | if test ${dep_target_major} -eq 10 && \ |
| 9169 | test ${dep_target_minor} -le 2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9170 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9171 | # building for OS X 10.0 through 10.2 |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9172 | LDSHARED='$(CC) -bundle' |
| 9173 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9174 | if test "$enable_framework" ; then |
| 9175 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9176 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 9177 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9178 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9179 | else |
| 9180 | # No framework, use the Python app as bundle-loader |
| 9181 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 9182 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9183 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9184 | fi |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9185 | else |
| 9186 | # building for OS X 10.3 and later |
| 9187 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' |
| 9188 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' |
| 9189 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9190 | fi |
| 9191 | ;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9192 | Linux*|GNU*|QNX*) |
| 9193 | LDSHARED='$(CC) -shared' |
| 9194 | LDCXXSHARED='$(CXX) -shared';; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9195 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9196 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9197 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9198 | LDSHARED='$(CC) -shared' |
| 9199 | LDCXXSHARED='$(CXX) -shared' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9200 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9201 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9202 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9203 | OpenBSD*) |
| 9204 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9205 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9206 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 9207 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9208 | else |
| 9209 | case `uname -r` in |
| 9210 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 9211 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9212 | ;; |
| 9213 | *) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9214 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 9215 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9216 | ;; |
| 9217 | esac |
| 9218 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9219 | NetBSD*|DragonFly*) |
Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 9220 | LDSHARED='$(CC) -shared' |
| 9221 | LDCXXSHARED='$(CXX) -shared';; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9222 | OpenUNIX*|UnixWare*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9223 | if test "$GCC" = "yes" ; then |
| 9224 | LDSHARED='$(CC) -shared' |
| 9225 | LDCXXSHARED='$(CXX) -shared' |
| 9226 | else |
| 9227 | LDSHARED='$(CC) -G' |
| 9228 | LDCXXSHARED='$(CXX) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9229 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9230 | SCO_SV*) |
| 9231 | LDSHARED='$(CC) -Wl,-G,-Bexport' |
| 9232 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; |
| 9233 | CYGWIN*) |
| 9234 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" |
| 9235 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9236 | *) LDSHARED="ld";; |
| 9237 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9238 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
| 9240 | $as_echo "$LDSHARED" >&6; } |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9241 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9242 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9243 | # 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] | 9244 | # library (module) -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
| 9246 | $as_echo_n "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9247 | if test -z "$CCSHARED" |
| 9248 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9249 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9250 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9251 | then CCSHARED="-fPIC"; |
| 9252 | elif test `uname -p` = sparc; |
| 9253 | then CCSHARED="-xcode=pic32"; |
| 9254 | else CCSHARED="-Kpic"; |
| 9255 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9256 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9257 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9258 | else CCSHARED="+z"; |
| 9259 | fi;; |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 9260 | Linux-android*) ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9261 | Linux*|GNU*) CCSHARED="-fPIC";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9262 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9263 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9264 | if test "$GCC" = "yes" |
| 9265 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9266 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9267 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9268 | SCO_SV*) |
| 9269 | if test "$GCC" = "yes" |
| 9270 | then CCSHARED="-fPIC" |
| 9271 | else CCSHARED="-Kpic -belf" |
| 9272 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9273 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9274 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
| 9276 | $as_echo "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9277 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9278 | # the python executable -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
| 9280 | $as_echo_n "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9281 | if test -z "$LINKFORSHARED" |
| 9282 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9283 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9284 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9285 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9286 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9287 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 9288 | Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9289 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9290 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9291 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9292 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Łukasz Langa | 335ab5b | 2013-05-30 20:58:53 +0200 | [diff] [blame] | 9293 | |
| 9294 | # Issue #18075: the default maximum stack size (8MBytes) is too |
| 9295 | # small for the default recursion limit. Increase the stack size |
| 9296 | # to ensure that tests don't crash |
| 9297 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" |
| 9298 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9299 | if test "$enable_framework" |
| 9300 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9301 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9302 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9303 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9304 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9305 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9306 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9307 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9308 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9309 | then |
| 9310 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9311 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9312 | SunOS/5*) case $CC in |
| 9313 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9314 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9315 | then |
| 9316 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9317 | fi;; |
| 9318 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9319 | CYGWIN*) |
| 9320 | if test $enable_shared = "no" |
| 9321 | then |
| 9322 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 9323 | fi;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9324 | QNX*) |
| 9325 | # -Wl,-E causes the symbols to be added to the dynamic |
| 9326 | # symbol table so that they can be found when a module |
| 9327 | # is loaded. -N 2048K causes the stack size to be set |
| 9328 | # to 2048 kilobytes so that the stack doesn't overflow |
| 9329 | # when running test_compile.py. |
| 9330 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9331 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9332 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
| 9334 | $as_echo "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9335 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9336 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9337 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
| 9339 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9340 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9341 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9342 | case $ac_sys_system in |
| 9343 | CYGWIN*) |
| 9344 | # Cygwin needs CCSHARED when building extension DLLs |
| 9345 | # but not when building the interpreter DLL. |
| 9346 | CFLAGSFORSHARED='';; |
| 9347 | *) |
| 9348 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9349 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9350 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
| 9352 | $as_echo "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9353 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9354 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9355 | # library (with --enable-shared). |
| 9356 | # 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] | 9357 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9358 | # if it is not required, since it creates a dependency of the shared library |
| 9359 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9360 | # don't need to link LIBS explicitly. The default should be only changed |
| 9361 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9362 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
| 9364 | $as_echo_n "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9365 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9366 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9367 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9368 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
| 9370 | $as_echo "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9371 | |
| 9372 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9373 | # checks for libraries |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 |
| 9375 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9376 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9377 | $as_echo_n "(cached) " >&6 |
| 9378 | else |
| 9379 | ac_check_lib_save_LIBS=$LIBS |
| 9380 | LIBS="-lsendfile $LIBS" |
| 9381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9382 | /* end confdefs.h. */ |
| 9383 | |
| 9384 | /* Override any GCC internal prototype to avoid an error. |
| 9385 | Use char because int might match the return type of a GCC |
| 9386 | builtin and then its argument prototype would still apply. */ |
| 9387 | #ifdef __cplusplus |
| 9388 | extern "C" |
| 9389 | #endif |
| 9390 | char sendfile (); |
| 9391 | int |
| 9392 | main () |
| 9393 | { |
| 9394 | return sendfile (); |
| 9395 | ; |
| 9396 | return 0; |
| 9397 | } |
| 9398 | _ACEOF |
| 9399 | if ac_fn_c_try_link "$LINENO"; then : |
| 9400 | ac_cv_lib_sendfile_sendfile=yes |
| 9401 | else |
| 9402 | ac_cv_lib_sendfile_sendfile=no |
| 9403 | fi |
| 9404 | rm -f core conftest.err conftest.$ac_objext \ |
| 9405 | conftest$ac_exeext conftest.$ac_ext |
| 9406 | LIBS=$ac_check_lib_save_LIBS |
| 9407 | fi |
| 9408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 |
| 9409 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9410 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9411 | cat >>confdefs.h <<_ACEOF |
| 9412 | #define HAVE_LIBSENDFILE 1 |
| 9413 | _ACEOF |
| 9414 | |
| 9415 | LIBS="-lsendfile $LIBS" |
| 9416 | |
| 9417 | fi |
| 9418 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 9420 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9421 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9422 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9424 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9425 | LIBS="-ldl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9427 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9428 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9429 | /* Override any GCC internal prototype to avoid an error. |
| 9430 | Use char because int might match the return type of a GCC |
| 9431 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9432 | #ifdef __cplusplus |
| 9433 | extern "C" |
| 9434 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9435 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9436 | int |
| 9437 | main () |
| 9438 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9439 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9440 | ; |
| 9441 | return 0; |
| 9442 | } |
| 9443 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9444 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9445 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9446 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9447 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9448 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9449 | rm -f core conftest.err conftest.$ac_objext \ |
| 9450 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9451 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9452 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9454 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9455 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9456 | cat >>confdefs.h <<_ACEOF |
| 9457 | #define HAVE_LIBDL 1 |
| 9458 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9459 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9460 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9461 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9462 | fi |
| 9463 | # Dynamic linking for SunOS/Solaris and SYSV |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 9465 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9466 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9467 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9468 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9469 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9470 | LIBS="-ldld $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9472 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9473 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9474 | /* Override any GCC internal prototype to avoid an error. |
| 9475 | Use char because int might match the return type of a GCC |
| 9476 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9477 | #ifdef __cplusplus |
| 9478 | extern "C" |
| 9479 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9480 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9481 | int |
| 9482 | main () |
| 9483 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9484 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9485 | ; |
| 9486 | return 0; |
| 9487 | } |
| 9488 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9489 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9490 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9491 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9492 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9493 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9494 | rm -f core conftest.err conftest.$ac_objext \ |
| 9495 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9496 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9497 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9499 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9500 | 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] | 9501 | cat >>confdefs.h <<_ACEOF |
| 9502 | #define HAVE_LIBDLD 1 |
| 9503 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9504 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9505 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9506 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9507 | fi |
| 9508 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9509 | |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 9510 | # checks for uuid.h location |
| 9511 | for ac_header in uuid/uuid.h uuid.h |
| 9512 | do : |
| 9513 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9514 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9515 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 9516 | cat >>confdefs.h <<_ACEOF |
| 9517 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9518 | _ACEOF |
| 9519 | |
| 9520 | fi |
| 9521 | |
| 9522 | done |
| 9523 | |
| 9524 | |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 9525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5 |
| 9526 | $as_echo_n "checking for uuid_generate_time_safe... " >&6; } |
| 9527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9528 | /* end confdefs.h. */ |
| 9529 | #include <uuid/uuid.h> |
| 9530 | int |
| 9531 | main () |
| 9532 | { |
| 9533 | |
| 9534 | #ifndef uuid_generate_time_safe |
Berker Peksag | 0e163d2 | 2017-11-09 00:43:14 +0300 | [diff] [blame] | 9535 | void *x = uuid_generate_time_safe |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 9536 | #endif |
| 9537 | |
| 9538 | ; |
| 9539 | return 0; |
| 9540 | } |
| 9541 | _ACEOF |
| 9542 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9543 | |
| 9544 | $as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h |
| 9545 | |
| 9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9547 | $as_echo "yes" >&6; } |
| 9548 | else |
| 9549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9550 | $as_echo "no" >&6; } |
| 9551 | |
| 9552 | fi |
| 9553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9554 | |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 9555 | # AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007) |
David Carlier | b4ebaa7 | 2018-01-09 19:38:07 +0000 | [diff] [blame] | 9556 | # FreeBSD and OpenBSD provides support as well |
| 9557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5 |
| 9558 | $as_echo_n "checking for uuid_create... " >&6; } |
Michael Felt | 0d3ccb4 | 2017-12-30 22:39:20 +0100 | [diff] [blame] | 9559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9560 | /* end confdefs.h. */ |
| 9561 | #include <uuid.h> |
| 9562 | int |
| 9563 | main () |
| 9564 | { |
| 9565 | |
| 9566 | #ifndef uuid_create |
| 9567 | void *x = uuid_create |
| 9568 | #endif |
| 9569 | |
| 9570 | ; |
| 9571 | return 0; |
| 9572 | } |
| 9573 | _ACEOF |
| 9574 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9575 | |
| 9576 | $as_echo "#define HAVE_UUID_CREATE 1" >>confdefs.h |
| 9577 | |
| 9578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9579 | $as_echo "yes" >&6; } |
| 9580 | else |
| 9581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9582 | $as_echo "no" >&6; } |
| 9583 | |
| 9584 | fi |
| 9585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9586 | |
Serhiy Storchaka | 17d8830 | 2018-05-25 01:45:09 +0300 | [diff] [blame] | 9587 | # Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet |
| 9588 | # stream in big-endian byte-order |
| 9589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5 |
| 9590 | $as_echo_n "checking for uuid_enc_be... " >&6; } |
| 9591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9592 | /* end confdefs.h. */ |
| 9593 | #include <uuid.h> |
| 9594 | int |
| 9595 | main () |
| 9596 | { |
| 9597 | |
| 9598 | #ifndef uuid_enc_be |
| 9599 | uuid_t uuid; |
| 9600 | unsigned char buf[sizeof(uuid)]; |
| 9601 | uuid_enc_be(buf, &uuid); |
| 9602 | #endif |
| 9603 | |
| 9604 | ; |
| 9605 | return 0; |
| 9606 | } |
| 9607 | _ACEOF |
| 9608 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9609 | |
| 9610 | $as_echo "#define HAVE_UUID_ENC_BE 1" >>confdefs.h |
| 9611 | |
| 9612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9613 | $as_echo "yes" >&6; } |
| 9614 | else |
| 9615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9616 | $as_echo "no" >&6; } |
| 9617 | |
| 9618 | fi |
| 9619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9620 | |
Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame] | 9621 | # 'Real Time' functions on Solaris |
| 9622 | # posix4 on Solaris 2.6 |
| 9623 | # pthread (first!) on Linux |
Berker Peksag | 7e666ee | 2017-11-06 19:06:05 +0300 | [diff] [blame] | 9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9625 | $as_echo_n "checking for library containing sem_init... " >&6; } |
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 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9628 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9629 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9631 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9632 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9633 | /* Override any GCC internal prototype to avoid an error. |
| 9634 | Use char because int might match the return type of a GCC |
| 9635 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9636 | #ifdef __cplusplus |
| 9637 | extern "C" |
| 9638 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9639 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9640 | int |
| 9641 | main () |
| 9642 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9643 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9644 | ; |
| 9645 | return 0; |
| 9646 | } |
| 9647 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9648 | for ac_lib in '' pthread rt posix4; do |
| 9649 | if test -z "$ac_lib"; then |
| 9650 | ac_res="none required" |
| 9651 | else |
| 9652 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9653 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9654 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9655 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9656 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9657 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9658 | rm -f core conftest.err conftest.$ac_objext \ |
| 9659 | conftest$ac_exeext |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9660 | if ${ac_cv_search_sem_init+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9661 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9662 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9663 | done |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9664 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9665 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9666 | else |
| 9667 | ac_cv_search_sem_init=no |
| 9668 | fi |
| 9669 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9670 | LIBS=$ac_func_search_save_LIBS |
| 9671 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
| 9673 | $as_echo "$ac_cv_search_sem_init" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9674 | ac_res=$ac_cv_search_sem_init |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9675 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9676 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9677 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9678 | fi |
Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame] | 9679 | |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9680 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9681 | # check if we need libintl for locale functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
| 9683 | $as_echo_n "checking for textdomain in -lintl... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9684 | if ${ac_cv_lib_intl_textdomain+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9685 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9686 | else |
| 9687 | ac_check_lib_save_LIBS=$LIBS |
| 9688 | LIBS="-lintl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9690 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9691 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9692 | /* Override any GCC internal prototype to avoid an error. |
| 9693 | Use char because int might match the return type of a GCC |
| 9694 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9695 | #ifdef __cplusplus |
| 9696 | extern "C" |
| 9697 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9698 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9699 | int |
| 9700 | main () |
| 9701 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9702 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9703 | ; |
| 9704 | return 0; |
| 9705 | } |
| 9706 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9707 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9708 | ac_cv_lib_intl_textdomain=yes |
| 9709 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9710 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9711 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9712 | rm -f core conftest.err conftest.$ac_objext \ |
| 9713 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9714 | LIBS=$ac_check_lib_save_LIBS |
| 9715 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
| 9717 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9718 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9719 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9720 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9721 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 9722 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9723 | fi |
| 9724 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9725 | |
| 9726 | # checks for system dependent C++ extensions support |
| 9727 | case "$ac_sys_system" in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9728 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
| 9729 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } |
| 9730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9731 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9732 | |
Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 9733 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9734 | int |
| 9735 | main () |
| 9736 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9737 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9738 | ; |
| 9739 | return 0; |
| 9740 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9741 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9742 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9743 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9744 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9745 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9746 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9747 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9749 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9750 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9751 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9752 | |
| 9753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9754 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9755 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9756 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9757 | rm -f core conftest.err conftest.$ac_objext \ |
| 9758 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9759 | *) ;; |
| 9760 | esac |
| 9761 | |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9762 | # check for systems that require aligned memory access |
| 9763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 |
| 9764 | $as_echo_n "checking aligned memory access is required... " >&6; } |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9765 | if ${ac_cv_aligned_required+:} false; then : |
| 9766 | $as_echo_n "(cached) " >&6 |
| 9767 | else |
| 9768 | if test "$cross_compiling" = yes; then : |
| 9769 | ac_cv_aligned_required=yes |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9770 | else |
| 9771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9772 | /* end confdefs.h. */ |
| 9773 | |
| 9774 | int main() |
| 9775 | { |
| 9776 | char s[16]; |
| 9777 | int i, *p1, *p2; |
| 9778 | for (i=0; i < 16; i++) |
| 9779 | s[i] = i; |
| 9780 | p1 = (int*)(s+1); |
| 9781 | p2 = (int*)(s+2); |
| 9782 | if (*p1 == *p2) |
| 9783 | return 1; |
| 9784 | return 0; |
| 9785 | } |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9786 | _ACEOF |
| 9787 | if ac_fn_c_try_run "$LINENO"; then : |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9788 | ac_cv_aligned_required=no |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9789 | else |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9790 | ac_cv_aligned_required=yes |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9791 | fi |
| 9792 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9793 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9794 | fi |
| 9795 | |
| 9796 | |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9797 | fi |
| 9798 | |
| 9799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 |
| 9800 | $as_echo "$ac_cv_aligned_required" >&6; } |
| 9801 | if test "$ac_cv_aligned_required" = yes ; then |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9802 | |
| 9803 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h |
| 9804 | |
| 9805 | fi |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9806 | |
| 9807 | # str, bytes and memoryview hash algorithm |
| 9808 | |
| 9809 | |
| 9810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 |
| 9811 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } |
| 9812 | |
| 9813 | # Check whether --with-hash_algorithm was given. |
| 9814 | if test "${with_hash_algorithm+set}" = set; then : |
| 9815 | withval=$with_hash_algorithm; |
| 9816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 9817 | $as_echo "$withval" >&6; } |
| 9818 | case "$withval" in |
| 9819 | siphash24) |
| 9820 | $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h |
| 9821 | |
| 9822 | ;; |
| 9823 | fnv) |
| 9824 | $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h |
| 9825 | |
| 9826 | ;; |
| 9827 | *) |
| 9828 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 |
| 9829 | ;; |
| 9830 | esac |
| 9831 | |
| 9832 | else |
| 9833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 |
| 9834 | $as_echo "default" >&6; } |
| 9835 | fi |
| 9836 | |
| 9837 | |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 9838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 |
| 9839 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } |
| 9840 | |
| 9841 | # Check whether --with-address_sanitizer was given. |
| 9842 | if test "${with_address_sanitizer+set}" = set; then : |
| 9843 | withval=$with_address_sanitizer; |
| 9844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 9845 | $as_echo "$withval" >&6; } |
| 9846 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" |
| 9847 | LDFLAGS="-fsanitize=address $LDFLAGS" |
| 9848 | |
| 9849 | else |
| 9850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9851 | $as_echo "no" >&6; } |
| 9852 | fi |
| 9853 | |
| 9854 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9855 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
| 9857 | $as_echo_n "checking for t_open in -lnsl... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9858 | if ${ac_cv_lib_nsl_t_open+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9859 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9860 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9862 | LIBS="-lnsl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9864 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9865 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9866 | /* Override any GCC internal prototype to avoid an error. |
| 9867 | Use char because int might match the return type of a GCC |
| 9868 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9869 | #ifdef __cplusplus |
| 9870 | extern "C" |
| 9871 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9872 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9873 | int |
| 9874 | main () |
| 9875 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9876 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9877 | ; |
| 9878 | return 0; |
| 9879 | } |
| 9880 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9881 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9882 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9883 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9884 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9885 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9886 | rm -f core conftest.err conftest.$ac_objext \ |
| 9887 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9888 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9889 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9891 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9892 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9893 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9894 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9895 | # SVR4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 9897 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9898 | if ${ac_cv_lib_socket_socket+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9899 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9901 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9902 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9904 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9905 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9906 | /* Override any GCC internal prototype to avoid an error. |
| 9907 | Use char because int might match the return type of a GCC |
| 9908 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9909 | #ifdef __cplusplus |
| 9910 | extern "C" |
| 9911 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9912 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9913 | int |
| 9914 | main () |
| 9915 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9916 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9917 | ; |
| 9918 | return 0; |
| 9919 | } |
| 9920 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9921 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9922 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9923 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9924 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9925 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9926 | rm -f core conftest.err conftest.$ac_objext \ |
| 9927 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9928 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9929 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 9931 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9932 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9933 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9934 | fi |
| 9935 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 9936 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
| 9938 | $as_echo_n "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9939 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9940 | # Check whether --with-libs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9941 | if test "${with_libs+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9942 | withval=$with_libs; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 9944 | $as_echo "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9945 | LIBS="$withval $LIBS" |
| 9946 | |
| 9947 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9949 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9950 | fi |
| 9951 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9952 | |
Chih-Hsuan Yen | 03c0d2e | 2018-05-24 14:37:08 +0800 | [diff] [blame] | 9953 | |
| 9954 | |
| 9955 | |
| 9956 | |
| 9957 | |
| 9958 | |
| 9959 | |
| 9960 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 9961 | if test -n "$ac_tool_prefix"; then |
| 9962 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 9963 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9965 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9966 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 9967 | $as_echo_n "(cached) " >&6 |
| 9968 | else |
| 9969 | case $PKG_CONFIG in |
| 9970 | [\\/]* | ?:[\\/]*) |
| 9971 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 9972 | ;; |
| 9973 | *) |
| 9974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9975 | for as_dir in $PATH |
| 9976 | do |
| 9977 | IFS=$as_save_IFS |
| 9978 | test -z "$as_dir" && as_dir=. |
| 9979 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9980 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9981 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 9982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9983 | break 2 |
| 9984 | fi |
| 9985 | done |
| 9986 | done |
| 9987 | IFS=$as_save_IFS |
| 9988 | |
| 9989 | ;; |
| 9990 | esac |
| 9991 | fi |
| 9992 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 9993 | if test -n "$PKG_CONFIG"; then |
| 9994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 9995 | $as_echo "$PKG_CONFIG" >&6; } |
| 9996 | else |
| 9997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9998 | $as_echo "no" >&6; } |
| 9999 | fi |
| 10000 | |
| 10001 | |
| 10002 | fi |
| 10003 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 10004 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 10005 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 10006 | set dummy pkg-config; ac_word=$2 |
| 10007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10008 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10009 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 10010 | $as_echo_n "(cached) " >&6 |
| 10011 | else |
| 10012 | case $ac_pt_PKG_CONFIG in |
| 10013 | [\\/]* | ?:[\\/]*) |
| 10014 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 10015 | ;; |
| 10016 | *) |
| 10017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10018 | for as_dir in $PATH |
| 10019 | do |
| 10020 | IFS=$as_save_IFS |
| 10021 | test -z "$as_dir" && as_dir=. |
| 10022 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10023 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10024 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 10025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10026 | break 2 |
| 10027 | fi |
| 10028 | done |
| 10029 | done |
| 10030 | IFS=$as_save_IFS |
| 10031 | |
| 10032 | ;; |
| 10033 | esac |
| 10034 | fi |
| 10035 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 10036 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 10038 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 10039 | else |
| 10040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10041 | $as_echo "no" >&6; } |
| 10042 | fi |
| 10043 | |
| 10044 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 10045 | PKG_CONFIG="" |
| 10046 | else |
| 10047 | case $cross_compiling:$ac_tool_warned in |
| 10048 | yes:) |
| 10049 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10050 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10051 | ac_tool_warned=yes ;; |
| 10052 | esac |
| 10053 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 10054 | fi |
| 10055 | else |
| 10056 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 10057 | fi |
| 10058 | |
| 10059 | fi |
| 10060 | if test -n "$PKG_CONFIG"; then |
| 10061 | _pkg_min_version=0.9.0 |
| 10062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 10063 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 10064 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 10065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10066 | $as_echo "yes" >&6; } |
| 10067 | else |
| 10068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10069 | $as_echo "no" >&6; } |
| 10070 | PKG_CONFIG="" |
| 10071 | fi |
| 10072 | fi |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10073 | |
| 10074 | # Check for use of the system expat library |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
| 10076 | $as_echo_n "checking for --with-system-expat... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10077 | |
| 10078 | # Check whether --with-system_expat was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10079 | if test "${with_system_expat+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10080 | withval=$with_system_expat; |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 10081 | else |
| 10082 | with_system_expat="no" |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10083 | fi |
| 10084 | |
| 10085 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
| 10087 | $as_echo "$with_system_expat" >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10088 | |
| 10089 | # Check for use of the system libffi library |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
| 10091 | $as_echo_n "checking for --with-system-ffi... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10092 | |
| 10093 | # Check whether --with-system_ffi was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10094 | if test "${with_system_ffi+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10095 | withval=$with_system_ffi; |
| 10096 | fi |
| 10097 | |
| 10098 | |
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 10099 | if test "$ac_sys_system" = "Darwin" |
| 10100 | then |
| 10101 | case "$with_system_ffi" in |
| 10102 | "") |
| 10103 | with_system_ffi="no" |
| 10104 | ;; |
| 10105 | yes|no) |
| 10106 | ;; |
| 10107 | *) |
| 10108 | as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 |
| 10109 | ;; |
| 10110 | esac |
| 10111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
| 10112 | $as_echo "$with_system_ffi" >&6; } |
| 10113 | else |
| 10114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10115 | $as_echo "yes" >&6; } |
| 10116 | if test "$with_system_ffi" != "" |
| 10117 | then |
| 10118 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5 |
| 10119 | $as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;} |
| 10120 | fi |
| 10121 | with_system_ffi="yes" |
| 10122 | fi |
Zachary Ware | 935043d | 2016-09-09 17:01:21 -0700 | [diff] [blame] | 10123 | |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10124 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 10125 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 10126 | else |
| 10127 | LIBFFI_INCLUDEDIR="" |
| 10128 | fi |
| 10129 | |
| 10130 | |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10131 | # Check for use of the system libmpdec library |
| 10132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 |
| 10133 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } |
| 10134 | |
| 10135 | # Check whether --with-system_libmpdec was given. |
| 10136 | if test "${with_system_libmpdec+set}" = set; then : |
| 10137 | withval=$with_system_libmpdec; |
| 10138 | else |
| 10139 | with_system_libmpdec="no" |
| 10140 | fi |
| 10141 | |
| 10142 | |
| 10143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 |
| 10144 | $as_echo "$with_system_libmpdec" >&6; } |
| 10145 | |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10146 | # Check for support for loadable sqlite extensions |
| 10147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 |
| 10148 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } |
| 10149 | # Check whether --enable-loadable-sqlite-extensions was given. |
| 10150 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : |
| 10151 | enableval=$enable_loadable_sqlite_extensions; |
| 10152 | else |
| 10153 | enable_loadable_sqlite_extensions="no" |
| 10154 | fi |
| 10155 | |
| 10156 | |
| 10157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 |
| 10158 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } |
| 10159 | |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10160 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path |
| 10161 | |
| 10162 | |
| 10163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 |
| 10164 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } |
| 10165 | |
| 10166 | # Check whether --with-tcltk-includes was given. |
| 10167 | if test "${with_tcltk_includes+set}" = set; then : |
| 10168 | withval=$with_tcltk_includes; |
| 10169 | else |
| 10170 | with_tcltk_includes="default" |
| 10171 | fi |
| 10172 | |
| 10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 |
| 10174 | $as_echo "$with_tcltk_includes" >&6; } |
| 10175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 |
| 10176 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } |
| 10177 | |
| 10178 | # Check whether --with-tcltk-libs was given. |
| 10179 | if test "${with_tcltk_libs+set}" = set; then : |
| 10180 | withval=$with_tcltk_libs; |
| 10181 | else |
| 10182 | with_tcltk_libs="default" |
| 10183 | fi |
| 10184 | |
| 10185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 |
| 10186 | $as_echo "$with_tcltk_libs" >&6; } |
| 10187 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault |
| 10188 | then |
| 10189 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" |
| 10190 | then |
| 10191 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 |
| 10192 | fi |
| 10193 | TCLTK_INCLUDES="" |
| 10194 | TCLTK_LIBS="" |
| 10195 | else |
| 10196 | TCLTK_INCLUDES="$with_tcltk_includes" |
| 10197 | TCLTK_LIBS="$with_tcltk_libs" |
| 10198 | fi |
| 10199 | |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10200 | # Check for --with-dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
| 10202 | $as_echo_n "checking for --with-dbmliborder... " >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10203 | |
| 10204 | # Check whether --with-dbmliborder was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10205 | if test "${with_dbmliborder+set}" = set; then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10206 | withval=$with_dbmliborder; |
| 10207 | if test x$with_dbmliborder = xyes |
| 10208 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10209 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10210 | else |
| 10211 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 10212 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 10213 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10214 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10215 | fi |
| 10216 | done |
| 10217 | fi |
| 10218 | fi |
| 10219 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
| 10221 | $as_echo "$with_dbmliborder" >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10222 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10224 | |
| 10225 | # Templates for things AC_DEFINEd more than once. |
| 10226 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10227 | |
| 10228 | |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10229 | if test "$ac_cv_pthread_is_default" = yes |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10230 | then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10231 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10232 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10233 | |
| 10234 | posix_threads=yes |
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 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10241 | posix_threads=yes |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10242 | elif test "$ac_cv_kthread" = "yes" |
| 10243 | then |
| 10244 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10245 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10246 | CXX="$CXX -Kthread" |
| 10247 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10248 | posix_threads=yes |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10249 | elif test "$ac_cv_pthread" = "yes" |
| 10250 | then |
| 10251 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10252 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10253 | CXX="$CXX -pthread" |
| 10254 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10255 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10256 | else |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10257 | if test ! -z "$withval" -a -d "$withval" |
| 10258 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10259 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10260 | |
| 10261 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 10262 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 10263 | # (e.g. gnu pth with pthread emulation) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10265 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } |
| 10266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10267 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10268 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10269 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10270 | #ifdef _POSIX_THREADS |
| 10271 | yes |
| 10272 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10273 | |
| 10274 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10275 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10276 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10277 | unistd_defines_pthreads=yes |
| 10278 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10279 | unistd_defines_pthreads=no |
| 10280 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10281 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10282 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
| 10284 | $as_echo "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10285 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10286 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10287 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10288 | # Just looking for pthread_create in libpthread is not enough: |
| 10289 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10290 | # So we really have to include pthread.h, and then link. |
| 10291 | _libs=$LIBS |
| 10292 | LIBS="$LIBS -lpthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 10294 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
| 10295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10296 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10297 | |
| 10298 | #include <stdio.h> |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10299 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10300 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10301 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10302 | int |
| 10303 | main () |
| 10304 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10305 | |
| 10306 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10307 | ; |
| 10308 | return 0; |
| 10309 | } |
| 10310 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10311 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10312 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10314 | $as_echo "yes" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10315 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10316 | |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10317 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10318 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10319 | LIBS=$_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10320 | 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] | 10321 | if test "x$ac_cv_func_pthread_detach" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10322 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10323 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10324 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10325 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10326 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
| 10328 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10329 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10330 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10332 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10333 | LIBS="-lpthreads $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10335 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10336 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10337 | /* Override any GCC internal prototype to avoid an error. |
| 10338 | Use char because int might match the return type of a GCC |
| 10339 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10340 | #ifdef __cplusplus |
| 10341 | extern "C" |
| 10342 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10343 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10344 | int |
| 10345 | main () |
| 10346 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10347 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10348 | ; |
| 10349 | return 0; |
| 10350 | } |
| 10351 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10352 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10353 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10354 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10355 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10356 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10357 | rm -f core conftest.err conftest.$ac_objext \ |
| 10358 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10359 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10360 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10362 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10363 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10364 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10365 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10366 | LIBS="$LIBS -lpthreads" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10367 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10368 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10369 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
| 10371 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10372 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10373 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10374 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10375 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10376 | LIBS="-lc_r $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10378 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10379 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10380 | /* Override any GCC internal prototype to avoid an error. |
| 10381 | Use char because int might match the return type of a GCC |
| 10382 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10383 | #ifdef __cplusplus |
| 10384 | extern "C" |
| 10385 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10386 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10387 | int |
| 10388 | main () |
| 10389 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10390 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10391 | ; |
| 10392 | return 0; |
| 10393 | } |
| 10394 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10395 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10396 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10397 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10398 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10399 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10400 | rm -f core conftest.err conftest.$ac_objext \ |
| 10401 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10402 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10403 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10405 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10406 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10407 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10408 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10409 | LIBS="$LIBS -lc_r" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10410 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10411 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10412 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
| 10414 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10415 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10416 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10417 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10418 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10419 | LIBS="-lpthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10421 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10422 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10423 | /* Override any GCC internal prototype to avoid an error. |
| 10424 | Use char because int might match the return type of a GCC |
| 10425 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10426 | #ifdef __cplusplus |
| 10427 | extern "C" |
| 10428 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10429 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10430 | int |
| 10431 | main () |
| 10432 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10433 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10434 | ; |
| 10435 | return 0; |
| 10436 | } |
| 10437 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10438 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10439 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10440 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10441 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10442 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10443 | rm -f core conftest.err conftest.$ac_objext \ |
| 10444 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10445 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10446 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10448 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10449 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10450 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10451 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10452 | LIBS="$LIBS -lpthread" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10453 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10454 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10455 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
| 10457 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10458 | if ${ac_cv_lib_cma_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10459 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10460 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10461 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10462 | LIBS="-lcma $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10464 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10465 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10466 | /* Override any GCC internal prototype to avoid an error. |
| 10467 | Use char because int might match the return type of a GCC |
| 10468 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10469 | #ifdef __cplusplus |
| 10470 | extern "C" |
| 10471 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10472 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10473 | int |
| 10474 | main () |
| 10475 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10476 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10477 | ; |
| 10478 | return 0; |
| 10479 | } |
| 10480 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10481 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10482 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10483 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10484 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10485 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10486 | rm -f core conftest.err conftest.$ac_objext \ |
| 10487 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10488 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10489 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10491 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10492 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10493 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10494 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10495 | LIBS="$LIBS -lcma" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10496 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10497 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10498 | |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10499 | as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 |
| 10500 | |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10501 | fi |
| 10502 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10503 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10504 | fi |
| 10505 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10506 | fi |
| 10507 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10508 | fi |
| 10509 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10510 | fi |
| 10511 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10512 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10513 | rm -f core conftest.err conftest.$ac_objext \ |
| 10514 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10515 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
| 10517 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10518 | if ${ac_cv_lib_mpc_usconfig+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10519 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10520 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10521 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10522 | LIBS="-lmpc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10524 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10525 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10526 | /* Override any GCC internal prototype to avoid an error. |
| 10527 | Use char because int might match the return type of a GCC |
| 10528 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10529 | #ifdef __cplusplus |
| 10530 | extern "C" |
| 10531 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10532 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10533 | int |
| 10534 | main () |
| 10535 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10536 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10537 | ; |
| 10538 | return 0; |
| 10539 | } |
| 10540 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10541 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10542 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10543 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10544 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10545 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10546 | rm -f core conftest.err conftest.$ac_objext \ |
| 10547 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10548 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10549 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 10551 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10552 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10553 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10554 | LIBS="$LIBS -lmpc" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10555 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10556 | fi |
| 10557 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10558 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10559 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10560 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10561 | if test "$posix_threads" = "yes"; then |
| 10562 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10563 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10564 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10565 | |
| 10566 | fi |
| 10567 | |
| 10568 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 10569 | case $ac_sys_system/$ac_sys_release in |
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10570 | SunOS/5.6) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10571 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10572 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10573 | ;; |
| 10574 | SunOS/5.8) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10575 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10576 | |
| 10577 | ;; |
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10578 | AIX/*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10579 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 10580 | |
| 10581 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10582 | esac |
| 10583 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 10585 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10586 | if ${ac_cv_pthread_system_supported+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10587 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10588 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10589 | if test "$cross_compiling" = yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10590 | ac_cv_pthread_system_supported=no |
| 10591 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10593 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10594 | |
| 10595 | #include <stdio.h> |
| 10596 | #include <pthread.h> |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10597 | void *foo(void *parm) { |
| 10598 | return NULL; |
| 10599 | } |
| 10600 | main() { |
| 10601 | pthread_attr_t attr; |
| 10602 | pthread_t id; |
| 10603 | if (pthread_attr_init(&attr)) exit(-1); |
| 10604 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 10605 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 10606 | exit(0); |
| 10607 | } |
| 10608 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10609 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10610 | ac_cv_pthread_system_supported=yes |
| 10611 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10612 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10613 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10614 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10615 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10616 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10617 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10618 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10619 | fi |
| 10620 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
| 10622 | $as_echo "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10623 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 10624 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10625 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10626 | |
| 10627 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10628 | for ac_func in pthread_sigmask |
| 10629 | do : |
| 10630 | 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] | 10631 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10632 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10633 | #define HAVE_PTHREAD_SIGMASK 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10634 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10635 | case $ac_sys_system in |
| 10636 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10637 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10638 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10639 | |
| 10640 | ;; |
| 10641 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10642 | fi |
| 10643 | done |
| 10644 | |
pdox | e14679c | 2017-10-05 00:01:56 -0700 | [diff] [blame] | 10645 | for ac_func in pthread_getcpuclockid |
| 10646 | do : |
| 10647 | ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid" |
| 10648 | if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then : |
| 10649 | cat >>confdefs.h <<_ACEOF |
| 10650 | #define HAVE_PTHREAD_GETCPUCLOCKID 1 |
| 10651 | _ACEOF |
| 10652 | |
| 10653 | fi |
| 10654 | done |
| 10655 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10656 | fi |
| 10657 | |
| 10658 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10659 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10660 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
| 10662 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10663 | # Check whether --enable-ipv6 was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10664 | if test "${enable_ipv6+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10665 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10666 | no) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10668 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10669 | ipv6=no |
| 10670 | ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10671 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10672 | $as_echo "yes" >&6; } |
| 10673 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10674 | |
| 10675 | ipv6=yes |
| 10676 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10677 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10678 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10679 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10681 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10682 | /* AF_INET6 available check */ |
| 10683 | #include <sys/types.h> |
| 10684 | #include <sys/socket.h> |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10685 | int |
| 10686 | main () |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10687 | { |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10688 | int domain = AF_INET6; |
| 10689 | ; |
| 10690 | return 0; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10691 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10692 | _ACEOF |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10693 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10694 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10696 | $as_echo "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10697 | ipv6=yes |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10698 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10699 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10700 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10702 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10703 | ipv6=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10704 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10705 | fi |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10707 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10708 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
| 10710 | $as_echo_n "checking if RFC2553 API is available... " >&6; } |
| 10711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10712 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10713 | |
| 10714 | #include <sys/types.h> |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10715 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10716 | int |
| 10717 | main () |
| 10718 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10719 | struct sockaddr_in6 x; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10720 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10721 | ; |
| 10722 | return 0; |
| 10723 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10724 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10725 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10726 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10727 | |
| 10728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10729 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10730 | ipv6=yes |
| 10731 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10732 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10733 | |
| 10734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10735 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10736 | ipv6=no |
| 10737 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10738 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10739 | 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] | 10740 | fi |
| 10741 | |
| 10742 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10743 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10744 | |
| 10745 | fi |
| 10746 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10747 | fi |
| 10748 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10749 | |
| 10750 | ipv6type=unknown |
| 10751 | ipv6lib=none |
| 10752 | ipv6trylibc=no |
| 10753 | |
| 10754 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
| 10756 | $as_echo_n "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10757 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 10758 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10759 | case $i in |
| 10760 | inria) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10762 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10763 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10764 | #include <netinet/in.h> |
| 10765 | #ifdef IPV6_INRIA_VERSION |
| 10766 | yes |
| 10767 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10768 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10769 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10770 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10771 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10772 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10773 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10774 | |
| 10775 | ;; |
| 10776 | kame) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10778 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10779 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10780 | #include <netinet/in.h> |
| 10781 | #ifdef __KAME__ |
| 10782 | yes |
| 10783 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10784 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10785 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10786 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10787 | ipv6type=$i; |
| 10788 | ipv6lib=inet6 |
| 10789 | ipv6libdir=/usr/local/v6/lib |
| 10790 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10791 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10792 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10793 | |
| 10794 | ;; |
| 10795 | linux-glibc) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10797 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10798 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10799 | #include <features.h> |
| 10800 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 10801 | yes |
| 10802 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10803 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10804 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10805 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10806 | ipv6type=$i; |
| 10807 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10808 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10809 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10810 | |
| 10811 | ;; |
| 10812 | linux-inet6) |
| 10813 | if test -d /usr/inet6; then |
| 10814 | ipv6type=$i |
| 10815 | ipv6lib=inet6 |
| 10816 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10817 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10818 | fi |
| 10819 | ;; |
| 10820 | solaris) |
| 10821 | if test -f /etc/netconfig; then |
Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 10822 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10823 | ipv6type=$i |
| 10824 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10825 | fi |
| 10826 | fi |
| 10827 | ;; |
| 10828 | toshiba) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10830 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10831 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10832 | #include <sys/param.h> |
| 10833 | #ifdef _TOSHIBA_INET6 |
| 10834 | yes |
| 10835 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10836 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10837 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10838 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10839 | ipv6type=$i; |
| 10840 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10841 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10842 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10843 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10844 | |
| 10845 | ;; |
| 10846 | v6d) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10848 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10849 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10850 | #include </usr/local/v6/include/sys/v6config.h> |
| 10851 | #ifdef __V6D__ |
| 10852 | yes |
| 10853 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10854 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10855 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10856 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10857 | ipv6type=$i; |
| 10858 | ipv6lib=v6; |
| 10859 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10860 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10861 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10862 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10863 | |
| 10864 | ;; |
| 10865 | zeta) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10867 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10868 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10869 | #include <sys/param.h> |
| 10870 | #ifdef _ZETA_MINAMI_INET6 |
| 10871 | yes |
| 10872 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10873 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10874 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10875 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10876 | ipv6type=$i; |
| 10877 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10878 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10879 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10880 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10881 | |
| 10882 | ;; |
| 10883 | esac |
| 10884 | if test "$ipv6type" != "unknown"; then |
| 10885 | break |
| 10886 | fi |
| 10887 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
| 10889 | $as_echo "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10890 | fi |
| 10891 | |
| 10892 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 10893 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 10894 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 10895 | echo "using lib$ipv6lib" |
| 10896 | else |
| 10897 | if test $ipv6trylibc = "yes"; then |
| 10898 | echo "using libc" |
| 10899 | else |
| 10900 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 10901 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 10902 | echo 'ipv6 kit and compile beforehand.' |
| 10903 | exit 1 |
| 10904 | fi |
| 10905 | fi |
| 10906 | fi |
| 10907 | |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 10908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 |
| 10909 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } |
| 10910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10911 | /* end confdefs.h. */ |
| 10912 | /* CAN_RAW_FD_FRAMES available check */ |
| 10913 | #include <linux/can/raw.h> |
| 10914 | int |
| 10915 | main () |
| 10916 | { |
| 10917 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; |
| 10918 | ; |
| 10919 | return 0; |
| 10920 | } |
| 10921 | _ACEOF |
| 10922 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10923 | |
| 10924 | |
| 10925 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h |
| 10926 | |
| 10927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10928 | $as_echo "yes" >&6; } |
| 10929 | |
| 10930 | else |
| 10931 | |
| 10932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10933 | $as_echo "no" >&6; } |
| 10934 | |
| 10935 | fi |
| 10936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10937 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10938 | # Check for --with-doc-strings |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
| 10940 | $as_echo_n "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10941 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10942 | # Check whether --with-doc-strings was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10943 | if test "${with_doc_strings+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10944 | withval=$with_doc_strings; |
| 10945 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10946 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10947 | |
| 10948 | if test -z "$with_doc_strings" |
| 10949 | then with_doc_strings="yes" |
| 10950 | fi |
| 10951 | if test "$with_doc_strings" != "no" |
| 10952 | then |
| 10953 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10954 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10955 | |
| 10956 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
| 10958 | $as_echo "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10959 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10960 | # Check for Python-specific malloc support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
| 10962 | $as_echo_n "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10963 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10964 | # Check whether --with-pymalloc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10965 | if test "${with_pymalloc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10966 | withval=$with_pymalloc; |
| 10967 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10968 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10969 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10970 | if test -z "$with_pymalloc" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 10971 | then |
| 10972 | with_pymalloc="yes" |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10973 | fi |
| 10974 | if test "$with_pymalloc" != "no" |
| 10975 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10977 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10978 | |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 10979 | ABIFLAGS="${ABIFLAGS}m" |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10980 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
| 10982 | $as_echo "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10983 | |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 10984 | # Check for --with-c-locale-coercion |
| 10985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5 |
| 10986 | $as_echo_n "checking for --with-c-locale-coercion... " >&6; } |
| 10987 | |
| 10988 | # Check whether --with-c-locale-coercion was given. |
| 10989 | if test "${with_c_locale_coercion+set}" = set; then : |
| 10990 | withval=$with_c_locale_coercion; |
| 10991 | fi |
| 10992 | |
| 10993 | |
| 10994 | if test -z "$with_c_locale_coercion" |
| 10995 | then |
| 10996 | with_c_locale_coercion="yes" |
| 10997 | fi |
| 10998 | if test "$with_c_locale_coercion" != "no" |
| 10999 | then |
| 11000 | |
| 11001 | $as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h |
| 11002 | |
| 11003 | fi |
| 11004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5 |
| 11005 | $as_echo "$with_c_locale_coercion" >&6; } |
| 11006 | |
| 11007 | # Check for --with-c-locale-warning |
| 11008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-warning" >&5 |
| 11009 | $as_echo_n "checking for --with-c-locale-warning... " >&6; } |
| 11010 | |
| 11011 | # Check whether --with-c-locale-warning was given. |
| 11012 | if test "${with_c_locale_warning+set}" = set; then : |
| 11013 | withval=$with_c_locale_warning; |
| 11014 | fi |
| 11015 | |
| 11016 | |
| 11017 | if test -z "$with_c_locale_warning" |
| 11018 | then |
| 11019 | with_c_locale_warning="yes" |
| 11020 | fi |
| 11021 | if test "$with_c_locale_warning" != "no" |
| 11022 | then |
| 11023 | |
| 11024 | $as_echo "#define PY_WARN_ON_C_LOCALE 1" >>confdefs.h |
| 11025 | |
| 11026 | fi |
| 11027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_warning" >&5 |
| 11028 | $as_echo "$with_c_locale_warning" >&6; } |
| 11029 | |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11030 | # Check for Valgrind support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
| 11032 | $as_echo_n "checking for --with-valgrind... " >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11033 | |
| 11034 | # Check whether --with-valgrind was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11035 | if test "${with_valgrind+set}" = set; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11036 | withval=$with_valgrind; |
| 11037 | else |
| 11038 | with_valgrind=no |
| 11039 | fi |
| 11040 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
| 11042 | $as_echo "$with_valgrind" >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11043 | if test "$with_valgrind" != no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11044 | 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] | 11045 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11046 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11047 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11048 | |
| 11049 | else |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11050 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11051 | |
| 11052 | fi |
| 11053 | |
| 11054 | |
Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 11055 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11056 | fi |
| 11057 | |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 11058 | # Check for DTrace support |
| 11059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 |
| 11060 | $as_echo_n "checking for --with-dtrace... " >&6; } |
| 11061 | |
| 11062 | # Check whether --with-dtrace was given. |
| 11063 | if test "${with_dtrace+set}" = set; then : |
| 11064 | withval=$with_dtrace; |
| 11065 | else |
| 11066 | with_dtrace=no |
| 11067 | fi |
| 11068 | |
| 11069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 |
| 11070 | $as_echo "$with_dtrace" >&6; } |
| 11071 | |
| 11072 | |
| 11073 | |
| 11074 | |
| 11075 | |
| 11076 | DTRACE= |
| 11077 | DFLAGS= |
| 11078 | DTRACE_HEADERS= |
| 11079 | DTRACE_OBJS= |
| 11080 | |
| 11081 | if test "$with_dtrace" = "yes" |
| 11082 | then |
| 11083 | # Extract the first word of "dtrace", so it can be a program name with args. |
| 11084 | set dummy dtrace; ac_word=$2 |
| 11085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11086 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11087 | if ${ac_cv_path_DTRACE+:} false; then : |
| 11088 | $as_echo_n "(cached) " >&6 |
| 11089 | else |
| 11090 | case $DTRACE in |
| 11091 | [\\/]* | ?:[\\/]*) |
| 11092 | ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. |
| 11093 | ;; |
| 11094 | *) |
| 11095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11096 | for as_dir in $PATH |
| 11097 | do |
| 11098 | IFS=$as_save_IFS |
| 11099 | test -z "$as_dir" && as_dir=. |
| 11100 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11101 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11102 | ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" |
| 11103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11104 | break 2 |
| 11105 | fi |
| 11106 | done |
| 11107 | done |
| 11108 | IFS=$as_save_IFS |
| 11109 | |
| 11110 | test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" |
| 11111 | ;; |
| 11112 | esac |
| 11113 | fi |
| 11114 | DTRACE=$ac_cv_path_DTRACE |
| 11115 | if test -n "$DTRACE"; then |
| 11116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 |
| 11117 | $as_echo "$DTRACE" >&6; } |
| 11118 | else |
| 11119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11120 | $as_echo "no" >&6; } |
| 11121 | fi |
| 11122 | |
| 11123 | |
| 11124 | if test "$DTRACE" = "not found"; then |
| 11125 | as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 |
| 11126 | fi |
| 11127 | |
| 11128 | $as_echo "#define WITH_DTRACE 1" >>confdefs.h |
| 11129 | |
| 11130 | DTRACE_HEADERS="Include/pydtrace_probes.h" |
| 11131 | |
| 11132 | # On OS X, DTrace providers do not need to be explicitly compiled and |
| 11133 | # linked into the binary. Correspondingly, dtrace(1) is missing the ELF |
| 11134 | # generation flag '-G'. We check for presence of this flag, rather than |
| 11135 | # hardcoding support by OS, in the interest of robustness. |
| 11136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 |
| 11137 | $as_echo_n "checking whether DTrace probes require linking... " >&6; } |
| 11138 | if ${ac_cv_dtrace_link+:} false; then : |
| 11139 | $as_echo_n "(cached) " >&6 |
| 11140 | else |
| 11141 | ac_cv_dtrace_link=no |
| 11142 | echo 'BEGIN' > conftest.d |
| 11143 | "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ |
| 11144 | ac_cv_dtrace_link=yes |
| 11145 | |
| 11146 | fi |
| 11147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 |
| 11148 | $as_echo "$ac_cv_dtrace_link" >&6; } |
| 11149 | if test "$ac_cv_dtrace_link" = "yes"; then |
| 11150 | DTRACE_OBJS="Python/pydtrace.o" |
| 11151 | fi |
| 11152 | fi |
| 11153 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11154 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11155 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11156 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11157 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11158 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11159 | # 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] | 11160 | for ac_func in dlopen |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11161 | do : |
| 11162 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11163 | if test "x$ac_cv_func_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11164 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11165 | #define HAVE_DLOPEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11166 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11167 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11168 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11169 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11170 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11171 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11172 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11173 | # loading of modules. |
| 11174 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
| 11176 | $as_echo_n "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11177 | if test -z "$DYNLOADFILE" |
| 11178 | then |
| 11179 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 11180 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 11181 | if test "$ac_cv_func_dlopen" = yes |
| 11182 | then DYNLOADFILE="dynload_shlib.o" |
| 11183 | else DYNLOADFILE="dynload_aix.o" |
| 11184 | fi |
| 11185 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11186 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11187 | *) |
| 11188 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11189 | # out any dynamic loading |
| 11190 | if test "$ac_cv_func_dlopen" = yes |
| 11191 | then DYNLOADFILE="dynload_shlib.o" |
| 11192 | else DYNLOADFILE="dynload_stub.o" |
| 11193 | fi |
| 11194 | ;; |
| 11195 | esac |
| 11196 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
| 11198 | $as_echo "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11199 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11200 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11201 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11202 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11203 | |
| 11204 | fi |
| 11205 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11206 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11207 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11208 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
| 11210 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11211 | if test -z "$MACHDEP_OBJS" |
| 11212 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11213 | MACHDEP_OBJS=$extra_machdep_objs |
| 11214 | else |
| 11215 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11216 | fi |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11217 | if test -z "$MACHDEP_OBJS"; then |
| 11218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 11219 | $as_echo "none" >&6; } |
| 11220 | else |
| 11221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 |
| 11222 | $as_echo "$MACHDEP_OBJS" >&6; } |
| 11223 | fi |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11224 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11225 | # checks for library functions |
Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 11226 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ |
Victor Stinner | daf4555 | 2013-08-28 00:53:59 +0200 | [diff] [blame] | 11227 | clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11228 | fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ |
Victor Stinner | 4d6a3d6 | 2014-12-21 01:16:38 +0100 | [diff] [blame] | 11229 | futimens futimes gai_strerror getentropy \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11230 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 11231 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
xdegaye | 5ad7ef8 | 2017-11-23 11:13:22 +0100 | [diff] [blame] | 11232 | if_nameindex \ |
xdegaye | 5ce1069 | 2017-11-23 12:01:36 +0100 | [diff] [blame] | 11233 | initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \ |
Antoine Pitrou | f0effe6 | 2011-11-26 01:11:02 +0100 | [diff] [blame] | 11234 | memrchr mbrtowc mkdirat mkfifo \ |
Charles-François Natali | daafdd5 | 2011-05-29 20:07:40 +0200 | [diff] [blame] | 11235 | mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ |
Pablo Galindo | 6c6ddf9 | 2018-01-29 01:56:10 +0000 | [diff] [blame] | 11236 | posix_fallocate posix_fadvise posix_spawn pread preadv preadv2 \ |
Pablo Galindo | 4defba3 | 2018-01-27 16:16:37 +0000 | [diff] [blame] | 11237 | pthread_init pthread_kill putenv pwrite pwritev pwritev2 readlink readlinkat readv realpath renameat \ |
Benjamin Peterson | a234485 | 2017-09-04 10:21:42 -0700 | [diff] [blame] | 11238 | sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ |
Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 11239 | setgid sethostname \ |
Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 11240 | 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] | 11241 | sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ |
| 11242 | sched_rr_get_interval \ |
Antoine Pitrou | 9d3627e | 2018-05-04 13:00:50 +0200 | [diff] [blame] | 11243 | sigaction sigaltstack sigfillset siginterrupt sigpending sigrelse \ |
Ross Lagerwall | bc80822 | 2011-06-25 12:13:40 +0200 | [diff] [blame] | 11244 | sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11245 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11246 | truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ |
Victor Stinner | cd777ea | 2013-04-08 22:43:44 +0200 | [diff] [blame] | 11247 | wcscoll wcsftime wcsxfrm wmemcmp writev _getpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11248 | do : |
| 11249 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11250 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11251 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11252 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11253 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11254 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11255 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11256 | fi |
| 11257 | done |
| 11258 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11259 | |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11260 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> |
| 11261 | #include <dirent.h> |
| 11262 | " |
| 11263 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : |
| 11264 | |
| 11265 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h |
| 11266 | |
| 11267 | fi |
| 11268 | |
| 11269 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11270 | # For some functions, having a definition is not sufficient, since |
| 11271 | # we want to take their address. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
| 11273 | $as_echo_n "checking for chroot... " >&6; } |
| 11274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11275 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11276 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11277 | int |
| 11278 | main () |
| 11279 | { |
| 11280 | void *x=chroot |
| 11281 | ; |
| 11282 | return 0; |
| 11283 | } |
| 11284 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11285 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11286 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11287 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11288 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11290 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11291 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11293 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11294 | |
| 11295 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
| 11298 | $as_echo_n "checking for link... " >&6; } |
| 11299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11300 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11301 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11302 | int |
| 11303 | main () |
| 11304 | { |
| 11305 | void *x=link |
| 11306 | ; |
| 11307 | return 0; |
| 11308 | } |
| 11309 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11310 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11311 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11312 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11313 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11315 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11316 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11318 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11319 | |
| 11320 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
| 11323 | $as_echo_n "checking for symlink... " >&6; } |
| 11324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11325 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11326 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11327 | int |
| 11328 | main () |
| 11329 | { |
| 11330 | void *x=symlink |
| 11331 | ; |
| 11332 | return 0; |
| 11333 | } |
| 11334 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11335 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11336 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11337 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11338 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11340 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11341 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11343 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11344 | |
| 11345 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
| 11348 | $as_echo_n "checking for fchdir... " >&6; } |
| 11349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11350 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11351 | #include <unistd.h> |
| 11352 | int |
| 11353 | main () |
| 11354 | { |
| 11355 | void *x=fchdir |
| 11356 | ; |
| 11357 | return 0; |
| 11358 | } |
| 11359 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11360 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11361 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11362 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11363 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11365 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11366 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11368 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11369 | |
| 11370 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
| 11373 | $as_echo_n "checking for fsync... " >&6; } |
| 11374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11375 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11376 | #include <unistd.h> |
| 11377 | int |
| 11378 | main () |
| 11379 | { |
| 11380 | void *x=fsync |
| 11381 | ; |
| 11382 | return 0; |
| 11383 | } |
| 11384 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11385 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11386 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11387 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11388 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11390 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11391 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11393 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11394 | |
| 11395 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
| 11398 | $as_echo_n "checking for fdatasync... " >&6; } |
| 11399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11400 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11401 | #include <unistd.h> |
| 11402 | int |
| 11403 | main () |
| 11404 | { |
| 11405 | void *x=fdatasync |
| 11406 | ; |
| 11407 | return 0; |
| 11408 | } |
| 11409 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11410 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11411 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11412 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11413 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11415 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11416 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11418 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11419 | |
| 11420 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
| 11423 | $as_echo_n "checking for epoll... " >&6; } |
| 11424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11425 | /* end confdefs.h. */ |
| 11426 | #include <sys/epoll.h> |
| 11427 | int |
| 11428 | main () |
| 11429 | { |
| 11430 | void *x=epoll_create |
| 11431 | ; |
| 11432 | return 0; |
| 11433 | } |
| 11434 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11435 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11436 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11437 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11438 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11440 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11441 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11443 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11444 | |
| 11445 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 11447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 |
| 11448 | $as_echo_n "checking for epoll_create1... " >&6; } |
| 11449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11450 | /* end confdefs.h. */ |
| 11451 | #include <sys/epoll.h> |
| 11452 | int |
| 11453 | main () |
| 11454 | { |
| 11455 | void *x=epoll_create1 |
| 11456 | ; |
| 11457 | return 0; |
| 11458 | } |
| 11459 | _ACEOF |
| 11460 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11461 | |
| 11462 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h |
| 11463 | |
| 11464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11465 | $as_echo "yes" >&6; } |
| 11466 | else |
| 11467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11468 | $as_echo "no" >&6; } |
| 11469 | |
| 11470 | fi |
| 11471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
| 11473 | $as_echo_n "checking for kqueue... " >&6; } |
| 11474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11475 | /* end confdefs.h. */ |
| 11476 | |
| 11477 | #include <sys/types.h> |
| 11478 | #include <sys/event.h> |
| 11479 | |
| 11480 | int |
| 11481 | main () |
| 11482 | { |
| 11483 | int x=kqueue() |
| 11484 | ; |
| 11485 | return 0; |
| 11486 | } |
| 11487 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11488 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11489 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11490 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11491 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11493 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11494 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11496 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11497 | |
| 11498 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 11500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 |
| 11501 | $as_echo_n "checking for prlimit... " >&6; } |
| 11502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11503 | /* end confdefs.h. */ |
| 11504 | |
| 11505 | #include <sys/time.h> |
| 11506 | #include <sys/resource.h> |
| 11507 | |
| 11508 | int |
| 11509 | main () |
| 11510 | { |
| 11511 | void *x=prlimit |
| 11512 | ; |
| 11513 | return 0; |
| 11514 | } |
| 11515 | _ACEOF |
| 11516 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11517 | |
| 11518 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h |
| 11519 | |
| 11520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11521 | $as_echo "yes" >&6; } |
| 11522 | else |
| 11523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11524 | $as_echo "no" >&6; } |
| 11525 | |
| 11526 | fi |
| 11527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11528 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11529 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 11530 | # functions ctermid_r, setgroups in the library, but no prototype |
| 11531 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 11532 | # address to avoid compiler warnings and potential miscompilations |
| 11533 | # because of the missing prototypes. |
| 11534 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
| 11536 | $as_echo_n "checking for ctermid_r... " >&6; } |
| 11537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11538 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11539 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11540 | #include <stdio.h> |
| 11541 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11542 | int |
| 11543 | main () |
| 11544 | { |
| 11545 | void* p = ctermid_r |
| 11546 | ; |
| 11547 | return 0; |
| 11548 | } |
| 11549 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11550 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11551 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11552 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11553 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11555 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11556 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11558 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11559 | |
| 11560 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11562 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
| 11564 | $as_echo_n "checking for flock declaration... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11565 | if ${ac_cv_flock_decl+:} false; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11566 | $as_echo_n "(cached) " >&6 |
| 11567 | else |
| 11568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11569 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11570 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11571 | int |
| 11572 | main () |
| 11573 | { |
| 11574 | void* p = flock |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11575 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11576 | ; |
| 11577 | return 0; |
| 11578 | } |
| 11579 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11580 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11581 | ac_cv_flock_decl=yes |
| 11582 | else |
| 11583 | ac_cv_flock_decl=no |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11584 | |
| 11585 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11587 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11588 | fi |
| 11589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 |
| 11590 | $as_echo "$ac_cv_flock_decl" >&6; } |
| 11591 | if test "x${ac_cv_flock_decl}" = xyes; then |
| 11592 | for ac_func in flock |
| 11593 | do : |
| 11594 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11595 | if test "x$ac_cv_func_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11596 | cat >>confdefs.h <<_ACEOF |
| 11597 | #define HAVE_FLOCK 1 |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11598 | _ACEOF |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11599 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11600 | else |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11601 | { $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] | 11602 | $as_echo_n "checking for flock in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11603 | if ${ac_cv_lib_bsd_flock+:} false; then : |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11604 | $as_echo_n "(cached) " >&6 |
| 11605 | else |
| 11606 | ac_check_lib_save_LIBS=$LIBS |
| 11607 | LIBS="-lbsd $LIBS" |
| 11608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11609 | /* end confdefs.h. */ |
| 11610 | |
| 11611 | /* Override any GCC internal prototype to avoid an error. |
| 11612 | Use char because int might match the return type of a GCC |
| 11613 | builtin and then its argument prototype would still apply. */ |
| 11614 | #ifdef __cplusplus |
| 11615 | extern "C" |
| 11616 | #endif |
| 11617 | char flock (); |
| 11618 | int |
| 11619 | main () |
| 11620 | { |
| 11621 | return flock (); |
| 11622 | ; |
| 11623 | return 0; |
| 11624 | } |
| 11625 | _ACEOF |
| 11626 | if ac_fn_c_try_link "$LINENO"; then : |
| 11627 | ac_cv_lib_bsd_flock=yes |
| 11628 | else |
| 11629 | ac_cv_lib_bsd_flock=no |
| 11630 | fi |
| 11631 | rm -f core conftest.err conftest.$ac_objext \ |
| 11632 | conftest$ac_exeext conftest.$ac_ext |
| 11633 | LIBS=$ac_check_lib_save_LIBS |
| 11634 | fi |
| 11635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 |
| 11636 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11637 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11638 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11639 | |
| 11640 | |
| 11641 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h |
| 11642 | |
| 11643 | |
| 11644 | fi |
| 11645 | |
| 11646 | |
| 11647 | fi |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11648 | done |
| 11649 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11650 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11651 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
| 11653 | $as_echo_n "checking for getpagesize... " >&6; } |
| 11654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11655 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11656 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11657 | #include <unistd.h> |
| 11658 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11659 | int |
| 11660 | main () |
| 11661 | { |
| 11662 | void* p = getpagesize |
| 11663 | ; |
| 11664 | return 0; |
| 11665 | } |
| 11666 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11667 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11668 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11669 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11670 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11672 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11673 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11675 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11676 | |
| 11677 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11678 | 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] | 11679 | |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 11680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 |
| 11681 | $as_echo_n "checking for broken unsetenv... " >&6; } |
| 11682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11683 | /* end confdefs.h. */ |
| 11684 | |
| 11685 | #include <stdlib.h> |
| 11686 | |
| 11687 | int |
| 11688 | main () |
| 11689 | { |
| 11690 | int res = unsetenv("DUMMY") |
| 11691 | ; |
| 11692 | return 0; |
| 11693 | } |
| 11694 | _ACEOF |
| 11695 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11697 | $as_echo "no" >&6; } |
| 11698 | else |
| 11699 | |
| 11700 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h |
| 11701 | |
| 11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11703 | $as_echo "yes" >&6; } |
| 11704 | |
| 11705 | fi |
| 11706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11707 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11708 | for ac_prog in true |
| 11709 | do |
| 11710 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11711 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11713 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11714 | if ${ac_cv_prog_TRUE+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11715 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11716 | else |
| 11717 | if test -n "$TRUE"; then |
| 11718 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 11719 | else |
| 11720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11721 | for as_dir in $PATH |
| 11722 | do |
| 11723 | IFS=$as_save_IFS |
| 11724 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11725 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11726 | 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] | 11727 | ac_cv_prog_TRUE="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11728 | $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] | 11729 | break 2 |
| 11730 | fi |
| 11731 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11732 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11733 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11734 | |
| 11735 | fi |
| 11736 | fi |
| 11737 | TRUE=$ac_cv_prog_TRUE |
| 11738 | if test -n "$TRUE"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
| 11740 | $as_echo "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11741 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11743 | $as_echo "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11744 | fi |
| 11745 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11746 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11747 | test -n "$TRUE" && break |
| 11748 | done |
| 11749 | test -n "$TRUE" || TRUE="/bin/true" |
| 11750 | |
| 11751 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
| 11753 | $as_echo_n "checking for inet_aton in -lc... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11754 | if ${ac_cv_lib_c_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11755 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11756 | else |
| 11757 | ac_check_lib_save_LIBS=$LIBS |
| 11758 | LIBS="-lc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11760 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11761 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11762 | /* Override any GCC internal prototype to avoid an error. |
| 11763 | Use char because int might match the return type of a GCC |
| 11764 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11765 | #ifdef __cplusplus |
| 11766 | extern "C" |
| 11767 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11768 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11769 | int |
| 11770 | main () |
| 11771 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11772 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11773 | ; |
| 11774 | return 0; |
| 11775 | } |
| 11776 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11777 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11778 | ac_cv_lib_c_inet_aton=yes |
| 11779 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11780 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11781 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11782 | rm -f core conftest.err conftest.$ac_objext \ |
| 11783 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11784 | LIBS=$ac_check_lib_save_LIBS |
| 11785 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
| 11787 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11788 | 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] | 11789 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11790 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
| 11792 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11793 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11794 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11795 | else |
| 11796 | ac_check_lib_save_LIBS=$LIBS |
| 11797 | LIBS="-lresolv $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11799 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11800 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11801 | /* Override any GCC internal prototype to avoid an error. |
| 11802 | Use char because int might match the return type of a GCC |
| 11803 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11804 | #ifdef __cplusplus |
| 11805 | extern "C" |
| 11806 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11807 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11808 | int |
| 11809 | main () |
| 11810 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11811 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11812 | ; |
| 11813 | return 0; |
| 11814 | } |
| 11815 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11816 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11817 | ac_cv_lib_resolv_inet_aton=yes |
| 11818 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11819 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11820 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11821 | rm -f core conftest.err conftest.$ac_objext \ |
| 11822 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11823 | LIBS=$ac_check_lib_save_LIBS |
| 11824 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 11826 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11827 | 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] | 11828 | cat >>confdefs.h <<_ACEOF |
| 11829 | #define HAVE_LIBRESOLV 1 |
| 11830 | _ACEOF |
| 11831 | |
| 11832 | LIBS="-lresolv $LIBS" |
| 11833 | |
| 11834 | fi |
| 11835 | |
| 11836 | |
| 11837 | fi |
| 11838 | |
| 11839 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11840 | # On Tru64, chflags seems to be present, but calling it will |
| 11841 | # exit Python |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
| 11843 | $as_echo_n "checking for chflags... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11844 | if ${ac_cv_have_chflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11845 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11846 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11847 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11848 | ac_cv_have_chflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11849 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11851 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11852 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11853 | #include <sys/stat.h> |
| 11854 | #include <unistd.h> |
| 11855 | int main(int argc, char*argv[]) |
| 11856 | { |
| 11857 | if(chflags(argv[0], 0) != 0) |
| 11858 | return 1; |
| 11859 | return 0; |
| 11860 | } |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11861 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11862 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11863 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11864 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11865 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11866 | ac_cv_have_chflags=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11867 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11868 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11869 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 11870 | fi |
| 11871 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11872 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11873 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
| 11875 | $as_echo "$ac_cv_have_chflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11876 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11877 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11878 | if test "x$ac_cv_func_chflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11879 | ac_cv_have_chflags="yes" |
| 11880 | else |
| 11881 | ac_cv_have_chflags="no" |
| 11882 | fi |
| 11883 | |
| 11884 | fi |
| 11885 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11886 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11887 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11888 | |
| 11889 | fi |
| 11890 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
| 11892 | $as_echo_n "checking for lchflags... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11893 | if ${ac_cv_have_lchflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11894 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11895 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11896 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11897 | ac_cv_have_lchflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11898 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11900 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11901 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11902 | #include <sys/stat.h> |
| 11903 | #include <unistd.h> |
| 11904 | int main(int argc, char*argv[]) |
| 11905 | { |
| 11906 | if(lchflags(argv[0], 0) != 0) |
| 11907 | return 1; |
| 11908 | return 0; |
| 11909 | } |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11910 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11911 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11912 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11913 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11914 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11915 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11916 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11917 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11918 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11919 | fi |
| 11920 | |
| 11921 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11922 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
| 11924 | $as_echo "$ac_cv_have_lchflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11925 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11926 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11927 | if test "x$ac_cv_func_lchflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11928 | ac_cv_have_lchflags="yes" |
| 11929 | else |
| 11930 | ac_cv_have_lchflags="no" |
| 11931 | fi |
| 11932 | |
| 11933 | fi |
| 11934 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11935 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11936 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11937 | |
| 11938 | fi |
| 11939 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11940 | case $ac_sys_system/$ac_sys_release in |
| 11941 | Darwin/*) |
| 11942 | _CUR_CFLAGS="${CFLAGS}" |
| 11943 | _CUR_LDFLAGS="${LDFLAGS}" |
| 11944 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 11945 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 11946 | ;; |
| 11947 | esac |
| 11948 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
| 11950 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11951 | if ${ac_cv_lib_z_inflateCopy+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11952 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11953 | else |
| 11954 | ac_check_lib_save_LIBS=$LIBS |
| 11955 | LIBS="-lz $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11957 | /* end confdefs.h. */ |
| 11958 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11959 | /* Override any GCC internal prototype to avoid an error. |
| 11960 | Use char because int might match the return type of a GCC |
| 11961 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11962 | #ifdef __cplusplus |
| 11963 | extern "C" |
| 11964 | #endif |
| 11965 | char inflateCopy (); |
| 11966 | int |
| 11967 | main () |
| 11968 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11969 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11970 | ; |
| 11971 | return 0; |
| 11972 | } |
| 11973 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11974 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11975 | ac_cv_lib_z_inflateCopy=yes |
| 11976 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11977 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11978 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11979 | rm -f core conftest.err conftest.$ac_objext \ |
| 11980 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11981 | LIBS=$ac_check_lib_save_LIBS |
| 11982 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 11984 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11985 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11986 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11987 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11988 | |
| 11989 | fi |
| 11990 | |
| 11991 | |
| 11992 | case $ac_sys_system/$ac_sys_release in |
| 11993 | Darwin/*) |
| 11994 | CFLAGS="${_CUR_CFLAGS}" |
| 11995 | LDFLAGS="${_CUR_LDFLAGS}" |
| 11996 | ;; |
| 11997 | esac |
| 11998 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
| 12000 | $as_echo_n "checking for hstrerror... " >&6; } |
| 12001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12002 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12003 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12004 | #include <netdb.h> |
| 12005 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12006 | int |
| 12007 | main () |
| 12008 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12009 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12010 | ; |
| 12011 | return 0; |
| 12012 | } |
| 12013 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12014 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12015 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12016 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12017 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12019 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12020 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12022 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12023 | |
| 12024 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12025 | rm -f core conftest.err conftest.$ac_objext \ |
| 12026 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12027 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
| 12029 | $as_echo_n "checking for inet_aton... " >&6; } |
| 12030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12031 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12032 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12033 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12034 | #include <sys/socket.h> |
| 12035 | #include <netinet/in.h> |
| 12036 | #include <arpa/inet.h> |
| 12037 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12038 | int |
| 12039 | main () |
| 12040 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12041 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12042 | ; |
| 12043 | return 0; |
| 12044 | } |
| 12045 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12046 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12047 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12048 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12049 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12051 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12052 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12054 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12055 | |
| 12056 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12057 | rm -f core conftest.err conftest.$ac_objext \ |
| 12058 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12059 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
| 12061 | $as_echo_n "checking for inet_pton... " >&6; } |
| 12062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12063 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12064 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12065 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12066 | #include <sys/socket.h> |
| 12067 | #include <netinet/in.h> |
| 12068 | #include <arpa/inet.h> |
| 12069 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12070 | int |
| 12071 | main () |
| 12072 | { |
| 12073 | void* p = inet_pton |
| 12074 | ; |
| 12075 | return 0; |
| 12076 | } |
| 12077 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12078 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12079 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12080 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12081 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12083 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12084 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12086 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12087 | |
| 12088 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12089 | 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] | 12090 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12091 | # 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] | 12092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
| 12093 | $as_echo_n "checking for setgroups... " >&6; } |
| 12094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12095 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12096 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12097 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12098 | #ifdef HAVE_GRP_H |
| 12099 | #include <grp.h> |
| 12100 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12101 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12102 | int |
| 12103 | main () |
| 12104 | { |
| 12105 | void* p = setgroups |
| 12106 | ; |
| 12107 | return 0; |
| 12108 | } |
| 12109 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12110 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12111 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12112 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12113 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12115 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12116 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12118 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12119 | |
| 12120 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12121 | 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] | 12122 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12123 | # check for openpty and forkpty |
| 12124 | |
| 12125 | for ac_func in openpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12126 | do : |
| 12127 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12128 | if test "x$ac_cv_func_openpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12129 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12130 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12131 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12132 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12133 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
| 12135 | $as_echo_n "checking for openpty in -lutil... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12136 | if ${ac_cv_lib_util_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12137 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12138 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12139 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12140 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12142 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12143 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12144 | /* Override any GCC internal prototype to avoid an error. |
| 12145 | Use char because int might match the return type of a GCC |
| 12146 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12147 | #ifdef __cplusplus |
| 12148 | extern "C" |
| 12149 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12150 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12151 | int |
| 12152 | main () |
| 12153 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12154 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12155 | ; |
| 12156 | return 0; |
| 12157 | } |
| 12158 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12159 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12160 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12161 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12162 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12163 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12164 | rm -f core conftest.err conftest.$ac_objext \ |
| 12165 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12166 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12167 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
| 12169 | $as_echo "$ac_cv_lib_util_openpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12170 | if test "x$ac_cv_lib_util_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12171 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12172 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12173 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
| 12175 | $as_echo_n "checking for openpty in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12176 | if ${ac_cv_lib_bsd_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12177 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12178 | else |
| 12179 | ac_check_lib_save_LIBS=$LIBS |
| 12180 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12182 | /* end confdefs.h. */ |
| 12183 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12184 | /* Override any GCC internal prototype to avoid an error. |
| 12185 | Use char because int might match the return type of a GCC |
| 12186 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12187 | #ifdef __cplusplus |
| 12188 | extern "C" |
| 12189 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12190 | char openpty (); |
| 12191 | int |
| 12192 | main () |
| 12193 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12194 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12195 | ; |
| 12196 | return 0; |
| 12197 | } |
| 12198 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12199 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12200 | ac_cv_lib_bsd_openpty=yes |
| 12201 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12202 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12203 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12204 | rm -f core conftest.err conftest.$ac_objext \ |
| 12205 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12206 | LIBS=$ac_check_lib_save_LIBS |
| 12207 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
| 12209 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12210 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12211 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12212 | LIBS="$LIBS -lbsd" |
| 12213 | fi |
| 12214 | |
| 12215 | |
| 12216 | fi |
| 12217 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12218 | |
| 12219 | fi |
| 12220 | done |
| 12221 | |
| 12222 | for ac_func in forkpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12223 | do : |
| 12224 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12225 | if test "x$ac_cv_func_forkpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12226 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12227 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12228 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12229 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12230 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
| 12232 | $as_echo_n "checking for forkpty in -lutil... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12233 | if ${ac_cv_lib_util_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12234 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12235 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12236 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12237 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12239 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12240 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12241 | /* Override any GCC internal prototype to avoid an error. |
| 12242 | Use char because int might match the return type of a GCC |
| 12243 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12244 | #ifdef __cplusplus |
| 12245 | extern "C" |
| 12246 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12247 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12248 | int |
| 12249 | main () |
| 12250 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12251 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12252 | ; |
| 12253 | return 0; |
| 12254 | } |
| 12255 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12256 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12257 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12258 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12259 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12260 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12261 | rm -f core conftest.err conftest.$ac_objext \ |
| 12262 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12263 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12264 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
| 12266 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12267 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12268 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12269 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12270 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 |
| 12272 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12273 | if ${ac_cv_lib_bsd_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12274 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12275 | else |
| 12276 | ac_check_lib_save_LIBS=$LIBS |
| 12277 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12279 | /* end confdefs.h. */ |
| 12280 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12281 | /* Override any GCC internal prototype to avoid an error. |
| 12282 | Use char because int might match the return type of a GCC |
| 12283 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12284 | #ifdef __cplusplus |
| 12285 | extern "C" |
| 12286 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12287 | char forkpty (); |
| 12288 | int |
| 12289 | main () |
| 12290 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12291 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12292 | ; |
| 12293 | return 0; |
| 12294 | } |
| 12295 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12296 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12297 | ac_cv_lib_bsd_forkpty=yes |
| 12298 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12299 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12300 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12301 | rm -f core conftest.err conftest.$ac_objext \ |
| 12302 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12303 | LIBS=$ac_check_lib_save_LIBS |
| 12304 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 12306 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12307 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12308 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12309 | LIBS="$LIBS -lbsd" |
| 12310 | fi |
| 12311 | |
| 12312 | |
| 12313 | fi |
| 12314 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12315 | |
| 12316 | fi |
| 12317 | done |
| 12318 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12319 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12320 | # check for long file support functions |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12321 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12322 | do : |
| 12323 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12324 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12325 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12326 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12327 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12328 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12329 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12330 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12331 | done |
| 12332 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12333 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12334 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12335 | if test "x$ac_cv_func_dup2" = xyes; then : |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12336 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12337 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12338 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12339 | case " $LIBOBJS " in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12340 | *" dup2.$ac_objext "* ) ;; |
| 12341 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12342 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12343 | esac |
| 12344 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12345 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12346 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12347 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12348 | if test "x$ac_cv_func_strdup" = xyes; then : |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12349 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h |
| 12350 | |
| 12351 | else |
| 12352 | case " $LIBOBJS " in |
| 12353 | *" strdup.$ac_objext "* ) ;; |
| 12354 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" |
| 12355 | ;; |
| 12356 | esac |
| 12357 | |
| 12358 | fi |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12359 | |
| 12360 | |
| 12361 | for ac_func in getpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12362 | do : |
| 12363 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12364 | if test "x$ac_cv_func_getpgrp" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12365 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12366 | #define HAVE_GETPGRP 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12367 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12369 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12370 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12371 | int |
| 12372 | main () |
| 12373 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12374 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12375 | ; |
| 12376 | return 0; |
| 12377 | } |
| 12378 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12379 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12380 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12381 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12382 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12383 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12384 | 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] | 12385 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12386 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12387 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12388 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12389 | for ac_func in setpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12390 | do : |
| 12391 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12392 | if test "x$ac_cv_func_setpgrp" = xyes; then : |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12393 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12394 | #define HAVE_SETPGRP 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12395 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12397 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12398 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12399 | int |
| 12400 | main () |
| 12401 | { |
| 12402 | setpgrp(0,0); |
| 12403 | ; |
| 12404 | return 0; |
| 12405 | } |
| 12406 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12407 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12408 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12409 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12410 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12411 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12413 | |
| 12414 | fi |
| 12415 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12416 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12417 | for ac_func in gettimeofday |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12418 | do : |
| 12419 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12420 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12421 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12422 | #define HAVE_GETTIMEOFDAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12423 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12425 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12426 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12427 | int |
| 12428 | main () |
| 12429 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12430 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12431 | ; |
| 12432 | return 0; |
| 12433 | } |
| 12434 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12435 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12436 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12437 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12438 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12439 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12441 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12442 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12443 | 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] | 12444 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12445 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12446 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12447 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12448 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12449 | for ac_func in clock_gettime |
| 12450 | do : |
| 12451 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
| 12452 | if test "x$ac_cv_func_clock_gettime" = xyes; then : |
| 12453 | cat >>confdefs.h <<_ACEOF |
| 12454 | #define HAVE_CLOCK_GETTIME 1 |
| 12455 | _ACEOF |
| 12456 | |
| 12457 | else |
| 12458 | |
| 12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
| 12460 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } |
| 12461 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
| 12462 | $as_echo_n "(cached) " >&6 |
| 12463 | else |
| 12464 | ac_check_lib_save_LIBS=$LIBS |
| 12465 | LIBS="-lrt $LIBS" |
| 12466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12467 | /* end confdefs.h. */ |
| 12468 | |
| 12469 | /* Override any GCC internal prototype to avoid an error. |
| 12470 | Use char because int might match the return type of a GCC |
| 12471 | builtin and then its argument prototype would still apply. */ |
| 12472 | #ifdef __cplusplus |
| 12473 | extern "C" |
| 12474 | #endif |
| 12475 | char clock_gettime (); |
| 12476 | int |
| 12477 | main () |
| 12478 | { |
| 12479 | return clock_gettime (); |
| 12480 | ; |
| 12481 | return 0; |
| 12482 | } |
| 12483 | _ACEOF |
| 12484 | if ac_fn_c_try_link "$LINENO"; then : |
| 12485 | ac_cv_lib_rt_clock_gettime=yes |
| 12486 | else |
| 12487 | ac_cv_lib_rt_clock_gettime=no |
| 12488 | fi |
| 12489 | rm -f core conftest.err conftest.$ac_objext \ |
| 12490 | conftest$ac_exeext conftest.$ac_ext |
| 12491 | LIBS=$ac_check_lib_save_LIBS |
| 12492 | fi |
| 12493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
| 12494 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } |
| 12495 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
| 12496 | |
Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 12497 | LIBS="$LIBS -lrt" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12498 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| 12499 | |
| 12500 | |
| 12501 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h |
| 12502 | |
| 12503 | |
| 12504 | fi |
| 12505 | |
| 12506 | |
| 12507 | fi |
| 12508 | done |
| 12509 | |
| 12510 | |
| 12511 | for ac_func in clock_getres |
| 12512 | do : |
| 12513 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" |
| 12514 | if test "x$ac_cv_func_clock_getres" = xyes; then : |
| 12515 | cat >>confdefs.h <<_ACEOF |
| 12516 | #define HAVE_CLOCK_GETRES 1 |
| 12517 | _ACEOF |
| 12518 | |
| 12519 | else |
| 12520 | |
| 12521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 |
| 12522 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } |
| 12523 | if ${ac_cv_lib_rt_clock_getres+:} false; then : |
| 12524 | $as_echo_n "(cached) " >&6 |
| 12525 | else |
| 12526 | ac_check_lib_save_LIBS=$LIBS |
| 12527 | LIBS="-lrt $LIBS" |
| 12528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12529 | /* end confdefs.h. */ |
| 12530 | |
| 12531 | /* Override any GCC internal prototype to avoid an error. |
| 12532 | Use char because int might match the return type of a GCC |
| 12533 | builtin and then its argument prototype would still apply. */ |
| 12534 | #ifdef __cplusplus |
| 12535 | extern "C" |
| 12536 | #endif |
| 12537 | char clock_getres (); |
| 12538 | int |
| 12539 | main () |
| 12540 | { |
| 12541 | return clock_getres (); |
| 12542 | ; |
| 12543 | return 0; |
| 12544 | } |
| 12545 | _ACEOF |
| 12546 | if ac_fn_c_try_link "$LINENO"; then : |
| 12547 | ac_cv_lib_rt_clock_getres=yes |
| 12548 | else |
| 12549 | ac_cv_lib_rt_clock_getres=no |
| 12550 | fi |
| 12551 | rm -f core conftest.err conftest.$ac_objext \ |
| 12552 | conftest$ac_exeext conftest.$ac_ext |
| 12553 | LIBS=$ac_check_lib_save_LIBS |
| 12554 | fi |
| 12555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 |
| 12556 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } |
| 12557 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : |
| 12558 | |
| 12559 | $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h |
| 12560 | |
| 12561 | |
| 12562 | fi |
| 12563 | |
| 12564 | |
| 12565 | fi |
| 12566 | done |
| 12567 | |
| 12568 | |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 12569 | for ac_func in clock_settime |
| 12570 | do : |
| 12571 | ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" |
| 12572 | if test "x$ac_cv_func_clock_settime" = xyes; then : |
| 12573 | cat >>confdefs.h <<_ACEOF |
| 12574 | #define HAVE_CLOCK_SETTIME 1 |
| 12575 | _ACEOF |
| 12576 | |
| 12577 | else |
| 12578 | |
| 12579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 |
| 12580 | $as_echo_n "checking for clock_settime in -lrt... " >&6; } |
| 12581 | if ${ac_cv_lib_rt_clock_settime+:} false; then : |
| 12582 | $as_echo_n "(cached) " >&6 |
| 12583 | else |
| 12584 | ac_check_lib_save_LIBS=$LIBS |
| 12585 | LIBS="-lrt $LIBS" |
| 12586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12587 | /* end confdefs.h. */ |
| 12588 | |
| 12589 | /* Override any GCC internal prototype to avoid an error. |
| 12590 | Use char because int might match the return type of a GCC |
| 12591 | builtin and then its argument prototype would still apply. */ |
| 12592 | #ifdef __cplusplus |
| 12593 | extern "C" |
| 12594 | #endif |
| 12595 | char clock_settime (); |
| 12596 | int |
| 12597 | main () |
| 12598 | { |
| 12599 | return clock_settime (); |
| 12600 | ; |
| 12601 | return 0; |
| 12602 | } |
| 12603 | _ACEOF |
| 12604 | if ac_fn_c_try_link "$LINENO"; then : |
| 12605 | ac_cv_lib_rt_clock_settime=yes |
| 12606 | else |
| 12607 | ac_cv_lib_rt_clock_settime=no |
| 12608 | fi |
| 12609 | rm -f core conftest.err conftest.$ac_objext \ |
| 12610 | conftest$ac_exeext conftest.$ac_ext |
| 12611 | LIBS=$ac_check_lib_save_LIBS |
| 12612 | fi |
| 12613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 |
| 12614 | $as_echo "$ac_cv_lib_rt_clock_settime" >&6; } |
| 12615 | if test "x$ac_cv_lib_rt_clock_settime" = xyes; then : |
| 12616 | |
| 12617 | $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h |
| 12618 | |
| 12619 | |
| 12620 | fi |
| 12621 | |
| 12622 | |
| 12623 | fi |
| 12624 | done |
| 12625 | |
| 12626 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
| 12628 | $as_echo_n "checking for major... " >&6; } |
| 12629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12630 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12631 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12632 | #if defined(MAJOR_IN_MKDEV) |
| 12633 | #include <sys/mkdev.h> |
| 12634 | #elif defined(MAJOR_IN_SYSMACROS) |
| 12635 | #include <sys/sysmacros.h> |
| 12636 | #else |
| 12637 | #include <sys/types.h> |
| 12638 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12639 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12640 | int |
| 12641 | main () |
| 12642 | { |
| 12643 | |
| 12644 | makedev(major(0),minor(0)); |
| 12645 | |
| 12646 | ; |
| 12647 | return 0; |
| 12648 | } |
| 12649 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12650 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12651 | |
| 12652 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12653 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12654 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12656 | $as_echo "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12657 | |
| 12658 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12659 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12661 | $as_echo "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12662 | |
| 12663 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12664 | rm -f core conftest.err conftest.$ac_objext \ |
| 12665 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12666 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12667 | # 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] | 12668 | # for [no]getaddrinfo in netdb.h. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
| 12670 | $as_echo_n "checking for getaddrinfo... " >&6; } |
| 12671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12672 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12673 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12674 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12675 | #include <sys/socket.h> |
| 12676 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12677 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12679 | int |
| 12680 | main () |
| 12681 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12682 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12683 | ; |
| 12684 | return 0; |
| 12685 | } |
| 12686 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12687 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12688 | have_getaddrinfo=yes |
| 12689 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12690 | have_getaddrinfo=no |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12691 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12692 | rm -f core conftest.err conftest.$ac_objext \ |
| 12693 | conftest$ac_exeext conftest.$ac_ext |
| 12694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 |
| 12695 | $as_echo "$have_getaddrinfo" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12696 | if test $have_getaddrinfo = yes |
| 12697 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
| 12699 | $as_echo_n "checking getaddrinfo bug... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12700 | if ${ac_cv_buggy_getaddrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12701 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12702 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12703 | if test "$cross_compiling" = yes; then : |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12704 | |
| 12705 | if test "${enable_ipv6+set}" = set; then |
| 12706 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" |
| 12707 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12708 | ac_cv_buggy_getaddrinfo=yes |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12709 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12710 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12712 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12713 | |
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 12714 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12715 | #include <sys/types.h> |
| 12716 | #include <netdb.h> |
| 12717 | #include <string.h> |
| 12718 | #include <sys/socket.h> |
| 12719 | #include <netinet/in.h> |
| 12720 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12721 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12722 | { |
| 12723 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 12724 | struct addrinfo hints, *ai, *aitop; |
| 12725 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 12726 | |
| 12727 | for (passive = 0; passive <= 1; passive++) { |
| 12728 | memset(&hints, 0, sizeof(hints)); |
| 12729 | hints.ai_family = AF_UNSPEC; |
| 12730 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 12731 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 12732 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12733 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 12734 | (void)gai_strerror(gaierr); |
| 12735 | goto bad; |
| 12736 | } |
| 12737 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 12738 | if (ai->ai_addr == NULL || |
| 12739 | ai->ai_addrlen == 0 || |
| 12740 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 12741 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 12742 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 12743 | goto bad; |
| 12744 | } |
| 12745 | switch (ai->ai_family) { |
| 12746 | case AF_INET: |
| 12747 | if (strcmp(strport, "54321") != 0) { |
| 12748 | goto bad; |
| 12749 | } |
| 12750 | if (passive) { |
| 12751 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 12752 | goto bad; |
| 12753 | } |
| 12754 | } else { |
| 12755 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 12756 | goto bad; |
| 12757 | } |
| 12758 | } |
| 12759 | inet4++; |
| 12760 | break; |
| 12761 | case AF_INET6: |
| 12762 | if (strcmp(strport, "54321") != 0) { |
| 12763 | goto bad; |
| 12764 | } |
| 12765 | if (passive) { |
| 12766 | if (strcmp(straddr, "::") != 0) { |
| 12767 | goto bad; |
| 12768 | } |
| 12769 | } else { |
| 12770 | if (strcmp(straddr, "::1") != 0) { |
| 12771 | goto bad; |
| 12772 | } |
| 12773 | } |
| 12774 | inet6++; |
| 12775 | break; |
| 12776 | case AF_UNSPEC: |
| 12777 | goto bad; |
| 12778 | break; |
| 12779 | default: |
| 12780 | /* another family support? */ |
| 12781 | break; |
| 12782 | } |
| 12783 | } |
Benjamin Peterson | 01c340d | 2016-09-06 15:54:24 -0700 | [diff] [blame] | 12784 | freeaddrinfo(aitop); |
| 12785 | aitop = NULL; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12786 | } |
| 12787 | |
| 12788 | if (!(inet4 == 0 || inet4 == 2)) |
| 12789 | goto bad; |
| 12790 | if (!(inet6 == 0 || inet6 == 2)) |
| 12791 | goto bad; |
| 12792 | |
| 12793 | if (aitop) |
| 12794 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12795 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12796 | |
| 12797 | bad: |
| 12798 | if (aitop) |
| 12799 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12800 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12801 | } |
| 12802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12803 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12804 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12805 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12806 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12807 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12808 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12809 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12810 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12811 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12812 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12813 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12814 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12815 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12816 | |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
| 12818 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } |
| 12819 | |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12820 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12821 | then |
| 12822 | if test $ipv6 = yes |
| 12823 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12824 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 12825 | echo ' or you can specify "--disable-ipv6"'. |
| 12826 | exit 1 |
| 12827 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12829 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12830 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12831 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12832 | fi |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12833 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12834 | for ac_func in getnameinfo |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12835 | do : |
| 12836 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12837 | if test "x$ac_cv_func_getnameinfo" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12838 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12839 | #define HAVE_GETNAMEINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12840 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12841 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12842 | fi |
| 12843 | done |
| 12844 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12845 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12846 | # checks for structures |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 12848 | $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] | 12849 | if ${ac_cv_header_time+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12850 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12851 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12853 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12854 | #include <sys/types.h> |
| 12855 | #include <sys/time.h> |
| 12856 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12858 | int |
| 12859 | main () |
| 12860 | { |
| 12861 | if ((struct tm *) 0) |
| 12862 | return 0; |
| 12863 | ; |
| 12864 | return 0; |
| 12865 | } |
| 12866 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12867 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12868 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12869 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12870 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12871 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12873 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 12875 | $as_echo "$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12876 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12877 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12878 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12879 | |
| 12880 | fi |
| 12881 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 12883 | $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] | 12884 | if ${ac_cv_struct_tm+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12885 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12886 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12888 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12889 | #include <sys/types.h> |
| 12890 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12892 | int |
| 12893 | main () |
| 12894 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12895 | struct tm tm; |
| 12896 | int *p = &tm.tm_sec; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12897 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12898 | ; |
| 12899 | return 0; |
| 12900 | } |
| 12901 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12902 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12903 | ac_cv_struct_tm=time.h |
| 12904 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12905 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12906 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12908 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 12910 | $as_echo "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12911 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12912 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12913 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12914 | |
| 12915 | fi |
| 12916 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12917 | 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] | 12918 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12919 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12920 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12921 | 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] | 12922 | |
| 12923 | cat >>confdefs.h <<_ACEOF |
| 12924 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 12925 | _ACEOF |
| 12926 | |
| 12927 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12928 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12930 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 12931 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12932 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12933 | |
| 12934 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12935 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 12936 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12937 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12938 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12939 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12940 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12941 | fi |
| 12942 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12943 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12944 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12945 | _ACEOF |
| 12946 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 12948 | $as_echo_n "checking for tzname... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12949 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12950 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12951 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12953 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12954 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12955 | #if !HAVE_DECL_TZNAME |
| 12956 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12957 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12959 | int |
| 12960 | main () |
| 12961 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12962 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12963 | ; |
| 12964 | return 0; |
| 12965 | } |
| 12966 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12967 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12968 | ac_cv_var_tzname=yes |
| 12969 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12970 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12971 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12972 | rm -f core conftest.err conftest.$ac_objext \ |
| 12973 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12974 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 12976 | $as_echo "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12977 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12978 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12979 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12980 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12981 | fi |
| 12982 | fi |
| 12983 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12984 | 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] | 12985 | 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] | 12986 | |
| 12987 | cat >>confdefs.h <<_ACEOF |
| 12988 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 12989 | _ACEOF |
| 12990 | |
| 12991 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12992 | fi |
| 12993 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12994 | 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] | 12995 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12997 | cat >>confdefs.h <<_ACEOF |
| 12998 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 12999 | _ACEOF |
| 13000 | |
| 13001 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13002 | fi |
| 13003 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13004 | 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] | 13005 | 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] | 13006 | |
| 13007 | cat >>confdefs.h <<_ACEOF |
| 13008 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 13009 | _ACEOF |
| 13010 | |
| 13011 | |
| 13012 | fi |
| 13013 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13014 | 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] | 13015 | 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] | 13016 | |
| 13017 | cat >>confdefs.h <<_ACEOF |
| 13018 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 13019 | _ACEOF |
| 13020 | |
| 13021 | |
| 13022 | fi |
| 13023 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13024 | 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] | 13025 | 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] | 13026 | |
| 13027 | cat >>confdefs.h <<_ACEOF |
| 13028 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 13029 | _ACEOF |
| 13030 | |
| 13031 | |
| 13032 | fi |
| 13033 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13034 | 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] | 13035 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13037 | cat >>confdefs.h <<_ACEOF |
| 13038 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13039 | _ACEOF |
| 13040 | |
| 13041 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13042 | fi |
| 13043 | |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 13044 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " |
| 13045 | #include <sys/types.h> |
| 13046 | #include <pwd.h> |
| 13047 | |
| 13048 | " |
| 13049 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : |
| 13050 | |
| 13051 | cat >>confdefs.h <<_ACEOF |
| 13052 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 |
| 13053 | _ACEOF |
| 13054 | |
| 13055 | |
| 13056 | fi |
| 13057 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " |
| 13058 | #include <sys/types.h> |
| 13059 | #include <pwd.h> |
| 13060 | |
| 13061 | " |
| 13062 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : |
| 13063 | |
| 13064 | cat >>confdefs.h <<_ACEOF |
| 13065 | #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 |
| 13066 | _ACEOF |
| 13067 | |
| 13068 | |
| 13069 | fi |
| 13070 | |
Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 13071 | # Issue #21085: In Cygwin, siginfo_t does not have si_band field. |
| 13072 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> |
| 13073 | " |
| 13074 | if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then : |
| 13075 | |
| 13076 | cat >>confdefs.h <<_ACEOF |
| 13077 | #define HAVE_SIGINFO_T_SI_BAND 1 |
| 13078 | _ACEOF |
| 13079 | |
| 13080 | |
| 13081 | fi |
| 13082 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13083 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
| 13085 | $as_echo_n "checking for time.h that defines altzone... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13086 | if ${ac_cv_header_time_altzone+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13087 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13088 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13089 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13091 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13092 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13093 | int |
| 13094 | main () |
| 13095 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13096 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13097 | ; |
| 13098 | return 0; |
| 13099 | } |
| 13100 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13101 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13102 | ac_cv_header_time_altzone=yes |
| 13103 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13104 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13105 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13107 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13108 | fi |
| 13109 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
| 13111 | $as_echo "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13112 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13113 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13114 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13115 | |
| 13116 | fi |
| 13117 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13118 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13120 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
| 13121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13122 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13123 | |
| 13124 | #include <sys/types.h> |
| 13125 | #include <sys/select.h> |
| 13126 | #include <sys/time.h> |
| 13127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13128 | int |
| 13129 | main () |
| 13130 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13131 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13132 | ; |
| 13133 | return 0; |
| 13134 | } |
| 13135 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13136 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13137 | |
| 13138 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13139 | $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] | 13140 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13141 | was_it_defined=yes |
| 13142 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13143 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 13146 | $as_echo "$was_it_defined" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13147 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
| 13149 | $as_echo_n "checking for addrinfo... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13150 | if ${ac_cv_struct_addrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13151 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13152 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13154 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13155 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13156 | int |
| 13157 | main () |
| 13158 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13159 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13160 | ; |
| 13161 | return 0; |
| 13162 | } |
| 13163 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13164 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13165 | ac_cv_struct_addrinfo=yes |
| 13166 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13167 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13168 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13170 | fi |
| 13171 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
| 13173 | $as_echo "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13174 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13175 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13176 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13177 | |
| 13178 | fi |
| 13179 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
| 13181 | $as_echo_n "checking for sockaddr_storage... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13182 | if ${ac_cv_struct_sockaddr_storage+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13183 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13184 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13186 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13187 | |
| 13188 | # include <sys/types.h> |
| 13189 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13190 | int |
| 13191 | main () |
| 13192 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13193 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13194 | ; |
| 13195 | return 0; |
| 13196 | } |
| 13197 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13198 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13199 | ac_cv_struct_sockaddr_storage=yes |
| 13200 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13201 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13202 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13204 | fi |
| 13205 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13207 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13208 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13209 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13210 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13211 | |
| 13212 | fi |
| 13213 | |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 |
| 13215 | $as_echo_n "checking for sockaddr_alg... " >&6; } |
| 13216 | if ${ac_cv_struct_sockaddr_alg+:} false; then : |
| 13217 | $as_echo_n "(cached) " >&6 |
| 13218 | else |
| 13219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13220 | /* end confdefs.h. */ |
| 13221 | |
| 13222 | # include <sys/types.h> |
| 13223 | # include <sys/socket.h> |
| 13224 | # include <linux/if_alg.h> |
| 13225 | int |
| 13226 | main () |
| 13227 | { |
| 13228 | struct sockaddr_alg s |
| 13229 | ; |
| 13230 | return 0; |
| 13231 | } |
| 13232 | _ACEOF |
| 13233 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13234 | ac_cv_struct_sockaddr_alg=yes |
| 13235 | else |
| 13236 | ac_cv_struct_sockaddr_alg=no |
| 13237 | fi |
| 13238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13239 | fi |
| 13240 | |
| 13241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 |
| 13242 | $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } |
| 13243 | if test $ac_cv_struct_sockaddr_alg = yes; then |
| 13244 | |
| 13245 | $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h |
| 13246 | |
| 13247 | fi |
| 13248 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13249 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13250 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| 13252 | $as_echo_n "checking whether char is unsigned... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13253 | if ${ac_cv_c_char_unsigned+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13254 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13255 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13257 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13258 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13259 | int |
| 13260 | main () |
| 13261 | { |
| 13262 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13263 | test_array [0] = 0; |
| 13264 | return test_array [0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13265 | |
| 13266 | ; |
| 13267 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13268 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13269 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13270 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13271 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13272 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13273 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13274 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13276 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| 13278 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13279 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13280 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13281 | |
| 13282 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13283 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 13285 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13286 | if ${ac_cv_c_const+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13287 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13288 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13290 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13291 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13292 | int |
| 13293 | main () |
| 13294 | { |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13295 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13296 | #ifndef __cplusplus |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13297 | /* Ultrix mips cc rejects this sort of thing. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13298 | typedef int charset[2]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13299 | const charset cs = { 0, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13300 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13301 | char const *const *pcpcc; |
| 13302 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13303 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13304 | struct point {int x, y;}; |
| 13305 | static struct point const zero = {0,0}; |
| 13306 | /* AIX XL C 1.02.0.0 rejects this. |
| 13307 | It does not let you subtract one const X* pointer from another in |
| 13308 | an arm of an if-expression whose if-part is not a constant |
| 13309 | expression */ |
| 13310 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13311 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13312 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13313 | ++pcpcc; |
| 13314 | ppc = (char**) pcpcc; |
| 13315 | pcpcc = (char const *const *) ppc; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13316 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 13317 | char tx; |
| 13318 | char *t = &tx; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13319 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13321 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13322 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13323 | } |
| 13324 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13325 | int x[] = {25, 17}; |
| 13326 | const int *foo = &x[0]; |
| 13327 | ++foo; |
| 13328 | } |
| 13329 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13330 | typedef const int *iptr; |
| 13331 | iptr p = 0; |
| 13332 | ++p; |
| 13333 | } |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13334 | { /* 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] | 13335 | "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] | 13336 | struct s { int j; const int *ap[3]; } bx; |
| 13337 | struct s *b = &bx; b->j = 5; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13338 | } |
| 13339 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13340 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13341 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13342 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13343 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13344 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13346 | ; |
| 13347 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13348 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13349 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13350 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13351 | ac_cv_c_const=yes |
| 13352 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13353 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13354 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13356 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 13358 | $as_echo "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13359 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13360 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13361 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13362 | |
| 13363 | fi |
| 13364 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13365 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13366 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
| 13368 | $as_echo_n "checking for working signed char... " >&6; } |
| 13369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13370 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13371 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13372 | int |
| 13373 | main () |
| 13374 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13375 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13376 | ; |
| 13377 | return 0; |
| 13378 | } |
| 13379 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13380 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13381 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13382 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13383 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13384 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13385 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13386 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13387 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 13390 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13391 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13392 | have_prototypes=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
| 13394 | $as_echo_n "checking for prototypes... " >&6; } |
| 13395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13396 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13397 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13398 | int |
| 13399 | main () |
| 13400 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13401 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13402 | ; |
| 13403 | return 0; |
| 13404 | } |
| 13405 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13406 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13407 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13408 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13409 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13410 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13411 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
| 13414 | $as_echo "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13415 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13416 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
| 13418 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } |
| 13419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13420 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13421 | |
| 13422 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13423 | int foo(int x, ...) { |
| 13424 | va_list va; |
| 13425 | va_start(va, x); |
| 13426 | va_arg(va, int); |
| 13427 | va_arg(va, char *); |
| 13428 | va_arg(va, double); |
| 13429 | return 0; |
| 13430 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13431 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13432 | int |
| 13433 | main () |
| 13434 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13435 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13436 | ; |
| 13437 | return 0; |
| 13438 | } |
| 13439 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13440 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13441 | |
| 13442 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13443 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13444 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13445 | works=yes |
| 13446 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13447 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 13450 | $as_echo "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13451 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13452 | # check for socketpair |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
| 13454 | $as_echo_n "checking for socketpair... " >&6; } |
| 13455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13456 | /* end confdefs.h. */ |
| 13457 | |
| 13458 | #include <sys/types.h> |
| 13459 | #include <sys/socket.h> |
| 13460 | |
| 13461 | int |
| 13462 | main () |
| 13463 | { |
| 13464 | void *x=socketpair |
| 13465 | ; |
| 13466 | return 0; |
| 13467 | } |
| 13468 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13469 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13470 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13471 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13472 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13474 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13475 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13477 | $as_echo "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13478 | |
| 13479 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13480 | 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] | 13481 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13482 | # check if sockaddr has sa_len member |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
| 13484 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } |
| 13485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13486 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13487 | #include <sys/types.h> |
| 13488 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13489 | int |
| 13490 | main () |
| 13491 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13492 | struct sockaddr x; |
| 13493 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13494 | ; |
| 13495 | return 0; |
| 13496 | } |
| 13497 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13498 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13500 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13501 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13502 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13503 | |
| 13504 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13506 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13507 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13508 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13509 | 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] | 13510 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13511 | # 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] | 13512 | |
| 13513 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13514 | 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] | 13515 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13516 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13517 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13518 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
| 13520 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13521 | OLD_CFLAGS=$CFLAGS |
| 13522 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13524 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13525 | |
| 13526 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13528 | int |
| 13529 | main () |
| 13530 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13531 | |
| 13532 | char *name; |
| 13533 | struct hostent *he, *res; |
| 13534 | char buffer[2048]; |
| 13535 | int buflen = 2048; |
| 13536 | int h_errnop; |
| 13537 | |
| 13538 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13539 | |
| 13540 | ; |
| 13541 | return 0; |
| 13542 | } |
| 13543 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13544 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13545 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13546 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13547 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13548 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13549 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13550 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13552 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13553 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13554 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13555 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13557 | $as_echo "no" >&6; } |
| 13558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 |
| 13559 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } |
| 13560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13561 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13562 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13563 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13565 | int |
| 13566 | main () |
| 13567 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13568 | |
| 13569 | char *name; |
| 13570 | struct hostent *he; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13571 | char buffer[2048]; |
| 13572 | int buflen = 2048; |
| 13573 | int h_errnop; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13574 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13575 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13576 | |
| 13577 | ; |
| 13578 | return 0; |
| 13579 | } |
| 13580 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13581 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13582 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13583 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13585 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13586 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13587 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13589 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13590 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13591 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13592 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13594 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
| 13596 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } |
| 13597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13598 | /* end confdefs.h. */ |
| 13599 | |
| 13600 | # include <netdb.h> |
| 13601 | |
| 13602 | int |
| 13603 | main () |
| 13604 | { |
| 13605 | |
| 13606 | char *name; |
| 13607 | struct hostent *he; |
| 13608 | struct hostent_data data; |
| 13609 | |
| 13610 | (void) gethostbyname_r(name, he, &data); |
| 13611 | |
| 13612 | ; |
| 13613 | return 0; |
| 13614 | } |
| 13615 | _ACEOF |
| 13616 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13617 | |
| 13618 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
| 13619 | |
| 13620 | |
| 13621 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h |
| 13622 | |
| 13623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13624 | $as_echo "yes" >&6; } |
| 13625 | |
| 13626 | else |
| 13627 | |
| 13628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13629 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13630 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13631 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13632 | 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] | 13633 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13634 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13635 | 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] | 13636 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13637 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13639 | CFLAGS=$OLD_CFLAGS |
| 13640 | |
| 13641 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13642 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13643 | for ac_func in gethostbyname |
| 13644 | do : |
| 13645 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13646 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13647 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13648 | #define HAVE_GETHOSTBYNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13649 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13650 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13651 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13652 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13653 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13654 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13655 | fi |
| 13656 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13657 | |
| 13658 | |
| 13659 | |
| 13660 | |
| 13661 | |
| 13662 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13663 | # checks for system services |
| 13664 | # (none yet) |
| 13665 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13666 | # Linux requires this for correct f.p. operations |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13667 | 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] | 13668 | if test "x$ac_cv_func___fpu_control" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13669 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13670 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
| 13672 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13673 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13674 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13675 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13676 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13677 | LIBS="-lieee $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13679 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13680 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13681 | /* Override any GCC internal prototype to avoid an error. |
| 13682 | Use char because int might match the return type of a GCC |
| 13683 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13684 | #ifdef __cplusplus |
| 13685 | extern "C" |
| 13686 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13687 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13688 | int |
| 13689 | main () |
| 13690 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13691 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13692 | ; |
| 13693 | return 0; |
| 13694 | } |
| 13695 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13696 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13697 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13698 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13699 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13700 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13701 | rm -f core conftest.err conftest.$ac_objext \ |
| 13702 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13703 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13704 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 13706 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13707 | 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] | 13708 | cat >>confdefs.h <<_ACEOF |
| 13709 | #define HAVE_LIBIEEE 1 |
| 13710 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13711 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13712 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13713 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13714 | fi |
| 13715 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13716 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13717 | fi |
| 13718 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13719 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13720 | # check for --with-libm=... |
| 13721 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13722 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 13723 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13724 | *) LIBM=-lm |
| 13725 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
| 13727 | $as_echo_n "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13728 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13729 | # Check whether --with-libm was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13730 | if test "${with_libm+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13731 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13732 | if test "$withval" = no |
| 13733 | then LIBM= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
| 13735 | $as_echo "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13736 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13737 | then LIBM=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
| 13739 | $as_echo "set LIBM=\"$withval\"" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13740 | 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] | 13741 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13742 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
| 13744 | $as_echo "default LIBM=\"$LIBM\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13745 | fi |
| 13746 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13747 | |
| 13748 | # check for --with-libc=... |
| 13749 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
| 13751 | $as_echo_n "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13752 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13753 | # Check whether --with-libc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13754 | if test "${with_libc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13755 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13756 | if test "$withval" = no |
| 13757 | then LIBC= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
| 13759 | $as_echo "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13760 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13761 | then LIBC=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
| 13763 | $as_echo "set LIBC=\"$withval\"" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13764 | 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] | 13765 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13766 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
| 13768 | $as_echo "default LIBC=\"$LIBC\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13769 | fi |
| 13770 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13771 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13772 | # ************************************** |
| 13773 | # * Check for gcc x64 inline assembler * |
| 13774 | # ************************************** |
| 13775 | |
| 13776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 |
| 13777 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } |
| 13778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13779 | /* end confdefs.h. */ |
| 13780 | |
| 13781 | int |
| 13782 | main () |
| 13783 | { |
| 13784 | |
| 13785 | __asm__ __volatile__ ("movq %rcx, %rax"); |
| 13786 | |
| 13787 | ; |
| 13788 | return 0; |
| 13789 | } |
| 13790 | _ACEOF |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13791 | if ac_fn_c_try_link "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13792 | have_gcc_asm_for_x64=yes |
| 13793 | else |
| 13794 | have_gcc_asm_for_x64=no |
| 13795 | fi |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13796 | rm -f core conftest.err conftest.$ac_objext \ |
| 13797 | conftest$ac_exeext conftest.$ac_ext |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 |
| 13799 | $as_echo "$have_gcc_asm_for_x64" >&6; } |
| 13800 | if test "$have_gcc_asm_for_x64" = yes |
| 13801 | then |
| 13802 | |
| 13803 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h |
| 13804 | |
| 13805 | fi |
| 13806 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13807 | # ************************************************** |
| 13808 | # * Check for various properties of floating point * |
| 13809 | # ************************************************** |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13810 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 13812 | $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] | 13813 | if ${ac_cv_little_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13814 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13815 | else |
| 13816 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13817 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13818 | ac_cv_little_endian_double=no |
| 13819 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13821 | /* end confdefs.h. */ |
| 13822 | |
| 13823 | #include <string.h> |
| 13824 | int main() { |
| 13825 | double x = 9006104071832581.0; |
| 13826 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 13827 | return 0; |
| 13828 | else |
| 13829 | return 1; |
| 13830 | } |
| 13831 | |
| 13832 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13833 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13834 | ac_cv_little_endian_double=yes |
| 13835 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13836 | ac_cv_little_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13837 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13838 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13839 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13840 | fi |
| 13841 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13842 | fi |
| 13843 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 |
| 13845 | $as_echo "$ac_cv_little_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13846 | if test "$ac_cv_little_endian_double" = yes |
| 13847 | then |
| 13848 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13849 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13850 | |
| 13851 | fi |
| 13852 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 13854 | $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] | 13855 | if ${ac_cv_big_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13856 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13857 | else |
| 13858 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13859 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13860 | ac_cv_big_endian_double=no |
| 13861 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13863 | /* end confdefs.h. */ |
| 13864 | |
| 13865 | #include <string.h> |
| 13866 | int main() { |
| 13867 | double x = 9006104071832581.0; |
| 13868 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 13869 | return 0; |
| 13870 | else |
| 13871 | return 1; |
| 13872 | } |
| 13873 | |
| 13874 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13875 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13876 | ac_cv_big_endian_double=yes |
| 13877 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13878 | ac_cv_big_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13879 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13880 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13881 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13882 | fi |
| 13883 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13884 | fi |
| 13885 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 |
| 13887 | $as_echo "$ac_cv_big_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13888 | if test "$ac_cv_big_endian_double" = yes |
| 13889 | then |
| 13890 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13891 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13892 | |
| 13893 | fi |
| 13894 | |
| 13895 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 13896 | # While Python doesn't currently have full support for these platforms |
| 13897 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 13898 | # conversions work. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 13900 | $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] | 13901 | if ${ac_cv_mixed_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13902 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13903 | else |
| 13904 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13905 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13906 | ac_cv_mixed_endian_double=no |
| 13907 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13909 | /* end confdefs.h. */ |
| 13910 | |
| 13911 | #include <string.h> |
| 13912 | int main() { |
| 13913 | double x = 9006104071832581.0; |
| 13914 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 13915 | return 0; |
| 13916 | else |
| 13917 | return 1; |
| 13918 | } |
| 13919 | |
| 13920 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13921 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13922 | ac_cv_mixed_endian_double=yes |
| 13923 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13924 | ac_cv_mixed_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13925 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13926 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13927 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13928 | fi |
| 13929 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13930 | fi |
| 13931 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 |
| 13933 | $as_echo "$ac_cv_mixed_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13934 | if test "$ac_cv_mixed_endian_double" = yes |
| 13935 | then |
| 13936 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13937 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13938 | |
| 13939 | fi |
| 13940 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13941 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13942 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13943 | # 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] | 13944 | # 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] | 13945 | # 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] | 13946 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13947 | |
| 13948 | # This inline assembler syntax may also work for suncc and icc, |
| 13949 | # so we try it on all platforms. |
| 13950 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
| 13952 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } |
| 13953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13954 | /* end confdefs.h. */ |
| 13955 | |
| 13956 | int |
| 13957 | main () |
| 13958 | { |
| 13959 | |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13960 | unsigned short cw; |
| 13961 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 13962 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13963 | |
| 13964 | ; |
| 13965 | return 0; |
| 13966 | } |
| 13967 | _ACEOF |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13968 | if ac_fn_c_try_link "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13969 | have_gcc_asm_for_x87=yes |
| 13970 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13971 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13972 | fi |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13973 | rm -f core conftest.err conftest.$ac_objext \ |
| 13974 | conftest$ac_exeext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
| 13976 | $as_echo "$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13977 | if test "$have_gcc_asm_for_x87" = yes |
| 13978 | then |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13979 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13980 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13981 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13982 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13983 | |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 |
| 13985 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } |
| 13986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13987 | /* end confdefs.h. */ |
| 13988 | |
| 13989 | int |
| 13990 | main () |
| 13991 | { |
| 13992 | |
| 13993 | unsigned int fpcr; |
| 13994 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); |
| 13995 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); |
| 13996 | |
| 13997 | ; |
| 13998 | return 0; |
| 13999 | } |
| 14000 | _ACEOF |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14001 | if ac_fn_c_try_link "$LINENO"; then : |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14002 | have_gcc_asm_for_mc68881=yes |
| 14003 | else |
| 14004 | have_gcc_asm_for_mc68881=no |
| 14005 | fi |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14006 | rm -f core conftest.err conftest.$ac_objext \ |
| 14007 | conftest$ac_exeext conftest.$ac_ext |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 |
| 14009 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } |
| 14010 | if test "$have_gcc_asm_for_mc68881" = yes |
| 14011 | then |
| 14012 | |
| 14013 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h |
| 14014 | |
| 14015 | fi |
| 14016 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14017 | # Detect whether system arithmetic is subject to x87-style double |
| 14018 | # rounding issues. The result of this test has little meaning on non |
| 14019 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 14020 | # mode is round-to-nearest and double rounding issues are present, and |
| 14021 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
| 14023 | $as_echo_n "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14024 | # $BASECFLAGS may affect the result |
| 14025 | ac_save_cc="$CC" |
| 14026 | CC="$CC $BASECFLAGS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14027 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14028 | ac_cv_x87_double_rounding=no |
| 14029 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14031 | /* end confdefs.h. */ |
| 14032 | |
| 14033 | #include <stdlib.h> |
| 14034 | #include <math.h> |
| 14035 | int main() { |
| 14036 | volatile double x, y, z; |
| 14037 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 14038 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 14039 | y = 1./x; |
| 14040 | if (y != 1.) |
| 14041 | exit(0); |
| 14042 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 14043 | x = 1e16; |
| 14044 | y = 2.99999; |
| 14045 | z = x + y; |
| 14046 | if (z != 1e16+4.) |
| 14047 | exit(0); |
| 14048 | /* both tests show evidence of double rounding */ |
| 14049 | exit(1); |
| 14050 | } |
| 14051 | |
| 14052 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14053 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14054 | ac_cv_x87_double_rounding=no |
| 14055 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14056 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14057 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14058 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14059 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14060 | fi |
| 14061 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14062 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
| 14064 | $as_echo "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14065 | if test "$ac_cv_x87_double_rounding" = yes |
| 14066 | then |
| 14067 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14068 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14069 | |
| 14070 | fi |
| 14071 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14072 | # ************************************ |
| 14073 | # * Check for mathematical functions * |
| 14074 | # ************************************ |
| 14075 | |
| 14076 | LIBS_SAVE=$LIBS |
| 14077 | LIBS="$LIBS $LIBM" |
| 14078 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14079 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 14080 | do : |
| 14081 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14082 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14083 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14084 | cat >>confdefs.h <<_ACEOF |
| 14085 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14086 | _ACEOF |
| 14087 | |
| 14088 | fi |
| 14089 | done |
| 14090 | |
Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 14091 | for ac_func in hypot lgamma log1p log2 round tgamma |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14092 | do : |
| 14093 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14094 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14095 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14096 | cat >>confdefs.h <<_ACEOF |
| 14097 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14098 | _ACEOF |
| 14099 | |
| 14100 | fi |
| 14101 | done |
| 14102 | |
| 14103 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> |
| 14104 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14105 | if test "x$ac_cv_have_decl_isinf" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14106 | ac_have_decl=1 |
| 14107 | else |
| 14108 | ac_have_decl=0 |
| 14109 | fi |
| 14110 | |
| 14111 | cat >>confdefs.h <<_ACEOF |
| 14112 | #define HAVE_DECL_ISINF $ac_have_decl |
| 14113 | _ACEOF |
| 14114 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> |
| 14115 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14116 | if test "x$ac_cv_have_decl_isnan" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14117 | ac_have_decl=1 |
| 14118 | else |
| 14119 | ac_have_decl=0 |
| 14120 | fi |
| 14121 | |
| 14122 | cat >>confdefs.h <<_ACEOF |
| 14123 | #define HAVE_DECL_ISNAN $ac_have_decl |
| 14124 | _ACEOF |
| 14125 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> |
| 14126 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14127 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14128 | ac_have_decl=1 |
| 14129 | else |
| 14130 | ac_have_decl=0 |
| 14131 | fi |
| 14132 | |
| 14133 | cat >>confdefs.h <<_ACEOF |
| 14134 | #define HAVE_DECL_ISFINITE $ac_have_decl |
| 14135 | _ACEOF |
| 14136 | |
| 14137 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14138 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 14139 | # -0. on some architectures. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 |
| 14141 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14142 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14143 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14144 | else |
| 14145 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14146 | if test "$cross_compiling" = yes; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14147 | ac_cv_tanh_preserves_zero_sign=no |
| 14148 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14150 | /* end confdefs.h. */ |
| 14151 | |
| 14152 | #include <math.h> |
| 14153 | #include <stdlib.h> |
| 14154 | int main() { |
| 14155 | /* return 0 if either negative zeros don't exist |
| 14156 | on this platform or if negative zeros exist |
| 14157 | and tanh(-0.) == -0. */ |
| 14158 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 14159 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 14160 | else exit(1); |
| 14161 | } |
| 14162 | |
| 14163 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14164 | if ac_fn_c_try_run "$LINENO"; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14165 | ac_cv_tanh_preserves_zero_sign=yes |
| 14166 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14167 | ac_cv_tanh_preserves_zero_sign=no |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14168 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14169 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14170 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14171 | fi |
| 14172 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14173 | fi |
| 14174 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 14176 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14177 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 14178 | then |
| 14179 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14180 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14181 | |
| 14182 | fi |
| 14183 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14184 | if test "$ac_cv_func_log1p" = yes |
| 14185 | then |
| 14186 | # On some versions of AIX, log1p(-0.) returns 0. instead of |
| 14187 | # -0. See issue #9920. |
| 14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 |
| 14189 | $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] | 14190 | if ${ac_cv_log1p_drops_zero_sign+:} false; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14191 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14192 | else |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14193 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14194 | if test "$cross_compiling" = yes; then : |
| 14195 | ac_cv_log1p_drops_zero_sign=no |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14196 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14198 | /* end confdefs.h. */ |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14199 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14200 | #include <math.h> |
| 14201 | #include <stdlib.h> |
| 14202 | int main() { |
| 14203 | /* Fail if the signs of log1p(-0.) and -0. can be |
| 14204 | distinguished. */ |
| 14205 | if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) |
| 14206 | return 0; |
| 14207 | else |
| 14208 | return 1; |
| 14209 | } |
| 14210 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14211 | _ACEOF |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14212 | if ac_fn_c_try_run "$LINENO"; then : |
| 14213 | ac_cv_log1p_drops_zero_sign=no |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14214 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14215 | ac_cv_log1p_drops_zero_sign=yes |
| 14216 | fi |
| 14217 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14218 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14219 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14220 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14221 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14222 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 |
| 14224 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } |
| 14225 | fi |
| 14226 | if test "$ac_cv_log1p_drops_zero_sign" = yes |
| 14227 | then |
| 14228 | |
| 14229 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h |
| 14230 | |
| 14231 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14232 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14233 | LIBS=$LIBS_SAVE |
| 14234 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14235 | # For multiprocessing module, check that sem_open |
| 14236 | # actually works. For FreeBSD versions <= 7.2, |
| 14237 | # the kernel module that provides POSIX semaphores |
| 14238 | # isn't loaded by default, so an attempt to call |
| 14239 | # sem_open results in a 'Signal 12' error. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
| 14241 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14242 | if ${ac_cv_posix_semaphores_enabled+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14243 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14244 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14245 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14246 | ac_cv_posix_semaphores_enabled=yes |
| 14247 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14249 | /* end confdefs.h. */ |
| 14250 | |
| 14251 | #include <unistd.h> |
| 14252 | #include <fcntl.h> |
| 14253 | #include <stdio.h> |
| 14254 | #include <semaphore.h> |
| 14255 | #include <sys/stat.h> |
| 14256 | |
| 14257 | int main(void) { |
| 14258 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 14259 | if (a == SEM_FAILED) { |
| 14260 | perror("sem_open"); |
| 14261 | return 1; |
| 14262 | } |
| 14263 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14264 | sem_unlink("/autoconf"); |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14265 | return 0; |
| 14266 | } |
| 14267 | |
| 14268 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14269 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14270 | ac_cv_posix_semaphores_enabled=yes |
| 14271 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14272 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14273 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14274 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14275 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14276 | fi |
| 14277 | |
| 14278 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14279 | fi |
| 14280 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 14282 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14283 | if test $ac_cv_posix_semaphores_enabled = no |
| 14284 | then |
| 14285 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14286 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14287 | |
| 14288 | fi |
| 14289 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14290 | # Multiprocessing check for broken sem_getvalue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
| 14292 | $as_echo_n "checking for broken sem_getvalue... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14293 | if ${ac_cv_broken_sem_getvalue+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14294 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14295 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14296 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14297 | ac_cv_broken_sem_getvalue=yes |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14298 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14300 | /* end confdefs.h. */ |
| 14301 | |
| 14302 | #include <unistd.h> |
| 14303 | #include <fcntl.h> |
| 14304 | #include <stdio.h> |
| 14305 | #include <semaphore.h> |
| 14306 | #include <sys/stat.h> |
| 14307 | |
| 14308 | int main(void){ |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14309 | 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] | 14310 | int count; |
| 14311 | int res; |
| 14312 | if(a==SEM_FAILED){ |
| 14313 | perror("sem_open"); |
| 14314 | return 1; |
| 14315 | |
| 14316 | } |
| 14317 | res = sem_getvalue(a, &count); |
| 14318 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14319 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14320 | return res==-1 ? 1 : 0; |
| 14321 | } |
| 14322 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14323 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14324 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14325 | ac_cv_broken_sem_getvalue=no |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14326 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14327 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14328 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14329 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14330 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14331 | fi |
| 14332 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14333 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14334 | fi |
| 14335 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
| 14337 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14338 | if test $ac_cv_broken_sem_getvalue = yes |
| 14339 | then |
| 14340 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14341 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14342 | |
| 14343 | fi |
| 14344 | |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14345 | ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> |
| 14346 | " |
| 14347 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : |
| 14348 | ac_have_decl=1 |
| 14349 | else |
| 14350 | ac_have_decl=0 |
| 14351 | fi |
| 14352 | |
| 14353 | cat >>confdefs.h <<_ACEOF |
| 14354 | #define HAVE_DECL_RTLD_LAZY $ac_have_decl |
| 14355 | _ACEOF |
| 14356 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> |
| 14357 | " |
| 14358 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : |
| 14359 | ac_have_decl=1 |
| 14360 | else |
| 14361 | ac_have_decl=0 |
| 14362 | fi |
| 14363 | |
| 14364 | cat >>confdefs.h <<_ACEOF |
| 14365 | #define HAVE_DECL_RTLD_NOW $ac_have_decl |
| 14366 | _ACEOF |
| 14367 | ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> |
| 14368 | " |
| 14369 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : |
| 14370 | ac_have_decl=1 |
| 14371 | else |
| 14372 | ac_have_decl=0 |
| 14373 | fi |
| 14374 | |
| 14375 | cat >>confdefs.h <<_ACEOF |
| 14376 | #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl |
| 14377 | _ACEOF |
| 14378 | ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> |
| 14379 | " |
| 14380 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : |
| 14381 | ac_have_decl=1 |
| 14382 | else |
| 14383 | ac_have_decl=0 |
| 14384 | fi |
| 14385 | |
| 14386 | cat >>confdefs.h <<_ACEOF |
| 14387 | #define HAVE_DECL_RTLD_LOCAL $ac_have_decl |
| 14388 | _ACEOF |
| 14389 | ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> |
| 14390 | " |
| 14391 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : |
| 14392 | ac_have_decl=1 |
| 14393 | else |
| 14394 | ac_have_decl=0 |
| 14395 | fi |
| 14396 | |
| 14397 | cat >>confdefs.h <<_ACEOF |
| 14398 | #define HAVE_DECL_RTLD_NODELETE $ac_have_decl |
| 14399 | _ACEOF |
| 14400 | ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> |
| 14401 | " |
| 14402 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : |
| 14403 | ac_have_decl=1 |
| 14404 | else |
| 14405 | ac_have_decl=0 |
| 14406 | fi |
| 14407 | |
| 14408 | cat >>confdefs.h <<_ACEOF |
| 14409 | #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl |
| 14410 | _ACEOF |
| 14411 | ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> |
| 14412 | " |
| 14413 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : |
| 14414 | ac_have_decl=1 |
| 14415 | else |
| 14416 | ac_have_decl=0 |
| 14417 | fi |
| 14418 | |
| 14419 | cat >>confdefs.h <<_ACEOF |
| 14420 | #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl |
| 14421 | _ACEOF |
Michael Felt | c5ae169 | 2017-12-19 13:58:49 +0100 | [diff] [blame] | 14422 | ac_fn_c_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h> |
| 14423 | " |
| 14424 | if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes; then : |
| 14425 | ac_have_decl=1 |
| 14426 | else |
| 14427 | ac_have_decl=0 |
| 14428 | fi |
| 14429 | |
| 14430 | cat >>confdefs.h <<_ACEOF |
| 14431 | #define HAVE_DECL_RTLD_MEMBER $ac_have_decl |
| 14432 | _ACEOF |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14433 | |
| 14434 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14435 | # determine what size digit to use for Python's longs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
| 14437 | $as_echo_n "checking digit size for Python's longs... " >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14438 | # Check whether --enable-big-digits was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14439 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14440 | enableval=$enable_big_digits; case $enable_big_digits in |
| 14441 | yes) |
| 14442 | enable_big_digits=30 ;; |
| 14443 | no) |
| 14444 | enable_big_digits=15 ;; |
| 14445 | 15|30) |
| 14446 | ;; |
| 14447 | *) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14448 | 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] | 14449 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
| 14451 | $as_echo "$enable_big_digits" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14452 | |
| 14453 | cat >>confdefs.h <<_ACEOF |
| 14454 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 14455 | _ACEOF |
| 14456 | |
| 14457 | |
| 14458 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 14460 | $as_echo "no value specified" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14461 | fi |
| 14462 | |
| 14463 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14464 | # check for wchar.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14465 | 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] | 14466 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14467 | |
| 14468 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14469 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14470 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14471 | wchar_h="yes" |
| 14472 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14473 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14474 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14475 | |
| 14476 | fi |
| 14477 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14479 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14480 | # determine wchar_t size |
| 14481 | if test "$wchar_h" = yes |
| 14482 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14483 | # 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] | 14484 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14485 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14486 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
| 14488 | $as_echo_n "checking size of wchar_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14489 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14490 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14491 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14492 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
| 14493 | "; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14494 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14495 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14496 | if test "$ac_cv_type_wchar_t" = yes; then |
| 14497 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14498 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14499 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14500 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14501 | else |
| 14502 | ac_cv_sizeof_wchar_t=0 |
| 14503 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14504 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14505 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14506 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
| 14508 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14509 | |
| 14510 | |
| 14511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14512 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14513 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14514 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14515 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14516 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14517 | fi |
| 14518 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
| 14520 | $as_echo_n "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14521 | have_ucs4_tcl=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14523 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14524 | |
| 14525 | #include <tcl.h> |
| 14526 | #if TCL_UTF_MAX != 6 |
| 14527 | # error "NOT UCS4_TCL" |
| 14528 | #endif |
| 14529 | int |
| 14530 | main () |
| 14531 | { |
| 14532 | |
| 14533 | ; |
| 14534 | return 0; |
| 14535 | } |
| 14536 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14537 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14538 | |
| 14539 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14540 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14541 | |
| 14542 | have_ucs4_tcl=yes |
| 14543 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14544 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
| 14547 | $as_echo "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14548 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14549 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14550 | if test "$wchar_h" = yes |
| 14551 | then |
| 14552 | # check whether wchar_t is signed or not |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
| 14554 | $as_echo_n "checking whether wchar_t is signed... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14555 | if ${ac_cv_wchar_t_signed+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14556 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14557 | else |
| 14558 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14559 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14560 | ac_cv_wchar_t_signed=yes |
| 14561 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14563 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14564 | |
| 14565 | #include <wchar.h> |
| 14566 | int main() |
| 14567 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14568 | /* Success: exit code 0 */ |
| 14569 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14570 | } |
| 14571 | |
| 14572 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14573 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14574 | ac_cv_wchar_t_signed=yes |
| 14575 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14576 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14577 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14578 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14579 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14580 | fi |
| 14581 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14582 | fi |
| 14583 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
| 14585 | $as_echo "$ac_cv_wchar_t_signed" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14586 | fi |
| 14587 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14588 | # 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] | 14589 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 14590 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14591 | then |
Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14592 | HAVE_USABLE_WCHAR_T="yes" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14593 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14594 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14595 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14596 | else |
Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14597 | HAVE_USABLE_WCHAR_T="no usable wchar_t found" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14598 | fi |
Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 |
| 14600 | $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14601 | |
| 14602 | # check for endianness |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 14604 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14605 | if ${ac_cv_c_bigendian+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14606 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14607 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14608 | ac_cv_c_bigendian=unknown |
| 14609 | # See if we're dealing with a universal compiler. |
| 14610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14611 | /* end confdefs.h. */ |
| 14612 | #ifndef __APPLE_CC__ |
| 14613 | not a universal capable compiler |
| 14614 | #endif |
| 14615 | typedef int dummy; |
| 14616 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14617 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14618 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14619 | |
| 14620 | # Check for potential -arch flags. It is not universal unless |
| 14621 | # there are at least two -arch flags with different values. |
| 14622 | ac_arch= |
| 14623 | ac_prev= |
| 14624 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 14625 | if test -n "$ac_prev"; then |
| 14626 | case $ac_word in |
| 14627 | i?86 | x86_64 | ppc | ppc64) |
| 14628 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 14629 | ac_arch=$ac_word |
| 14630 | else |
| 14631 | ac_cv_c_bigendian=universal |
| 14632 | break |
| 14633 | fi |
| 14634 | ;; |
| 14635 | esac |
| 14636 | ac_prev= |
| 14637 | elif test "x$ac_word" = "x-arch"; then |
| 14638 | ac_prev=arch |
| 14639 | fi |
| 14640 | done |
| 14641 | fi |
| 14642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14643 | if test $ac_cv_c_bigendian = unknown; then |
| 14644 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 14645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14646 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14647 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14648 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14650 | int |
| 14651 | main () |
| 14652 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14653 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 14654 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 14655 | && LITTLE_ENDIAN) |
| 14656 | bogus endian macros |
| 14657 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14658 | |
| 14659 | ; |
| 14660 | return 0; |
| 14661 | } |
| 14662 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14663 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14664 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14666 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14667 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14668 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14669 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14670 | int |
| 14671 | main () |
| 14672 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14673 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14674 | not big endian |
| 14675 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14676 | |
| 14677 | ; |
| 14678 | return 0; |
| 14679 | } |
| 14680 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14681 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14682 | ac_cv_c_bigendian=yes |
| 14683 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14684 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14685 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14687 | fi |
| 14688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14689 | fi |
| 14690 | if test $ac_cv_c_bigendian = unknown; then |
| 14691 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 14692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14693 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14694 | #include <limits.h> |
| 14695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14696 | int |
| 14697 | main () |
| 14698 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14699 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 14700 | bogus endian macros |
| 14701 | #endif |
| 14702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14703 | ; |
| 14704 | return 0; |
| 14705 | } |
| 14706 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14707 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14708 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 14709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14710 | /* end confdefs.h. */ |
| 14711 | #include <limits.h> |
| 14712 | |
| 14713 | int |
| 14714 | main () |
| 14715 | { |
| 14716 | #ifndef _BIG_ENDIAN |
| 14717 | not big endian |
| 14718 | #endif |
| 14719 | |
| 14720 | ; |
| 14721 | return 0; |
| 14722 | } |
| 14723 | _ACEOF |
| 14724 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14725 | ac_cv_c_bigendian=yes |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14726 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14727 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14728 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14730 | fi |
| 14731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14732 | fi |
| 14733 | if test $ac_cv_c_bigendian = unknown; then |
| 14734 | # Compile a test program. |
| 14735 | if test "$cross_compiling" = yes; then : |
| 14736 | # Try to guess by grepping values from an object file. |
| 14737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14738 | /* end confdefs.h. */ |
| 14739 | short int ascii_mm[] = |
| 14740 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 14741 | short int ascii_ii[] = |
| 14742 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 14743 | int use_ascii (int i) { |
| 14744 | return ascii_mm[i] + ascii_ii[i]; |
| 14745 | } |
| 14746 | short int ebcdic_ii[] = |
| 14747 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 14748 | short int ebcdic_mm[] = |
| 14749 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 14750 | int use_ebcdic (int i) { |
| 14751 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 14752 | } |
| 14753 | extern int foo; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14754 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14755 | int |
| 14756 | main () |
| 14757 | { |
| 14758 | return use_ascii (foo) == use_ebcdic (foo); |
| 14759 | ; |
| 14760 | return 0; |
| 14761 | } |
| 14762 | _ACEOF |
| 14763 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14764 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 14765 | ac_cv_c_bigendian=yes |
| 14766 | fi |
| 14767 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 14768 | if test "$ac_cv_c_bigendian" = unknown; then |
| 14769 | ac_cv_c_bigendian=no |
| 14770 | else |
| 14771 | # finding both strings is unlikely to happen, but who knows? |
| 14772 | ac_cv_c_bigendian=unknown |
| 14773 | fi |
| 14774 | fi |
| 14775 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14776 | 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] | 14777 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14779 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14780 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14781 | int |
| 14782 | main () |
| 14783 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14784 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14785 | /* Are we little or big endian? From Harbison&Steele. */ |
| 14786 | union |
| 14787 | { |
| 14788 | long int l; |
| 14789 | char c[sizeof (long int)]; |
| 14790 | } u; |
| 14791 | u.l = 1; |
| 14792 | return u.c[sizeof (long int) - 1] == 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14793 | |
| 14794 | ; |
| 14795 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14796 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14797 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14798 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14799 | ac_cv_c_bigendian=no |
| 14800 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14801 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14802 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14803 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14804 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14805 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14806 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14807 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14808 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 14810 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 14811 | case $ac_cv_c_bigendian in #( |
| 14812 | yes) |
| 14813 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 14814 | ;; #( |
| 14815 | no) |
| 14816 | ;; #( |
| 14817 | universal) |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14818 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14819 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14820 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14821 | ;; #( |
| 14822 | *) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14823 | as_fn_error $? "unknown endianness |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14824 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14825 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14826 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14827 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14828 | # ABI version string for Python extension modules. This appears between the |
| 14829 | # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated |
| 14830 | # from the following attributes which affect the ABI of this Python build (in |
| 14831 | # this order): |
| 14832 | # |
| 14833 | # * The Python implementation (always 'cpython-' for us) |
| 14834 | # * The major and minor version numbers |
| 14835 | # * --with-pydebug (adds a 'd') |
| 14836 | # * --with-pymalloc (adds a 'm') |
| 14837 | # * --with-wide-unicode (adds a 'u') |
| 14838 | # |
| 14839 | # 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] | 14840 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared |
| 14841 | # libraries would be named 'foo.cpython-32dmu.so'. |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14842 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 |
| 14844 | $as_echo_n "checking ABIFLAGS... " >&6; } |
| 14845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 |
| 14846 | $as_echo "$ABIFLAGS" >&6; } |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 |
| 14848 | $as_echo_n "checking SOABI... " >&6; } |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 14849 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 |
| 14851 | $as_echo "$SOABI" >&6; } |
| 14852 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14853 | |
| 14854 | case $ac_sys_system in |
Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 14855 | Linux*|GNU*|Darwin) |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14856 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; |
| 14857 | *) |
| 14858 | EXT_SUFFIX=${SHLIB_SUFFIX};; |
| 14859 | esac |
| 14860 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 |
| 14862 | $as_echo_n "checking LDVERSION... " >&6; } |
| 14863 | LDVERSION='$(VERSION)$(ABIFLAGS)' |
| 14864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 |
| 14865 | $as_echo "$LDVERSION" >&6; } |
| 14866 | |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14867 | |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 14868 | if test x$PLATFORM_TRIPLET = x; then |
| 14869 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" |
| 14870 | else |
| 14871 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" |
| 14872 | fi |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14873 | |
| 14874 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14875 | # Check whether right shifting a negative integer extends the sign bit |
| 14876 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
| 14878 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14879 | if ${ac_cv_rshift_extends_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14880 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14881 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14882 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14883 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14884 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14885 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14887 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14888 | |
| 14889 | int main() |
| 14890 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14891 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14892 | } |
| 14893 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14894 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14895 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14896 | ac_cv_rshift_extends_sign=yes |
| 14897 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14898 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14899 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14900 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14901 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14902 | fi |
| 14903 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14904 | fi |
| 14905 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
| 14907 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14908 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14909 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14910 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14911 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14912 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14913 | fi |
| 14914 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14915 | # check for getc_unlocked and related locking functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
| 14917 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14918 | if ${ac_cv_have_getc_unlocked+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14919 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14920 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14921 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14923 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14924 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14925 | int |
| 14926 | main () |
| 14927 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14928 | |
| 14929 | FILE *f = fopen("/dev/null", "r"); |
| 14930 | flockfile(f); |
| 14931 | getc_unlocked(f); |
| 14932 | funlockfile(f); |
| 14933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14934 | ; |
| 14935 | return 0; |
| 14936 | } |
| 14937 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14938 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14939 | ac_cv_have_getc_unlocked=yes |
| 14940 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14941 | ac_cv_have_getc_unlocked=no |
| 14942 | fi |
| 14943 | rm -f core conftest.err conftest.$ac_objext \ |
| 14944 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14945 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14946 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
| 14948 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14949 | if test "$ac_cv_have_getc_unlocked" = yes |
| 14950 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14951 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14952 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14953 | |
| 14954 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14955 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14956 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 14957 | # save the value of LIBS so we don't actually link Python with readline |
| 14958 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14959 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14960 | # On some systems we need to link readline to a termcap compatible |
| 14961 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 14962 | # with setup.py. |
| 14963 | py_cv_lib_readline=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
| 14965 | $as_echo_n "checking how to link readline libs... " >&6; } |
doko@ubuntu.com | f2967c7 | 2012-06-30 17:32:23 +0200 | [diff] [blame] | 14966 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14967 | if test -z "$py_libtermcap"; then |
| 14968 | READLINE_LIBS="-lreadline" |
| 14969 | else |
| 14970 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 14971 | fi |
| 14972 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14974 | /* end confdefs.h. */ |
| 14975 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14976 | /* Override any GCC internal prototype to avoid an error. |
| 14977 | Use char because int might match the return type of a GCC |
| 14978 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14979 | #ifdef __cplusplus |
| 14980 | extern "C" |
| 14981 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14982 | char readline (); |
| 14983 | int |
| 14984 | main () |
| 14985 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14986 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14987 | ; |
| 14988 | return 0; |
| 14989 | } |
| 14990 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14991 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14992 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14993 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14994 | rm -f core conftest.err conftest.$ac_objext \ |
| 14995 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14996 | if test $py_cv_lib_readline = yes; then |
| 14997 | break |
| 14998 | fi |
| 14999 | done |
| 15000 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 15001 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 15002 | if test $py_cv_lib_readline = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 15004 | $as_echo "none" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15005 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
| 15007 | $as_echo "$READLINE_LIBS" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15008 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15009 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15010 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15011 | fi |
| 15012 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15013 | # check for readline 2.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15015 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15016 | #include <readline/readline.h> |
| 15017 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15018 | if ac_fn_c_try_cpp "$LINENO"; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15019 | have_readline=yes |
| 15020 | else |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15021 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15022 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15023 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15024 | rm -f conftest.err conftest.i conftest.$ac_ext |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15025 | if test $have_readline = yes |
| 15026 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15028 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15029 | #include <readline/readline.h> |
| 15030 | |
| 15031 | _ACEOF |
| 15032 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15033 | $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] | 15034 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15035 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15036 | |
| 15037 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15038 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15039 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15041 | /* end confdefs.h. */ |
| 15042 | #include <readline/readline.h> |
| 15043 | |
| 15044 | _ACEOF |
| 15045 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15046 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15047 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15048 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15049 | |
| 15050 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15051 | rm -f conftest* |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15052 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15053 | fi |
| 15054 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15055 | # check for readline 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 |
| 15057 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15058 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15059 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15060 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15061 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15062 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15064 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15065 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15066 | /* Override any GCC internal prototype to avoid an error. |
| 15067 | Use char because int might match the return type of a GCC |
| 15068 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15069 | #ifdef __cplusplus |
| 15070 | extern "C" |
| 15071 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15072 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15073 | int |
| 15074 | main () |
| 15075 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15076 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15077 | ; |
| 15078 | return 0; |
| 15079 | } |
| 15080 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15081 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15082 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15083 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15084 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15085 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15086 | rm -f core conftest.err conftest.$ac_objext \ |
| 15087 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15088 | LIBS=$ac_check_lib_save_LIBS |
| 15089 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 15091 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15092 | 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] | 15093 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15094 | $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] | 15095 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15096 | fi |
| 15097 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15098 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15099 | # also in 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 15101 | $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] | 15102 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15103 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15104 | else |
| 15105 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15106 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15108 | /* end confdefs.h. */ |
| 15109 | |
| 15110 | /* Override any GCC internal prototype to avoid an error. |
| 15111 | Use char because int might match the return type of a GCC |
| 15112 | builtin and then its argument prototype would still apply. */ |
| 15113 | #ifdef __cplusplus |
| 15114 | extern "C" |
| 15115 | #endif |
| 15116 | char rl_completion_display_matches_hook (); |
| 15117 | int |
| 15118 | main () |
| 15119 | { |
| 15120 | return rl_completion_display_matches_hook (); |
| 15121 | ; |
| 15122 | return 0; |
| 15123 | } |
| 15124 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15125 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15126 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 15127 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15128 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15129 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15130 | rm -f core conftest.err conftest.$ac_objext \ |
| 15131 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15132 | LIBS=$ac_check_lib_save_LIBS |
| 15133 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 15135 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15136 | 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] | 15137 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15138 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15139 | |
| 15140 | fi |
| 15141 | |
| 15142 | |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15143 | # also in 4.0, but not in editline |
| 15144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 |
| 15145 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } |
| 15146 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : |
| 15147 | $as_echo_n "(cached) " >&6 |
| 15148 | else |
| 15149 | ac_check_lib_save_LIBS=$LIBS |
| 15150 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
| 15151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15152 | /* end confdefs.h. */ |
| 15153 | |
| 15154 | /* Override any GCC internal prototype to avoid an error. |
| 15155 | Use char because int might match the return type of a GCC |
| 15156 | builtin and then its argument prototype would still apply. */ |
| 15157 | #ifdef __cplusplus |
| 15158 | extern "C" |
| 15159 | #endif |
| 15160 | char rl_resize_terminal (); |
| 15161 | int |
| 15162 | main () |
| 15163 | { |
| 15164 | return rl_resize_terminal (); |
| 15165 | ; |
| 15166 | return 0; |
| 15167 | } |
| 15168 | _ACEOF |
| 15169 | if ac_fn_c_try_link "$LINENO"; then : |
| 15170 | ac_cv_lib_readline_rl_resize_terminal=yes |
| 15171 | else |
| 15172 | ac_cv_lib_readline_rl_resize_terminal=no |
| 15173 | fi |
| 15174 | rm -f core conftest.err conftest.$ac_objext \ |
| 15175 | conftest$ac_exeext conftest.$ac_ext |
| 15176 | LIBS=$ac_check_lib_save_LIBS |
| 15177 | fi |
| 15178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 |
| 15179 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } |
| 15180 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : |
| 15181 | |
| 15182 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h |
| 15183 | |
| 15184 | fi |
| 15185 | |
| 15186 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15187 | # check for readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 |
| 15189 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15190 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15191 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15192 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15193 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15194 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15196 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15197 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15198 | /* Override any GCC internal prototype to avoid an error. |
| 15199 | Use char because int might match the return type of a GCC |
| 15200 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15201 | #ifdef __cplusplus |
| 15202 | extern "C" |
| 15203 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15204 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15205 | int |
| 15206 | main () |
| 15207 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15208 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15209 | ; |
| 15210 | return 0; |
| 15211 | } |
| 15212 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15213 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15214 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15215 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15216 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15217 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15218 | rm -f core conftest.err conftest.$ac_objext \ |
| 15219 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15220 | LIBS=$ac_check_lib_save_LIBS |
| 15221 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 15223 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15224 | 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] | 15225 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15226 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15227 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15228 | fi |
| 15229 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15230 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15231 | # also in readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15233 | /* end confdefs.h. */ |
| 15234 | #include <readline/readline.h> |
| 15235 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15236 | if ac_fn_c_try_cpp "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15237 | have_readline=yes |
| 15238 | else |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15239 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15240 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15241 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15242 | rm -f conftest.err conftest.i conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15243 | if test $have_readline = yes |
| 15244 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15246 | /* end confdefs.h. */ |
| 15247 | #include <readline/readline.h> |
| 15248 | |
| 15249 | _ACEOF |
| 15250 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15251 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15252 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15253 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15254 | |
| 15255 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15256 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15257 | |
| 15258 | fi |
| 15259 | |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 |
| 15261 | $as_echo_n "checking for append_history in -lreadline... " >&6; } |
| 15262 | if ${ac_cv_lib_readline_append_history+:} false; then : |
| 15263 | $as_echo_n "(cached) " >&6 |
| 15264 | else |
| 15265 | ac_check_lib_save_LIBS=$LIBS |
| 15266 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
| 15267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15268 | /* end confdefs.h. */ |
| 15269 | |
| 15270 | /* Override any GCC internal prototype to avoid an error. |
| 15271 | Use char because int might match the return type of a GCC |
| 15272 | builtin and then its argument prototype would still apply. */ |
| 15273 | #ifdef __cplusplus |
| 15274 | extern "C" |
| 15275 | #endif |
| 15276 | char append_history (); |
| 15277 | int |
| 15278 | main () |
| 15279 | { |
| 15280 | return append_history (); |
| 15281 | ; |
| 15282 | return 0; |
| 15283 | } |
| 15284 | _ACEOF |
| 15285 | if ac_fn_c_try_link "$LINENO"; then : |
| 15286 | ac_cv_lib_readline_append_history=yes |
| 15287 | else |
| 15288 | ac_cv_lib_readline_append_history=no |
| 15289 | fi |
| 15290 | rm -f core conftest.err conftest.$ac_objext \ |
| 15291 | conftest$ac_exeext conftest.$ac_ext |
| 15292 | LIBS=$ac_check_lib_save_LIBS |
| 15293 | fi |
| 15294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 |
| 15295 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } |
| 15296 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : |
| 15297 | |
| 15298 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h |
| 15299 | |
| 15300 | fi |
| 15301 | |
| 15302 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15303 | # End of readline checks: restore LIBS |
| 15304 | LIBS=$LIBS_no_readline |
| 15305 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
| 15307 | $as_echo_n "checking for broken nice()... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15308 | if ${ac_cv_broken_nice+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15309 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15310 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15311 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15312 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15313 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15314 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15316 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15317 | |
| 15318 | int main() |
| 15319 | { |
| 15320 | int val1 = nice(1); |
| 15321 | if (val1 != -1 && val1 == nice(2)) |
| 15322 | exit(0); |
| 15323 | exit(1); |
| 15324 | } |
| 15325 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15326 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15327 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15328 | ac_cv_broken_nice=yes |
| 15329 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15330 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15331 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15332 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15333 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15334 | fi |
| 15335 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15336 | fi |
| 15337 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
| 15339 | $as_echo "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15340 | if test "$ac_cv_broken_nice" = yes |
| 15341 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15342 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15343 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15344 | |
| 15345 | fi |
| 15346 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
| 15348 | $as_echo_n "checking for broken poll()... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15349 | if ${ac_cv_broken_poll+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15350 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15351 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15352 | if test "$cross_compiling" = yes; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15353 | ac_cv_broken_poll=no |
| 15354 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15356 | /* end confdefs.h. */ |
| 15357 | |
| 15358 | #include <poll.h> |
| 15359 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15360 | int main() |
| 15361 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15362 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15363 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15364 | |
| 15365 | close (42); |
| 15366 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15367 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15368 | if (poll_test < 0) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15369 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15370 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15371 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15372 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15373 | return 1; |
| 15374 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15375 | |
| 15376 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15377 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15378 | ac_cv_broken_poll=yes |
| 15379 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15380 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15381 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15382 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15383 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15384 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15385 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15386 | fi |
| 15387 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
| 15389 | $as_echo "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15390 | if test "$ac_cv_broken_poll" = yes |
| 15391 | then |
| 15392 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15393 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15394 | |
| 15395 | fi |
| 15396 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15397 | # 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] | 15398 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 15399 | # tzname[] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15400 | 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] | 15401 | #include <$ac_cv_struct_tm> |
| 15402 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15403 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15404 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15405 | |
| 15406 | cat >>confdefs.h <<_ACEOF |
| 15407 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 15408 | _ACEOF |
| 15409 | |
| 15410 | |
| 15411 | fi |
| 15412 | |
| 15413 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 15414 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15415 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15416 | |
| 15417 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15418 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 15419 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15420 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15421 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15422 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15423 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15424 | fi |
| 15425 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15426 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15427 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15428 | _ACEOF |
| 15429 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 15431 | $as_echo_n "checking for tzname... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15432 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15433 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15434 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15436 | /* end confdefs.h. */ |
| 15437 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15438 | #if !HAVE_DECL_TZNAME |
| 15439 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15440 | #endif |
| 15441 | |
| 15442 | int |
| 15443 | main () |
| 15444 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15445 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15446 | ; |
| 15447 | return 0; |
| 15448 | } |
| 15449 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15450 | if ac_fn_c_try_link "$LINENO"; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15451 | ac_cv_var_tzname=yes |
| 15452 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15453 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15454 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15455 | rm -f core conftest.err conftest.$ac_objext \ |
| 15456 | conftest$ac_exeext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15457 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 15459 | $as_echo "$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15460 | if test $ac_cv_var_tzname = yes; then |
| 15461 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15462 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15463 | |
| 15464 | fi |
| 15465 | fi |
| 15466 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15467 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15468 | # check tzset(3) exists and works like we expect it to |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
| 15470 | $as_echo_n "checking for working tzset()... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15471 | if ${ac_cv_working_tzset+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15472 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15473 | else |
| 15474 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15475 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15476 | ac_cv_working_tzset=no |
| 15477 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15479 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15480 | |
| 15481 | #include <stdlib.h> |
| 15482 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15483 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15484 | |
| 15485 | #if HAVE_TZNAME |
| 15486 | extern char *tzname[]; |
| 15487 | #endif |
| 15488 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15489 | int main() |
| 15490 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15491 | /* Note that we need to ensure that not only does tzset(3) |
| 15492 | do 'something' with localtime, but it works as documented |
| 15493 | 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] | 15494 | This includes making sure that tzname is set properly if |
| 15495 | tm->tm_zone does not exist since it is the alternative way |
| 15496 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15497 | |
| 15498 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15499 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15500 | */ |
| 15501 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15502 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15503 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 15504 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15505 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15506 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15507 | if (localtime(&groundhogday)->tm_hour != 0) |
| 15508 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15509 | #if HAVE_TZNAME |
| 15510 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 15511 | if (strcmp(tzname[0], "UTC") || |
| 15512 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 15513 | exit(1); |
| 15514 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15515 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15516 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15517 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15518 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15519 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15520 | #if HAVE_TZNAME |
| 15521 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 15522 | exit(1); |
| 15523 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15524 | |
| 15525 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 15526 | tzset(); |
| 15527 | if (localtime(&groundhogday)->tm_hour != 11) |
| 15528 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15529 | #if HAVE_TZNAME |
| 15530 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 15531 | exit(1); |
| 15532 | #endif |
| 15533 | |
| 15534 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15535 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 15536 | exit(1); |
| 15537 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 15538 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15539 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15540 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15541 | exit(0); |
| 15542 | } |
| 15543 | |
| 15544 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15545 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15546 | ac_cv_working_tzset=yes |
| 15547 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15548 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15549 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15550 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15551 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15552 | fi |
| 15553 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15554 | fi |
| 15555 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
| 15557 | $as_echo "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15558 | if test "$ac_cv_working_tzset" = yes |
| 15559 | then |
| 15560 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15561 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15562 | |
| 15563 | fi |
| 15564 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15565 | # Look for subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
| 15567 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15568 | if ${ac_cv_stat_tv_nsec+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15569 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15570 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15572 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15573 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15574 | int |
| 15575 | main () |
| 15576 | { |
| 15577 | |
| 15578 | struct stat st; |
| 15579 | st.st_mtim.tv_nsec = 1; |
| 15580 | |
| 15581 | ; |
| 15582 | return 0; |
| 15583 | } |
| 15584 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15585 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 15586 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15587 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15588 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15589 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15591 | fi |
| 15592 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
| 15594 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15595 | if test "$ac_cv_stat_tv_nsec" = yes |
| 15596 | then |
| 15597 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15598 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15599 | |
| 15600 | fi |
| 15601 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15602 | # Look for BSD style subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
| 15604 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15605 | if ${ac_cv_stat_tv_nsec2+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15606 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15607 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15609 | /* end confdefs.h. */ |
| 15610 | #include <sys/stat.h> |
| 15611 | int |
| 15612 | main () |
| 15613 | { |
| 15614 | |
| 15615 | struct stat st; |
| 15616 | st.st_mtimespec.tv_nsec = 1; |
| 15617 | |
| 15618 | ; |
| 15619 | return 0; |
| 15620 | } |
| 15621 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15622 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15623 | ac_cv_stat_tv_nsec2=yes |
| 15624 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15625 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15626 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15628 | fi |
| 15629 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
| 15631 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15632 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 15633 | then |
| 15634 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15635 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15636 | |
| 15637 | fi |
| 15638 | |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15639 | # first curses header check |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15640 | ac_save_cppflags="$CPPFLAGS" |
Xavier de Gaye | e13c320 | 2016-12-13 16:04:14 +0100 | [diff] [blame] | 15641 | if test "$cross_compiling" = no; then |
| 15642 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" |
| 15643 | fi |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15644 | |
| 15645 | for ac_header in curses.h ncurses.h |
| 15646 | do : |
| 15647 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15648 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 15649 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 15650 | cat >>confdefs.h <<_ACEOF |
| 15651 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15652 | _ACEOF |
| 15653 | |
| 15654 | fi |
| 15655 | |
| 15656 | done |
| 15657 | |
| 15658 | |
| 15659 | # On Solaris, term.h requires curses.h |
| 15660 | for ac_header in term.h |
| 15661 | do : |
| 15662 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " |
| 15663 | #ifdef HAVE_CURSES_H |
| 15664 | #include <curses.h> |
| 15665 | #endif |
| 15666 | |
| 15667 | " |
| 15668 | if test "x$ac_cv_header_term_h" = xyes; then : |
| 15669 | cat >>confdefs.h <<_ACEOF |
| 15670 | #define HAVE_TERM_H 1 |
| 15671 | _ACEOF |
| 15672 | |
| 15673 | fi |
| 15674 | |
| 15675 | done |
| 15676 | |
| 15677 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15678 | # 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] | 15679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
| 15680 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15681 | if ${ac_cv_mvwdelch_is_expression+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15682 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15683 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15685 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15686 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15687 | int |
| 15688 | main () |
| 15689 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15690 | |
| 15691 | int rtn; |
| 15692 | rtn = mvwdelch(0,0,0); |
| 15693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15694 | ; |
| 15695 | return 0; |
| 15696 | } |
| 15697 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15698 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15699 | ac_cv_mvwdelch_is_expression=yes |
| 15700 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15701 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15702 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15704 | fi |
| 15705 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 15707 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15708 | |
| 15709 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 15710 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15711 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15712 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15713 | |
| 15714 | fi |
| 15715 | |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 15716 | # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque |
| 15717 | # structs since version 5.7. If the macro is defined as zero before including |
| 15718 | # [n]curses.h, ncurses will expose fields of the structs regardless of the |
| 15719 | # configuration. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
| 15721 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15722 | if ${ac_cv_window_has_flags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15723 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15724 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15726 | /* end confdefs.h. */ |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 15727 | |
| 15728 | #define NCURSES_OPAQUE 0 |
| 15729 | #include <curses.h> |
| 15730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15731 | int |
| 15732 | main () |
| 15733 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15734 | |
| 15735 | WINDOW *w; |
| 15736 | w->_flags = 0; |
| 15737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15738 | ; |
| 15739 | return 0; |
| 15740 | } |
| 15741 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15742 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15743 | ac_cv_window_has_flags=yes |
| 15744 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15745 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15746 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15748 | fi |
| 15749 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
| 15751 | $as_echo "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15752 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15753 | |
| 15754 | if test "$ac_cv_window_has_flags" = yes |
| 15755 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15756 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15757 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15758 | |
| 15759 | fi |
| 15760 | |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 15761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 |
| 15762 | $as_echo_n "checking for is_pad... " >&6; } |
| 15763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15764 | /* end confdefs.h. */ |
| 15765 | #include <curses.h> |
| 15766 | int |
| 15767 | main () |
| 15768 | { |
| 15769 | |
| 15770 | #ifndef is_pad |
| 15771 | void *x=is_pad |
| 15772 | #endif |
| 15773 | |
| 15774 | ; |
| 15775 | return 0; |
| 15776 | } |
| 15777 | _ACEOF |
| 15778 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15779 | |
| 15780 | $as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h |
| 15781 | |
| 15782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15783 | $as_echo "yes" >&6; } |
| 15784 | else |
| 15785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15786 | $as_echo "no" >&6; } |
| 15787 | |
| 15788 | fi |
| 15789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15790 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
| 15792 | $as_echo_n "checking for is_term_resized... " >&6; } |
| 15793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15794 | /* end confdefs.h. */ |
| 15795 | #include <curses.h> |
| 15796 | int |
| 15797 | main () |
| 15798 | { |
| 15799 | void *x=is_term_resized |
| 15800 | ; |
| 15801 | return 0; |
| 15802 | } |
| 15803 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15804 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15805 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15806 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15807 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15809 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15810 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15812 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15813 | |
| 15814 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15816 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
| 15818 | $as_echo_n "checking for resize_term... " >&6; } |
| 15819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15820 | /* end confdefs.h. */ |
| 15821 | #include <curses.h> |
| 15822 | int |
| 15823 | main () |
| 15824 | { |
| 15825 | void *x=resize_term |
| 15826 | ; |
| 15827 | return 0; |
| 15828 | } |
| 15829 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15830 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15831 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15832 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15833 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15835 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15836 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15838 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15839 | |
| 15840 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15842 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
| 15844 | $as_echo_n "checking for resizeterm... " >&6; } |
| 15845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15846 | /* end confdefs.h. */ |
| 15847 | #include <curses.h> |
| 15848 | int |
| 15849 | main () |
| 15850 | { |
| 15851 | void *x=resizeterm |
| 15852 | ; |
| 15853 | return 0; |
| 15854 | } |
| 15855 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15856 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15857 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15858 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15859 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15861 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15862 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15864 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15865 | |
| 15866 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 15868 | |
| 15869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5 |
| 15870 | $as_echo_n "checking for immedok... " >&6; } |
| 15871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15872 | /* end confdefs.h. */ |
| 15873 | #include <curses.h> |
| 15874 | int |
| 15875 | main () |
| 15876 | { |
| 15877 | |
| 15878 | #ifndef immedok |
| 15879 | void *x=immedok |
| 15880 | #endif |
| 15881 | |
| 15882 | ; |
| 15883 | return 0; |
| 15884 | } |
| 15885 | _ACEOF |
| 15886 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15887 | |
| 15888 | $as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h |
| 15889 | |
| 15890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15891 | $as_echo "yes" >&6; } |
| 15892 | else |
| 15893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15894 | $as_echo "no" >&6; } |
| 15895 | |
| 15896 | fi |
| 15897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15898 | |
| 15899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5 |
| 15900 | $as_echo_n "checking for syncok... " >&6; } |
| 15901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15902 | /* end confdefs.h. */ |
| 15903 | #include <curses.h> |
| 15904 | int |
| 15905 | main () |
| 15906 | { |
| 15907 | |
| 15908 | #ifndef syncok |
| 15909 | void *x=syncok |
| 15910 | #endif |
| 15911 | |
| 15912 | ; |
| 15913 | return 0; |
| 15914 | } |
| 15915 | _ACEOF |
| 15916 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15917 | |
| 15918 | $as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h |
| 15919 | |
| 15920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15921 | $as_echo "yes" >&6; } |
| 15922 | else |
| 15923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15924 | $as_echo "no" >&6; } |
| 15925 | |
| 15926 | fi |
| 15927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15928 | |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 15929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5 |
| 15930 | $as_echo_n "checking for wchgat... " >&6; } |
| 15931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15932 | /* end confdefs.h. */ |
| 15933 | #include <curses.h> |
| 15934 | int |
| 15935 | main () |
| 15936 | { |
| 15937 | |
| 15938 | #ifndef wchgat |
| 15939 | void *x=wchgat |
| 15940 | #endif |
| 15941 | |
| 15942 | ; |
| 15943 | return 0; |
| 15944 | } |
| 15945 | _ACEOF |
| 15946 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15947 | |
| 15948 | $as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h |
| 15949 | |
| 15950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15951 | $as_echo "yes" >&6; } |
| 15952 | else |
| 15953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15954 | $as_echo "no" >&6; } |
| 15955 | |
| 15956 | fi |
| 15957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15958 | |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 15959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5 |
| 15960 | $as_echo_n "checking for filter... " >&6; } |
| 15961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15962 | /* end confdefs.h. */ |
| 15963 | #include <curses.h> |
| 15964 | int |
| 15965 | main () |
| 15966 | { |
| 15967 | |
| 15968 | #ifndef filter |
| 15969 | void *x=filter |
| 15970 | #endif |
| 15971 | |
| 15972 | ; |
| 15973 | return 0; |
| 15974 | } |
| 15975 | _ACEOF |
| 15976 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15977 | |
| 15978 | $as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h |
| 15979 | |
| 15980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15981 | $as_echo "yes" >&6; } |
| 15982 | else |
| 15983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15984 | $as_echo "no" >&6; } |
| 15985 | |
| 15986 | fi |
| 15987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15988 | |
| 15989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5 |
| 15990 | $as_echo_n "checking for has_key... " >&6; } |
| 15991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15992 | /* end confdefs.h. */ |
| 15993 | #include <curses.h> |
| 15994 | int |
| 15995 | main () |
| 15996 | { |
| 15997 | |
| 15998 | #ifndef has_key |
| 15999 | void *x=has_key |
| 16000 | #endif |
| 16001 | |
| 16002 | ; |
| 16003 | return 0; |
| 16004 | } |
| 16005 | _ACEOF |
| 16006 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16007 | |
| 16008 | $as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h |
| 16009 | |
| 16010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16011 | $as_echo "yes" >&6; } |
| 16012 | else |
| 16013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16014 | $as_echo "no" >&6; } |
| 16015 | |
| 16016 | fi |
| 16017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16018 | |
| 16019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5 |
| 16020 | $as_echo_n "checking for typeahead... " >&6; } |
| 16021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16022 | /* end confdefs.h. */ |
| 16023 | #include <curses.h> |
| 16024 | int |
| 16025 | main () |
| 16026 | { |
| 16027 | |
| 16028 | #ifndef typeahead |
| 16029 | void *x=typeahead |
| 16030 | #endif |
| 16031 | |
| 16032 | ; |
| 16033 | return 0; |
| 16034 | } |
| 16035 | _ACEOF |
| 16036 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16037 | |
| 16038 | $as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h |
| 16039 | |
| 16040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16041 | $as_echo "yes" >&6; } |
| 16042 | else |
| 16043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16044 | $as_echo "no" >&6; } |
| 16045 | |
| 16046 | fi |
| 16047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16048 | |
| 16049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5 |
| 16050 | $as_echo_n "checking for use_env... " >&6; } |
| 16051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16052 | /* end confdefs.h. */ |
| 16053 | #include <curses.h> |
| 16054 | int |
| 16055 | main () |
| 16056 | { |
| 16057 | |
| 16058 | #ifndef use_env |
| 16059 | void *x=use_env |
| 16060 | #endif |
| 16061 | |
| 16062 | ; |
| 16063 | return 0; |
| 16064 | } |
| 16065 | _ACEOF |
| 16066 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16067 | |
| 16068 | $as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h |
| 16069 | |
| 16070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16071 | $as_echo "yes" >&6; } |
| 16072 | else |
| 16073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16074 | $as_echo "no" >&6; } |
| 16075 | |
| 16076 | fi |
| 16077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 16078 | # last curses configure check |
| 16079 | CPPFLAGS=$ac_save_cppflags |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16080 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 |
| 16082 | $as_echo "$as_me: checking for device files" >&6;} |
| 16083 | |
| 16084 | if test "x$cross_compiling" = xyes; then |
| 16085 | if test "${ac_cv_file__dev_ptmx+set}" != set; then |
| 16086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 16087 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
| 16088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 16089 | $as_echo "not set" >&6; } |
| 16090 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
| 16091 | fi |
| 16092 | if test "${ac_cv_file__dev_ptc+set}" != set; then |
| 16093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 16094 | $as_echo_n "checking for /dev/ptc... " >&6; } |
| 16095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 16096 | $as_echo "not set" >&6; } |
| 16097 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
| 16098 | fi |
| 16099 | fi |
| 16100 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 16102 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16103 | if ${ac_cv_file__dev_ptmx+:} false; then : |
| 16104 | $as_echo_n "(cached) " >&6 |
| 16105 | else |
| 16106 | test "$cross_compiling" = yes && |
| 16107 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 16108 | if test -r "/dev/ptmx"; then |
| 16109 | ac_cv_file__dev_ptmx=yes |
| 16110 | else |
| 16111 | ac_cv_file__dev_ptmx=no |
| 16112 | fi |
| 16113 | fi |
| 16114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 |
| 16115 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } |
| 16116 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16117 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16118 | fi |
| 16119 | |
| 16120 | if test "x$ac_cv_file__dev_ptmx" = xyes; then |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16121 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16122 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16123 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16124 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 16126 | $as_echo_n "checking for /dev/ptc... " >&6; } |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16127 | if ${ac_cv_file__dev_ptc+:} false; then : |
| 16128 | $as_echo_n "(cached) " >&6 |
| 16129 | else |
| 16130 | test "$cross_compiling" = yes && |
| 16131 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 16132 | if test -r "/dev/ptc"; then |
| 16133 | ac_cv_file__dev_ptc=yes |
| 16134 | else |
| 16135 | ac_cv_file__dev_ptc=no |
| 16136 | fi |
| 16137 | fi |
| 16138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 |
| 16139 | $as_echo "$ac_cv_file__dev_ptc" >&6; } |
| 16140 | if test "x$ac_cv_file__dev_ptc" = xyes; then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16141 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16142 | fi |
| 16143 | |
| 16144 | if test "x$ac_cv_file__dev_ptc" = xyes; then |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16145 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16146 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16147 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16148 | fi |
| 16149 | |
Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 16150 | if test $ac_sys_system = Darwin |
| 16151 | then |
| 16152 | LIBS="$LIBS -framework CoreFoundation" |
| 16153 | fi |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 16154 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
| 16156 | $as_echo_n "checking for %zd printf() format support... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16157 | if ${ac_cv_have_size_t_format+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16158 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16159 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16160 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16161 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 16162 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16163 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16165 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16166 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16167 | #include <stdio.h> |
| 16168 | #include <stddef.h> |
| 16169 | #include <string.h> |
| 16170 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16171 | #ifdef HAVE_SYS_TYPES_H |
| 16172 | #include <sys/types.h> |
| 16173 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16174 | |
| 16175 | #ifdef HAVE_SSIZE_T |
| 16176 | typedef ssize_t Py_ssize_t; |
| 16177 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 16178 | typedef long Py_ssize_t; |
| 16179 | #else |
| 16180 | typedef int Py_ssize_t; |
| 16181 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16182 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16183 | int main() |
| 16184 | { |
| 16185 | char buffer[256]; |
| 16186 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16187 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 16188 | return 1; |
| 16189 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16190 | if (strcmp(buffer, "123")) |
| 16191 | return 1; |
| 16192 | |
| 16193 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 16194 | return 1; |
| 16195 | |
| 16196 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16197 | return 1; |
| 16198 | |
| 16199 | return 0; |
| 16200 | } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16201 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16202 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16203 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16204 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16205 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16206 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +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 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 16210 | fi |
| 16211 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16212 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
| 16214 | $as_echo "$ac_cv_have_size_t_format" >&6; } |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16215 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16216 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16217 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16218 | |
| 16219 | fi |
| 16220 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16221 | 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] | 16222 | #ifdef HAVE_SYS_TYPES_H |
| 16223 | #include <sys/types.h> |
| 16224 | #endif |
| 16225 | #ifdef HAVE_SYS_SOCKET_H |
| 16226 | #include <sys/socket.h> |
| 16227 | #endif |
| 16228 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16229 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16230 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16232 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16233 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16234 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16235 | |
| 16236 | fi |
| 16237 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16238 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
| 16240 | $as_echo_n "checking for broken mbstowcs... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16241 | if ${ac_cv_broken_mbstowcs+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16242 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16243 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16244 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16245 | ac_cv_broken_mbstowcs=no |
| 16246 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16248 | /* end confdefs.h. */ |
| 16249 | |
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 16250 | #include <stdio.h> |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16251 | #include<stdlib.h> |
| 16252 | int main() { |
| 16253 | size_t len = -1; |
| 16254 | const char *str = "text"; |
| 16255 | len = mbstowcs(NULL, str, 0); |
| 16256 | return (len != 4); |
| 16257 | } |
| 16258 | |
| 16259 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16260 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16261 | ac_cv_broken_mbstowcs=no |
| 16262 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16263 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16264 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16265 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16266 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16267 | fi |
| 16268 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16269 | fi |
| 16270 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
| 16272 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16273 | if test "$ac_cv_broken_mbstowcs" = yes |
| 16274 | then |
| 16275 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16276 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16277 | |
| 16278 | fi |
| 16279 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16280 | # Check for --with-computed-gotos |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
| 16282 | $as_echo_n "checking for --with-computed-gotos... " >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16283 | |
| 16284 | # Check whether --with-computed-gotos was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16285 | if test "${with_computed_gotos+set}" = set; then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16286 | withval=$with_computed_gotos; |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16287 | if test "$withval" = yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16288 | then |
| 16289 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16290 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16291 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16293 | $as_echo "yes" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16294 | fi |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16295 | if test "$withval" = no |
| 16296 | then |
| 16297 | |
| 16298 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h |
| 16299 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16301 | $as_echo "no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16302 | fi |
| 16303 | |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16304 | else |
| 16305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 16306 | $as_echo "no value specified" >&6; } |
| 16307 | fi |
| 16308 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16309 | |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 |
| 16311 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } |
| 16312 | if ${ac_cv_computed_gotos+:} false; then : |
| 16313 | $as_echo_n "(cached) " >&6 |
| 16314 | else |
| 16315 | if test "$cross_compiling" = yes; then : |
| 16316 | if test "${with_computed_gotos+set}" = set; then |
| 16317 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" |
| 16318 | else |
| 16319 | ac_cv_computed_gotos=no |
| 16320 | fi |
| 16321 | else |
| 16322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16323 | /* end confdefs.h. */ |
| 16324 | |
| 16325 | int main(int argc, char **argv) |
| 16326 | { |
| 16327 | static void *targets[1] = { &&LABEL1 }; |
| 16328 | goto LABEL2; |
| 16329 | LABEL1: |
| 16330 | return 0; |
| 16331 | LABEL2: |
| 16332 | goto *targets[0]; |
| 16333 | return 1; |
| 16334 | } |
| 16335 | |
| 16336 | _ACEOF |
| 16337 | if ac_fn_c_try_run "$LINENO"; then : |
| 16338 | ac_cv_computed_gotos=yes |
| 16339 | else |
| 16340 | ac_cv_computed_gotos=no |
| 16341 | fi |
| 16342 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16343 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16344 | fi |
| 16345 | |
| 16346 | fi |
| 16347 | |
| 16348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 |
| 16349 | $as_echo "$ac_cv_computed_gotos" >&6; } |
| 16350 | case "$ac_cv_computed_gotos" in yes*) |
| 16351 | |
| 16352 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h |
| 16353 | |
| 16354 | esac |
| 16355 | |
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 16356 | case $ac_sys_system in |
| 16357 | AIX*) |
| 16358 | |
| 16359 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h |
| 16360 | ;; |
| 16361 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16362 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16363 | |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 16364 | |
| 16365 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16366 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 16367 | do |
| 16368 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 16369 | done |
| 16370 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16371 | |
Alex Dzyoba | 8a543c0 | 2017-03-24 11:23:43 +0300 | [diff] [blame] | 16372 | SRCDIRS="Parser Objects Python Modules Programs" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
| 16374 | $as_echo_n "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16375 | for dir in $SRCDIRS; do |
| 16376 | if test ! -d $dir; then |
| 16377 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16378 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16379 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 16381 | $as_echo "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16382 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16383 | # Availability of -O2: |
| 16384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 |
| 16385 | $as_echo_n "checking for -O2... " >&6; } |
| 16386 | saved_cflags="$CFLAGS" |
| 16387 | CFLAGS="-O2" |
| 16388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16389 | /* end confdefs.h. */ |
| 16390 | |
| 16391 | int |
| 16392 | main () |
| 16393 | { |
| 16394 | |
| 16395 | |
| 16396 | ; |
| 16397 | return 0; |
| 16398 | } |
| 16399 | _ACEOF |
| 16400 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16401 | have_O2=yes |
| 16402 | else |
| 16403 | have_O2=no |
| 16404 | fi |
| 16405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 |
| 16407 | $as_echo "$have_O2" >&6; } |
| 16408 | CFLAGS="$saved_cflags" |
| 16409 | |
| 16410 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: |
| 16411 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html |
| 16412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 |
| 16413 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } |
| 16414 | saved_cflags="$CFLAGS" |
| 16415 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" |
| 16416 | if test "$have_O2" = no; then |
| 16417 | CFLAGS="" |
| 16418 | fi |
| 16419 | if test "$cross_compiling" = yes; then : |
| 16420 | have_glibc_memmove_bug=undefined |
| 16421 | else |
| 16422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16423 | /* end confdefs.h. */ |
| 16424 | |
| 16425 | #include <stdio.h> |
| 16426 | #include <stdlib.h> |
| 16427 | #include <string.h> |
| 16428 | void foo(void *p, void *q) { memmove(p, q, 19); } |
| 16429 | int main() { |
| 16430 | char a[32] = "123456789000000000"; |
| 16431 | foo(&a[9], a); |
| 16432 | if (strcmp(a, "123456789123456789000000000") != 0) |
| 16433 | return 1; |
| 16434 | foo(a, &a[9]); |
| 16435 | if (strcmp(a, "123456789000000000") != 0) |
| 16436 | return 1; |
| 16437 | return 0; |
| 16438 | } |
| 16439 | |
| 16440 | _ACEOF |
| 16441 | if ac_fn_c_try_run "$LINENO"; then : |
| 16442 | have_glibc_memmove_bug=no |
| 16443 | else |
| 16444 | have_glibc_memmove_bug=yes |
| 16445 | fi |
| 16446 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16447 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16448 | fi |
| 16449 | |
| 16450 | CFLAGS="$saved_cflags" |
| 16451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 |
| 16452 | $as_echo "$have_glibc_memmove_bug" >&6; } |
| 16453 | if test "$have_glibc_memmove_bug" = yes; then |
| 16454 | |
| 16455 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h |
| 16456 | |
| 16457 | fi |
| 16458 | |
| 16459 | if test "$have_gcc_asm_for_x87" = yes; then |
| 16460 | # Some versions of gcc miscompile inline asm: |
| 16461 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 |
| 16462 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html |
| 16463 | case $CC in |
| 16464 | *gcc*) |
| 16465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 |
| 16466 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } |
| 16467 | saved_cflags="$CFLAGS" |
| 16468 | CFLAGS="-O2" |
| 16469 | if test "$cross_compiling" = yes; then : |
| 16470 | have_ipa_pure_const_bug=undefined |
| 16471 | else |
| 16472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16473 | /* end confdefs.h. */ |
| 16474 | |
| 16475 | __attribute__((noinline)) int |
| 16476 | foo(int *p) { |
| 16477 | int r; |
| 16478 | asm ( "movl \$6, (%1)\n\t" |
| 16479 | "xorl %0, %0\n\t" |
| 16480 | : "=r" (r) : "r" (p) : "memory" |
| 16481 | ); |
| 16482 | return r; |
| 16483 | } |
| 16484 | int main() { |
| 16485 | int p = 8; |
| 16486 | if ((foo(&p) ? : p) != 6) |
| 16487 | return 1; |
| 16488 | return 0; |
| 16489 | } |
| 16490 | |
| 16491 | _ACEOF |
| 16492 | if ac_fn_c_try_run "$LINENO"; then : |
| 16493 | have_ipa_pure_const_bug=no |
| 16494 | else |
| 16495 | have_ipa_pure_const_bug=yes |
| 16496 | fi |
| 16497 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16498 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16499 | fi |
| 16500 | |
| 16501 | CFLAGS="$saved_cflags" |
| 16502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 |
| 16503 | $as_echo "$have_ipa_pure_const_bug" >&6; } |
| 16504 | if test "$have_ipa_pure_const_bug" = yes; then |
| 16505 | |
| 16506 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h |
| 16507 | |
| 16508 | fi |
| 16509 | ;; |
| 16510 | esac |
| 16511 | fi |
| 16512 | |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16513 | # Check for stdatomic.h |
| 16514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 |
| 16515 | $as_echo_n "checking for stdatomic.h... " >&6; } |
| 16516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16517 | /* end confdefs.h. */ |
| 16518 | |
| 16519 | |
| 16520 | #include <stdatomic.h> |
Victor Stinner | 923e06f | 2015-01-14 16:01:46 +0100 | [diff] [blame] | 16521 | atomic_int value = ATOMIC_VAR_INIT(1); |
| 16522 | _Atomic void *py_atomic_address = (void*) &value; |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16523 | int main() { |
| 16524 | int loaded_value = atomic_load(&value); |
| 16525 | return 0; |
| 16526 | } |
| 16527 | |
| 16528 | |
| 16529 | _ACEOF |
| 16530 | if ac_fn_c_try_link "$LINENO"; then : |
| 16531 | have_stdatomic_h=yes |
| 16532 | else |
| 16533 | have_stdatomic_h=no |
| 16534 | fi |
| 16535 | rm -f core conftest.err conftest.$ac_objext \ |
| 16536 | conftest$ac_exeext conftest.$ac_ext |
| 16537 | |
| 16538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 |
| 16539 | $as_echo "$have_stdatomic_h" >&6; } |
| 16540 | |
| 16541 | if test "$have_stdatomic_h" = yes; then |
| 16542 | |
| 16543 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h |
| 16544 | |
| 16545 | fi |
| 16546 | |
| 16547 | # Check for GCC >= 4.7 __atomic builtins |
| 16548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 |
| 16549 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } |
| 16550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16551 | /* end confdefs.h. */ |
| 16552 | |
| 16553 | |
| 16554 | volatile int val = 1; |
| 16555 | int main() { |
| 16556 | __atomic_load_n(&val, __ATOMIC_SEQ_CST); |
| 16557 | return 0; |
| 16558 | } |
| 16559 | |
| 16560 | |
| 16561 | _ACEOF |
| 16562 | if ac_fn_c_try_link "$LINENO"; then : |
| 16563 | have_builtin_atomic=yes |
| 16564 | else |
| 16565 | have_builtin_atomic=no |
| 16566 | fi |
| 16567 | rm -f core conftest.err conftest.$ac_objext \ |
| 16568 | conftest$ac_exeext conftest.$ac_ext |
| 16569 | |
| 16570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 |
| 16571 | $as_echo "$have_builtin_atomic" >&6; } |
| 16572 | |
| 16573 | if test "$have_builtin_atomic" = yes; then |
| 16574 | |
| 16575 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h |
| 16576 | |
| 16577 | fi |
| 16578 | |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 16579 | # ensurepip option |
| 16580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 |
| 16581 | $as_echo_n "checking for ensurepip... " >&6; } |
| 16582 | |
| 16583 | # Check whether --with-ensurepip was given. |
| 16584 | if test "${with_ensurepip+set}" = set; then : |
| 16585 | withval=$with_ensurepip; |
| 16586 | else |
| 16587 | with_ensurepip=upgrade |
| 16588 | fi |
| 16589 | |
| 16590 | case $with_ensurepip in #( |
| 16591 | yes|upgrade) : |
| 16592 | ENSUREPIP=upgrade ;; #( |
| 16593 | install) : |
| 16594 | ENSUREPIP=install ;; #( |
| 16595 | no) : |
| 16596 | ENSUREPIP=no ;; #( |
| 16597 | *) : |
| 16598 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; |
| 16599 | esac |
| 16600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 |
| 16601 | $as_echo "$ENSUREPIP" >&6; } |
| 16602 | |
| 16603 | |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 16604 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined |
| 16605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 |
| 16606 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } |
| 16607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16608 | /* end confdefs.h. */ |
| 16609 | |
| 16610 | |
| 16611 | #include <dirent.h> |
| 16612 | |
| 16613 | int main() { |
| 16614 | struct dirent entry; |
| 16615 | return entry.d_type == DT_UNKNOWN; |
| 16616 | } |
| 16617 | |
| 16618 | |
| 16619 | _ACEOF |
| 16620 | if ac_fn_c_try_link "$LINENO"; then : |
| 16621 | have_dirent_d_type=yes |
| 16622 | else |
| 16623 | have_dirent_d_type=no |
| 16624 | fi |
| 16625 | rm -f core conftest.err conftest.$ac_objext \ |
| 16626 | conftest$ac_exeext conftest.$ac_ext |
| 16627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 |
| 16628 | $as_echo "$have_dirent_d_type" >&6; } |
| 16629 | |
| 16630 | if test "$have_dirent_d_type" = yes; then |
| 16631 | |
| 16632 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h |
| 16633 | |
| 16634 | fi |
| 16635 | |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16636 | # check if the Linux getrandom() syscall is available |
| 16637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 |
| 16638 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } |
| 16639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16640 | /* end confdefs.h. */ |
| 16641 | |
| 16642 | |
Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 16643 | #include <unistd.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16644 | #include <sys/syscall.h> |
Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16645 | #include <linux/random.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16646 | |
| 16647 | int main() { |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16648 | char buffer[1]; |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16649 | const size_t buflen = sizeof(buffer); |
Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16650 | const int flags = GRND_NONBLOCK; |
| 16651 | /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16652 | (void)syscall(SYS_getrandom, buffer, buflen, flags); |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16653 | return 0; |
| 16654 | } |
| 16655 | |
| 16656 | |
| 16657 | _ACEOF |
| 16658 | if ac_fn_c_try_link "$LINENO"; then : |
| 16659 | have_getrandom_syscall=yes |
| 16660 | else |
| 16661 | have_getrandom_syscall=no |
| 16662 | fi |
| 16663 | rm -f core conftest.err conftest.$ac_objext \ |
| 16664 | conftest$ac_exeext conftest.$ac_ext |
| 16665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 |
| 16666 | $as_echo "$have_getrandom_syscall" >&6; } |
| 16667 | |
| 16668 | if test "$have_getrandom_syscall" = yes; then |
| 16669 | |
| 16670 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h |
| 16671 | |
| 16672 | fi |
| 16673 | |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16674 | # check if the getrandom() function is available |
| 16675 | # the test was written for the Solaris function of <sys/random.h> |
| 16676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 |
| 16677 | $as_echo_n "checking for the getrandom() function... " >&6; } |
| 16678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16679 | /* end confdefs.h. */ |
| 16680 | |
| 16681 | |
| 16682 | #include <sys/random.h> |
| 16683 | |
| 16684 | int main() { |
| 16685 | char buffer[1]; |
| 16686 | const size_t buflen = sizeof(buffer); |
| 16687 | const int flags = 0; |
| 16688 | /* ignore the result, Python checks for ENOSYS at runtime */ |
| 16689 | (void)getrandom(buffer, buflen, flags); |
| 16690 | return 0; |
| 16691 | } |
| 16692 | |
| 16693 | |
| 16694 | _ACEOF |
| 16695 | if ac_fn_c_try_link "$LINENO"; then : |
| 16696 | have_getrandom=yes |
| 16697 | else |
| 16698 | have_getrandom=no |
| 16699 | fi |
| 16700 | rm -f core conftest.err conftest.$ac_objext \ |
| 16701 | conftest$ac_exeext conftest.$ac_ext |
| 16702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 |
| 16703 | $as_echo "$have_getrandom" >&6; } |
| 16704 | |
| 16705 | if test "$have_getrandom" = yes; then |
| 16706 | |
| 16707 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h |
| 16708 | |
| 16709 | fi |
| 16710 | |
Christian Heimes | ff5be6e | 2018-01-20 13:19:21 +0100 | [diff] [blame] | 16711 | # Check for usable OpenSSL |
| 16712 | |
| 16713 | found=false |
| 16714 | |
| 16715 | # Check whether --with-openssl was given. |
| 16716 | if test "${with_openssl+set}" = set; then : |
| 16717 | withval=$with_openssl; |
| 16718 | case "$withval" in |
| 16719 | "" | y | ye | yes | n | no) |
| 16720 | as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 |
| 16721 | ;; |
| 16722 | *) ssldirs="$withval" |
| 16723 | ;; |
| 16724 | esac |
| 16725 | |
| 16726 | else |
| 16727 | |
| 16728 | # if pkg-config is installed and openssl has installed a .pc file, |
| 16729 | # then use that information and don't search ssldirs |
| 16730 | if test -n "$ac_tool_prefix"; then |
| 16731 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 16732 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 16733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16734 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16735 | if ${ac_cv_prog_PKG_CONFIG+:} false; then : |
| 16736 | $as_echo_n "(cached) " >&6 |
| 16737 | else |
| 16738 | if test -n "$PKG_CONFIG"; then |
| 16739 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 16740 | else |
| 16741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16742 | for as_dir in $PATH |
| 16743 | do |
| 16744 | IFS=$as_save_IFS |
| 16745 | test -z "$as_dir" && as_dir=. |
| 16746 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16747 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16748 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" |
| 16749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16750 | break 2 |
| 16751 | fi |
| 16752 | done |
| 16753 | done |
| 16754 | IFS=$as_save_IFS |
| 16755 | |
| 16756 | fi |
| 16757 | fi |
| 16758 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 16759 | if test -n "$PKG_CONFIG"; then |
| 16760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 16761 | $as_echo "$PKG_CONFIG" >&6; } |
| 16762 | else |
| 16763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16764 | $as_echo "no" >&6; } |
| 16765 | fi |
| 16766 | |
| 16767 | |
| 16768 | fi |
| 16769 | if test -z "$ac_cv_prog_PKG_CONFIG"; then |
| 16770 | ac_ct_PKG_CONFIG=$PKG_CONFIG |
| 16771 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 16772 | set dummy pkg-config; ac_word=$2 |
| 16773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16774 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16775 | if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then : |
| 16776 | $as_echo_n "(cached) " >&6 |
| 16777 | else |
| 16778 | if test -n "$ac_ct_PKG_CONFIG"; then |
| 16779 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. |
| 16780 | else |
| 16781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16782 | for as_dir in $PATH |
| 16783 | do |
| 16784 | IFS=$as_save_IFS |
| 16785 | test -z "$as_dir" && as_dir=. |
| 16786 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16787 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16788 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" |
| 16789 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16790 | break 2 |
| 16791 | fi |
| 16792 | done |
| 16793 | done |
| 16794 | IFS=$as_save_IFS |
| 16795 | |
| 16796 | fi |
| 16797 | fi |
| 16798 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG |
| 16799 | if test -n "$ac_ct_PKG_CONFIG"; then |
| 16800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 |
| 16801 | $as_echo "$ac_ct_PKG_CONFIG" >&6; } |
| 16802 | else |
| 16803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16804 | $as_echo "no" >&6; } |
| 16805 | fi |
| 16806 | |
| 16807 | if test "x$ac_ct_PKG_CONFIG" = x; then |
| 16808 | PKG_CONFIG="" |
| 16809 | else |
| 16810 | case $cross_compiling:$ac_tool_warned in |
| 16811 | yes:) |
| 16812 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 16813 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 16814 | ac_tool_warned=yes ;; |
| 16815 | esac |
| 16816 | PKG_CONFIG=$ac_ct_PKG_CONFIG |
| 16817 | fi |
| 16818 | else |
| 16819 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" |
| 16820 | fi |
| 16821 | |
| 16822 | if test x"$PKG_CONFIG" != x""; then |
| 16823 | OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` |
| 16824 | if test $? = 0; then |
| 16825 | OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` |
| 16826 | OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` |
| 16827 | found=true |
| 16828 | fi |
| 16829 | fi |
| 16830 | |
| 16831 | # no such luck; use some default ssldirs |
| 16832 | if ! $found; then |
| 16833 | ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" |
| 16834 | fi |
| 16835 | |
| 16836 | |
| 16837 | fi |
| 16838 | |
| 16839 | |
| 16840 | |
| 16841 | # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in |
| 16842 | # an 'openssl' subdirectory |
| 16843 | |
| 16844 | if ! $found; then |
| 16845 | OPENSSL_INCLUDES= |
| 16846 | for ssldir in $ssldirs; do |
| 16847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 |
| 16848 | $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } |
| 16849 | if test -f "$ssldir/include/openssl/ssl.h"; then |
| 16850 | OPENSSL_INCLUDES="-I$ssldir/include" |
| 16851 | OPENSSL_LDFLAGS="-L$ssldir/lib" |
| 16852 | OPENSSL_LIBS="-lssl -lcrypto" |
| 16853 | found=true |
| 16854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16855 | $as_echo "yes" >&6; } |
| 16856 | break |
| 16857 | else |
| 16858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16859 | $as_echo "no" >&6; } |
| 16860 | fi |
| 16861 | done |
| 16862 | |
| 16863 | # if the file wasn't found, well, go ahead and try the link anyway -- maybe |
| 16864 | # it will just work! |
| 16865 | fi |
| 16866 | |
| 16867 | # try the preprocessor and linker with our new flags, |
| 16868 | # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS |
| 16869 | |
| 16870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 |
| 16871 | $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } |
| 16872 | echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ |
| 16873 | "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 |
| 16874 | |
| 16875 | save_LIBS="$LIBS" |
| 16876 | save_LDFLAGS="$LDFLAGS" |
| 16877 | save_CPPFLAGS="$CPPFLAGS" |
| 16878 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" |
| 16879 | LIBS="$OPENSSL_LIBS $LIBS" |
| 16880 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" |
| 16881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16882 | /* end confdefs.h. */ |
| 16883 | #include <openssl/ssl.h> |
| 16884 | int |
| 16885 | main () |
| 16886 | { |
| 16887 | SSL_new(NULL) |
| 16888 | ; |
| 16889 | return 0; |
| 16890 | } |
| 16891 | _ACEOF |
| 16892 | if ac_fn_c_try_link "$LINENO"; then : |
| 16893 | |
| 16894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16895 | $as_echo "yes" >&6; } |
| 16896 | have_openssl=yes |
| 16897 | |
| 16898 | else |
| 16899 | |
| 16900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16901 | $as_echo "no" >&6; } |
| 16902 | have_openssl=no |
| 16903 | |
| 16904 | fi |
| 16905 | rm -f core conftest.err conftest.$ac_objext \ |
| 16906 | conftest$ac_exeext conftest.$ac_ext |
| 16907 | CPPFLAGS="$save_CPPFLAGS" |
| 16908 | LDFLAGS="$save_LDFLAGS" |
| 16909 | LIBS="$save_LIBS" |
| 16910 | |
| 16911 | |
| 16912 | |
| 16913 | |
| 16914 | |
| 16915 | |
| 16916 | if test "$have_openssl" = yes; then |
| 16917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host in libssl" >&5 |
| 16918 | $as_echo_n "checking for X509_VERIFY_PARAM_set1_host in libssl... " >&6; } |
| 16919 | |
| 16920 | save_LIBS="$LIBS" |
| 16921 | save_LDFLAGS="$LDFLAGS" |
| 16922 | save_CPPFLAGS="$CPPFLAGS" |
| 16923 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" |
| 16924 | LIBS="$OPENSSL_LIBS $LIBS" |
| 16925 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" |
| 16926 | |
| 16927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16928 | /* end confdefs.h. */ |
| 16929 | |
| 16930 | #include <openssl/x509_vfy.h> |
| 16931 | |
| 16932 | int |
| 16933 | main () |
| 16934 | { |
| 16935 | |
| 16936 | X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new(); |
| 16937 | X509_VERIFY_PARAM_set1_host(p, "localhost", 0); |
| 16938 | X509_VERIFY_PARAM_set1_ip_asc(p, "127.0.0.1"); |
| 16939 | X509_VERIFY_PARAM_set_hostflags(p, 0); |
| 16940 | |
| 16941 | ; |
| 16942 | return 0; |
| 16943 | } |
| 16944 | |
| 16945 | _ACEOF |
| 16946 | if ac_fn_c_try_link "$LINENO"; then : |
| 16947 | |
| 16948 | ac_cv_has_x509_verify_param_set1_host=yes |
| 16949 | |
| 16950 | else |
| 16951 | |
| 16952 | ac_cv_has_x509_verify_param_set1_host=no |
| 16953 | |
| 16954 | fi |
| 16955 | rm -f core conftest.err conftest.$ac_objext \ |
| 16956 | conftest$ac_exeext conftest.$ac_ext |
| 16957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_x509_verify_param_set1_host" >&5 |
| 16958 | $as_echo "$ac_cv_has_x509_verify_param_set1_host" >&6; } |
| 16959 | if test "$ac_cv_has_x509_verify_param_set1_host" = "yes"; then |
| 16960 | |
| 16961 | $as_echo "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h |
| 16962 | |
| 16963 | fi |
| 16964 | |
| 16965 | CPPFLAGS="$save_CPPFLAGS" |
| 16966 | LDFLAGS="$save_LDFLAGS" |
| 16967 | LIBS="$save_LIBS" |
| 16968 | fi |
| 16969 | |
Christian Heimes | 892d66e | 2018-01-29 14:10:18 +0100 | [diff] [blame] | 16970 | # ssl module default cipher suite string |
| 16971 | |
| 16972 | |
| 16973 | |
| 16974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5 |
| 16975 | $as_echo_n "checking for --with-ssl-default-suites... " >&6; } |
| 16976 | |
| 16977 | # Check whether --with-ssl-default-suites was given. |
| 16978 | if test "${with_ssl_default_suites+set}" = set; then : |
| 16979 | withval=$with_ssl_default_suites; |
| 16980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 16981 | $as_echo "$withval" >&6; } |
| 16982 | case "$withval" in |
| 16983 | python) |
| 16984 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h |
| 16985 | |
| 16986 | ;; |
| 16987 | openssl) |
| 16988 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h |
| 16989 | |
| 16990 | ;; |
| 16991 | *) |
| 16992 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h |
| 16993 | |
| 16994 | cat >>confdefs.h <<_ACEOF |
| 16995 | #define PY_SSL_DEFAULT_CIPHER_STRING "$withval" |
| 16996 | _ACEOF |
| 16997 | |
| 16998 | ;; |
| 16999 | esac |
| 17000 | |
| 17001 | else |
| 17002 | |
| 17003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: python" >&5 |
| 17004 | $as_echo "python" >&6; } |
| 17005 | $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h |
| 17006 | |
| 17007 | |
| 17008 | fi |
| 17009 | |
| 17010 | |
| 17011 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17012 | # generate output files |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 17013 | ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-config.sh" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17014 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17015 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
| 17016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17017 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17018 | # This file is a shell script that caches the results of configure |
| 17019 | # 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] | 17020 | # scripts and configure runs, see configure's option --config-cache. |
| 17021 | # It is not useful on other systems. If it contains results you don't |
| 17022 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17023 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17024 | # config.status only pays attention to the cache file if you give it |
| 17025 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17026 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17027 | # `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] | 17028 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 17029 | # following values. |
| 17030 | |
| 17031 | _ACEOF |
| 17032 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17033 | # The following way of writing the cache mishandles newlines in values, |
| 17034 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17035 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17036 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 17037 | # 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] | 17038 | ( |
| 17039 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 17040 | eval ac_val=\$$ac_var |
| 17041 | case $ac_val in #( |
| 17042 | *${as_nl}*) |
| 17043 | case $ac_var in #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17044 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 17045 | $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] | 17046 | esac |
| 17047 | case $ac_var in #( |
| 17048 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17049 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 17050 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17051 | esac ;; |
| 17052 | esac |
| 17053 | done |
| 17054 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17055 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17056 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 17057 | *${as_nl}ac_space=\ *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17058 | # `set' does not quote correctly, so add quotes: double-quote |
| 17059 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17060 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17061 | "s/'/'\\\\''/g; |
| 17062 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17063 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17064 | *) |
| 17065 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17066 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17067 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17068 | esac | |
| 17069 | sort |
| 17070 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17071 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17072 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17073 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17074 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17075 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 17076 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17077 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 17078 | :end' >>confcache |
| 17079 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 17080 | if test -w "$cache_file"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17081 | if test "x$cache_file" != "x/dev/null"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17082 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 17083 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17084 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 17085 | cat confcache >"$cache_file" |
| 17086 | else |
| 17087 | case $cache_file in #( |
| 17088 | */* | ?:*) |
| 17089 | mv -f confcache "$cache_file"$$ && |
| 17090 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 17091 | *) |
| 17092 | mv -f confcache "$cache_file" ;; |
| 17093 | esac |
| 17094 | fi |
| 17095 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17096 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17097 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 17098 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17099 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17100 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17101 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 17102 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17103 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 17104 | # Let make expand exec_prefix. |
| 17105 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 17106 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17107 | DEFS=-DHAVE_CONFIG_H |
| 17108 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17109 | ac_libobjs= |
| 17110 | ac_ltlibobjs= |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17111 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17112 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 17113 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17114 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17115 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17116 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 17117 | # will be set to the directory where LIBOBJS objects are built. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17118 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 17119 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17120 | done |
| 17121 | LIBOBJS=$ac_libobjs |
| 17122 | |
| 17123 | LTLIBOBJS=$ac_ltlibobjs |
| 17124 | |
| 17125 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17126 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17127 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17128 | : "${CONFIG_STATUS=./config.status}" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17129 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17130 | ac_clean_files_save=$ac_clean_files |
| 17131 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17132 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 17133 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 17134 | as_write_fail=0 |
| 17135 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17136 | #! $SHELL |
| 17137 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17138 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17139 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17140 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17142 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17143 | ac_cs_recheck=false |
| 17144 | ac_cs_silent=false |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17145 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17146 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 17147 | export SHELL |
| 17148 | _ASEOF |
| 17149 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 17150 | ## -------------------- ## |
| 17151 | ## M4sh Initialization. ## |
| 17152 | ## -------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17153 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17154 | # Be more Bourne compatible |
| 17155 | DUALCASE=1; export DUALCASE # for MKS sh |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17156 | 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] | 17157 | emulate sh |
| 17158 | NULLCMD=: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17159 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17160 | # is contrary to our usage. Disable this feature. |
| 17161 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17162 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 17163 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17164 | case `(set -o) 2>/dev/null` in #( |
| 17165 | *posix*) : |
| 17166 | set -o posix ;; #( |
| 17167 | *) : |
| 17168 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17169 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17170 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17171 | |
| 17172 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17173 | as_nl=' |
| 17174 | ' |
| 17175 | export as_nl |
| 17176 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 17177 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 17178 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 17179 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 17180 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 17181 | # but without wasting forks for bash or zsh. |
| 17182 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 17183 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 17184 | as_echo='print -r --' |
| 17185 | as_echo_n='print -rn --' |
| 17186 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 17187 | as_echo='printf %s\n' |
| 17188 | as_echo_n='printf %s' |
| 17189 | else |
| 17190 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 17191 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 17192 | as_echo_n='/usr/ucb/echo -n' |
| 17193 | else |
| 17194 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 17195 | as_echo_n_body='eval |
| 17196 | arg=$1; |
| 17197 | case $arg in #( |
| 17198 | *"$as_nl"*) |
| 17199 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 17200 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 17201 | esac; |
| 17202 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 17203 | ' |
| 17204 | export as_echo_n_body |
| 17205 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 17206 | fi |
| 17207 | export as_echo_body |
| 17208 | as_echo='sh -c $as_echo_body as_echo' |
| 17209 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17210 | |
| 17211 | # The user is always right. |
| 17212 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17213 | PATH_SEPARATOR=: |
| 17214 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 17215 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 17216 | PATH_SEPARATOR=';' |
| 17217 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17218 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17219 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17220 | |
| 17221 | # IFS |
| 17222 | # We need space, tab and new line, in precisely that order. Quoting is |
| 17223 | # there to prevent editors from complaining about space-tab. |
| 17224 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 17225 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17226 | IFS=" "" $as_nl" |
| 17227 | |
| 17228 | # 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] | 17229 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17230 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17231 | *[\\/]* ) as_myself=$0 ;; |
| 17232 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17233 | for as_dir in $PATH |
| 17234 | do |
| 17235 | IFS=$as_save_IFS |
| 17236 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17237 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 17238 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17239 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17240 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17241 | ;; |
| 17242 | esac |
| 17243 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 17244 | # in which case we are not to be found in the path. |
| 17245 | if test "x$as_myself" = x; then |
| 17246 | as_myself=$0 |
| 17247 | fi |
| 17248 | if test ! -f "$as_myself"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17249 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 17250 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17251 | fi |
| 17252 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17253 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 17254 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 17255 | # suppresses any "Segmentation fault" message there. '((' could |
| 17256 | # trigger a bug in pdksh 5.2.14. |
| 17257 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 17258 | do eval test x\${$as_var+set} = xset \ |
| 17259 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17260 | done |
| 17261 | PS1='$ ' |
| 17262 | PS2='> ' |
| 17263 | PS4='+ ' |
| 17264 | |
| 17265 | # NLS nuisances. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17266 | LC_ALL=C |
| 17267 | export LC_ALL |
| 17268 | LANGUAGE=C |
| 17269 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17270 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17271 | # CDPATH. |
| 17272 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 17273 | |
| 17274 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17275 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 17276 | # ---------------------------------------- |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17277 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 17278 | # 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] | 17279 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17280 | as_fn_error () |
| 17281 | { |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17282 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 17283 | if test "$4"; then |
| 17284 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 17285 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17286 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17287 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17288 | as_fn_exit $as_status |
| 17289 | } # as_fn_error |
| 17290 | |
| 17291 | |
| 17292 | # as_fn_set_status STATUS |
| 17293 | # ----------------------- |
| 17294 | # Set $? to STATUS, without forking. |
| 17295 | as_fn_set_status () |
| 17296 | { |
| 17297 | return $1 |
| 17298 | } # as_fn_set_status |
| 17299 | |
| 17300 | # as_fn_exit STATUS |
| 17301 | # ----------------- |
| 17302 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 17303 | as_fn_exit () |
| 17304 | { |
| 17305 | set +e |
| 17306 | as_fn_set_status $1 |
| 17307 | exit $1 |
| 17308 | } # as_fn_exit |
| 17309 | |
| 17310 | # as_fn_unset VAR |
| 17311 | # --------------- |
| 17312 | # Portably unset VAR. |
| 17313 | as_fn_unset () |
| 17314 | { |
| 17315 | { eval $1=; unset $1;} |
| 17316 | } |
| 17317 | as_unset=as_fn_unset |
| 17318 | # as_fn_append VAR VALUE |
| 17319 | # ---------------------- |
| 17320 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 17321 | # advantage of any shell optimizations that allow amortized linear growth over |
| 17322 | # repeated appends, instead of the typical quadratic growth present in naive |
| 17323 | # implementations. |
| 17324 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 17325 | eval 'as_fn_append () |
| 17326 | { |
| 17327 | eval $1+=\$2 |
| 17328 | }' |
| 17329 | else |
| 17330 | as_fn_append () |
| 17331 | { |
| 17332 | eval $1=\$$1\$2 |
| 17333 | } |
| 17334 | fi # as_fn_append |
| 17335 | |
| 17336 | # as_fn_arith ARG... |
| 17337 | # ------------------ |
| 17338 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 17339 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 17340 | # must be portable across $(()) and expr. |
| 17341 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 17342 | eval 'as_fn_arith () |
| 17343 | { |
| 17344 | as_val=$(( $* )) |
| 17345 | }' |
| 17346 | else |
| 17347 | as_fn_arith () |
| 17348 | { |
| 17349 | as_val=`expr "$@" || test $? -eq 1` |
| 17350 | } |
| 17351 | fi # as_fn_arith |
| 17352 | |
| 17353 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17354 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17355 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 17356 | as_expr=expr |
| 17357 | else |
| 17358 | as_expr=false |
| 17359 | fi |
| 17360 | |
| 17361 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 17362 | as_basename=basename |
| 17363 | else |
| 17364 | as_basename=false |
| 17365 | fi |
| 17366 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17367 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 17368 | as_dirname=dirname |
| 17369 | else |
| 17370 | as_dirname=false |
| 17371 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17372 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17373 | as_me=`$as_basename -- "$0" || |
| 17374 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 17375 | X"$0" : 'X\(//\)$' \| \ |
| 17376 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17377 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17378 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 17379 | s//\1/ |
| 17380 | q |
| 17381 | } |
| 17382 | /^X\/\(\/\/\)$/{ |
| 17383 | s//\1/ |
| 17384 | q |
| 17385 | } |
| 17386 | /^X\/\(\/\).*/{ |
| 17387 | s//\1/ |
| 17388 | q |
| 17389 | } |
| 17390 | s/.*/./; q'` |
| 17391 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17392 | # Avoid depending upon Character Ranges. |
| 17393 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 17394 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 17395 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 17396 | as_cr_digits='0123456789' |
| 17397 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17398 | |
| 17399 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17400 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17401 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17402 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17403 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17404 | xy) ECHO_C='\c';; |
| 17405 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 17406 | ECHO_T=' ';; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17407 | esac;; |
| 17408 | *) |
| 17409 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17410 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17411 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17412 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17413 | if test -d conf$$.dir; then |
| 17414 | rm -f conf$$.dir/conf$$.file |
| 17415 | else |
| 17416 | rm -f conf$$.dir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17417 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17418 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17419 | if (echo >conf$$.file) 2>/dev/null; then |
| 17420 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 17421 | as_ln_s='ln -s' |
| 17422 | # ... but there are two gotchas: |
| 17423 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 17424 | # 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] | 17425 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17426 | 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] | 17427 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17428 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17429 | as_ln_s=ln |
| 17430 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17431 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17432 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17433 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17434 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17435 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17436 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 17437 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17438 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17439 | |
| 17440 | # as_fn_mkdir_p |
| 17441 | # ------------- |
| 17442 | # Create "$as_dir" as a directory, including parents if necessary. |
| 17443 | as_fn_mkdir_p () |
| 17444 | { |
| 17445 | |
| 17446 | case $as_dir in #( |
| 17447 | -*) as_dir=./$as_dir;; |
| 17448 | esac |
| 17449 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 17450 | as_dirs= |
| 17451 | while :; do |
| 17452 | case $as_dir in #( |
| 17453 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 17454 | *) as_qdir=$as_dir;; |
| 17455 | esac |
| 17456 | as_dirs="'$as_qdir' $as_dirs" |
| 17457 | as_dir=`$as_dirname -- "$as_dir" || |
| 17458 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17459 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17460 | X"$as_dir" : 'X\(//\)$' \| \ |
| 17461 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 17462 | $as_echo X"$as_dir" | |
| 17463 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17464 | s//\1/ |
| 17465 | q |
| 17466 | } |
| 17467 | /^X\(\/\/\)[^/].*/{ |
| 17468 | s//\1/ |
| 17469 | q |
| 17470 | } |
| 17471 | /^X\(\/\/\)$/{ |
| 17472 | s//\1/ |
| 17473 | q |
| 17474 | } |
| 17475 | /^X\(\/\).*/{ |
| 17476 | s//\1/ |
| 17477 | q |
| 17478 | } |
| 17479 | s/.*/./; q'` |
| 17480 | test -d "$as_dir" && break |
| 17481 | done |
| 17482 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17483 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17484 | |
| 17485 | |
| 17486 | } # as_fn_mkdir_p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17487 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17488 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17489 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17490 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17491 | as_mkdir_p=false |
| 17492 | fi |
| 17493 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17494 | |
| 17495 | # as_fn_executable_p FILE |
| 17496 | # ----------------------- |
| 17497 | # Test if FILE is an executable regular file. |
| 17498 | as_fn_executable_p () |
| 17499 | { |
| 17500 | test -f "$1" && test -x "$1" |
| 17501 | } # as_fn_executable_p |
| 17502 | as_test_x='test -x' |
| 17503 | as_executable_p=as_fn_executable_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17504 | |
| 17505 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17506 | 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] | 17507 | |
| 17508 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17509 | 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] | 17510 | |
| 17511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17512 | exec 6>&1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17513 | ## ----------------------------------- ## |
| 17514 | ## Main body of $CONFIG_STATUS script. ## |
| 17515 | ## ----------------------------------- ## |
| 17516 | _ASEOF |
| 17517 | 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] | 17518 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17519 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17520 | # 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] | 17521 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17522 | # values after options handling. |
| 17523 | ac_log=" |
Ned Deily | 5489bda | 2018-01-31 17:44:09 -0500 | [diff] [blame] | 17524 | This file was extended by python $as_me 3.8, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17525 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17526 | |
| 17527 | CONFIG_FILES = $CONFIG_FILES |
| 17528 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17529 | CONFIG_LINKS = $CONFIG_LINKS |
| 17530 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17531 | $ $0 $@ |
| 17532 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17533 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 17534 | " |
| 17535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17536 | _ACEOF |
| 17537 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17538 | case $ac_config_files in *" |
| 17539 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 17540 | esac |
| 17541 | |
| 17542 | case $ac_config_headers in *" |
| 17543 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 17544 | esac |
| 17545 | |
| 17546 | |
| 17547 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17548 | # Files that config.status was made for. |
Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 17549 | config_files="$ac_config_files" |
| 17550 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17551 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17552 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17553 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17554 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17555 | ac_cs_usage="\ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17556 | \`$as_me' instantiates files and other configuration actions |
| 17557 | from templates according to the current configuration. Unless the files |
| 17558 | 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] | 17559 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17560 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17561 | |
| 17562 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17563 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17564 | --config print configuration, then exit |
| 17565 | -q, --quiet, --silent |
| 17566 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17567 | -d, --debug don't remove temporary files |
| 17568 | --recheck update $as_me by reconfiguring in the same conditions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17569 | --file=FILE[:TEMPLATE] |
| 17570 | instantiate the configuration file FILE |
| 17571 | --header=FILE[:TEMPLATE] |
| 17572 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17573 | |
| 17574 | Configuration files: |
| 17575 | $config_files |
| 17576 | |
| 17577 | Configuration headers: |
| 17578 | $config_headers |
| 17579 | |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 17580 | Report bugs to <https://bugs.python.org/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 17581 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17582 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17583 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17584 | 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] | 17585 | ac_cs_version="\\ |
Ned Deily | 5489bda | 2018-01-31 17:44:09 -0500 | [diff] [blame] | 17586 | python config.status 3.8 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17587 | configured by $0, generated by GNU Autoconf 2.69, |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17588 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17589 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17590 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17591 | This config.status script is free software; the Free Software Foundation |
| 17592 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17593 | |
| 17594 | ac_pwd='$ac_pwd' |
| 17595 | srcdir='$srcdir' |
| 17596 | INSTALL='$INSTALL' |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17597 | MKDIR_P='$MKDIR_P' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17598 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17599 | _ACEOF |
| 17600 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17601 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17602 | # 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] | 17603 | ac_need_defaults=: |
| 17604 | while test $# != 0 |
| 17605 | do |
| 17606 | case $1 in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17607 | --*=?*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17608 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17609 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17610 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17611 | ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17612 | --*=) |
| 17613 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17614 | ac_optarg= |
| 17615 | ac_shift=: |
| 17616 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17617 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17618 | ac_option=$1 |
| 17619 | ac_optarg=$2 |
| 17620 | ac_shift=shift |
| 17621 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17622 | esac |
| 17623 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17624 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17625 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17626 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17627 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17628 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17629 | $as_echo "$ac_cs_version"; exit ;; |
| 17630 | --config | --confi | --conf | --con | --co | --c ) |
| 17631 | $as_echo "$ac_cs_config"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17632 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17633 | debug=: ;; |
| 17634 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17635 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17636 | case $ac_optarg in |
| 17637 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17638 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17639 | esac |
| 17640 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17641 | ac_need_defaults=false;; |
| 17642 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17643 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17644 | case $ac_optarg in |
| 17645 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17646 | esac |
| 17647 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17648 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17649 | --he | --h) |
| 17650 | # Conflict between --help and --header |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17651 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17652 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17653 | --help | --hel | -h ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17654 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17655 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 17656 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 17657 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17658 | |
| 17659 | # This is an error. |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17660 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17661 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17662 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17663 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17664 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17665 | |
| 17666 | esac |
| 17667 | shift |
| 17668 | done |
| 17669 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17670 | ac_configure_extra_args= |
| 17671 | |
| 17672 | if $ac_cs_silent; then |
| 17673 | exec 6>/dev/null |
| 17674 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 17675 | fi |
| 17676 | |
| 17677 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17678 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17679 | if \$ac_cs_recheck; then |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17680 | 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] | 17681 | shift |
| 17682 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 17683 | CONFIG_SHELL='$SHELL' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17684 | export CONFIG_SHELL |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17685 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17686 | fi |
| 17687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17688 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17689 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17690 | exec 5>>config.log |
| 17691 | { |
| 17692 | echo |
| 17693 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17694 | ## Running $as_me. ## |
| 17695 | _ASBOX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17696 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17697 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17698 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17699 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17700 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17701 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17702 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17703 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17704 | |
| 17705 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17706 | for ac_config_target in $ac_config_targets |
| 17707 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17708 | case $ac_config_target in |
| 17709 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 17710 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 17711 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 17712 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 17713 | "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] | 17714 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17715 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17716 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17717 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17718 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17719 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17720 | esac |
| 17721 | done |
| 17722 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17723 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17724 | # If the user did not use the arguments to specify the items to instantiate, |
| 17725 | # then the envvar interface is used. Set only those that are not. |
| 17726 | # We use the long form for the default assignment because of an extremely |
| 17727 | # bizarre bug on SunOS 4.1.3. |
| 17728 | if $ac_need_defaults; then |
| 17729 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17730 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17731 | fi |
| 17732 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17733 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17734 | # 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] | 17735 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17736 | # Hook for its removal unless debugging. |
| 17737 | # Note that there is a small window in which the directory will not be cleaned: |
| 17738 | # 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] | 17739 | $debug || |
| 17740 | { |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17741 | tmp= ac_tmp= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17742 | trap 'exit_status=$? |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17743 | : "${ac_tmp:=$tmp}" |
| 17744 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17745 | ' 0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17746 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17747 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17748 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17749 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17750 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17751 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17752 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17753 | } || |
| 17754 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17755 | tmp=./conf$$-$RANDOM |
| 17756 | (umask 077 && mkdir "$tmp") |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17757 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17758 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17759 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17760 | # Set up the scripts for CONFIG_FILES section. |
| 17761 | # No need to generate them if there are no CONFIG_FILES. |
| 17762 | # This happens for instance with `./config.status config.h'. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17763 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17764 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17765 | |
| 17766 | ac_cr=`echo X | tr X '\015'` |
| 17767 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 17768 | # But we know of no other shell where ac_cr would be empty at this |
| 17769 | # point, so we can use a bashism as a fallback. |
| 17770 | if test "x$ac_cr" = x; then |
| 17771 | eval ac_cr=\$\'\\r\' |
| 17772 | fi |
| 17773 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 17774 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17775 | ac_cs_awk_cr='\\r' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17776 | else |
| 17777 | ac_cs_awk_cr=$ac_cr |
| 17778 | fi |
| 17779 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17780 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17781 | _ACEOF |
| 17782 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17783 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17784 | { |
| 17785 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 17786 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 17787 | echo "_ACEOF" |
| 17788 | } >conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17789 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 17790 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17791 | ac_delim='%!_!# ' |
| 17792 | for ac_last_try in false false false false false :; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17793 | . ./conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17794 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17795 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17796 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 17797 | if test $ac_delim_n = $ac_delim_num; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17798 | break |
| 17799 | elif $ac_last_try; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17800 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17801 | else |
| 17802 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17803 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17804 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17805 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17806 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17807 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17808 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17809 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17810 | sed -n ' |
| 17811 | h |
| 17812 | s/^/S["/; s/!.*/"]=/ |
| 17813 | p |
| 17814 | g |
| 17815 | s/^[^!]*!// |
| 17816 | :repl |
| 17817 | t repl |
| 17818 | s/'"$ac_delim"'$// |
| 17819 | t delim |
| 17820 | :nl |
| 17821 | h |
| 17822 | s/\(.\{148\}\)..*/\1/ |
| 17823 | t more1 |
| 17824 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 17825 | p |
| 17826 | n |
| 17827 | b repl |
| 17828 | :more1 |
| 17829 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17830 | p |
| 17831 | g |
| 17832 | s/.\{148\}// |
| 17833 | t nl |
| 17834 | :delim |
| 17835 | h |
| 17836 | s/\(.\{148\}\)..*/\1/ |
| 17837 | t more2 |
| 17838 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 17839 | p |
| 17840 | b |
| 17841 | :more2 |
| 17842 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17843 | p |
| 17844 | g |
| 17845 | s/.\{148\}// |
| 17846 | t delim |
| 17847 | ' <conf$$subs.awk | sed ' |
| 17848 | /^[^""]/{ |
| 17849 | N |
| 17850 | s/\n// |
| 17851 | } |
| 17852 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17853 | rm -f conf$$subs.awk |
| 17854 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17855 | _ACAWK |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17856 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17857 | for (key in S) S_is_set[key] = 1 |
| 17858 | FS = "" |
| 17859 | |
| 17860 | } |
| 17861 | { |
| 17862 | line = $ 0 |
| 17863 | nfields = split(line, field, "@") |
| 17864 | substed = 0 |
| 17865 | len = length(field[1]) |
| 17866 | for (i = 2; i < nfields; i++) { |
| 17867 | key = field[i] |
| 17868 | keylen = length(key) |
| 17869 | if (S_is_set[key]) { |
| 17870 | value = S[key] |
| 17871 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 17872 | len += length(value) + length(field[++i]) |
| 17873 | substed = 1 |
| 17874 | } else |
| 17875 | len += 1 + keylen |
| 17876 | } |
| 17877 | |
| 17878 | print line |
| 17879 | } |
| 17880 | |
| 17881 | _ACAWK |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17882 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17883 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17884 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 17885 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 17886 | else |
| 17887 | cat |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17888 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17889 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17890 | _ACEOF |
| 17891 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17892 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 17893 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17894 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17895 | # (actually we leave an empty line to preserve line numbers). |
| 17896 | if test "x$srcdir" = x.; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17897 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 17898 | h |
| 17899 | s/// |
| 17900 | s/^/:/ |
| 17901 | s/[ ]*$/:/ |
| 17902 | s/:\$(srcdir):/:/g |
| 17903 | s/:\${srcdir}:/:/g |
| 17904 | s/:@srcdir@:/:/g |
| 17905 | s/^:*// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17906 | s/:*$// |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17907 | x |
| 17908 | s/\(=[ ]*\).*/\1/ |
| 17909 | G |
| 17910 | s/\n// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17911 | s/^[^=]*=[ ]*$// |
| 17912 | }' |
| 17913 | fi |
| 17914 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17915 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17916 | fi # test -n "$CONFIG_FILES" |
| 17917 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17918 | # Set up the scripts for CONFIG_HEADERS section. |
| 17919 | # No need to generate them if there are no CONFIG_HEADERS. |
| 17920 | # This happens for instance with `./config.status Makefile'. |
| 17921 | if test -n "$CONFIG_HEADERS"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17922 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17923 | BEGIN { |
| 17924 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17925 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17926 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 17927 | # here-document in config.status, that substitutes the proper values into |
| 17928 | # config.h.in to produce config.h. |
| 17929 | |
| 17930 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 17931 | # handling of long lines. |
| 17932 | ac_delim='%!_!# ' |
| 17933 | for ac_last_try in false false :; do |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17934 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 17935 | if test -z "$ac_tt"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17936 | break |
| 17937 | elif $ac_last_try; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17938 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17939 | else |
| 17940 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17941 | fi |
| 17942 | done |
| 17943 | |
| 17944 | # For the awk script, D is an array of macro values keyed by name, |
| 17945 | # likewise P contains macro parameters if any. Preserve backslash |
| 17946 | # newline sequences. |
| 17947 | |
| 17948 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 17949 | sed -n ' |
| 17950 | s/.\{148\}/&'"$ac_delim"'/g |
| 17951 | t rset |
| 17952 | :rset |
| 17953 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 17954 | t def |
| 17955 | d |
| 17956 | :def |
| 17957 | s/\\$// |
| 17958 | t bsnl |
| 17959 | s/["\\]/\\&/g |
| 17960 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17961 | D["\1"]=" \3"/p |
| 17962 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 17963 | d |
| 17964 | :bsnl |
| 17965 | s/["\\]/\\&/g |
| 17966 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17967 | D["\1"]=" \3\\\\\\n"\\/p |
| 17968 | t cont |
| 17969 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 17970 | t cont |
| 17971 | d |
| 17972 | :cont |
| 17973 | n |
| 17974 | s/.\{148\}/&'"$ac_delim"'/g |
| 17975 | t clear |
| 17976 | :clear |
| 17977 | s/\\$// |
| 17978 | t bsnlc |
| 17979 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 17980 | d |
| 17981 | :bsnlc |
| 17982 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 17983 | b cont |
| 17984 | ' <confdefs.h | sed ' |
| 17985 | s/'"$ac_delim"'/"\\\ |
| 17986 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17987 | |
| 17988 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17989 | for (key in D) D_is_set[key] = 1 |
| 17990 | FS = "" |
| 17991 | } |
| 17992 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 17993 | line = \$ 0 |
| 17994 | split(line, arg, " ") |
| 17995 | if (arg[1] == "#") { |
| 17996 | defundef = arg[2] |
| 17997 | mac1 = arg[3] |
| 17998 | } else { |
| 17999 | defundef = substr(arg[1], 2) |
| 18000 | mac1 = arg[2] |
| 18001 | } |
| 18002 | split(mac1, mac2, "(") #) |
| 18003 | macro = mac2[1] |
| 18004 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 18005 | if (D_is_set[macro]) { |
| 18006 | # Preserve the white space surrounding the "#". |
| 18007 | print prefix "define", macro P[macro] D[macro] |
| 18008 | next |
| 18009 | } else { |
| 18010 | # Replace #undef with comments. This is necessary, for example, |
| 18011 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 18012 | # on some systems where configure will not decide to define it. |
| 18013 | if (defundef == "undef") { |
| 18014 | print "/*", prefix defundef, macro, "*/" |
| 18015 | next |
| 18016 | } |
| 18017 | } |
| 18018 | } |
| 18019 | { print } |
| 18020 | _ACAWK |
| 18021 | _ACEOF |
| 18022 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18023 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18024 | fi # test -n "$CONFIG_HEADERS" |
| 18025 | |
| 18026 | |
| 18027 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 18028 | shift |
| 18029 | for ac_tag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18030 | do |
| 18031 | case $ac_tag in |
| 18032 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 18033 | esac |
| 18034 | case $ac_mode$ac_tag in |
| 18035 | :[FHL]*:*);; |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18036 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18037 | :[FH]-) ac_tag=-:-;; |
| 18038 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 18039 | esac |
| 18040 | ac_save_IFS=$IFS |
| 18041 | IFS=: |
| 18042 | set x $ac_tag |
| 18043 | IFS=$ac_save_IFS |
| 18044 | shift |
| 18045 | ac_file=$1 |
| 18046 | shift |
| 18047 | |
| 18048 | case $ac_mode in |
| 18049 | :L) ac_source=$1;; |
| 18050 | :[FH]) |
| 18051 | ac_file_inputs= |
| 18052 | for ac_f |
| 18053 | do |
| 18054 | case $ac_f in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18055 | -) ac_f="$ac_tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18056 | *) # Look for the file first in the build tree, then in the source tree |
| 18057 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 18058 | # because $ac_f cannot contain `:'. |
| 18059 | test -f "$ac_f" || |
| 18060 | case $ac_f in |
| 18061 | [\\/$]*) false;; |
| 18062 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 18063 | esac || |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18064 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18065 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18066 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 18067 | as_fn_append ac_file_inputs " '$ac_f'" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18068 | done |
| 18069 | |
| 18070 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 18071 | # use $as_me), people would be surprised to read: |
| 18072 | # /* config.h. Generated by config.status. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18073 | configure_input='Generated from '` |
| 18074 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 18075 | `' by configure.' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18076 | if test x"$ac_file" != x-; then |
| 18077 | configure_input="$ac_file. $configure_input" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18078 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 18079 | $as_echo "$as_me: creating $ac_file" >&6;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18080 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18081 | # Neutralize special characters interpreted by sed in replacement strings. |
| 18082 | case $configure_input in #( |
| 18083 | *\&* | *\|* | *\\* ) |
| 18084 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 18085 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 18086 | *) ac_sed_conf_input=$configure_input;; |
| 18087 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18088 | |
| 18089 | case $ac_tag in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18090 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 18091 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18092 | esac |
| 18093 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18094 | esac |
| 18095 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18096 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18097 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18098 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18099 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18100 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18101 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18102 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18103 | s//\1/ |
| 18104 | q |
| 18105 | } |
| 18106 | /^X\(\/\/\)[^/].*/{ |
| 18107 | s//\1/ |
| 18108 | q |
| 18109 | } |
| 18110 | /^X\(\/\/\)$/{ |
| 18111 | s//\1/ |
| 18112 | q |
| 18113 | } |
| 18114 | /^X\(\/\).*/{ |
| 18115 | s//\1/ |
| 18116 | q |
| 18117 | } |
| 18118 | s/.*/./; q'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18119 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18120 | ac_builddir=. |
| 18121 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18122 | case "$ac_dir" in |
| 18123 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 18124 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18125 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18126 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18127 | 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] | 18128 | case $ac_top_builddir_sub in |
| 18129 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 18130 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 18131 | esac ;; |
| 18132 | esac |
| 18133 | ac_abs_top_builddir=$ac_pwd |
| 18134 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 18135 | # for backward compatibility: |
| 18136 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18137 | |
| 18138 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18139 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18140 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18141 | ac_top_srcdir=$ac_top_builddir_sub |
| 18142 | ac_abs_top_srcdir=$ac_pwd ;; |
| 18143 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18144 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18145 | ac_top_srcdir=$srcdir |
| 18146 | ac_abs_top_srcdir=$srcdir ;; |
| 18147 | *) # Relative name. |
| 18148 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 18149 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 18150 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18151 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18152 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18154 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18155 | case $ac_mode in |
| 18156 | :F) |
| 18157 | # |
| 18158 | # CONFIG_FILE |
| 18159 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18160 | |
| 18161 | case $INSTALL in |
| 18162 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18163 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18164 | esac |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 18165 | ac_MKDIR_P=$MKDIR_P |
| 18166 | case $MKDIR_P in |
| 18167 | [\\/$]* | ?:[\\/]* ) ;; |
| 18168 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 18169 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18170 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18171 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18172 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18173 | # If the template does not know about datarootdir, expand it. |
| 18174 | # FIXME: This hack should be removed a few years after 2.60. |
| 18175 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18176 | ac_sed_dataroot=' |
| 18177 | /datarootdir/ { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18178 | p |
| 18179 | q |
| 18180 | } |
| 18181 | /@datadir@/p |
| 18182 | /@docdir@/p |
| 18183 | /@infodir@/p |
| 18184 | /@localedir@/p |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18185 | /@mandir@/p' |
| 18186 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18187 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 18188 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18189 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 18190 | $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] | 18191 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18192 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18193 | ac_datarootdir_hack=' |
| 18194 | s&@datadir@&$datadir&g |
| 18195 | s&@docdir@&$docdir&g |
| 18196 | s&@infodir@&$infodir&g |
| 18197 | s&@localedir@&$localedir&g |
| 18198 | s&@mandir@&$mandir&g |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18199 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18200 | esac |
| 18201 | _ACEOF |
| 18202 | |
| 18203 | # Neutralize VPATH when `$srcdir' = `.'. |
| 18204 | # Shell code in configure.ac might set extrasub. |
| 18205 | # FIXME: do we really want to maintain this feature? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18206 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18207 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18208 | $extrasub |
| 18209 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18210 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18211 | :t |
| 18212 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18213 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18214 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18215 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18216 | s&@srcdir@&$ac_srcdir&;t t |
| 18217 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 18218 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 18219 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 18220 | s&@builddir@&$ac_builddir&;t t |
| 18221 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 18222 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 18223 | s&@INSTALL@&$ac_INSTALL&;t t |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 18224 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18225 | $ac_datarootdir_hack |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18226 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18227 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 18228 | >$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] | 18229 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18230 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18231 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 18232 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 18233 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18234 | { $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] | 18235 | which seems to be undefined. Please make sure it is defined" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18236 | $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] | 18237 | which seems to be undefined. Please make sure it is defined" >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18238 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18239 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18240 | case $ac_file in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18241 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 18242 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18243 | esac \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18244 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18245 | ;; |
| 18246 | :H) |
| 18247 | # |
| 18248 | # CONFIG_HEADER |
| 18249 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18250 | if test x"$ac_file" != x-; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18251 | { |
| 18252 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18253 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 18254 | } >"$ac_tmp/config.h" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18255 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18256 | 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] | 18257 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 18258 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18259 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18260 | rm -f "$ac_file" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18261 | mv "$ac_tmp/config.h" "$ac_file" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18262 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18263 | fi |
| 18264 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18265 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 18266 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18267 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18268 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18269 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18270 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18271 | |
| 18272 | esac |
| 18273 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 18274 | |
| 18275 | case $ac_file$ac_mode in |
| 18276 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; |
| 18277 | |
| 18278 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18279 | done # for ac_tag |
| 18280 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18281 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18282 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18283 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18284 | ac_clean_files=$ac_clean_files_save |
| 18285 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18286 | test $ac_write_fail = 0 || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18287 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18289 | |
| 18290 | # configure is writing to config.log, and then calls config.status. |
| 18291 | # config.status does its own redirection, appending to config.log. |
| 18292 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 18293 | # by configure, so config.status won't be able to write to it; its |
| 18294 | # output is simply discarded. So we exec the FD to /dev/null, |
| 18295 | # effectively closing config.log, so it can be properly (re)opened and |
| 18296 | # appended to by config.status. When coming back to configure, we |
| 18297 | # need to make the FD available again. |
| 18298 | if test "$no_create" != yes; then |
| 18299 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18300 | ac_config_status_args= |
| 18301 | test "$silent" = yes && |
| 18302 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18303 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18304 | $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] | 18305 | exec 5>>config.log |
| 18306 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 18307 | # would make configure fail if this is the last instruction. |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18308 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18309 | fi |
| 18310 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 18311 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 18312 | $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] | 18313 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18314 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 18315 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 18316 | echo "creating Modules/Setup" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 18317 | if test ! -f Modules/Setup |
| 18318 | then |
| 18319 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 18320 | fi |
| 18321 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 18322 | echo "creating Modules/Setup.local" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 18323 | if test ! -f Modules/Setup.local |
| 18324 | then |
| 18325 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 18326 | fi |
| 18327 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 18328 | echo "creating Makefile" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 18329 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 18330 | -s Modules \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 18331 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 18332 | mv config.c Modules |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 18333 | |
| 18334 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then |
| 18335 | echo "" >&6 |
| 18336 | echo "" >&6 |
Brett Cannon | b4e5fee | 2017-06-09 13:56:57 -0700 | [diff] [blame] | 18337 | 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] | 18338 | echo "please run ./configure --enable-optimizations" >&6 |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 18339 | echo "" >&6 |
| 18340 | echo "" >&6 |
| 18341 | fi |
| 18342 | |