Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for python 3.7. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | # |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 5 | # Report bugs to <https://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6 | # |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7 | # |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9 | # |
| 10 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 26 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 32 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 34 | |
| 35 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in #( |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 81 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 82 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 92 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 93 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 102 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 103 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 114 | fi |
| 115 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 118 | # suppresses any "Segmentation fault" message there. '((' could |
| 119 | # trigger a bug in pdksh 5.2.14. |
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 | do eval test x\${$as_var+set} = xset \ |
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 133 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 137 | # Use a proper internal environment variable to ensure we don't fall |
| 138 | # into an infinite loop, continuously re-executing ourselves. |
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 | _as_can_reexec=no; export _as_can_reexec; |
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
| 142 | # neutralization value for shells without unset; and this also |
| 143 | # works around shells that cannot unset nonexistent variables. |
| 144 | # Preserve -v and -x to the replacement shell. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 156 | # out after a failed `exec'. |
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 162 | if test "x$CONFIG_SHELL" = x; then |
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 | emulate sh |
| 165 | NULLCMD=: |
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 | # is contrary to our usage. Disable this feature. |
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 | setopt NO_GLOB_SUBST |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 201 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 202 | if (eval "$as_required") 2>/dev/null; then : |
| 203 | as_have_required=yes |
| 204 | else |
| 205 | as_have_required=no |
| 206 | fi |
| 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 208 | |
| 209 | else |
| 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 211 | as_found=false |
| 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 213 | do |
| 214 | IFS=$as_save_IFS |
| 215 | test -z "$as_dir" && as_dir=. |
| 216 | as_found=: |
| 217 | case $as_dir in #( |
| 218 | /*) |
| 219 | for as_base in sh bash ksh sh5; do |
| 220 | # Try only shells that exist, to save several forks. |
| 221 | as_shell=$as_dir/$as_base |
| 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 226 | break 2 |
| 227 | fi |
| 228 | fi |
| 229 | done;; |
| 230 | esac |
| 231 | as_found=false |
| 232 | done |
| 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 235 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 236 | fi; } |
| 237 | IFS=$as_save_IFS |
| 238 | |
| 239 | |
| 240 | if test "x$CONFIG_SHELL" != x; then : |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 241 | export CONFIG_SHELL |
| 242 | # We cannot yet assume a decent shell, so we have to provide a |
| 243 | # neutralization value for shells without unset; and this also |
| 244 | # works around shells that cannot unset nonexistent variables. |
| 245 | # Preserve -v and -x to the replacement shell. |
| 246 | BASH_ENV=/dev/null |
| 247 | ENV=/dev/null |
| 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 249 | case $- in # (((( |
| 250 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 251 | *v* ) as_opts=-v ;; |
| 252 | *x* ) as_opts=-x ;; |
| 253 | * ) as_opts= ;; |
| 254 | esac |
| 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 256 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 257 | # out after a failed `exec'. |
| 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 259 | exit 255 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 260 | fi |
| 261 | |
| 262 | if test x$as_have_required = xno; then : |
| 263 | $as_echo "$0: This script requires a shell more modern than all" |
| 264 | $as_echo "$0: the shells that I found on your system." |
| 265 | if test x${ZSH_VERSION+set} = xset ; then |
| 266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 268 | else |
| 269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 270 | $0: https://bugs.python.org/ about your system, including |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 271 | $0: any error possibly output before this message. Then |
| 272 | $0: install a modern shell, or manually run the script |
| 273 | $0: under such a shell if you do have one." |
| 274 | fi |
| 275 | exit 1 |
| 276 | fi |
| 277 | fi |
| 278 | fi |
| 279 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 280 | export SHELL |
| 281 | # Unset more variables known to interfere with behavior of common tools. |
| 282 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 283 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 284 | |
| 285 | ## --------------------- ## |
| 286 | ## M4sh Shell Functions. ## |
| 287 | ## --------------------- ## |
| 288 | # as_fn_unset VAR |
| 289 | # --------------- |
| 290 | # Portably unset VAR. |
| 291 | as_fn_unset () |
| 292 | { |
| 293 | { eval $1=; unset $1;} |
| 294 | } |
| 295 | as_unset=as_fn_unset |
| 296 | |
| 297 | # as_fn_set_status STATUS |
| 298 | # ----------------------- |
| 299 | # Set $? to STATUS, without forking. |
| 300 | as_fn_set_status () |
| 301 | { |
| 302 | return $1 |
| 303 | } # as_fn_set_status |
| 304 | |
| 305 | # as_fn_exit STATUS |
| 306 | # ----------------- |
| 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 308 | as_fn_exit () |
| 309 | { |
| 310 | set +e |
| 311 | as_fn_set_status $1 |
| 312 | exit $1 |
| 313 | } # as_fn_exit |
| 314 | |
| 315 | # as_fn_mkdir_p |
| 316 | # ------------- |
| 317 | # Create "$as_dir" as a directory, including parents if necessary. |
| 318 | as_fn_mkdir_p () |
| 319 | { |
| 320 | |
| 321 | case $as_dir in #( |
| 322 | -*) as_dir=./$as_dir;; |
| 323 | esac |
| 324 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 325 | as_dirs= |
| 326 | while :; do |
| 327 | case $as_dir in #( |
| 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 329 | *) as_qdir=$as_dir;; |
| 330 | esac |
| 331 | as_dirs="'$as_qdir' $as_dirs" |
| 332 | as_dir=`$as_dirname -- "$as_dir" || |
| 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 335 | X"$as_dir" : 'X\(//\)$' \| \ |
| 336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 337 | $as_echo X"$as_dir" | |
| 338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 339 | s//\1/ |
| 340 | q |
| 341 | } |
| 342 | /^X\(\/\/\)[^/].*/{ |
| 343 | s//\1/ |
| 344 | q |
| 345 | } |
| 346 | /^X\(\/\/\)$/{ |
| 347 | s//\1/ |
| 348 | q |
| 349 | } |
| 350 | /^X\(\/\).*/{ |
| 351 | s//\1/ |
| 352 | q |
| 353 | } |
| 354 | s/.*/./; q'` |
| 355 | test -d "$as_dir" && break |
| 356 | done |
| 357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 359 | |
| 360 | |
| 361 | } # as_fn_mkdir_p |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 362 | |
| 363 | # as_fn_executable_p FILE |
| 364 | # ----------------------- |
| 365 | # Test if FILE is an executable regular file. |
| 366 | as_fn_executable_p () |
| 367 | { |
| 368 | test -f "$1" && test -x "$1" |
| 369 | } # as_fn_executable_p |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 370 | # as_fn_append VAR VALUE |
| 371 | # ---------------------- |
| 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 373 | # advantage of any shell optimizations that allow amortized linear growth over |
| 374 | # repeated appends, instead of the typical quadratic growth present in naive |
| 375 | # implementations. |
| 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 377 | eval 'as_fn_append () |
| 378 | { |
| 379 | eval $1+=\$2 |
| 380 | }' |
| 381 | else |
| 382 | as_fn_append () |
| 383 | { |
| 384 | eval $1=\$$1\$2 |
| 385 | } |
| 386 | fi # as_fn_append |
| 387 | |
| 388 | # as_fn_arith ARG... |
| 389 | # ------------------ |
| 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 392 | # must be portable across $(()) and expr. |
| 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 394 | eval 'as_fn_arith () |
| 395 | { |
| 396 | as_val=$(( $* )) |
| 397 | }' |
| 398 | else |
| 399 | as_fn_arith () |
| 400 | { |
| 401 | as_val=`expr "$@" || test $? -eq 1` |
| 402 | } |
| 403 | fi # as_fn_arith |
| 404 | |
| 405 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 407 | # ---------------------------------------- |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 410 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 411 | as_fn_error () |
| 412 | { |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 414 | if test "$4"; then |
| 415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 417 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 418 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 419 | as_fn_exit $as_status |
| 420 | } # as_fn_error |
| 421 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 424 | as_expr=expr |
| 425 | else |
| 426 | as_expr=false |
| 427 | fi |
| 428 | |
| 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 430 | as_basename=basename |
| 431 | else |
| 432 | as_basename=false |
| 433 | fi |
| 434 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 436 | as_dirname=dirname |
| 437 | else |
| 438 | as_dirname=false |
| 439 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 440 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 441 | as_me=`$as_basename -- "$0" || |
| 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 443 | X"$0" : 'X\(//\)$' \| \ |
| 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 445 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 447 | s//\1/ |
| 448 | q |
| 449 | } |
| 450 | /^X\/\(\/\/\)$/{ |
| 451 | s//\1/ |
| 452 | q |
| 453 | } |
| 454 | /^X\/\(\/\).*/{ |
| 455 | s//\1/ |
| 456 | q |
| 457 | } |
| 458 | s/.*/./; q'` |
| 459 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 460 | # Avoid depending upon Character Ranges. |
| 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 464 | as_cr_digits='0123456789' |
| 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 466 | |
| 467 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 473 | sed -n ' |
| 474 | p |
| 475 | /[$]LINENO/= |
| 476 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 477 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 478 | s/[$]LINENO.*/&-/ |
| 479 | t lineno |
| 480 | b |
| 481 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 482 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 483 | :loop |
| 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 485 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 486 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 487 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 488 | chmod +x "$as_me.lineno" || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 490 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 492 | # already done that, so ensure we don't try to do so again and fall |
| 493 | # in an infinite loop. This has already happened in practice. |
| 494 | _as_can_reexec=no; export _as_can_reexec |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 495 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 496 | # (the dirname of $[0] is not the place where we might find the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 497 | # original and so on. Autoconf is especially sensitive to this). |
| 498 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 499 | # Exit status is that of the last command. |
| 500 | exit |
| 501 | } |
| 502 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 503 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 504 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 505 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 506 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 508 | xy) ECHO_C='\c';; |
| 509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 510 | ECHO_T=' ';; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 511 | esac;; |
| 512 | *) |
| 513 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 514 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 517 | if test -d conf$$.dir; then |
| 518 | rm -f conf$$.dir/conf$$.file |
| 519 | else |
| 520 | rm -f conf$$.dir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 521 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 522 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 523 | if (echo >conf$$.file) 2>/dev/null; then |
| 524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 525 | as_ln_s='ln -s' |
| 526 | # ... but there are two gotchas: |
| 527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 529 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 531 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 533 | as_ln_s=ln |
| 534 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 536 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 537 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 538 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 539 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 541 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 542 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 543 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 544 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 545 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 546 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 547 | as_mkdir_p=false |
| 548 | fi |
| 549 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 550 | as_test_x='test -x' |
| 551 | as_executable_p=as_fn_executable_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | |
| 553 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 555 | |
| 556 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 558 | |
| 559 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 561 | exec 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | |
| 563 | # Name of the host. |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 565 | # so uname gets run too. |
| 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 567 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 568 | # |
| 569 | # Initializations. |
| 570 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 571 | ac_default_prefix=/usr/local |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 572 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 573 | ac_config_libobj_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 574 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | cross_compiling=no |
| 576 | subdirs= |
| 577 | MFLAGS= |
| 578 | MAKEFLAGS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 581 | PACKAGE_NAME='python' |
| 582 | PACKAGE_TARNAME='python' |
Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 583 | PACKAGE_VERSION='3.7' |
| 584 | PACKAGE_STRING='python 3.7' |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='https://bugs.python.org/' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 586 | PACKAGE_URL='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | |
| 588 | ac_unique_file="Include/object.h" |
| 589 | # Factoring default headers for most tests. |
| 590 | ac_includes_default="\ |
| 591 | #include <stdio.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 592 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <sys/types.h> |
| 594 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 595 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 596 | # include <sys/stat.h> |
| 597 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 598 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 599 | # include <stdlib.h> |
| 600 | # include <stddef.h> |
| 601 | #else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 602 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | # include <stdlib.h> |
| 604 | # endif |
| 605 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRING_H |
| 607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 608 | # include <memory.h> |
| 609 | # endif |
| 610 | # include <string.h> |
| 611 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 613 | # include <strings.h> |
| 614 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 615 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <inttypes.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 617 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 618 | #ifdef HAVE_STDINT_H |
| 619 | # include <stdint.h> |
| 620 | #endif |
| 621 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 622 | # include <unistd.h> |
| 623 | #endif" |
| 624 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 625 | ac_subst_vars='LTLIBOBJS |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 626 | ENSUREPIP |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 627 | SRCDIRS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 628 | THREADHEADERS |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 629 | LIBPL |
| 630 | PY_ENABLE_SHARED |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 631 | EXT_SUFFIX |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 632 | SOABI |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 633 | LIBC |
| 634 | LIBM |
| 635 | HAVE_GETHOSTBYNAME |
| 636 | HAVE_GETHOSTBYNAME_R |
| 637 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 638 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 639 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 640 | LIBOBJS |
| 641 | TRUE |
| 642 | MACHDEP_OBJS |
| 643 | DYNLOADFILE |
| 644 | DLINCLDIR |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 645 | DTRACE_OBJS |
| 646 | DTRACE_HEADERS |
| 647 | DFLAGS |
| 648 | DTRACE |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 649 | LDLAST |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 650 | TCLTK_LIBS |
| 651 | TCLTK_INCLUDES |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 652 | LIBFFI_INCLUDEDIR |
Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 653 | PKG_CONFIG_LIBDIR |
| 654 | PKG_CONFIG_PATH |
| 655 | PKG_CONFIG |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 656 | SHLIBS |
| 657 | CFLAGSFORSHARED |
| 658 | LINKFORSHARED |
| 659 | CCSHARED |
| 660 | BLDSHARED |
| 661 | LDCXXSHARED |
| 662 | LDSHARED |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 663 | SHLIB_SUFFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 664 | LIBTOOL_CRUFT |
| 665 | OTHER_LIBTOOL_OPT |
| 666 | UNIVERSAL_ARCH_FLAGS |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 667 | CFLAGS_NODIST |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 668 | BASECFLAGS |
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 669 | CFLAGS_ALIASING |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 670 | OPT |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 671 | LLVM_PROF_FOUND |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 672 | target_os |
| 673 | target_vendor |
| 674 | target_cpu |
| 675 | target |
| 676 | LLVM_PROFDATA |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 677 | LLVM_PROF_ERR |
| 678 | LLVM_PROF_FILE |
| 679 | LLVM_PROF_MERGER |
| 680 | PGO_PROF_USE_FLAG |
| 681 | PGO_PROF_GEN_FLAG |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 682 | DEF_MAKE_RULE |
| 683 | DEF_MAKE_ALL_RULE |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 684 | ABIFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 685 | LN |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 686 | MKDIR_P |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 687 | INSTALL_DATA |
| 688 | INSTALL_SCRIPT |
| 689 | INSTALL_PROGRAM |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 690 | ac_ct_READELF |
| 691 | READELF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 692 | ARFLAGS |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 693 | ac_ct_AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 694 | AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 695 | GNULD |
| 696 | LINKCC |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 697 | LDVERSION |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 698 | RUNSHARED |
| 699 | INSTSONAME |
| 700 | LDLIBRARYDIR |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 701 | PY3LIBRARY |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 702 | BLDLIBRARY |
| 703 | DLLLIBRARY |
| 704 | LDLIBRARY |
| 705 | LIBRARY |
| 706 | BUILDEXEEXT |
| 707 | EGREP |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 708 | NO_AS_NEEDED |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 709 | MULTIARCH_CPPFLAGS |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 710 | PLATFORM_TRIPLET |
| 711 | MULTIARCH |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 712 | ac_ct_CXX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 713 | MAINCC |
| 714 | CXX |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 715 | SED |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 716 | GREP |
| 717 | CPP |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 718 | OBJEXT |
| 719 | EXEEXT |
| 720 | ac_ct_CC |
| 721 | CPPFLAGS |
| 722 | LDFLAGS |
| 723 | CFLAGS |
| 724 | CC |
| 725 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 726 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 727 | _PYTHON_HOST_PLATFORM |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 728 | MACHDEP |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 729 | FRAMEWORKINSTALLAPPSPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 730 | FRAMEWORKUNIXTOOLSPREFIX |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 731 | FRAMEWORKPYTHONW |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 732 | FRAMEWORKALTINSTALLLAST |
| 733 | FRAMEWORKALTINSTALLFIRST |
| 734 | FRAMEWORKINSTALLLAST |
| 735 | FRAMEWORKINSTALLFIRST |
| 736 | PYTHONFRAMEWORKINSTALLDIR |
| 737 | PYTHONFRAMEWORKPREFIX |
| 738 | PYTHONFRAMEWORKDIR |
| 739 | PYTHONFRAMEWORKIDENTIFIER |
| 740 | PYTHONFRAMEWORK |
| 741 | LIPO_32BIT_FLAGS |
| 742 | ARCH_RUN_32BIT |
| 743 | UNIVERSALSDK |
| 744 | CONFIG_ARGS |
| 745 | SOVERSION |
| 746 | VERSION |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 747 | PYTHON_FOR_BUILD |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 748 | PYTHON_FOR_REGEN |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 749 | host_os |
| 750 | host_vendor |
| 751 | host_cpu |
| 752 | host |
| 753 | build_os |
| 754 | build_vendor |
| 755 | build_cpu |
| 756 | build |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 757 | HAS_GIT |
| 758 | GITBRANCH |
| 759 | GITTAG |
| 760 | GITVERSION |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 761 | BASECPPFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 762 | target_alias |
| 763 | host_alias |
| 764 | build_alias |
| 765 | LIBS |
| 766 | ECHO_T |
| 767 | ECHO_N |
| 768 | ECHO_C |
| 769 | DEFS |
| 770 | mandir |
| 771 | localedir |
| 772 | libdir |
| 773 | psdir |
| 774 | pdfdir |
| 775 | dvidir |
| 776 | htmldir |
| 777 | infodir |
| 778 | docdir |
| 779 | oldincludedir |
| 780 | includedir |
| 781 | localstatedir |
| 782 | sharedstatedir |
| 783 | sysconfdir |
| 784 | datadir |
| 785 | datarootdir |
| 786 | libexecdir |
| 787 | sbindir |
| 788 | bindir |
| 789 | program_transform_name |
| 790 | prefix |
| 791 | exec_prefix |
| 792 | PACKAGE_URL |
| 793 | PACKAGE_BUGREPORT |
| 794 | PACKAGE_STRING |
| 795 | PACKAGE_VERSION |
| 796 | PACKAGE_TARNAME |
| 797 | PACKAGE_NAME |
| 798 | PATH_SEPARATOR |
| 799 | SHELL' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 800 | ac_subst_files='' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 801 | ac_user_opts=' |
| 802 | enable_option_checking |
| 803 | enable_universalsdk |
| 804 | with_universal_archs |
| 805 | with_framework_name |
| 806 | enable_framework |
| 807 | with_gcc |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 808 | with_icc |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 809 | with_cxx_main |
| 810 | with_suffix |
| 811 | enable_shared |
| 812 | enable_profiling |
| 813 | with_pydebug |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 814 | with_assertions |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 815 | enable_optimizations |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 816 | with_lto |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 817 | with_hash_algorithm |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 818 | with_address_sanitizer |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 819 | with_libs |
| 820 | with_system_expat |
| 821 | with_system_ffi |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 822 | with_system_libmpdec |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 823 | enable_loadable_sqlite_extensions |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 824 | with_tcltk_includes |
| 825 | with_tcltk_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 826 | with_dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 827 | enable_ipv6 |
| 828 | with_doc_strings |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 829 | with_pymalloc |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 830 | with_c_locale_coercion |
| 831 | with_c_locale_warning |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 832 | with_valgrind |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 833 | with_dtrace |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 834 | with_fpectl |
| 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 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 840 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 841 | ac_precious_vars='build_alias |
| 842 | host_alias |
| 843 | target_alias |
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 844 | MACHDEP |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 845 | CC |
| 846 | CFLAGS |
| 847 | LDFLAGS |
| 848 | LIBS |
| 849 | CPPFLAGS |
Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 850 | CPP |
| 851 | PKG_CONFIG |
| 852 | PKG_CONFIG_PATH |
| 853 | PKG_CONFIG_LIBDIR' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 854 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 855 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 856 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 857 | ac_init_help= |
| 858 | ac_init_version=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 859 | ac_unrecognized_opts= |
| 860 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 861 | # The variables have the same names as the options, with |
| 862 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 863 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 864 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 865 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 866 | no_recursion= |
| 867 | prefix=NONE |
| 868 | program_prefix=NONE |
| 869 | program_suffix=NONE |
| 870 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 871 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 872 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 873 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 874 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 875 | x_includes=NONE |
| 876 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 877 | |
| 878 | # Installation directory options. |
| 879 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 880 | # and all the variables that are supposed to be based on exec_prefix |
| 881 | # by default will actually change. |
| 882 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 883 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 884 | bindir='${exec_prefix}/bin' |
| 885 | sbindir='${exec_prefix}/sbin' |
| 886 | libexecdir='${exec_prefix}/libexec' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 887 | datarootdir='${prefix}/share' |
| 888 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 889 | sysconfdir='${prefix}/etc' |
| 890 | sharedstatedir='${prefix}/com' |
| 891 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 892 | includedir='${prefix}/include' |
| 893 | oldincludedir='/usr/include' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 894 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 895 | infodir='${datarootdir}/info' |
| 896 | htmldir='${docdir}' |
| 897 | dvidir='${docdir}' |
| 898 | pdfdir='${docdir}' |
| 899 | psdir='${docdir}' |
| 900 | libdir='${exec_prefix}/lib' |
| 901 | localedir='${datarootdir}/locale' |
| 902 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 903 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 904 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 905 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 906 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 907 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 908 | # If the previous option needs an argument, assign it. |
| 909 | if test -n "$ac_prev"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 910 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 911 | ac_prev= |
| 912 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 913 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 914 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 915 | case $ac_option in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 916 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 917 | *=) ac_optarg= ;; |
| 918 | *) ac_optarg=yes ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 919 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 920 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 921 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 922 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 923 | case $ac_dashdash$ac_option in |
| 924 | --) |
| 925 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 926 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 927 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 928 | ac_prev=bindir ;; |
| 929 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 930 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 931 | |
| 932 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 933 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 934 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 935 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 936 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 937 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 938 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 939 | ac_prev=cache_file ;; |
| 940 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 941 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 942 | cache_file=$ac_optarg ;; |
| 943 | |
| 944 | --config-cache | -C) |
| 945 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 946 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 947 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 948 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 949 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 950 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 951 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 952 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 953 | | --dataroo | --dataro | --datar) |
| 954 | ac_prev=datarootdir ;; |
| 955 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 956 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 957 | datarootdir=$ac_optarg ;; |
| 958 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 959 | -disable-* | --disable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 960 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 961 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 962 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 963 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 964 | ac_useropt_orig=$ac_useropt |
| 965 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 966 | case $ac_user_opts in |
| 967 | *" |
| 968 | "enable_$ac_useropt" |
| 969 | "*) ;; |
| 970 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 971 | ac_unrecognized_sep=', ';; |
| 972 | esac |
| 973 | eval enable_$ac_useropt=no ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 974 | |
| 975 | -docdir | --docdir | --docdi | --doc | --do) |
| 976 | ac_prev=docdir ;; |
| 977 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 978 | docdir=$ac_optarg ;; |
| 979 | |
| 980 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 981 | ac_prev=dvidir ;; |
| 982 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 983 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 984 | |
| 985 | -enable-* | --enable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 986 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 987 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 988 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 989 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 990 | ac_useropt_orig=$ac_useropt |
| 991 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 992 | case $ac_user_opts in |
| 993 | *" |
| 994 | "enable_$ac_useropt" |
| 995 | "*) ;; |
| 996 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 997 | ac_unrecognized_sep=', ';; |
| 998 | esac |
| 999 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1000 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1001 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1002 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1003 | | --exec | --exe | --ex) |
| 1004 | ac_prev=exec_prefix ;; |
| 1005 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1006 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1007 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1008 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1009 | |
| 1010 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1011 | # Obsolete; use --with-gas. |
| 1012 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1014 | -help | --help | --hel | --he | -h) |
| 1015 | ac_init_help=long ;; |
| 1016 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1017 | ac_init_help=recursive ;; |
| 1018 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1019 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1020 | |
| 1021 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1022 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1023 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1024 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1025 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1026 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1027 | ac_prev=htmldir ;; |
| 1028 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1029 | | --ht=*) |
| 1030 | htmldir=$ac_optarg ;; |
| 1031 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1032 | -includedir | --includedir | --includedi | --included | --include \ |
| 1033 | | --includ | --inclu | --incl | --inc) |
| 1034 | ac_prev=includedir ;; |
| 1035 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1036 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1037 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1038 | |
| 1039 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1040 | ac_prev=infodir ;; |
| 1041 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1042 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1043 | |
| 1044 | -libdir | --libdir | --libdi | --libd) |
| 1045 | ac_prev=libdir ;; |
| 1046 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1047 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1048 | |
| 1049 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1050 | | --libexe | --libex | --libe) |
| 1051 | ac_prev=libexecdir ;; |
| 1052 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1053 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1054 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1055 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1056 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1057 | ac_prev=localedir ;; |
| 1058 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1059 | localedir=$ac_optarg ;; |
| 1060 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1061 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1062 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1063 | ac_prev=localstatedir ;; |
| 1064 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1065 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1066 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1067 | |
| 1068 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1069 | ac_prev=mandir ;; |
| 1070 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1071 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1072 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1073 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1074 | # Obsolete; use --without-fp. |
| 1075 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1076 | |
| 1077 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1078 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1079 | no_create=yes ;; |
| 1080 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1081 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1082 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1083 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1084 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1085 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1086 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1087 | | --oldin | --oldi | --old | --ol | --o) |
| 1088 | ac_prev=oldincludedir ;; |
| 1089 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1090 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1091 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1092 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1093 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1094 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1095 | ac_prev=prefix ;; |
| 1096 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1097 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1098 | |
| 1099 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1100 | | --program-pre | --program-pr | --program-p) |
| 1101 | ac_prev=program_prefix ;; |
| 1102 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1103 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1104 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1105 | |
| 1106 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1107 | | --program-suf | --program-su | --program-s) |
| 1108 | ac_prev=program_suffix ;; |
| 1109 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1110 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1111 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1112 | |
| 1113 | -program-transform-name | --program-transform-name \ |
| 1114 | | --program-transform-nam | --program-transform-na \ |
| 1115 | | --program-transform-n | --program-transform- \ |
| 1116 | | --program-transform | --program-transfor \ |
| 1117 | | --program-transfo | --program-transf \ |
| 1118 | | --program-trans | --program-tran \ |
| 1119 | | --progr-tra | --program-tr | --program-t) |
| 1120 | ac_prev=program_transform_name ;; |
| 1121 | -program-transform-name=* | --program-transform-name=* \ |
| 1122 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1123 | | --program-transform-n=* | --program-transform-=* \ |
| 1124 | | --program-transform=* | --program-transfor=* \ |
| 1125 | | --program-transfo=* | --program-transf=* \ |
| 1126 | | --program-trans=* | --program-tran=* \ |
| 1127 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1128 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1129 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1130 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1131 | ac_prev=pdfdir ;; |
| 1132 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1133 | pdfdir=$ac_optarg ;; |
| 1134 | |
| 1135 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1136 | ac_prev=psdir ;; |
| 1137 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1138 | psdir=$ac_optarg ;; |
| 1139 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1140 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1141 | | -silent | --silent | --silen | --sile | --sil) |
| 1142 | silent=yes ;; |
| 1143 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1144 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1145 | ac_prev=sbindir ;; |
| 1146 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1147 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1148 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1149 | |
| 1150 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1151 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1152 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1153 | | --sha | --sh) |
| 1154 | ac_prev=sharedstatedir ;; |
| 1155 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1156 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1157 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1158 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1159 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1160 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1161 | -site | --site | --sit) |
| 1162 | ac_prev=site ;; |
| 1163 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1164 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1165 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1166 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1167 | ac_prev=srcdir ;; |
| 1168 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1169 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1170 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1171 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1172 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1173 | ac_prev=sysconfdir ;; |
| 1174 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1175 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1176 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1177 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1178 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1179 | ac_prev=target_alias ;; |
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 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1182 | |
| 1183 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1184 | verbose=yes ;; |
| 1185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1186 | -version | --version | --versio | --versi | --vers | -V) |
| 1187 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1188 | |
| 1189 | -with-* | --with-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1190 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1191 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1192 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1193 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1194 | ac_useropt_orig=$ac_useropt |
| 1195 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1196 | case $ac_user_opts in |
| 1197 | *" |
| 1198 | "with_$ac_useropt" |
| 1199 | "*) ;; |
| 1200 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1201 | ac_unrecognized_sep=', ';; |
| 1202 | esac |
| 1203 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1204 | |
| 1205 | -without-* | --without-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1206 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1207 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1208 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1209 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1210 | ac_useropt_orig=$ac_useropt |
| 1211 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1212 | case $ac_user_opts in |
| 1213 | *" |
| 1214 | "with_$ac_useropt" |
| 1215 | "*) ;; |
| 1216 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1217 | ac_unrecognized_sep=', ';; |
| 1218 | esac |
| 1219 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1220 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1221 | --x) |
| 1222 | # Obsolete; use --with-x. |
| 1223 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1224 | |
| 1225 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1226 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1227 | ac_prev=x_includes ;; |
| 1228 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1229 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1230 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1231 | |
| 1232 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1233 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1234 | ac_prev=x_libraries ;; |
| 1235 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1236 | | --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] | 1237 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1238 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1239 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1240 | Try \`$0 --help' for more information" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1241 | ;; |
| 1242 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1243 | *=*) |
| 1244 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1245 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1246 | case $ac_envvar in #( |
| 1247 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1248 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1249 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1250 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1251 | export $ac_envvar ;; |
| 1252 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1253 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1254 | # FIXME: should be removed in autoconf 3.0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1255 | $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] | 1256 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1257 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1258 | : "${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] | 1259 | ;; |
| 1260 | |
| 1261 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1262 | done |
| 1263 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1264 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1265 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1266 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1267 | fi |
| 1268 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1269 | if test -n "$ac_unrecognized_opts"; then |
| 1270 | case $enable_option_checking in |
| 1271 | no) ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1272 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1273 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1274 | esac |
| 1275 | fi |
| 1276 | |
| 1277 | # Check all directory arguments for consistency. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1278 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1279 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1280 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
xdegaye | 5ad7ef8 | 2017-11-23 11:13:22 +0100 | [diff] [blame] | 1281 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1282 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1283 | eval ac_val=\$$ac_var |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1284 | # Remove trailing slashes. |
| 1285 | case $ac_val in |
| 1286 | */ ) |
| 1287 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1288 | eval $ac_var=\$ac_val;; |
| 1289 | esac |
| 1290 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1291 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1292 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1293 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1294 | esac |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1295 | 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] | 1296 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1297 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1298 | # There might be people who depend on the old broken behavior: `$host' |
| 1299 | # used to hold the argument of --host etc. |
| 1300 | # FIXME: To remove some day. |
| 1301 | build=$build_alias |
| 1302 | host=$host_alias |
| 1303 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1305 | # FIXME: To remove some day. |
| 1306 | if test "x$host_alias" != x; then |
| 1307 | if test "x$build_alias" = x; then |
| 1308 | cross_compiling=maybe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1309 | elif test "x$build_alias" != "x$host_alias"; then |
| 1310 | cross_compiling=yes |
| 1311 | fi |
| 1312 | fi |
| 1313 | |
| 1314 | ac_tool_prefix= |
| 1315 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1316 | |
| 1317 | test "$silent" = yes && exec 6>/dev/null |
| 1318 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1319 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1320 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1321 | ac_ls_di=`ls -di .` && |
| 1322 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1323 | as_fn_error $? "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1324 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1325 | as_fn_error $? "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1326 | |
| 1327 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1328 | # Find the source files, if location was not specified. |
| 1329 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1330 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1331 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1332 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1333 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1334 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1335 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1336 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1337 | $as_echo X"$as_myself" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1339 | s//\1/ |
| 1340 | q |
| 1341 | } |
| 1342 | /^X\(\/\/\)[^/].*/{ |
| 1343 | s//\1/ |
| 1344 | q |
| 1345 | } |
| 1346 | /^X\(\/\/\)$/{ |
| 1347 | s//\1/ |
| 1348 | q |
| 1349 | } |
| 1350 | /^X\(\/\).*/{ |
| 1351 | s//\1/ |
| 1352 | q |
| 1353 | } |
| 1354 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1355 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1357 | srcdir=.. |
| 1358 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1359 | else |
| 1360 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1361 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1362 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1363 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1364 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1365 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1366 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1367 | ac_abs_confdir=`( |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1368 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1369 | pwd)` |
| 1370 | # When building in place, set srcdir=. |
| 1371 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1372 | srcdir=. |
| 1373 | fi |
| 1374 | # Remove unnecessary trailing slashes from srcdir. |
| 1375 | # Double slashes in file names in object file debugging info |
| 1376 | # mess up M-x gdb in Emacs. |
| 1377 | case $srcdir in |
| 1378 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1379 | esac |
| 1380 | for ac_var in $ac_precious_vars; do |
| 1381 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1382 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1383 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1384 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1385 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1386 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1387 | # |
| 1388 | # Report the --help message. |
| 1389 | # |
| 1390 | if test "$ac_init_help" = "long"; then |
| 1391 | # Omit some internal or obsolete options to make the list less imposing. |
| 1392 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1393 | cat <<_ACEOF |
Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 1394 | \`configure' configures python 3.7 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1395 | |
| 1396 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1397 | |
| 1398 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1399 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1400 | |
| 1401 | Defaults for the options are specified in brackets. |
| 1402 | |
| 1403 | Configuration: |
| 1404 | -h, --help display this help and exit |
| 1405 | --help=short display options specific to this package |
| 1406 | --help=recursive display the short help of all the included packages |
| 1407 | -V, --version display version information and exit |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1408 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1409 | --cache-file=FILE cache test results in FILE [disabled] |
| 1410 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1411 | -n, --no-create do not create output files |
| 1412 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1413 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1414 | Installation directories: |
| 1415 | --prefix=PREFIX install architecture-independent files in PREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1416 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1417 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1418 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1419 | |
| 1420 | By default, \`make install' will install all the files in |
| 1421 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1422 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1423 | for instance \`--prefix=\$HOME'. |
| 1424 | |
| 1425 | For better control, use the options below. |
| 1426 | |
| 1427 | Fine tuning of the installation directories: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1428 | --bindir=DIR user executables [EPREFIX/bin] |
| 1429 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1430 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1431 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1432 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1433 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1434 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1435 | --includedir=DIR C header files [PREFIX/include] |
| 1436 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1437 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1438 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1439 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1440 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1441 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1442 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1443 | --htmldir=DIR html documentation [DOCDIR] |
| 1444 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1445 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1446 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1447 | _ACEOF |
| 1448 | |
| 1449 | cat <<\_ACEOF |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1450 | |
| 1451 | System types: |
| 1452 | --build=BUILD configure for building on BUILD [guessed] |
| 1453 | --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] | 1454 | --target=TARGET configure for building compilers for TARGET [HOST] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1455 | _ACEOF |
| 1456 | fi |
| 1457 | |
| 1458 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1459 | case $ac_init_help in |
Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 1460 | short | recursive ) echo "Configuration of python 3.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1461 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1462 | cat <<\_ACEOF |
| 1463 | |
| 1464 | Optional Features: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1465 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1466 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1467 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1468 | --enable-universalsdk[=SDKDIR] |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 1469 | Build fat binary against Mac OS X SDK |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1470 | --enable-framework[=INSTALLDIR] |
| 1471 | Build (MacOSX|Darwin) framework |
| 1472 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1473 | --enable-profiling enable C-level code profiling |
Brett Cannon | b4e5fee | 2017-06-09 13:56:57 -0700 | [diff] [blame] | 1474 | --enable-optimizations Enable expensive, stable optimizations (PGO, etc). |
| 1475 | Disabled by default. |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1476 | --enable-loadable-sqlite-extensions |
| 1477 | support loadable extensions in _sqlite module |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1478 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1479 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1480 | --enable-big-digits[=BITS] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1481 | use big digits for Python longs [[BITS=30]] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1482 | |
| 1483 | Optional Packages: |
| 1484 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1485 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1486 | --with-universal-archs=ARCH |
| 1487 | select architectures for universal build ("32-bit", |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 1488 | "64-bit", "3-way", "intel", "intel-32", or "all") |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1489 | --with-framework-name=FRAMEWORK |
| 1490 | specify an alternate name of the framework built |
| 1491 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1492 | --without-gcc never use gcc |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 1493 | --with-icc build with icc |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1494 | --with-cxx-main=<compiler> |
| 1495 | compile main() and link python executable with C++ |
| 1496 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1497 | --with-suffix=.exe set executable suffix |
| 1498 | --with-pydebug build with Py_DEBUG defined |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 1499 | --with-assertions build with C assertions enabled |
octaviansoldea | 4c81401 | 2017-09-08 12:14:33 -0700 | [diff] [blame] | 1500 | --with-lto Enable Link Time Optimization in any build. Disabled |
| 1501 | by default. |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1502 | --with-hash-algorithm=[fnv|siphash24] |
| 1503 | select hash algorithm |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1504 | --with-address-sanitizer |
| 1505 | enable AddressSanitizer |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1506 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1507 | --with-system-expat build pyexpat module using an installed expat |
| 1508 | library |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1509 | --with-system-ffi build _ctypes module using an installed ffi library |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1510 | --with-system-libmpdec build _decimal module using an installed libmpdec |
| 1511 | library |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1512 | --with-tcltk-includes='-I...' |
| 1513 | override search for Tcl and Tk include files |
| 1514 | --with-tcltk-libs='-L...' |
| 1515 | override search for Tcl and Tk libs |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1516 | --with-dbmliborder=db1:db2:... |
| 1517 | order to check db backends for dbm. Valid value is a |
| 1518 | colon separated string with the backend names |
| 1519 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1520 | --with(out)-doc-strings disable/enable documentation strings |
| 1521 | --with(out)-pymalloc disable/enable specialized mallocs |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 1522 | --with(out)-c-locale-coercion |
| 1523 | disable/enable C locale coercion to a UTF-8 based |
| 1524 | locale |
| 1525 | --with(out)-c-locale-warning |
| 1526 | disable/enable locale compatibility warning in the C |
| 1527 | locale |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1528 | --with-valgrind Enable Valgrind support |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 1529 | --with(out)-dtrace disable/enable DTrace support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1530 | --with-fpectl enable SIGFPE catching |
| 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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1538 | |
| 1539 | Some influential environment variables: |
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1540 | MACHDEP name for machine-dependent library files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1541 | CC C compiler command |
| 1542 | CFLAGS C compiler flags |
| 1543 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1544 | nonstandard directory <lib dir> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1545 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1546 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1547 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1548 | CPP C preprocessor |
Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 1549 | PKG_CONFIG path to pkg-config utility |
| 1550 | PKG_CONFIG_PATH |
| 1551 | directories to add to pkg-config's search path |
| 1552 | PKG_CONFIG_LIBDIR |
| 1553 | path overriding pkg-config's built-in search path |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1554 | |
| 1555 | Use these variables to override the choices made by `configure' or to help |
| 1556 | it to find libraries and programs with nonstandard names/locations. |
| 1557 | |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1558 | Report bugs to <https://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1559 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1560 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1561 | fi |
| 1562 | |
| 1563 | if test "$ac_init_help" = "recursive"; then |
| 1564 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1565 | 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] | 1566 | test -d "$ac_dir" || |
| 1567 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1568 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1569 | ac_builddir=. |
| 1570 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1571 | case "$ac_dir" in |
| 1572 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1573 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1574 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1575 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1576 | 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] | 1577 | case $ac_top_builddir_sub in |
| 1578 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1579 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1580 | esac ;; |
| 1581 | esac |
| 1582 | ac_abs_top_builddir=$ac_pwd |
| 1583 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1584 | # for backward compatibility: |
| 1585 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1586 | |
| 1587 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1588 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1589 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1590 | ac_top_srcdir=$ac_top_builddir_sub |
| 1591 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1592 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1593 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1594 | ac_top_srcdir=$srcdir |
| 1595 | ac_abs_top_srcdir=$srcdir ;; |
| 1596 | *) # Relative name. |
| 1597 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1598 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1599 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1600 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1601 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1602 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1603 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1604 | # Check for guested configure. |
| 1605 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1606 | echo && |
| 1607 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1608 | elif test -f "$ac_srcdir/configure"; then |
| 1609 | echo && |
| 1610 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1611 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1612 | $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] | 1613 | fi || ac_status=$? |
| 1614 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1615 | done |
| 1616 | fi |
| 1617 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1618 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1619 | if $ac_init_version; then |
| 1620 | cat <<\_ACEOF |
Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 1621 | python configure 3.7 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1622 | generated by GNU Autoconf 2.69 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1623 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1624 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1625 | This configure script is free software; the Free Software Foundation |
| 1626 | gives unlimited permission to copy, distribute and modify it. |
| 1627 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1628 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1629 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1630 | |
| 1631 | ## ------------------------ ## |
| 1632 | ## Autoconf initialization. ## |
| 1633 | ## ------------------------ ## |
| 1634 | |
| 1635 | # ac_fn_c_try_compile LINENO |
| 1636 | # -------------------------- |
| 1637 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1638 | ac_fn_c_try_compile () |
| 1639 | { |
| 1640 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1641 | rm -f conftest.$ac_objext |
| 1642 | if { { ac_try="$ac_compile" |
| 1643 | case "(($ac_try" in |
| 1644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1645 | *) ac_try_echo=$ac_try;; |
| 1646 | esac |
| 1647 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1648 | $as_echo "$ac_try_echo"; } >&5 |
| 1649 | (eval "$ac_compile") 2>conftest.err |
| 1650 | ac_status=$? |
| 1651 | if test -s conftest.err; then |
| 1652 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1653 | cat conftest.er1 >&5 |
| 1654 | mv -f conftest.er1 conftest.err |
| 1655 | fi |
| 1656 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1657 | test $ac_status = 0; } && { |
| 1658 | test -z "$ac_c_werror_flag" || |
| 1659 | test ! -s conftest.err |
| 1660 | } && test -s conftest.$ac_objext; then : |
| 1661 | ac_retval=0 |
| 1662 | else |
| 1663 | $as_echo "$as_me: failed program was:" >&5 |
| 1664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1665 | |
| 1666 | ac_retval=1 |
| 1667 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1668 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1669 | as_fn_set_status $ac_retval |
| 1670 | |
| 1671 | } # ac_fn_c_try_compile |
| 1672 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1673 | # ac_fn_c_try_cpp LINENO |
| 1674 | # ---------------------- |
| 1675 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1676 | ac_fn_c_try_cpp () |
| 1677 | { |
| 1678 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1679 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1680 | case "(($ac_try" in |
| 1681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1682 | *) ac_try_echo=$ac_try;; |
| 1683 | esac |
| 1684 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1685 | $as_echo "$ac_try_echo"; } >&5 |
| 1686 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1687 | ac_status=$? |
| 1688 | if test -s conftest.err; then |
| 1689 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1690 | cat conftest.er1 >&5 |
| 1691 | mv -f conftest.er1 conftest.err |
| 1692 | fi |
| 1693 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1694 | test $ac_status = 0; } > conftest.i && { |
| 1695 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1696 | test ! -s conftest.err |
| 1697 | }; then : |
| 1698 | ac_retval=0 |
| 1699 | else |
| 1700 | $as_echo "$as_me: failed program was:" >&5 |
| 1701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1702 | |
| 1703 | ac_retval=1 |
| 1704 | fi |
| 1705 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1706 | as_fn_set_status $ac_retval |
| 1707 | |
| 1708 | } # ac_fn_c_try_cpp |
| 1709 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1710 | # ac_fn_c_try_link LINENO |
| 1711 | # ----------------------- |
| 1712 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1713 | ac_fn_c_try_link () |
| 1714 | { |
| 1715 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1716 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1717 | if { { ac_try="$ac_link" |
| 1718 | case "(($ac_try" in |
| 1719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1720 | *) ac_try_echo=$ac_try;; |
| 1721 | esac |
| 1722 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1723 | $as_echo "$ac_try_echo"; } >&5 |
| 1724 | (eval "$ac_link") 2>conftest.err |
| 1725 | ac_status=$? |
| 1726 | if test -s conftest.err; then |
| 1727 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1728 | cat conftest.er1 >&5 |
| 1729 | mv -f conftest.er1 conftest.err |
| 1730 | fi |
| 1731 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1732 | test $ac_status = 0; } && { |
| 1733 | test -z "$ac_c_werror_flag" || |
| 1734 | test ! -s conftest.err |
| 1735 | } && test -s conftest$ac_exeext && { |
| 1736 | test "$cross_compiling" = yes || |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1737 | test -x conftest$ac_exeext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1738 | }; then : |
| 1739 | ac_retval=0 |
| 1740 | else |
| 1741 | $as_echo "$as_me: failed program was:" >&5 |
| 1742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1743 | |
| 1744 | ac_retval=1 |
| 1745 | fi |
| 1746 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1747 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1748 | # interfere with the next link command; also delete a directory that is |
| 1749 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1750 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1751 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1752 | as_fn_set_status $ac_retval |
| 1753 | |
| 1754 | } # ac_fn_c_try_link |
| 1755 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1756 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1757 | # ------------------------------------------------------- |
| 1758 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1759 | # the include files in INCLUDES and setting the cache variable VAR |
| 1760 | # accordingly. |
| 1761 | ac_fn_c_check_header_mongrel () |
| 1762 | { |
| 1763 | 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] | 1764 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1766 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1767 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1768 | $as_echo_n "(cached) " >&6 |
| 1769 | fi |
| 1770 | eval ac_res=\$$3 |
| 1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1772 | $as_echo "$ac_res" >&6; } |
| 1773 | else |
| 1774 | # Is the header compilable? |
| 1775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1776 | $as_echo_n "checking $2 usability... " >&6; } |
| 1777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1778 | /* end confdefs.h. */ |
| 1779 | $4 |
| 1780 | #include <$2> |
| 1781 | _ACEOF |
| 1782 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1783 | ac_header_compiler=yes |
| 1784 | else |
| 1785 | ac_header_compiler=no |
| 1786 | fi |
| 1787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1789 | $as_echo "$ac_header_compiler" >&6; } |
| 1790 | |
| 1791 | # Is the header present? |
| 1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1793 | $as_echo_n "checking $2 presence... " >&6; } |
| 1794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1795 | /* end confdefs.h. */ |
| 1796 | #include <$2> |
| 1797 | _ACEOF |
| 1798 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1799 | ac_header_preproc=yes |
| 1800 | else |
| 1801 | ac_header_preproc=no |
| 1802 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1803 | rm -f conftest.err conftest.i conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1805 | $as_echo "$ac_header_preproc" >&6; } |
| 1806 | |
| 1807 | # So? What about this header? |
| 1808 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1809 | yes:no: ) |
| 1810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1811 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1813 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1814 | ;; |
| 1815 | no:yes:* ) |
| 1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1817 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1819 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1821 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1823 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1825 | $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] | 1826 | ( $as_echo "## --------------------------------------- ## |
| 1827 | ## Report this to https://bugs.python.org/ ## |
| 1828 | ## --------------------------------------- ##" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1829 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1830 | ;; |
| 1831 | esac |
| 1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1833 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1834 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1835 | $as_echo_n "(cached) " >&6 |
| 1836 | else |
| 1837 | eval "$3=\$ac_header_compiler" |
| 1838 | fi |
| 1839 | eval ac_res=\$$3 |
| 1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1841 | $as_echo "$ac_res" >&6; } |
| 1842 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1843 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1844 | |
| 1845 | } # ac_fn_c_check_header_mongrel |
| 1846 | |
| 1847 | # ac_fn_c_try_run LINENO |
| 1848 | # ---------------------- |
| 1849 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1850 | # that executables *can* be run. |
| 1851 | ac_fn_c_try_run () |
| 1852 | { |
| 1853 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1854 | if { { ac_try="$ac_link" |
| 1855 | case "(($ac_try" in |
| 1856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1857 | *) ac_try_echo=$ac_try;; |
| 1858 | esac |
| 1859 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1860 | $as_echo "$ac_try_echo"; } >&5 |
| 1861 | (eval "$ac_link") 2>&5 |
| 1862 | ac_status=$? |
| 1863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1864 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1865 | { { case "(($ac_try" in |
| 1866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1867 | *) ac_try_echo=$ac_try;; |
| 1868 | esac |
| 1869 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1870 | $as_echo "$ac_try_echo"; } >&5 |
| 1871 | (eval "$ac_try") 2>&5 |
| 1872 | ac_status=$? |
| 1873 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1874 | test $ac_status = 0; }; }; then : |
| 1875 | ac_retval=0 |
| 1876 | else |
| 1877 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1878 | $as_echo "$as_me: failed program was:" >&5 |
| 1879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1880 | |
| 1881 | ac_retval=$ac_status |
| 1882 | fi |
| 1883 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1884 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1885 | as_fn_set_status $ac_retval |
| 1886 | |
| 1887 | } # ac_fn_c_try_run |
| 1888 | |
| 1889 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1890 | # ------------------------------------------------------- |
| 1891 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1892 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1893 | ac_fn_c_check_header_compile () |
| 1894 | { |
| 1895 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1897 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1898 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1899 | $as_echo_n "(cached) " >&6 |
| 1900 | else |
| 1901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1902 | /* end confdefs.h. */ |
| 1903 | $4 |
| 1904 | #include <$2> |
| 1905 | _ACEOF |
| 1906 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1907 | eval "$3=yes" |
| 1908 | else |
| 1909 | eval "$3=no" |
| 1910 | fi |
| 1911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1912 | fi |
| 1913 | eval ac_res=\$$3 |
| 1914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1915 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1916 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1917 | |
| 1918 | } # ac_fn_c_check_header_compile |
| 1919 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1920 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1921 | # ------------------------------------------- |
| 1922 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1923 | # variable VAR accordingly. |
| 1924 | ac_fn_c_check_type () |
| 1925 | { |
| 1926 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1928 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1929 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1930 | $as_echo_n "(cached) " >&6 |
| 1931 | else |
| 1932 | eval "$3=no" |
| 1933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1934 | /* end confdefs.h. */ |
| 1935 | $4 |
| 1936 | int |
| 1937 | main () |
| 1938 | { |
| 1939 | if (sizeof ($2)) |
| 1940 | return 0; |
| 1941 | ; |
| 1942 | return 0; |
| 1943 | } |
| 1944 | _ACEOF |
| 1945 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1947 | /* end confdefs.h. */ |
| 1948 | $4 |
| 1949 | int |
| 1950 | main () |
| 1951 | { |
| 1952 | if (sizeof (($2))) |
| 1953 | return 0; |
| 1954 | ; |
| 1955 | return 0; |
| 1956 | } |
| 1957 | _ACEOF |
| 1958 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1959 | |
| 1960 | else |
| 1961 | eval "$3=yes" |
| 1962 | fi |
| 1963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1964 | fi |
| 1965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1966 | fi |
| 1967 | eval ac_res=\$$3 |
| 1968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1969 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1970 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1971 | |
| 1972 | } # ac_fn_c_check_type |
| 1973 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1974 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1975 | # -------------------------------------------- |
| 1976 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1977 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1978 | # computed |
| 1979 | ac_fn_c_compute_int () |
| 1980 | { |
| 1981 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1982 | if test "$cross_compiling" = yes; then |
| 1983 | # Depending upon the size, compute the lo and hi bounds. |
| 1984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1985 | /* end confdefs.h. */ |
| 1986 | $4 |
| 1987 | int |
| 1988 | main () |
| 1989 | { |
| 1990 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1991 | test_array [0] = 0; |
| 1992 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1993 | |
| 1994 | ; |
| 1995 | return 0; |
| 1996 | } |
| 1997 | _ACEOF |
| 1998 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1999 | ac_lo=0 ac_mid=0 |
| 2000 | while :; do |
| 2001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2002 | /* end confdefs.h. */ |
| 2003 | $4 |
| 2004 | int |
| 2005 | main () |
| 2006 | { |
| 2007 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2008 | test_array [0] = 0; |
| 2009 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2010 | |
| 2011 | ; |
| 2012 | return 0; |
| 2013 | } |
| 2014 | _ACEOF |
| 2015 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2016 | ac_hi=$ac_mid; break |
| 2017 | else |
| 2018 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2019 | if test $ac_lo -le $ac_mid; then |
| 2020 | ac_lo= ac_hi= |
| 2021 | break |
| 2022 | fi |
| 2023 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2024 | fi |
| 2025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2026 | done |
| 2027 | else |
| 2028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2029 | /* end confdefs.h. */ |
| 2030 | $4 |
| 2031 | int |
| 2032 | main () |
| 2033 | { |
| 2034 | static int test_array [1 - 2 * !(($2) < 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2035 | test_array [0] = 0; |
| 2036 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2037 | |
| 2038 | ; |
| 2039 | return 0; |
| 2040 | } |
| 2041 | _ACEOF |
| 2042 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2043 | ac_hi=-1 ac_mid=-1 |
| 2044 | while :; do |
| 2045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2046 | /* end confdefs.h. */ |
| 2047 | $4 |
| 2048 | int |
| 2049 | main () |
| 2050 | { |
| 2051 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2052 | test_array [0] = 0; |
| 2053 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2054 | |
| 2055 | ; |
| 2056 | return 0; |
| 2057 | } |
| 2058 | _ACEOF |
| 2059 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2060 | ac_lo=$ac_mid; break |
| 2061 | else |
| 2062 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2063 | if test $ac_mid -le $ac_hi; then |
| 2064 | ac_lo= ac_hi= |
| 2065 | break |
| 2066 | fi |
| 2067 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2068 | fi |
| 2069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2070 | done |
| 2071 | else |
| 2072 | ac_lo= ac_hi= |
| 2073 | fi |
| 2074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2075 | fi |
| 2076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2077 | # Binary search between lo and hi bounds. |
| 2078 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2079 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2081 | /* end confdefs.h. */ |
| 2082 | $4 |
| 2083 | int |
| 2084 | main () |
| 2085 | { |
| 2086 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2087 | test_array [0] = 0; |
| 2088 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2089 | |
| 2090 | ; |
| 2091 | return 0; |
| 2092 | } |
| 2093 | _ACEOF |
| 2094 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2095 | ac_hi=$ac_mid |
| 2096 | else |
| 2097 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2098 | fi |
| 2099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2100 | done |
| 2101 | case $ac_lo in #(( |
| 2102 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2103 | '') ac_retval=1 ;; |
| 2104 | esac |
| 2105 | else |
| 2106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2107 | /* end confdefs.h. */ |
| 2108 | $4 |
| 2109 | static long int longval () { return $2; } |
| 2110 | static unsigned long int ulongval () { return $2; } |
| 2111 | #include <stdio.h> |
| 2112 | #include <stdlib.h> |
| 2113 | int |
| 2114 | main () |
| 2115 | { |
| 2116 | |
| 2117 | FILE *f = fopen ("conftest.val", "w"); |
| 2118 | if (! f) |
| 2119 | return 1; |
| 2120 | if (($2) < 0) |
| 2121 | { |
| 2122 | long int i = longval (); |
| 2123 | if (i != ($2)) |
| 2124 | return 1; |
| 2125 | fprintf (f, "%ld", i); |
| 2126 | } |
| 2127 | else |
| 2128 | { |
| 2129 | unsigned long int i = ulongval (); |
| 2130 | if (i != ($2)) |
| 2131 | return 1; |
| 2132 | fprintf (f, "%lu", i); |
| 2133 | } |
| 2134 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2135 | on some platforms. */ |
| 2136 | return ferror (f) || fclose (f) != 0; |
| 2137 | |
| 2138 | ; |
| 2139 | return 0; |
| 2140 | } |
| 2141 | _ACEOF |
| 2142 | if ac_fn_c_try_run "$LINENO"; then : |
| 2143 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2144 | else |
| 2145 | ac_retval=1 |
| 2146 | fi |
| 2147 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2148 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2149 | rm -f conftest.val |
| 2150 | |
| 2151 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2152 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2153 | as_fn_set_status $ac_retval |
| 2154 | |
| 2155 | } # ac_fn_c_compute_int |
| 2156 | |
| 2157 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2158 | # ---------------------------------- |
| 2159 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2160 | ac_fn_c_check_func () |
| 2161 | { |
| 2162 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2164 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2165 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2166 | $as_echo_n "(cached) " >&6 |
| 2167 | else |
| 2168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2169 | /* end confdefs.h. */ |
| 2170 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2171 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2172 | #define $2 innocuous_$2 |
| 2173 | |
| 2174 | /* System header to define __stub macros and hopefully few prototypes, |
| 2175 | which can conflict with char $2 (); below. |
| 2176 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2177 | <limits.h> exists even on freestanding compilers. */ |
| 2178 | |
| 2179 | #ifdef __STDC__ |
| 2180 | # include <limits.h> |
| 2181 | #else |
| 2182 | # include <assert.h> |
| 2183 | #endif |
| 2184 | |
| 2185 | #undef $2 |
| 2186 | |
| 2187 | /* Override any GCC internal prototype to avoid an error. |
| 2188 | Use char because int might match the return type of a GCC |
| 2189 | builtin and then its argument prototype would still apply. */ |
| 2190 | #ifdef __cplusplus |
| 2191 | extern "C" |
| 2192 | #endif |
| 2193 | char $2 (); |
| 2194 | /* The GNU C library defines this for functions which it implements |
| 2195 | to always fail with ENOSYS. Some functions are actually named |
| 2196 | something starting with __ and the normal name is an alias. */ |
| 2197 | #if defined __stub_$2 || defined __stub___$2 |
| 2198 | choke me |
| 2199 | #endif |
| 2200 | |
| 2201 | int |
| 2202 | main () |
| 2203 | { |
| 2204 | return $2 (); |
| 2205 | ; |
| 2206 | return 0; |
| 2207 | } |
| 2208 | _ACEOF |
| 2209 | if ac_fn_c_try_link "$LINENO"; then : |
| 2210 | eval "$3=yes" |
| 2211 | else |
| 2212 | eval "$3=no" |
| 2213 | fi |
| 2214 | rm -f core conftest.err conftest.$ac_objext \ |
| 2215 | conftest$ac_exeext conftest.$ac_ext |
| 2216 | fi |
| 2217 | eval ac_res=\$$3 |
| 2218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2219 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2220 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2221 | |
| 2222 | } # ac_fn_c_check_func |
| 2223 | |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2224 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2225 | # --------------------------------------------- |
| 2226 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2227 | # accordingly. |
| 2228 | ac_fn_c_check_decl () |
| 2229 | { |
| 2230 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2231 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2232 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2234 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2235 | if eval \${$3+:} false; then : |
| 2236 | $as_echo_n "(cached) " >&6 |
| 2237 | else |
| 2238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2239 | /* end confdefs.h. */ |
| 2240 | $4 |
| 2241 | int |
| 2242 | main () |
| 2243 | { |
| 2244 | #ifndef $as_decl_name |
| 2245 | #ifdef __cplusplus |
| 2246 | (void) $as_decl_use; |
| 2247 | #else |
| 2248 | (void) $as_decl_name; |
| 2249 | #endif |
| 2250 | #endif |
| 2251 | |
| 2252 | ; |
| 2253 | return 0; |
| 2254 | } |
| 2255 | _ACEOF |
| 2256 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2257 | eval "$3=yes" |
| 2258 | else |
| 2259 | eval "$3=no" |
| 2260 | fi |
| 2261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2262 | fi |
| 2263 | eval ac_res=\$$3 |
| 2264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2265 | $as_echo "$ac_res" >&6; } |
| 2266 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2267 | |
| 2268 | } # ac_fn_c_check_decl |
| 2269 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2270 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2271 | # ---------------------------------------------------- |
| 2272 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2273 | # INCLUDES, setting cache variable VAR accordingly. |
| 2274 | ac_fn_c_check_member () |
| 2275 | { |
| 2276 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2278 | $as_echo_n "checking for $2.$3... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2279 | if eval \${$4+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2280 | $as_echo_n "(cached) " >&6 |
| 2281 | else |
| 2282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2283 | /* end confdefs.h. */ |
| 2284 | $5 |
| 2285 | int |
| 2286 | main () |
| 2287 | { |
| 2288 | static $2 ac_aggr; |
| 2289 | if (ac_aggr.$3) |
| 2290 | return 0; |
| 2291 | ; |
| 2292 | return 0; |
| 2293 | } |
| 2294 | _ACEOF |
| 2295 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2296 | eval "$4=yes" |
| 2297 | else |
| 2298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2299 | /* end confdefs.h. */ |
| 2300 | $5 |
| 2301 | int |
| 2302 | main () |
| 2303 | { |
| 2304 | static $2 ac_aggr; |
| 2305 | if (sizeof ac_aggr.$3) |
| 2306 | return 0; |
| 2307 | ; |
| 2308 | return 0; |
| 2309 | } |
| 2310 | _ACEOF |
| 2311 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2312 | eval "$4=yes" |
| 2313 | else |
| 2314 | eval "$4=no" |
| 2315 | fi |
| 2316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2317 | fi |
| 2318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2319 | fi |
| 2320 | eval ac_res=\$$4 |
| 2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2322 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2323 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2324 | |
| 2325 | } # ac_fn_c_check_member |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2326 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2327 | This file contains any messages produced by compilers while |
| 2328 | running configure, to aid debugging if configure makes a mistake. |
| 2329 | |
Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 2330 | It was created by python $as_me 3.7, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2331 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2332 | |
| 2333 | $ $0 $@ |
| 2334 | |
| 2335 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2336 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2337 | { |
| 2338 | cat <<_ASUNAME |
| 2339 | ## --------- ## |
| 2340 | ## Platform. ## |
| 2341 | ## --------- ## |
| 2342 | |
| 2343 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2344 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2345 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2346 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2347 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2348 | |
| 2349 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2350 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2351 | |
| 2352 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2353 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2354 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2355 | /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] | 2356 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2357 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2358 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2359 | |
| 2360 | _ASUNAME |
| 2361 | |
| 2362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2363 | for as_dir in $PATH |
| 2364 | do |
| 2365 | IFS=$as_save_IFS |
| 2366 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2367 | $as_echo "PATH: $as_dir" |
| 2368 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2369 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2370 | |
| 2371 | } >&5 |
| 2372 | |
| 2373 | cat >&5 <<_ACEOF |
| 2374 | |
| 2375 | |
| 2376 | ## ----------- ## |
| 2377 | ## Core tests. ## |
| 2378 | ## ----------- ## |
| 2379 | |
| 2380 | _ACEOF |
| 2381 | |
| 2382 | |
| 2383 | # Keep a trace of the command line. |
| 2384 | # 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] | 2385 | # 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] | 2386 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2387 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2388 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2389 | ac_configure_args0= |
| 2390 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2391 | ac_must_keep_next=false |
| 2392 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2393 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2394 | for ac_arg |
| 2395 | do |
| 2396 | case $ac_arg in |
| 2397 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2398 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2399 | | -silent | --silent | --silen | --sile | --sil) |
| 2400 | continue ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2401 | *\'*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2402 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2403 | esac |
| 2404 | case $ac_pass in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2405 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2406 | 2) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2407 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2408 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2409 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2410 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2411 | case $ac_arg in |
| 2412 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2413 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2414 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2415 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2416 | case "$ac_configure_args0 " in |
| 2417 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2418 | esac |
| 2419 | ;; |
| 2420 | -* ) ac_must_keep_next=true ;; |
| 2421 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2422 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2423 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2424 | ;; |
| 2425 | esac |
| 2426 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2427 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2428 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2429 | { ac_configure_args1=; unset ac_configure_args1;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2430 | |
| 2431 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2432 | # config.log. We remove comments because anyway the quotes in there |
| 2433 | # would cause problems or look ugly. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2434 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2435 | # 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] | 2436 | trap 'exit_status=$? |
| 2437 | # Save into config.log some information that might help in debugging. |
| 2438 | { |
| 2439 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2440 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2441 | $as_echo "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2442 | ## Cache variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2443 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2444 | echo |
| 2445 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2446 | ( |
| 2447 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2448 | eval ac_val=\$$ac_var |
| 2449 | case $ac_val in #( |
| 2450 | *${as_nl}*) |
| 2451 | case $ac_var in #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2452 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2453 | $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] | 2454 | esac |
| 2455 | case $ac_var in #( |
| 2456 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2457 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2458 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2459 | esac ;; |
| 2460 | esac |
| 2461 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2462 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2463 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2464 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2465 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2466 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2467 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2468 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2469 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2470 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2471 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2472 | esac | |
| 2473 | sort |
| 2474 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2475 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2476 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2477 | $as_echo "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2478 | ## Output variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2479 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2480 | echo |
| 2481 | for ac_var in $ac_subst_vars |
| 2482 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2483 | eval ac_val=\$$ac_var |
| 2484 | case $ac_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2485 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2486 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2487 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2488 | done | sort |
| 2489 | echo |
| 2490 | |
| 2491 | if test -n "$ac_subst_files"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2492 | $as_echo "## ------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2493 | ## File substitutions. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2494 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2495 | echo |
| 2496 | for ac_var in $ac_subst_files |
| 2497 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2498 | eval ac_val=\$$ac_var |
| 2499 | case $ac_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2500 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2501 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2502 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2503 | done | sort |
| 2504 | echo |
| 2505 | fi |
| 2506 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2507 | if test -s confdefs.h; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2508 | $as_echo "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2509 | ## confdefs.h. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2510 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2511 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2512 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2513 | echo |
| 2514 | fi |
| 2515 | test "$ac_signal" != 0 && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2516 | $as_echo "$as_me: caught signal $ac_signal" |
| 2517 | $as_echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2518 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2519 | rm -f core *.core core.conftest.* && |
| 2520 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2521 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2522 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2523 | for ac_signal in 1 2 13 15; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2524 | 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] | 2525 | done |
| 2526 | ac_signal=0 |
| 2527 | |
| 2528 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2529 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2530 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2531 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2532 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2533 | # Predefined preprocessor variables. |
| 2534 | |
| 2535 | cat >>confdefs.h <<_ACEOF |
| 2536 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2537 | _ACEOF |
| 2538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2539 | cat >>confdefs.h <<_ACEOF |
| 2540 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2541 | _ACEOF |
| 2542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2543 | cat >>confdefs.h <<_ACEOF |
| 2544 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2545 | _ACEOF |
| 2546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2547 | cat >>confdefs.h <<_ACEOF |
| 2548 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2549 | _ACEOF |
| 2550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2551 | cat >>confdefs.h <<_ACEOF |
| 2552 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2553 | _ACEOF |
| 2554 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2555 | cat >>confdefs.h <<_ACEOF |
| 2556 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2557 | _ACEOF |
| 2558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2559 | |
| 2560 | # 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] | 2561 | # Prefer an explicitly selected file to automatically selected ones. |
| 2562 | ac_site_file1=NONE |
| 2563 | ac_site_file2=NONE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2564 | if test -n "$CONFIG_SITE"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2565 | # We do not want a PATH search for config.site. |
| 2566 | case $CONFIG_SITE in #(( |
| 2567 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2568 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2569 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2570 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2571 | elif test "x$prefix" != xNONE; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2572 | ac_site_file1=$prefix/share/config.site |
| 2573 | ac_site_file2=$prefix/etc/config.site |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2574 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2575 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2576 | ac_site_file2=$ac_default_prefix/etc/config.site |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2577 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2578 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2579 | do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2580 | test "x$ac_site_file" = xNONE && continue |
| 2581 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2583 | $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] | 2584 | sed 's/^/| /' "$ac_site_file" >&5 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2585 | . "$ac_site_file" \ |
| 2586 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2587 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2588 | as_fn_error $? "failed to load site script $ac_site_file |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2589 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2590 | fi |
| 2591 | done |
| 2592 | |
| 2593 | if test -r "$cache_file"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2594 | # Some versions of bash will fail to source /dev/null (special files |
| 2595 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2596 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2598 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2599 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2600 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2601 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2602 | esac |
| 2603 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2604 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2606 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2607 | >$cache_file |
| 2608 | fi |
| 2609 | |
| 2610 | # Check that the precious variables saved in the cache have kept the same |
| 2611 | # value. |
| 2612 | ac_cache_corrupted=false |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2613 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2615 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2616 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2617 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2618 | case $ac_old_set,$ac_new_set in |
| 2619 | set,) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2620 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2621 | $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] | 2622 | ac_cache_corrupted=: ;; |
| 2623 | ,set) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2625 | $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] | 2626 | ac_cache_corrupted=: ;; |
| 2627 | ,);; |
| 2628 | *) |
| 2629 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2630 | # differences in whitespace do not lead to failure. |
| 2631 | ac_old_val_w=`echo x $ac_old_val` |
| 2632 | ac_new_val_w=`echo x $ac_new_val` |
| 2633 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2635 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2636 | ac_cache_corrupted=: |
| 2637 | else |
| 2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2639 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2640 | eval $ac_var=\$ac_old_val |
| 2641 | fi |
| 2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2643 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2645 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2646 | fi;; |
| 2647 | esac |
| 2648 | # Pass precious variables to config.status. |
| 2649 | if test "$ac_new_set" = set; then |
| 2650 | case $ac_new_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2651 | *\'*) 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] | 2652 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2653 | esac |
| 2654 | case " $ac_configure_args " in |
| 2655 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2656 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2657 | esac |
| 2658 | fi |
| 2659 | done |
| 2660 | if $ac_cache_corrupted; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2662 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2664 | $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] | 2665 | 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] | 2666 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2667 | ## -------------------- ## |
| 2668 | ## Main body of script. ## |
| 2669 | ## -------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2670 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2671 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2672 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2676 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2677 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2678 | |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2679 | |
Martin Panter | c5ee3ca | 2016-09-12 01:32:03 +0000 | [diff] [blame] | 2680 | if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2681 | # If we're building out-of-tree, we need to make sure the following |
| 2682 | # resources get picked up before their $srcdir counterparts. |
| 2683 | # Objects/ -> typeslots.inc |
| 2684 | # Include/ -> Python-ast.h, graminit.h |
| 2685 | # Python/ -> importlib.h |
| 2686 | # (A side effect of this is that these resources will automatically be |
| 2687 | # regenerated when building out-of-tree, regardless of whether or not |
| 2688 | # the $srcdir counterpart is up-to-date. This is an acceptable trade |
| 2689 | # off.) |
| 2690 | BASECPPFLAGS="-IObjects -IInclude -IPython" |
| 2691 | else |
| 2692 | BASECPPFLAGS="" |
| 2693 | fi |
| 2694 | |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2695 | |
| 2696 | |
| 2697 | |
| 2698 | |
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 2699 | if test -e $srcdir/.git |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2700 | then |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2701 | # Extract the first word of "git", so it can be a program name with args. |
| 2702 | set dummy git; ac_word=$2 |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2704 | $as_echo_n "checking for $ac_word... " >&6; } |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2705 | if ${ac_cv_prog_HAS_GIT+:} false; then : |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2706 | $as_echo_n "(cached) " >&6 |
| 2707 | else |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2708 | if test -n "$HAS_GIT"; then |
| 2709 | 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] | 2710 | else |
| 2711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2712 | for as_dir in $PATH |
| 2713 | do |
| 2714 | IFS=$as_save_IFS |
| 2715 | test -z "$as_dir" && as_dir=. |
| 2716 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 2717 | 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] | 2718 | ac_cv_prog_HAS_GIT="found" |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2720 | break 2 |
| 2721 | fi |
| 2722 | done |
| 2723 | done |
| 2724 | IFS=$as_save_IFS |
| 2725 | |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2726 | 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] | 2727 | fi |
| 2728 | fi |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2729 | HAS_GIT=$ac_cv_prog_HAS_GIT |
| 2730 | if test -n "$HAS_GIT"; then |
| 2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 |
| 2732 | $as_echo "$HAS_GIT" >&6; } |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2733 | else |
| 2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2735 | $as_echo "no" >&6; } |
| 2736 | fi |
| 2737 | |
| 2738 | |
| 2739 | else |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2740 | HAS_GIT=no-repository |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2741 | fi |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2742 | if test $HAS_GIT = found |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2743 | then |
Ned Deily | 554626a | 2017-03-20 23:41:52 -0400 | [diff] [blame] | 2744 | GITVERSION="git -C \$(srcdir) rev-parse --short HEAD" |
| 2745 | GITTAG="git -C \$(srcdir) describe --all --always --dirty" |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2746 | GITBRANCH="git -C \$(srcdir) name-rev --name-only HEAD" |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2747 | else |
Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2748 | GITVERSION="" |
| 2749 | GITTAG="" |
| 2750 | GITBRANCH="" |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2751 | fi |
| 2752 | |
| 2753 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2754 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2755 | |
| 2756 | |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2757 | ac_aux_dir= |
| 2758 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2759 | if test -f "$ac_dir/install-sh"; then |
| 2760 | ac_aux_dir=$ac_dir |
| 2761 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2762 | break |
| 2763 | elif test -f "$ac_dir/install.sh"; then |
| 2764 | ac_aux_dir=$ac_dir |
| 2765 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2766 | break |
| 2767 | elif test -f "$ac_dir/shtool"; then |
| 2768 | ac_aux_dir=$ac_dir |
| 2769 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2770 | break |
| 2771 | fi |
| 2772 | done |
| 2773 | if test -z "$ac_aux_dir"; then |
| 2774 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2775 | fi |
| 2776 | |
| 2777 | # These three variables are undocumented and unsupported, |
| 2778 | # and are intended to be withdrawn in a future Autoconf release. |
| 2779 | # They can cause serious problems if a builder's source tree is in a directory |
| 2780 | # whose full name contains unusual characters. |
| 2781 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2782 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2783 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2784 | |
| 2785 | |
| 2786 | # Make sure we can run config.sub. |
| 2787 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2788 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 2789 | |
| 2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2791 | $as_echo_n "checking build system type... " >&6; } |
| 2792 | if ${ac_cv_build+:} false; then : |
| 2793 | $as_echo_n "(cached) " >&6 |
| 2794 | else |
| 2795 | ac_build_alias=$build_alias |
| 2796 | test "x$ac_build_alias" = x && |
| 2797 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2798 | test "x$ac_build_alias" = x && |
| 2799 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 2800 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2801 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 2802 | |
| 2803 | fi |
| 2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2805 | $as_echo "$ac_cv_build" >&6; } |
| 2806 | case $ac_cv_build in |
| 2807 | *-*-*) ;; |
| 2808 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 2809 | esac |
| 2810 | build=$ac_cv_build |
| 2811 | ac_save_IFS=$IFS; IFS='-' |
| 2812 | set x $ac_cv_build |
| 2813 | shift |
| 2814 | build_cpu=$1 |
| 2815 | build_vendor=$2 |
| 2816 | shift; shift |
| 2817 | # Remember, the first character of IFS is used to create $*, |
| 2818 | # except with old shells: |
| 2819 | build_os=$* |
| 2820 | IFS=$ac_save_IFS |
| 2821 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2822 | |
| 2823 | |
| 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2825 | $as_echo_n "checking host system type... " >&6; } |
| 2826 | if ${ac_cv_host+:} false; then : |
| 2827 | $as_echo_n "(cached) " >&6 |
| 2828 | else |
| 2829 | if test "x$host_alias" = x; then |
| 2830 | ac_cv_host=$ac_cv_build |
| 2831 | else |
| 2832 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2833 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 2834 | fi |
| 2835 | |
| 2836 | fi |
| 2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2838 | $as_echo "$ac_cv_host" >&6; } |
| 2839 | case $ac_cv_host in |
| 2840 | *-*-*) ;; |
| 2841 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 2842 | esac |
| 2843 | host=$ac_cv_host |
| 2844 | ac_save_IFS=$IFS; IFS='-' |
| 2845 | set x $ac_cv_host |
| 2846 | shift |
| 2847 | host_cpu=$1 |
| 2848 | host_vendor=$2 |
| 2849 | shift; shift |
| 2850 | # Remember, the first character of IFS is used to create $*, |
| 2851 | # except with old shells: |
| 2852 | host_os=$* |
| 2853 | IFS=$ac_save_IFS |
| 2854 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2855 | |
| 2856 | |
| 2857 | |
doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 2858 | |
| 2859 | |
Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 2860 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile |
| 2861 | rm -f pybuilddir.txt |
| 2862 | |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2863 | for ac_prog in python$PACKAGE_VERSION python3 python |
| 2864 | do |
| 2865 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2866 | set dummy $ac_prog; ac_word=$2 |
| 2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2868 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2869 | if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then : |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2870 | $as_echo_n "(cached) " >&6 |
| 2871 | else |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2872 | if test -n "$PYTHON_FOR_REGEN"; then |
| 2873 | 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] | 2874 | else |
| 2875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2876 | for as_dir in $PATH |
| 2877 | do |
| 2878 | IFS=$as_save_IFS |
| 2879 | test -z "$as_dir" && as_dir=. |
| 2880 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2881 | 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] | 2882 | ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2884 | break 2 |
| 2885 | fi |
| 2886 | done |
| 2887 | done |
| 2888 | IFS=$as_save_IFS |
| 2889 | |
| 2890 | fi |
| 2891 | fi |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2892 | PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN |
| 2893 | if test -n "$PYTHON_FOR_REGEN"; then |
| 2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 |
| 2895 | $as_echo "$PYTHON_FOR_REGEN" >&6; } |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2896 | else |
| 2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2898 | $as_echo "no" >&6; } |
| 2899 | fi |
| 2900 | |
| 2901 | |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2902 | test -n "$PYTHON_FOR_REGEN" && break |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2903 | done |
Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2904 | test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2905 | |
Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2906 | |
| 2907 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2908 | if test "$cross_compiling" = yes; then |
| 2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 |
| 2910 | $as_echo_n "checking for python interpreter for cross build... " >&6; } |
| 2911 | if test -z "$PYTHON_FOR_BUILD"; then |
| 2912 | for interp in python$PACKAGE_VERSION python3 python; do |
| 2913 | which $interp >/dev/null 2>&1 || continue |
Xavier de Gaye | 4afd143 | 2016-07-07 18:00:22 +0200 | [diff] [blame] | 2914 | 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] | 2915 | break |
| 2916 | fi |
| 2917 | interp= |
| 2918 | done |
| 2919 | if test x$interp = x; then |
| 2920 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 |
| 2921 | fi |
| 2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 |
| 2923 | $as_echo "$interp" >&6; } |
Xavier de Gaye | 92dec54 | 2016-09-11 22:22:24 +0200 | [diff] [blame] | 2924 | 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] | 2925 | fi |
Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 2926 | elif test "$cross_compiling" = maybe; then |
| 2927 | 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] | 2928 | else |
| 2929 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' |
| 2930 | fi |
| 2931 | |
| 2932 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2933 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2934 | if test "$prefix" != "/"; then |
| 2935 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 2936 | fi |
| 2937 | |
| 2938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2939 | |
| 2940 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2941 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 2942 | # with other autoconf-based packages that include Python.h |
| 2943 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 2944 | rm confdefs.h |
| 2945 | mv confdefs.h.new confdefs.h |
| 2946 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2947 | |
Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 2948 | VERSION=3.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2949 | |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 2950 | # Version number of Python's own shared library file. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2951 | |
| 2952 | SOVERSION=1.0 |
| 2953 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2954 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 2955 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 2956 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2957 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2958 | |
| 2959 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2960 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2961 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 2962 | # them. |
| 2963 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2964 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2965 | |
| 2966 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2967 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2968 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 2969 | # them. |
| 2970 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2971 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2972 | |
| 2973 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2974 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2975 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 2976 | # them. |
| 2977 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2978 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2979 | |
| 2980 | |
| 2981 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2982 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2983 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2984 | # Arguments passed to configure. |
| 2985 | |
| 2986 | CONFIG_ARGS="$ac_configure_args" |
| 2987 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
| 2989 | $as_echo_n "checking for --enable-universalsdk... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2990 | # Check whether --enable-universalsdk was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2991 | if test "${enable_universalsdk+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2992 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2993 | case $enableval in |
| 2994 | yes) |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 2995 | # Locate the best usable SDK, see Mac/README.txt for more |
| 2996 | # information |
| 2997 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 2998 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 2999 | then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3000 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 3001 | if test ! -d "${enableval}" |
| 3002 | then |
| 3003 | enableval=/ |
| 3004 | fi |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3005 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3006 | ;; |
| 3007 | esac |
| 3008 | case $enableval in |
| 3009 | no) |
| 3010 | UNIVERSALSDK= |
| 3011 | enable_universalsdk= |
| 3012 | ;; |
| 3013 | *) |
| 3014 | UNIVERSALSDK=$enableval |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3015 | if test ! -d "${UNIVERSALSDK}" |
| 3016 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3017 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3018 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3019 | ;; |
| 3020 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3021 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3022 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3023 | else |
| 3024 | |
| 3025 | UNIVERSALSDK= |
| 3026 | enable_universalsdk= |
| 3027 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3028 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3029 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3030 | if test -n "${UNIVERSALSDK}" |
| 3031 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
| 3033 | $as_echo "${UNIVERSALSDK}" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3034 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3036 | $as_echo "no" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3037 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3038 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3039 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3040 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3041 | ARCH_RUN_32BIT="" |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3042 | |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3043 | # For backward compatibility reasons we prefer to select '32-bit' if available, |
| 3044 | # otherwise use 'intel' |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3045 | UNIVERSAL_ARCHS="32-bit" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3046 | if test "`uname -s`" = "Darwin" |
| 3047 | then |
| 3048 | if test -n "${UNIVERSALSDK}" |
| 3049 | then |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3050 | 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] | 3051 | then |
| 3052 | UNIVERSAL_ARCHS="intel" |
| 3053 | fi |
| 3054 | fi |
| 3055 | fi |
| 3056 | |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3057 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
| 3059 | $as_echo_n "checking for --with-universal-archs... " >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3060 | |
| 3061 | # Check whether --with-universal-archs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3062 | if test "${with_universal_archs+set}" = set; then : |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3063 | withval=$with_universal_archs; |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3064 | UNIVERSAL_ARCHS="$withval" |
| 3065 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3066 | fi |
| 3067 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3068 | if test -n "${UNIVERSALSDK}" |
| 3069 | then |
| 3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 |
| 3071 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } |
| 3072 | else |
| 3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3074 | $as_echo "no" >&6; } |
| 3075 | fi |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3076 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3077 | |
| 3078 | # Check whether --with-framework-name was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3079 | if test "${with_framework_name+set}" = set; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3080 | withval=$with_framework_name; |
| 3081 | PYTHONFRAMEWORK=${withval} |
| 3082 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 3083 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 3084 | |
| 3085 | else |
| 3086 | |
| 3087 | PYTHONFRAMEWORK=Python |
| 3088 | PYTHONFRAMEWORKDIR=Python.framework |
| 3089 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 3090 | |
| 3091 | fi |
| 3092 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3093 | # Check whether --enable-framework was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3094 | if test "${enable_framework+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3095 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3096 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3097 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3098 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3099 | esac |
| 3100 | case $enableval in |
| 3101 | no) |
| 3102 | PYTHONFRAMEWORK= |
| 3103 | PYTHONFRAMEWORKDIR=no-framework |
| 3104 | PYTHONFRAMEWORKPREFIX= |
| 3105 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3106 | FRAMEWORKINSTALLFIRST= |
| 3107 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3108 | FRAMEWORKALTINSTALLFIRST= |
| 3109 | FRAMEWORKALTINSTALLLAST= |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3110 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3111 | if test "x${prefix}" = "xNONE"; then |
| 3112 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 3113 | else |
| 3114 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3115 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3116 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3117 | ;; |
| 3118 | *) |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3119 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3120 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3121 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3122 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3123 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 3124 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3125 | FRAMEWORKPYTHONW="frameworkpythonw" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3126 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3127 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3128 | if test "x${prefix}" = "xNONE" ; then |
| 3129 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3130 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3131 | else |
| 3132 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3133 | fi |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3134 | |
| 3135 | case "${enableval}" in |
| 3136 | /System*) |
| 3137 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3138 | if test "${prefix}" = "NONE" ; then |
| 3139 | # See below |
| 3140 | FRAMEWORKUNIXTOOLSPREFIX="/usr" |
| 3141 | fi |
| 3142 | ;; |
| 3143 | |
| 3144 | /Library*) |
| 3145 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3146 | ;; |
| 3147 | |
| 3148 | */Library/Frameworks) |
| 3149 | MDIR="`dirname "${enableval}"`" |
| 3150 | MDIR="`dirname "${MDIR}"`" |
| 3151 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" |
| 3152 | |
| 3153 | if test "${prefix}" = "NONE"; then |
| 3154 | # User hasn't specified the |
| 3155 | # --prefix option, but wants to install |
| 3156 | # the framework in a non-default location, |
| 3157 | # ensure that the compatibility links get |
| 3158 | # installed relative to that prefix as well |
| 3159 | # instead of in /usr/local. |
| 3160 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" |
| 3161 | fi |
| 3162 | ;; |
| 3163 | |
| 3164 | *) |
| 3165 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3166 | ;; |
| 3167 | esac |
| 3168 | |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3169 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3170 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3171 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3172 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3173 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3174 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3175 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3176 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3177 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 3178 | |
| 3179 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 3180 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3181 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3182 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3183 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3184 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3185 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3186 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3187 | PYTHONFRAMEWORKPREFIX= |
| 3188 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3189 | FRAMEWORKINSTALLFIRST= |
| 3190 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3191 | FRAMEWORKALTINSTALLFIRST= |
| 3192 | FRAMEWORKALTINSTALLLAST= |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3193 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3194 | if test "x${prefix}" = "xNONE" ; then |
| 3195 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 3196 | else |
| 3197 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3198 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3199 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3200 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3201 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3202 | fi |
| 3203 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3204 | |
| 3205 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3206 | |
| 3207 | |
| 3208 | |
| 3209 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3210 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3211 | |
| 3212 | |
| 3213 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3214 | |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3215 | |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3216 | |
INADA Naoki | a8f8d5b | 2017-06-29 00:31:53 +0900 | [diff] [blame] | 3217 | |
| 3218 | cat >>confdefs.h <<_ACEOF |
INADA Naoki | 6b42eb1 | 2017-06-29 15:31:38 +0900 | [diff] [blame] | 3219 | #define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}" |
INADA Naoki | a8f8d5b | 2017-06-29 00:31:53 +0900 | [diff] [blame] | 3220 | _ACEOF |
| 3221 | |
| 3222 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3223 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3224 | ## AS_HELP_STRING([--with-dyld], |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3225 | ## [Use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3226 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3227 | # Set name for machine-dependent library files |
| 3228 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
| 3230 | $as_echo_n "checking MACHDEP... " >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3231 | if test -z "$MACHDEP" |
| 3232 | then |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3233 | # avoid using uname for cross builds |
| 3234 | if test "$cross_compiling" = yes; then |
doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3235 | # ac_sys_system and ac_sys_release are used for setting |
| 3236 | # a lot of different things including 'define_xopen_source' |
| 3237 | # in the case statement below. |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3238 | case "$host" in |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 3239 | *-*-linux-android*) |
| 3240 | ac_sys_system=Linux-android |
| 3241 | ;; |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3242 | *-*-linux*) |
| 3243 | ac_sys_system=Linux |
| 3244 | ;; |
| 3245 | *-*-cygwin*) |
| 3246 | ac_sys_system=Cygwin |
| 3247 | ;; |
| 3248 | *) |
| 3249 | # for now, limit cross builds to known configurations |
| 3250 | MACHDEP="unknown" |
| 3251 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 |
| 3252 | esac |
| 3253 | ac_sys_release= |
| 3254 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3255 | ac_sys_system=`uname -s` |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3256 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3257 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3258 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3259 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3260 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3261 | fi |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3262 | fi |
| 3263 | ac_md_system=`echo $ac_sys_system | |
| 3264 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 3265 | ac_md_release=`echo $ac_sys_release | |
| 3266 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
| 3267 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3268 | |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3269 | case $MACHDEP in |
Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3270 | linux*) MACHDEP="linux";; |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3271 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3272 | darwin*) MACHDEP="darwin";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3273 | '') MACHDEP="unknown";; |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3274 | esac |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3275 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3276 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3277 | |
| 3278 | if test "$cross_compiling" = yes; then |
| 3279 | case "$host" in |
| 3280 | *-*-linux*) |
| 3281 | case "$host_cpu" in |
| 3282 | arm*) |
| 3283 | _host_cpu=arm |
| 3284 | ;; |
| 3285 | *) |
| 3286 | _host_cpu=$host_cpu |
| 3287 | esac |
| 3288 | ;; |
| 3289 | *-*-cygwin*) |
| 3290 | _host_cpu= |
| 3291 | ;; |
| 3292 | *) |
| 3293 | # for now, limit cross builds to known configurations |
| 3294 | MACHDEP="unknown" |
| 3295 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 |
| 3296 | esac |
| 3297 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" |
| 3298 | fi |
| 3299 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3300 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 3301 | # disable features if it is defined, without any means to access these |
| 3302 | # features as extensions. For these systems, we skip the definition of |
| 3303 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 3304 | # some feature, make sure there is no alternative way to access this |
| 3305 | # feature. Also, when using wildcards, make sure you have verified the |
| 3306 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 3307 | # wildcard, and that the wildcard does not include future systems |
| 3308 | # (which may remove their limitations). |
| 3309 | case $ac_sys_system/$ac_sys_release in |
| 3310 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 3311 | # 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] | 3312 | # 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] | 3313 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
| 3314 | # OpenBSD 4.6, but is fixed in 4.7. |
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3315 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3316 | define_xopen_source=no |
| 3317 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3318 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3319 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3320 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3321 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3322 | |
| 3323 | ;; |
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3324 | OpenBSD/*) |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 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 |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3330 | |
| 3331 | ;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3332 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 3333 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 3334 | # Marc Recht |
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3335 | 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] | 3336 | define_xopen_source=no;; |
Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3337 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a |
| 3338 | # request to enable features supported by the standard as a request |
| 3339 | # to disable features not supported by the standard. The best way |
| 3340 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out |
| 3341 | # entirely and define __EXTENSIONS__ instead. |
| 3342 | SunOS/*) |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3343 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3344 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 3345 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3346 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3347 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3348 | define_xopen_source=no;; |
| 3349 | # 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] | 3350 | # 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] | 3351 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3352 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3353 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 3354 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 3355 | FreeBSD/4.*) |
| 3356 | define_xopen_source=no;; |
| 3357 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 3358 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 3359 | # identifies itself as Darwin/7.* |
| 3360 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3361 | # disables platform specific features beyond repair. |
| 3362 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3363 | # has no effect, don't bother defining them |
| 3364 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3365 | define_xopen_source=no;; |
Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3366 | Darwin/1[0-9].*) |
Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3367 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3368 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 3369 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 3370 | # 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] | 3371 | AIX/4) |
| 3372 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3373 | AIX/5) |
| 3374 | if test `uname -r` -eq 1; then |
| 3375 | define_xopen_source=no |
| 3376 | fi |
| 3377 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3378 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 3379 | # defining NI_NUMERICHOST. |
| 3380 | QNX/6.3.2) |
| 3381 | define_xopen_source=no |
| 3382 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3383 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3384 | esac |
| 3385 | |
| 3386 | if test $define_xopen_source = yes |
| 3387 | then |
Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3388 | # X/Open 7, incorporating POSIX.1-2008 |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3389 | |
Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3390 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3391 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3392 | |
| 3393 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 3394 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 3395 | # several APIs are not declared. Since this is also needed in some |
| 3396 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3397 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3398 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3399 | |
| 3400 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3401 | |
Victor Stinner | d169fdc | 2011-09-08 00:56:17 +0200 | [diff] [blame] | 3402 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3403 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3404 | fi |
| 3405 | |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3406 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE |
| 3407 | case $ac_sys_system in |
Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3408 | hp*|HP*) |
| 3409 | define_stdc_a1=yes;; |
| 3410 | *) |
| 3411 | define_stdc_a1=no;; |
| 3412 | esac |
| 3413 | |
| 3414 | if test $define_stdc_a1 = yes |
| 3415 | then |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3416 | |
| 3417 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h |
| 3418 | |
Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3419 | fi |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3420 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3421 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 3422 | # it may influence the way we can build extensions, so distutils |
| 3423 | # needs to check it |
| 3424 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3425 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3426 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3427 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3428 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3429 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3430 | |
| 3431 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 3432 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 3433 | # just to get things to compile and link. Users are free to override OPT |
| 3434 | # when running configure or make. The build should not break if they do. |
| 3435 | # BASECFLAGS should generally not be messed with, however. |
| 3436 | |
| 3437 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 3438 | # on that fiddles with OPT and BASECFLAGS? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 |
| 3440 | $as_echo_n "checking for --without-gcc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3441 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3442 | # Check whether --with-gcc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3443 | if test "${with_gcc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3444 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3445 | case $withval in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3446 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3447 | without_gcc=yes;; |
| 3448 | yes) CC=gcc |
| 3449 | without_gcc=no;; |
| 3450 | *) CC=$withval |
| 3451 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3452 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3453 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3454 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3455 | case $ac_sys_system in |
Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3456 | AIX*) CC=${CC:-xlc_r} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3457 | without_gcc=;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3458 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3459 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3460 | fi |
| 3461 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 |
| 3463 | $as_echo "$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3464 | |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 |
| 3466 | $as_echo_n "checking for --with-icc... " >&6; } |
| 3467 | |
| 3468 | # Check whether --with-icc was given. |
| 3469 | if test "${with_icc+set}" = set; then : |
| 3470 | withval=$with_icc; |
| 3471 | case $withval in |
| 3472 | no) CC=${CC:-cc} |
| 3473 | with_icc=no;; |
| 3474 | yes) CC=icc |
| 3475 | CXX=icpc |
| 3476 | with_icc=yes;; |
| 3477 | *) CC=$withval |
| 3478 | with_icc=$withval;; |
| 3479 | esac |
| 3480 | else |
| 3481 | |
| 3482 | with_icc=no |
| 3483 | fi |
| 3484 | |
| 3485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 |
| 3486 | $as_echo "$with_icc" >&6; } |
| 3487 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3488 | # If the user switches compilers, we can't believe the cache |
| 3489 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 3490 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3491 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3492 | (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] | 3493 | fi |
| 3494 | |
Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3495 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 |
| 3496 | # when the compiler supports them, but we don't always want -O2, and |
| 3497 | # we set -g later. |
| 3498 | if test -z "$CFLAGS"; then |
| 3499 | CFLAGS= |
| 3500 | fi |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3501 | |
| 3502 | if test "$ac_sys_system" = "Darwin" |
| 3503 | then |
| 3504 | # Compiler selection on MacOSX is more complicated than |
| 3505 | # AC_PROG_CC can handle, see Mac/README.txt for more |
| 3506 | # information |
| 3507 | if test -z "${CC}" |
| 3508 | then |
| 3509 | found_gcc= |
| 3510 | found_clang= |
| 3511 | as_save_IFS=$IFS; IFS=: |
| 3512 | for as_dir in $PATH |
| 3513 | do |
| 3514 | IFS=$as_save_IFS |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3515 | if test -x "${as_dir}/gcc"; then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3516 | if test -z "${found_gcc}"; then |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3517 | found_gcc="${as_dir}/gcc" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3518 | fi |
| 3519 | fi |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3520 | if test -x "${as_dir}/clang"; then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3521 | if test -z "${found_clang}"; then |
Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3522 | found_clang="${as_dir}/clang" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3523 | fi |
| 3524 | fi |
| 3525 | done |
| 3526 | IFS=$as_save_IFS |
| 3527 | |
| 3528 | if test -n "$found_gcc" -a -n "$found_clang" |
| 3529 | then |
| 3530 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" |
| 3531 | then |
| 3532 | { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 |
| 3533 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} |
| 3534 | CC="$found_clang" |
| 3535 | CXX="$found_clang++" |
| 3536 | fi |
| 3537 | |
| 3538 | |
| 3539 | elif test -z "$found_gcc" -a -n "$found_clang" |
| 3540 | then |
| 3541 | { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 |
| 3542 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} |
| 3543 | CC="$found_clang" |
| 3544 | CXX="$found_clang++" |
| 3545 | |
| 3546 | elif test -z "$found_gcc" -a -z "$found_clang" |
| 3547 | then |
| 3548 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` |
| 3549 | if test -n "${found_clang}" |
| 3550 | then |
| 3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 |
| 3552 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} |
| 3553 | CC="${found_clang}" |
| 3554 | CXX="`/usr/bin/xcrun -find clang++`" |
| 3555 | |
| 3556 | # else: use default behaviour |
| 3557 | fi |
| 3558 | fi |
| 3559 | fi |
| 3560 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3561 | ac_ext=c |
| 3562 | ac_cpp='$CPP $CPPFLAGS' |
| 3563 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3564 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3565 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3566 | if test -n "$ac_tool_prefix"; then |
| 3567 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3568 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3570 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3571 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3572 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3573 | else |
| 3574 | if test -n "$CC"; then |
| 3575 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3576 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3578 | for as_dir in $PATH |
| 3579 | do |
| 3580 | IFS=$as_save_IFS |
| 3581 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3582 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3583 | 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] | 3584 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3585 | $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] | 3586 | break 2 |
| 3587 | fi |
| 3588 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3589 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3590 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3591 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3592 | fi |
| 3593 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3594 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3595 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3597 | $as_echo "$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3598 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3600 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3601 | fi |
| 3602 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3603 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3604 | fi |
| 3605 | if test -z "$ac_cv_prog_CC"; then |
| 3606 | ac_ct_CC=$CC |
| 3607 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3608 | set dummy gcc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3610 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3611 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3612 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3613 | else |
| 3614 | if test -n "$ac_ct_CC"; then |
| 3615 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3616 | else |
| 3617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3618 | for as_dir in $PATH |
| 3619 | do |
| 3620 | IFS=$as_save_IFS |
| 3621 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3622 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3623 | 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] | 3624 | ac_cv_prog_ac_ct_CC="gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3625 | $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] | 3626 | break 2 |
| 3627 | fi |
| 3628 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3629 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3630 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3631 | |
| 3632 | fi |
| 3633 | fi |
| 3634 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3635 | if test -n "$ac_ct_CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3637 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3638 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3640 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3641 | fi |
| 3642 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3643 | if test "x$ac_ct_CC" = x; then |
| 3644 | CC="" |
| 3645 | else |
| 3646 | case $cross_compiling:$ac_tool_warned in |
| 3647 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3649 | $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] | 3650 | ac_tool_warned=yes ;; |
| 3651 | esac |
| 3652 | CC=$ac_ct_CC |
| 3653 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3654 | else |
| 3655 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3656 | fi |
| 3657 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3658 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3659 | if test -n "$ac_tool_prefix"; then |
| 3660 | # 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] | 3661 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3663 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3664 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3665 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3666 | else |
| 3667 | if test -n "$CC"; then |
| 3668 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3669 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3671 | for as_dir in $PATH |
| 3672 | do |
| 3673 | IFS=$as_save_IFS |
| 3674 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3675 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3676 | 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] | 3677 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3678 | $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] | 3679 | break 2 |
| 3680 | fi |
| 3681 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3682 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3683 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3684 | |
| 3685 | fi |
| 3686 | fi |
| 3687 | CC=$ac_cv_prog_CC |
| 3688 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3690 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3691 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3693 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3694 | fi |
| 3695 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3697 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3698 | fi |
| 3699 | if test -z "$CC"; then |
| 3700 | # Extract the first word of "cc", so it can be a program name with args. |
| 3701 | set dummy cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3703 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3704 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3705 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3706 | else |
| 3707 | if test -n "$CC"; then |
| 3708 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3709 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3710 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3712 | for as_dir in $PATH |
| 3713 | do |
| 3714 | IFS=$as_save_IFS |
| 3715 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3716 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3717 | 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] | 3718 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3719 | ac_prog_rejected=yes |
| 3720 | continue |
| 3721 | fi |
| 3722 | ac_cv_prog_CC="cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3723 | $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] | 3724 | break 2 |
| 3725 | fi |
| 3726 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3727 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3728 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3730 | if test $ac_prog_rejected = yes; then |
| 3731 | # We found a bogon in the path, so make sure we never use it. |
| 3732 | set dummy $ac_cv_prog_CC |
| 3733 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3734 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3735 | # We chose a different compiler from the bogus one. |
| 3736 | # However, it has the same basename, so the bogon will be chosen |
| 3737 | # first if we set CC to just the basename; use the full file name. |
| 3738 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3739 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3740 | fi |
| 3741 | fi |
| 3742 | fi |
| 3743 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3744 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3745 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3747 | $as_echo "$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3748 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3750 | $as_echo "no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3751 | fi |
| 3752 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3754 | fi |
| 3755 | if test -z "$CC"; then |
| 3756 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3757 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3758 | do |
| 3759 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3760 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3762 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3763 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3764 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3765 | else |
| 3766 | if test -n "$CC"; then |
| 3767 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3768 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3770 | for as_dir in $PATH |
| 3771 | do |
| 3772 | IFS=$as_save_IFS |
| 3773 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3774 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3775 | 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] | 3776 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3777 | $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] | 3778 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3779 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3780 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3781 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3782 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3783 | |
| 3784 | fi |
| 3785 | fi |
| 3786 | CC=$ac_cv_prog_CC |
| 3787 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3789 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3790 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3792 | $as_echo "no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3793 | fi |
| 3794 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3796 | test -n "$CC" && break |
| 3797 | done |
| 3798 | fi |
| 3799 | if test -z "$CC"; then |
| 3800 | ac_ct_CC=$CC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3801 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3802 | do |
| 3803 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3804 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3806 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3807 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3808 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3809 | else |
| 3810 | if test -n "$ac_ct_CC"; then |
| 3811 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3812 | else |
| 3813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3814 | for as_dir in $PATH |
| 3815 | do |
| 3816 | IFS=$as_save_IFS |
| 3817 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3818 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3819 | 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] | 3820 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3821 | $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] | 3822 | break 2 |
| 3823 | fi |
| 3824 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3825 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3826 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3828 | fi |
| 3829 | fi |
| 3830 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3831 | if test -n "$ac_ct_CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3833 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3834 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3836 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3837 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3838 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3840 | test -n "$ac_ct_CC" && break |
| 3841 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3842 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3843 | if test "x$ac_ct_CC" = x; then |
| 3844 | CC="" |
| 3845 | else |
| 3846 | case $cross_compiling:$ac_tool_warned in |
| 3847 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3849 | $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] | 3850 | ac_tool_warned=yes ;; |
| 3851 | esac |
| 3852 | CC=$ac_ct_CC |
| 3853 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3854 | fi |
| 3855 | |
| 3856 | fi |
| 3857 | |
| 3858 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3859 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3860 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3861 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3862 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3863 | |
| 3864 | # Provide some information about the compiler. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3865 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3866 | set X $ac_compile |
| 3867 | ac_compiler=$2 |
| 3868 | for ac_option in --version -v -V -qversion; do |
| 3869 | { { ac_try="$ac_compiler $ac_option >&5" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3870 | case "(($ac_try" in |
| 3871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3872 | *) ac_try_echo=$ac_try;; |
| 3873 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3874 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3875 | $as_echo "$ac_try_echo"; } >&5 |
| 3876 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3877 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3878 | if test -s conftest.err; then |
| 3879 | sed '10a\ |
| 3880 | ... rest of stderr output deleted ... |
| 3881 | 10q' conftest.err >conftest.er1 |
| 3882 | cat conftest.er1 >&5 |
| 3883 | fi |
| 3884 | rm -f conftest.er1 conftest.err |
| 3885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3886 | test $ac_status = 0; } |
| 3887 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3888 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3890 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3892 | int |
| 3893 | main () |
| 3894 | { |
| 3895 | |
| 3896 | ; |
| 3897 | return 0; |
| 3898 | } |
| 3899 | _ACEOF |
| 3900 | ac_clean_files_save=$ac_clean_files |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3901 | 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] | 3902 | # Try to create an executable without -o first, disregard a.out. |
| 3903 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3904 | # of exeext. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3906 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3907 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3908 | |
| 3909 | # The possible output files: |
| 3910 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3911 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3912 | ac_rmfiles= |
| 3913 | for ac_file in $ac_files |
| 3914 | do |
| 3915 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3916 | *.$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] | 3917 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3918 | esac |
| 3919 | done |
| 3920 | rm -f $ac_rmfiles |
| 3921 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3922 | if { { ac_try="$ac_link_default" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3923 | case "(($ac_try" in |
| 3924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3925 | *) ac_try_echo=$ac_try;; |
| 3926 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3927 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3928 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3929 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3930 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3932 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3933 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3934 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3935 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3936 | # so that the user can short-circuit this test for compilers unknown to |
| 3937 | # Autoconf. |
| 3938 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3939 | do |
| 3940 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3941 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3942 | *.$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] | 3943 | ;; |
| 3944 | [ab].out ) |
| 3945 | # We found the default executable, but exeext='' is most |
| 3946 | # certainly right. |
| 3947 | break;; |
| 3948 | *.* ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3949 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3950 | then :; else |
| 3951 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3952 | fi |
| 3953 | # We set ac_cv_exeext here because the later test for it is not |
| 3954 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3955 | # argument, so we may need to know it at that point already. |
| 3956 | # Even if this section looks crufty: it has the advantage of |
| 3957 | # actually working. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3958 | break;; |
| 3959 | * ) |
| 3960 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3961 | esac |
| 3962 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3963 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3964 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3965 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3966 | ac_file='' |
| 3967 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3968 | if test -z "$ac_file"; then : |
| 3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3970 | $as_echo "no" >&6; } |
| 3971 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3973 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3974 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3975 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3976 | as_fn_error 77 "C compiler cannot create executables |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3977 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3978 | else |
| 3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3980 | $as_echo "yes" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3981 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3983 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3985 | $as_echo "$ac_file" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3986 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3987 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3988 | 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] | 3989 | ac_clean_files=$ac_clean_files_save |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3991 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3992 | if { { ac_try="$ac_link" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3993 | case "(($ac_try" in |
| 3994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3995 | *) ac_try_echo=$ac_try;; |
| 3996 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3997 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3998 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3999 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4000 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4001 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4002 | test $ac_status = 0; }; then : |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4003 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4004 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4005 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4006 | # `rm'. |
| 4007 | for ac_file in conftest.exe conftest conftest.*; do |
| 4008 | test -f "$ac_file" || continue |
| 4009 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4010 | *.$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] | 4011 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4012 | break;; |
| 4013 | * ) break;; |
| 4014 | esac |
| 4015 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4016 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4017 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4018 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4019 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4020 | See \`config.log' for more details" "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4021 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4022 | rm -f conftest conftest$ac_cv_exeext |
| 4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4024 | $as_echo "$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4025 | |
| 4026 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4027 | EXEEXT=$ac_cv_exeext |
| 4028 | ac_exeext=$EXEEXT |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4030 | /* end confdefs.h. */ |
| 4031 | #include <stdio.h> |
| 4032 | int |
| 4033 | main () |
| 4034 | { |
| 4035 | FILE *f = fopen ("conftest.out", "w"); |
| 4036 | return ferror (f) || fclose (f) != 0; |
| 4037 | |
| 4038 | ; |
| 4039 | return 0; |
| 4040 | } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4041 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4042 | ac_clean_files="$ac_clean_files conftest.out" |
| 4043 | # Check that the compiler produces executables we can run. If not, either |
| 4044 | # the compiler is broken, or we cross compile. |
| 4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4046 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 4047 | if test "$cross_compiling" != yes; then |
| 4048 | { { ac_try="$ac_link" |
| 4049 | case "(($ac_try" in |
| 4050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4051 | *) ac_try_echo=$ac_try;; |
| 4052 | esac |
| 4053 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4054 | $as_echo "$ac_try_echo"; } >&5 |
| 4055 | (eval "$ac_link") 2>&5 |
| 4056 | ac_status=$? |
| 4057 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4058 | test $ac_status = 0; } |
| 4059 | if { ac_try='./conftest$ac_cv_exeext' |
| 4060 | { { case "(($ac_try" in |
| 4061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4062 | *) ac_try_echo=$ac_try;; |
| 4063 | esac |
| 4064 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4065 | $as_echo "$ac_try_echo"; } >&5 |
| 4066 | (eval "$ac_try") 2>&5 |
| 4067 | ac_status=$? |
| 4068 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4069 | test $ac_status = 0; }; }; then |
| 4070 | cross_compiling=no |
| 4071 | else |
| 4072 | if test "$cross_compiling" = maybe; then |
| 4073 | cross_compiling=yes |
| 4074 | else |
| 4075 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4076 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4077 | as_fn_error $? "cannot run C compiled programs. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4078 | If you meant to cross compile, use \`--host'. |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4079 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4080 | fi |
| 4081 | fi |
| 4082 | fi |
| 4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4084 | $as_echo "$cross_compiling" >&6; } |
| 4085 | |
| 4086 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4087 | ac_clean_files=$ac_clean_files_save |
| 4088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4089 | $as_echo_n "checking for suffix of object files... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4090 | if ${ac_cv_objext+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4091 | $as_echo_n "(cached) " >&6 |
| 4092 | else |
| 4093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4094 | /* end confdefs.h. */ |
| 4095 | |
| 4096 | int |
| 4097 | main () |
| 4098 | { |
| 4099 | |
| 4100 | ; |
| 4101 | return 0; |
| 4102 | } |
| 4103 | _ACEOF |
| 4104 | rm -f conftest.o conftest.obj |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4105 | if { { ac_try="$ac_compile" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4106 | case "(($ac_try" in |
| 4107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4108 | *) ac_try_echo=$ac_try;; |
| 4109 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4110 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4111 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4112 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4113 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4114 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4115 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4116 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4117 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4118 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4119 | *.$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] | 4120 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4121 | break;; |
| 4122 | esac |
| 4123 | done |
| 4124 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4125 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4127 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4128 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4129 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4130 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4131 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4132 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4133 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4134 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4136 | $as_echo "$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4137 | OBJEXT=$ac_cv_objext |
| 4138 | ac_objext=$OBJEXT |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4140 | $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] | 4141 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4142 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4143 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4145 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4147 | int |
| 4148 | main () |
| 4149 | { |
| 4150 | #ifndef __GNUC__ |
| 4151 | choke me |
| 4152 | #endif |
| 4153 | |
| 4154 | ; |
| 4155 | return 0; |
| 4156 | } |
| 4157 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4158 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4159 | ac_compiler_gnu=yes |
| 4160 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4161 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4162 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4163 | 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] | 4164 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4165 | |
| 4166 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4168 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4169 | if test $ac_compiler_gnu = yes; then |
| 4170 | GCC=yes |
| 4171 | else |
| 4172 | GCC= |
| 4173 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4174 | ac_test_CFLAGS=${CFLAGS+set} |
| 4175 | ac_save_CFLAGS=$CFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4177 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4178 | if ${ac_cv_prog_cc_g+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4179 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4180 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4181 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4182 | ac_c_werror_flag=yes |
| 4183 | ac_cv_prog_cc_g=no |
| 4184 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4186 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4187 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4188 | int |
| 4189 | main () |
| 4190 | { |
| 4191 | |
| 4192 | ; |
| 4193 | return 0; |
| 4194 | } |
| 4195 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4196 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4197 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4198 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4199 | CFLAGS="" |
| 4200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4201 | /* end confdefs.h. */ |
| 4202 | |
| 4203 | int |
| 4204 | main () |
| 4205 | { |
| 4206 | |
| 4207 | ; |
| 4208 | return 0; |
| 4209 | } |
| 4210 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4211 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4212 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4213 | else |
| 4214 | ac_c_werror_flag=$ac_save_c_werror_flag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4215 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4217 | /* end confdefs.h. */ |
| 4218 | |
| 4219 | int |
| 4220 | main () |
| 4221 | { |
| 4222 | |
| 4223 | ; |
| 4224 | return 0; |
| 4225 | } |
| 4226 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4227 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4228 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4229 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4231 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4233 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4235 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4236 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4238 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4239 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4240 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4241 | elif test $ac_cv_prog_cc_g = yes; then |
| 4242 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4243 | CFLAGS="-g -O2" |
| 4244 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4245 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4246 | fi |
| 4247 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4248 | if test "$GCC" = yes; then |
| 4249 | CFLAGS="-O2" |
| 4250 | else |
| 4251 | CFLAGS= |
| 4252 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4253 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4255 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4256 | if ${ac_cv_prog_cc_c89+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4257 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4258 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4259 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4260 | ac_save_CC=$CC |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4262 | /* end confdefs.h. */ |
| 4263 | #include <stdarg.h> |
| 4264 | #include <stdio.h> |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4265 | struct stat; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4266 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4267 | struct buf { int x; }; |
| 4268 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4269 | static char *e (p, i) |
| 4270 | char **p; |
| 4271 | int i; |
| 4272 | { |
| 4273 | return p[i]; |
| 4274 | } |
| 4275 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4276 | { |
| 4277 | char *s; |
| 4278 | va_list v; |
| 4279 | va_start (v,p); |
| 4280 | s = g (p, va_arg (v,int)); |
| 4281 | va_end (v); |
| 4282 | return s; |
| 4283 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4284 | |
| 4285 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4286 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4287 | These don't provoke an error unfortunately, instead are silently treated |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4288 | 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] | 4289 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4290 | 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] | 4291 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4292 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4293 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4294 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4295 | inside strings and character constants. */ |
| 4296 | #define FOO(x) 'x' |
| 4297 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4298 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4299 | int test (int i, double x); |
| 4300 | struct s1 {int (*f) (int a);}; |
| 4301 | struct s2 {int (*f) (double a);}; |
| 4302 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4303 | int argc; |
| 4304 | char **argv; |
| 4305 | int |
| 4306 | main () |
| 4307 | { |
| 4308 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4309 | ; |
| 4310 | return 0; |
| 4311 | } |
| 4312 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4313 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4314 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4315 | do |
| 4316 | CC="$ac_save_CC $ac_arg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4317 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4318 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4319 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4320 | rm -f core conftest.err conftest.$ac_objext |
| 4321 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4322 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4323 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4324 | CC=$ac_save_CC |
| 4325 | |
| 4326 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4327 | # AC_CACHE_VAL |
| 4328 | case "x$ac_cv_prog_cc_c89" in |
| 4329 | x) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4331 | $as_echo "none needed" >&6; } ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4332 | xno) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4334 | $as_echo "unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4335 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4336 | CC="$CC $ac_cv_prog_cc_c89" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4338 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4339 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4340 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4341 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4342 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4344 | ac_ext=c |
| 4345 | ac_cpp='$CPP $CPPFLAGS' |
| 4346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4349 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4350 | ac_ext=c |
| 4351 | ac_cpp='$CPP $CPPFLAGS' |
| 4352 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4353 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4354 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4356 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 4357 | # On Suns, sometimes $CPP names a directory. |
| 4358 | if test -n "$CPP" && test -d "$CPP"; then |
| 4359 | CPP= |
| 4360 | fi |
| 4361 | if test -z "$CPP"; then |
| 4362 | if ${ac_cv_prog_CPP+:} false; then : |
| 4363 | $as_echo_n "(cached) " >&6 |
| 4364 | else |
| 4365 | # Double quotes because CPP needs to be expanded |
| 4366 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4367 | do |
| 4368 | ac_preproc_ok=false |
| 4369 | for ac_c_preproc_warn_flag in '' yes |
| 4370 | do |
| 4371 | # Use a header file that comes with gcc, so configuring glibc |
| 4372 | # with a fresh cross-compiler works. |
| 4373 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4374 | # <limits.h> exists even on freestanding compilers. |
| 4375 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4376 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4378 | /* end confdefs.h. */ |
| 4379 | #ifdef __STDC__ |
| 4380 | # include <limits.h> |
| 4381 | #else |
| 4382 | # include <assert.h> |
| 4383 | #endif |
| 4384 | Syntax error |
| 4385 | _ACEOF |
| 4386 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4387 | |
| 4388 | else |
| 4389 | # Broken: fails on valid input. |
| 4390 | continue |
| 4391 | fi |
| 4392 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4393 | |
| 4394 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4395 | # can be detected and how. |
| 4396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4397 | /* end confdefs.h. */ |
| 4398 | #include <ac_nonexistent.h> |
| 4399 | _ACEOF |
| 4400 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4401 | # Broken: success on invalid input. |
| 4402 | continue |
| 4403 | else |
| 4404 | # Passes both tests. |
| 4405 | ac_preproc_ok=: |
| 4406 | break |
| 4407 | fi |
| 4408 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4409 | |
| 4410 | done |
| 4411 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4412 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4413 | if $ac_preproc_ok; then : |
| 4414 | break |
| 4415 | fi |
| 4416 | |
| 4417 | done |
| 4418 | ac_cv_prog_CPP=$CPP |
| 4419 | |
| 4420 | fi |
| 4421 | CPP=$ac_cv_prog_CPP |
| 4422 | else |
| 4423 | ac_cv_prog_CPP=$CPP |
| 4424 | fi |
| 4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4426 | $as_echo "$CPP" >&6; } |
| 4427 | ac_preproc_ok=false |
| 4428 | for ac_c_preproc_warn_flag in '' yes |
| 4429 | do |
| 4430 | # Use a header file that comes with gcc, so configuring glibc |
| 4431 | # with a fresh cross-compiler works. |
| 4432 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4433 | # <limits.h> exists even on freestanding compilers. |
| 4434 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4435 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4437 | /* end confdefs.h. */ |
| 4438 | #ifdef __STDC__ |
| 4439 | # include <limits.h> |
| 4440 | #else |
| 4441 | # include <assert.h> |
| 4442 | #endif |
| 4443 | Syntax error |
| 4444 | _ACEOF |
| 4445 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4446 | |
| 4447 | else |
| 4448 | # Broken: fails on valid input. |
| 4449 | continue |
| 4450 | fi |
| 4451 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4452 | |
| 4453 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4454 | # can be detected and how. |
| 4455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4456 | /* end confdefs.h. */ |
| 4457 | #include <ac_nonexistent.h> |
| 4458 | _ACEOF |
| 4459 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4460 | # Broken: success on invalid input. |
| 4461 | continue |
| 4462 | else |
| 4463 | # Passes both tests. |
| 4464 | ac_preproc_ok=: |
| 4465 | break |
| 4466 | fi |
| 4467 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4468 | |
| 4469 | done |
| 4470 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4471 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4472 | if $ac_preproc_ok; then : |
| 4473 | |
| 4474 | else |
| 4475 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4476 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4477 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4478 | See \`config.log' for more details" "$LINENO" 5; } |
| 4479 | fi |
| 4480 | |
| 4481 | ac_ext=c |
| 4482 | ac_cpp='$CPP $CPPFLAGS' |
| 4483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4486 | |
| 4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4488 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4489 | if ${ac_cv_path_GREP+:} false; then : |
| 4490 | $as_echo_n "(cached) " >&6 |
| 4491 | else |
| 4492 | if test -z "$GREP"; then |
| 4493 | ac_path_GREP_found=false |
| 4494 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4496 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4497 | do |
| 4498 | IFS=$as_save_IFS |
| 4499 | test -z "$as_dir" && as_dir=. |
| 4500 | for ac_prog in grep ggrep; do |
| 4501 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4502 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4503 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4504 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4505 | # Check for GNU $ac_path_GREP |
| 4506 | case `"$ac_path_GREP" --version 2>&1` in |
| 4507 | *GNU*) |
| 4508 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4509 | *) |
| 4510 | ac_count=0 |
| 4511 | $as_echo_n 0123456789 >"conftest.in" |
| 4512 | while : |
| 4513 | do |
| 4514 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4515 | mv "conftest.tmp" "conftest.in" |
| 4516 | cp "conftest.in" "conftest.nl" |
| 4517 | $as_echo 'GREP' >> "conftest.nl" |
| 4518 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4519 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4520 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4521 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4522 | # Best one so far, save it but keep looking for a better one |
| 4523 | ac_cv_path_GREP="$ac_path_GREP" |
| 4524 | ac_path_GREP_max=$ac_count |
| 4525 | fi |
| 4526 | # 10*(2^10) chars as input seems more than enough |
| 4527 | test $ac_count -gt 10 && break |
| 4528 | done |
| 4529 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4530 | esac |
| 4531 | |
| 4532 | $ac_path_GREP_found && break 3 |
| 4533 | done |
| 4534 | done |
| 4535 | done |
| 4536 | IFS=$as_save_IFS |
| 4537 | if test -z "$ac_cv_path_GREP"; then |
| 4538 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4539 | fi |
| 4540 | else |
| 4541 | ac_cv_path_GREP=$GREP |
| 4542 | fi |
| 4543 | |
| 4544 | fi |
| 4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4546 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4547 | GREP="$ac_cv_path_GREP" |
| 4548 | |
| 4549 | |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4551 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 4552 | if ${ac_cv_path_SED+:} false; then : |
| 4553 | $as_echo_n "(cached) " >&6 |
| 4554 | else |
| 4555 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4556 | for ac_i in 1 2 3 4 5 6 7; do |
| 4557 | ac_script="$ac_script$as_nl$ac_script" |
| 4558 | done |
| 4559 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4560 | { ac_script=; unset ac_script;} |
| 4561 | if test -z "$SED"; then |
| 4562 | ac_path_SED_found=false |
| 4563 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4565 | for as_dir in $PATH |
| 4566 | do |
| 4567 | IFS=$as_save_IFS |
| 4568 | test -z "$as_dir" && as_dir=. |
| 4569 | for ac_prog in sed gsed; do |
| 4570 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4571 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4572 | as_fn_executable_p "$ac_path_SED" || continue |
| 4573 | # Check for GNU ac_path_SED and select it if it is found. |
| 4574 | # Check for GNU $ac_path_SED |
| 4575 | case `"$ac_path_SED" --version 2>&1` in |
| 4576 | *GNU*) |
| 4577 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4578 | *) |
| 4579 | ac_count=0 |
| 4580 | $as_echo_n 0123456789 >"conftest.in" |
| 4581 | while : |
| 4582 | do |
| 4583 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4584 | mv "conftest.tmp" "conftest.in" |
| 4585 | cp "conftest.in" "conftest.nl" |
| 4586 | $as_echo '' >> "conftest.nl" |
| 4587 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4588 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4589 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4590 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4591 | # Best one so far, save it but keep looking for a better one |
| 4592 | ac_cv_path_SED="$ac_path_SED" |
| 4593 | ac_path_SED_max=$ac_count |
| 4594 | fi |
| 4595 | # 10*(2^10) chars as input seems more than enough |
| 4596 | test $ac_count -gt 10 && break |
| 4597 | done |
| 4598 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4599 | esac |
| 4600 | |
| 4601 | $ac_path_SED_found && break 3 |
| 4602 | done |
| 4603 | done |
| 4604 | done |
| 4605 | IFS=$as_save_IFS |
| 4606 | if test -z "$ac_cv_path_SED"; then |
| 4607 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 4608 | fi |
| 4609 | else |
| 4610 | ac_cv_path_SED=$SED |
| 4611 | fi |
| 4612 | |
| 4613 | fi |
| 4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4615 | $as_echo "$ac_cv_path_SED" >&6; } |
| 4616 | SED="$ac_cv_path_SED" |
| 4617 | rm -f conftest.sed |
| 4618 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4619 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4620 | |
| 4621 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
| 4623 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4624 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4625 | # Check whether --with-cxx_main was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4626 | if test "${with_cxx_main+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4627 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4628 | |
| 4629 | case $withval in |
| 4630 | no) with_cxx_main=no |
| 4631 | MAINCC='$(CC)';; |
| 4632 | yes) with_cxx_main=yes |
| 4633 | MAINCC='$(CXX)';; |
| 4634 | *) with_cxx_main=yes |
| 4635 | MAINCC=$withval |
| 4636 | if test -z "$CXX" |
| 4637 | then |
| 4638 | CXX=$withval |
| 4639 | fi;; |
| 4640 | esac |
| 4641 | else |
| 4642 | |
| 4643 | with_cxx_main=no |
| 4644 | MAINCC='$(CC)' |
| 4645 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4646 | fi |
| 4647 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
| 4649 | $as_echo "$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4650 | |
| 4651 | preset_cxx="$CXX" |
| 4652 | if test -z "$CXX" |
| 4653 | then |
| 4654 | case "$CC" in |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4655 | gcc) if test -n "$ac_tool_prefix"; then |
| 4656 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. |
| 4657 | set dummy ${ac_tool_prefix}g++; ac_word=$2 |
| 4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4659 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4660 | if ${ac_cv_path_CXX+:} false; then : |
| 4661 | $as_echo_n "(cached) " >&6 |
| 4662 | else |
| 4663 | case $CXX in |
| 4664 | [\\/]* | ?:[\\/]*) |
| 4665 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4666 | ;; |
| 4667 | *) |
| 4668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4669 | for as_dir in notfound |
| 4670 | do |
| 4671 | IFS=$as_save_IFS |
| 4672 | test -z "$as_dir" && as_dir=. |
| 4673 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4674 | 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] | 4675 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4676 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4677 | break 2 |
| 4678 | fi |
| 4679 | done |
| 4680 | done |
| 4681 | IFS=$as_save_IFS |
| 4682 | |
| 4683 | ;; |
| 4684 | esac |
| 4685 | fi |
| 4686 | CXX=$ac_cv_path_CXX |
| 4687 | if test -n "$CXX"; then |
| 4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4689 | $as_echo "$CXX" >&6; } |
| 4690 | else |
| 4691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4692 | $as_echo "no" >&6; } |
| 4693 | fi |
| 4694 | |
| 4695 | |
| 4696 | fi |
| 4697 | if test -z "$ac_cv_path_CXX"; then |
| 4698 | ac_pt_CXX=$CXX |
| 4699 | # 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] | 4700 | set dummy g++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4702 | $as_echo_n "checking for $ac_word... " >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4703 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
| 4704 | $as_echo_n "(cached) " >&6 |
| 4705 | else |
| 4706 | case $ac_pt_CXX in |
| 4707 | [\\/]* | ?:[\\/]*) |
| 4708 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
| 4709 | ;; |
| 4710 | *) |
| 4711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4712 | for as_dir in notfound |
| 4713 | do |
| 4714 | IFS=$as_save_IFS |
| 4715 | test -z "$as_dir" && as_dir=. |
| 4716 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4717 | 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] | 4718 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4720 | break 2 |
| 4721 | fi |
| 4722 | done |
| 4723 | done |
| 4724 | IFS=$as_save_IFS |
| 4725 | |
| 4726 | ;; |
| 4727 | esac |
| 4728 | fi |
| 4729 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 4730 | if test -n "$ac_pt_CXX"; then |
| 4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 4732 | $as_echo "$ac_pt_CXX" >&6; } |
| 4733 | else |
| 4734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4735 | $as_echo "no" >&6; } |
| 4736 | fi |
| 4737 | |
| 4738 | if test "x$ac_pt_CXX" = x; then |
| 4739 | CXX="g++" |
| 4740 | else |
| 4741 | case $cross_compiling:$ac_tool_warned in |
| 4742 | yes:) |
| 4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4744 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4745 | ac_tool_warned=yes ;; |
| 4746 | esac |
| 4747 | CXX=$ac_pt_CXX |
| 4748 | fi |
| 4749 | else |
| 4750 | CXX="$ac_cv_path_CXX" |
| 4751 | fi |
| 4752 | ;; |
| 4753 | cc) if test -n "$ac_tool_prefix"; then |
| 4754 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. |
| 4755 | set dummy ${ac_tool_prefix}c++; ac_word=$2 |
| 4756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4757 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4758 | if ${ac_cv_path_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4759 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4760 | else |
| 4761 | case $CXX in |
| 4762 | [\\/]* | ?:[\\/]*) |
| 4763 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4764 | ;; |
| 4765 | *) |
| 4766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4767 | for as_dir in notfound |
| 4768 | do |
| 4769 | IFS=$as_save_IFS |
| 4770 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4771 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4772 | 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] | 4773 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4774 | $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] | 4775 | break 2 |
| 4776 | fi |
| 4777 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4778 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4779 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4780 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4781 | ;; |
| 4782 | esac |
| 4783 | fi |
| 4784 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4785 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4787 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4788 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4790 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4791 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4792 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4793 | |
| 4794 | fi |
| 4795 | if test -z "$ac_cv_path_CXX"; then |
| 4796 | ac_pt_CXX=$CXX |
| 4797 | # 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] | 4798 | set dummy c++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4800 | $as_echo_n "checking for $ac_word... " >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4801 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4802 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4803 | else |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4804 | case $ac_pt_CXX in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4805 | [\\/]* | ?:[\\/]*) |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4806 | 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] | 4807 | ;; |
| 4808 | *) |
| 4809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4810 | for as_dir in notfound |
| 4811 | do |
| 4812 | IFS=$as_save_IFS |
| 4813 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4814 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4815 | 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] | 4816 | 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] | 4817 | $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] | 4818 | break 2 |
| 4819 | fi |
| 4820 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4821 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4822 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4823 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4824 | ;; |
| 4825 | esac |
| 4826 | fi |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4827 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 4828 | if test -n "$ac_pt_CXX"; then |
| 4829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 4830 | $as_echo "$ac_pt_CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4831 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4833 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4834 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4835 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4836 | if test "x$ac_pt_CXX" = x; then |
| 4837 | CXX="c++" |
| 4838 | else |
| 4839 | case $cross_compiling:$ac_tool_warned in |
| 4840 | yes:) |
| 4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4842 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4843 | ac_tool_warned=yes ;; |
| 4844 | esac |
| 4845 | CXX=$ac_pt_CXX |
| 4846 | fi |
| 4847 | else |
| 4848 | CXX="$ac_cv_path_CXX" |
| 4849 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4850 | ;; |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4851 | clang|*/clang) if test -n "$ac_tool_prefix"; then |
| 4852 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. |
| 4853 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4855 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4856 | if ${ac_cv_path_CXX+:} false; then : |
| 4857 | $as_echo_n "(cached) " >&6 |
| 4858 | else |
| 4859 | case $CXX in |
| 4860 | [\\/]* | ?:[\\/]*) |
| 4861 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4862 | ;; |
| 4863 | *) |
| 4864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4865 | for as_dir in notfound |
| 4866 | do |
| 4867 | IFS=$as_save_IFS |
| 4868 | test -z "$as_dir" && as_dir=. |
| 4869 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4870 | 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] | 4871 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4873 | break 2 |
| 4874 | fi |
| 4875 | done |
| 4876 | done |
| 4877 | IFS=$as_save_IFS |
| 4878 | |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4879 | ;; |
| 4880 | esac |
| 4881 | fi |
| 4882 | CXX=$ac_cv_path_CXX |
| 4883 | if test -n "$CXX"; then |
| 4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4885 | $as_echo "$CXX" >&6; } |
| 4886 | else |
| 4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4888 | $as_echo "no" >&6; } |
| 4889 | fi |
| 4890 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4891 | |
| 4892 | fi |
| 4893 | if test -z "$ac_cv_path_CXX"; then |
| 4894 | ac_pt_CXX=$CXX |
| 4895 | # Extract the first word of "clang++", so it can be a program name with args. |
| 4896 | set dummy clang++; ac_word=$2 |
| 4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4898 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4899 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
| 4900 | $as_echo_n "(cached) " >&6 |
| 4901 | else |
| 4902 | case $ac_pt_CXX in |
| 4903 | [\\/]* | ?:[\\/]*) |
| 4904 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
| 4905 | ;; |
| 4906 | *) |
| 4907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4908 | for as_dir in notfound |
| 4909 | do |
| 4910 | IFS=$as_save_IFS |
| 4911 | test -z "$as_dir" && as_dir=. |
| 4912 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4913 | 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] | 4914 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4916 | break 2 |
| 4917 | fi |
| 4918 | done |
| 4919 | done |
| 4920 | IFS=$as_save_IFS |
| 4921 | |
| 4922 | ;; |
| 4923 | esac |
| 4924 | fi |
| 4925 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 4926 | if test -n "$ac_pt_CXX"; then |
| 4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 4928 | $as_echo "$ac_pt_CXX" >&6; } |
| 4929 | else |
| 4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4931 | $as_echo "no" >&6; } |
| 4932 | fi |
| 4933 | |
| 4934 | if test "x$ac_pt_CXX" = x; then |
| 4935 | CXX="clang++" |
| 4936 | else |
| 4937 | case $cross_compiling:$ac_tool_warned in |
| 4938 | yes:) |
| 4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4940 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4941 | ac_tool_warned=yes ;; |
| 4942 | esac |
| 4943 | CXX=$ac_pt_CXX |
| 4944 | fi |
| 4945 | else |
| 4946 | CXX="$ac_cv_path_CXX" |
| 4947 | fi |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4948 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 4949 | icc|*/icc) if test -n "$ac_tool_prefix"; then |
| 4950 | # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. |
| 4951 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 |
| 4952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4953 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4954 | if ${ac_cv_path_CXX+:} false; then : |
| 4955 | $as_echo_n "(cached) " >&6 |
| 4956 | else |
| 4957 | case $CXX in |
| 4958 | [\\/]* | ?:[\\/]*) |
| 4959 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4960 | ;; |
| 4961 | *) |
| 4962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4963 | for as_dir in notfound |
| 4964 | do |
| 4965 | IFS=$as_save_IFS |
| 4966 | test -z "$as_dir" && as_dir=. |
| 4967 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4968 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4969 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4971 | break 2 |
| 4972 | fi |
| 4973 | done |
| 4974 | done |
| 4975 | IFS=$as_save_IFS |
| 4976 | |
| 4977 | ;; |
| 4978 | esac |
| 4979 | fi |
| 4980 | CXX=$ac_cv_path_CXX |
| 4981 | if test -n "$CXX"; then |
| 4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4983 | $as_echo "$CXX" >&6; } |
| 4984 | else |
| 4985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4986 | $as_echo "no" >&6; } |
| 4987 | fi |
| 4988 | |
| 4989 | |
| 4990 | fi |
| 4991 | if test -z "$ac_cv_path_CXX"; then |
| 4992 | ac_pt_CXX=$CXX |
| 4993 | # Extract the first word of "icpc", so it can be a program name with args. |
| 4994 | set dummy icpc; ac_word=$2 |
| 4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4996 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4997 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
| 4998 | $as_echo_n "(cached) " >&6 |
| 4999 | else |
| 5000 | case $ac_pt_CXX in |
| 5001 | [\\/]* | ?:[\\/]*) |
| 5002 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
| 5003 | ;; |
| 5004 | *) |
| 5005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5006 | for as_dir in notfound |
| 5007 | do |
| 5008 | IFS=$as_save_IFS |
| 5009 | test -z "$as_dir" && as_dir=. |
| 5010 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5012 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 5013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5014 | break 2 |
| 5015 | fi |
| 5016 | done |
| 5017 | done |
| 5018 | IFS=$as_save_IFS |
| 5019 | |
| 5020 | ;; |
| 5021 | esac |
| 5022 | fi |
| 5023 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 5024 | if test -n "$ac_pt_CXX"; then |
| 5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 5026 | $as_echo "$ac_pt_CXX" >&6; } |
| 5027 | else |
| 5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5029 | $as_echo "no" >&6; } |
| 5030 | fi |
| 5031 | |
| 5032 | if test "x$ac_pt_CXX" = x; then |
| 5033 | CXX="icpc" |
| 5034 | else |
| 5035 | case $cross_compiling:$ac_tool_warned in |
| 5036 | yes:) |
| 5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5038 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5039 | ac_tool_warned=yes ;; |
| 5040 | esac |
| 5041 | CXX=$ac_pt_CXX |
| 5042 | fi |
| 5043 | else |
| 5044 | CXX="$ac_cv_path_CXX" |
| 5045 | fi |
| 5046 | ;; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5047 | esac |
| 5048 | if test "$CXX" = "notfound" |
| 5049 | then |
| 5050 | CXX="" |
| 5051 | fi |
| 5052 | fi |
| 5053 | if test -z "$CXX" |
| 5054 | then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5055 | if test -n "$ac_tool_prefix"; then |
| 5056 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 5057 | do |
| 5058 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5059 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5061 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5062 | if ${ac_cv_prog_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5063 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5064 | else |
| 5065 | if test -n "$CXX"; then |
| 5066 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5067 | else |
| 5068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5069 | for as_dir in $PATH |
| 5070 | do |
| 5071 | IFS=$as_save_IFS |
| 5072 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5073 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5074 | 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] | 5075 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5076 | $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] | 5077 | break 2 |
| 5078 | fi |
| 5079 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5080 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5081 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5082 | |
| 5083 | fi |
| 5084 | fi |
| 5085 | CXX=$ac_cv_prog_CXX |
| 5086 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5088 | $as_echo "$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5089 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5091 | $as_echo "no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5092 | fi |
| 5093 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5094 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5095 | test -n "$CXX" && break |
| 5096 | done |
| 5097 | fi |
| 5098 | if test -z "$CXX"; then |
| 5099 | ac_ct_CXX=$CXX |
| 5100 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 5101 | do |
| 5102 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5103 | set dummy $ac_prog; ac_word=$2 |
| 5104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5105 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5106 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 5107 | $as_echo_n "(cached) " >&6 |
| 5108 | else |
| 5109 | if test -n "$ac_ct_CXX"; then |
| 5110 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5111 | else |
| 5112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5113 | for as_dir in $PATH |
| 5114 | do |
| 5115 | IFS=$as_save_IFS |
| 5116 | test -z "$as_dir" && as_dir=. |
| 5117 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5118 | 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] | 5119 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5121 | break 2 |
| 5122 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5123 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5124 | done |
| 5125 | IFS=$as_save_IFS |
| 5126 | |
| 5127 | fi |
| 5128 | fi |
| 5129 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5130 | if test -n "$ac_ct_CXX"; then |
| 5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 5132 | $as_echo "$ac_ct_CXX" >&6; } |
| 5133 | else |
| 5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5135 | $as_echo "no" >&6; } |
| 5136 | fi |
| 5137 | |
| 5138 | |
| 5139 | test -n "$ac_ct_CXX" && break |
| 5140 | done |
| 5141 | |
| 5142 | if test "x$ac_ct_CXX" = x; then |
| 5143 | CXX="notfound" |
| 5144 | else |
| 5145 | case $cross_compiling:$ac_tool_warned in |
| 5146 | yes:) |
| 5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5148 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5149 | ac_tool_warned=yes ;; |
| 5150 | esac |
| 5151 | CXX=$ac_ct_CXX |
| 5152 | fi |
| 5153 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5154 | |
| 5155 | if test "$CXX" = "notfound" |
| 5156 | then |
| 5157 | CXX="" |
| 5158 | fi |
| 5159 | fi |
| 5160 | if test "$preset_cxx" != "$CXX" |
| 5161 | then |
Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5163 | |
| 5164 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 5165 | If this is not intended, then set CXX on the configure command line. |
| 5166 | " >&5 |
Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5167 | $as_echo "$as_me: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5168 | |
| 5169 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 5170 | 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] | 5171 | " >&6;} |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5172 | fi |
| 5173 | |
| 5174 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5175 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) |
| 5176 | |
| 5177 | |
| 5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 |
| 5179 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } |
| 5180 | cat >> conftest.c <<EOF |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5181 | #undef bfin |
| 5182 | #undef cris |
| 5183 | #undef fr30 |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5184 | #undef linux |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5185 | #undef hppa |
| 5186 | #undef hpux |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5187 | #undef i386 |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5188 | #undef mips |
doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5189 | #undef powerpc |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5190 | #undef sparc |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5191 | #undef unix |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5192 | #if defined(__ANDROID__) |
Xavier de Gaye | 32cf1ac | 2016-12-10 17:31:28 +0100 | [diff] [blame] | 5193 | # Android is not a multiarch system. |
doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5194 | #elif defined(__linux__) |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5195 | # if defined(__x86_64__) && defined(__LP64__) |
| 5196 | x86_64-linux-gnu |
| 5197 | # elif defined(__x86_64__) && defined(__ILP32__) |
| 5198 | x86_64-linux-gnux32 |
| 5199 | # elif defined(__i386__) |
| 5200 | i386-linux-gnu |
| 5201 | # elif defined(__aarch64__) && defined(__AARCH64EL__) |
| 5202 | # if defined(__ILP32__) |
| 5203 | aarch64_ilp32-linux-gnu |
| 5204 | # else |
| 5205 | aarch64-linux-gnu |
| 5206 | # endif |
| 5207 | # elif defined(__aarch64__) && defined(__AARCH64EB__) |
| 5208 | # if defined(__ILP32__) |
| 5209 | aarch64_be_ilp32-linux-gnu |
| 5210 | # else |
| 5211 | aarch64_be-linux-gnu |
| 5212 | # endif |
| 5213 | # elif defined(__alpha__) |
| 5214 | alpha-linux-gnu |
| 5215 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) |
| 5216 | # if defined(__ARMEL__) |
| 5217 | arm-linux-gnueabihf |
| 5218 | # else |
| 5219 | armeb-linux-gnueabihf |
| 5220 | # endif |
| 5221 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) |
| 5222 | # if defined(__ARMEL__) |
| 5223 | arm-linux-gnueabi |
| 5224 | # else |
| 5225 | armeb-linux-gnueabi |
| 5226 | # endif |
| 5227 | # elif defined(__hppa__) |
| 5228 | hppa-linux-gnu |
| 5229 | # elif defined(__ia64__) |
| 5230 | ia64-linux-gnu |
| 5231 | # elif defined(__m68k__) && !defined(__mcoldfire__) |
| 5232 | m68k-linux-gnu |
| 5233 | # elif defined(__mips_hard_float) && defined(_MIPSEL) |
| 5234 | # if _MIPS_SIM == _ABIO32 |
| 5235 | mipsel-linux-gnu |
| 5236 | # elif _MIPS_SIM == _ABIN32 |
| 5237 | mips64el-linux-gnuabin32 |
| 5238 | # elif _MIPS_SIM == _ABI64 |
| 5239 | mips64el-linux-gnuabi64 |
| 5240 | # else |
| 5241 | # error unknown platform triplet |
| 5242 | # endif |
| 5243 | # elif defined(__mips_hard_float) |
| 5244 | # if _MIPS_SIM == _ABIO32 |
| 5245 | mips-linux-gnu |
| 5246 | # elif _MIPS_SIM == _ABIN32 |
| 5247 | mips64-linux-gnuabin32 |
| 5248 | # elif _MIPS_SIM == _ABI64 |
| 5249 | mips64-linux-gnuabi64 |
| 5250 | # else |
| 5251 | # error unknown platform triplet |
| 5252 | # endif |
| 5253 | # elif defined(__or1k__) |
| 5254 | or1k-linux-gnu |
| 5255 | # elif defined(__powerpc__) && defined(__SPE__) |
| 5256 | powerpc-linux-gnuspe |
| 5257 | # elif defined(__powerpc64__) |
| 5258 | # if defined(__LITTLE_ENDIAN__) |
| 5259 | powerpc64le-linux-gnu |
| 5260 | # else |
| 5261 | powerpc64-linux-gnu |
| 5262 | # endif |
| 5263 | # elif defined(__powerpc__) |
| 5264 | powerpc-linux-gnu |
| 5265 | # elif defined(__s390x__) |
| 5266 | s390x-linux-gnu |
| 5267 | # elif defined(__s390__) |
| 5268 | s390-linux-gnu |
| 5269 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) |
| 5270 | sh4-linux-gnu |
| 5271 | # elif defined(__sparc__) && defined(__arch64__) |
| 5272 | sparc64-linux-gnu |
| 5273 | # elif defined(__sparc__) |
| 5274 | sparc-linux-gnu |
| 5275 | # else |
| 5276 | # error unknown platform triplet |
| 5277 | # endif |
| 5278 | #elif defined(__FreeBSD_kernel__) |
| 5279 | # if defined(__LP64__) |
| 5280 | x86_64-kfreebsd-gnu |
| 5281 | # elif defined(__i386__) |
| 5282 | i386-kfreebsd-gnu |
| 5283 | # else |
| 5284 | # error unknown platform triplet |
| 5285 | # endif |
| 5286 | #elif defined(__gnu_hurd__) |
| 5287 | i386-gnu |
Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5288 | #elif defined(__APPLE__) |
| 5289 | darwin |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5290 | #else |
| 5291 | # error unknown platform triplet |
| 5292 | #endif |
| 5293 | |
| 5294 | EOF |
| 5295 | |
Xavier de Gaye | 3a32bdf | 2016-07-30 11:28:35 +0200 | [diff] [blame] | 5296 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5297 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` |
| 5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 |
| 5299 | $as_echo "$PLATFORM_TRIPLET" >&6; } |
| 5300 | else |
| 5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5302 | $as_echo "none" >&6; } |
| 5303 | fi |
| 5304 | rm -f conftest.c conftest.out |
| 5305 | |
| 5306 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then |
| 5307 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then |
| 5308 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 |
| 5309 | fi |
doko@ubuntu.com | 75b1cb1 | 2016-08-29 20:03:25 +0200 | [diff] [blame] | 5310 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then |
| 5311 | MULTIARCH=$PLATFORM_TRIPLET |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5312 | fi |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5313 | |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 5314 | if test x$MULTIARCH != x; then |
| 5315 | MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" |
| 5316 | fi |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5317 | |
| 5318 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 |
| 5320 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } |
| 5321 | save_LDFLAGS="$LDFLAGS" |
| 5322 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5323 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5325 | /* end confdefs.h. */ |
| 5326 | |
| 5327 | int |
| 5328 | main () |
| 5329 | { |
| 5330 | |
| 5331 | ; |
| 5332 | return 0; |
| 5333 | } |
| 5334 | _ACEOF |
| 5335 | if ac_fn_c_try_link "$LINENO"; then : |
| 5336 | NO_AS_NEEDED="-Wl,--no-as-needed" |
| 5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5338 | $as_echo "yes" >&6; } |
| 5339 | else |
| 5340 | NO_AS_NEEDED="" |
| 5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5342 | $as_echo "no" >&6; } |
| 5343 | fi |
| 5344 | rm -f core conftest.err conftest.$ac_objext \ |
| 5345 | conftest$ac_exeext conftest.$ac_ext |
| 5346 | LDFLAGS="$save_LDFLAGS" |
| 5347 | |
| 5348 | |
| 5349 | |
| 5350 | # checks for UNIX variants that set C preprocessor variables |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5351 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5353 | $as_echo_n "checking for egrep... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5354 | if ${ac_cv_path_EGREP+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5355 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5356 | else |
| 5357 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5358 | then ac_cv_path_EGREP="$GREP -E" |
| 5359 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5360 | if test -z "$EGREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5361 | ac_path_EGREP_found=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5362 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5364 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5365 | do |
| 5366 | IFS=$as_save_IFS |
| 5367 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5368 | for ac_prog in egrep; do |
| 5369 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5370 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5371 | as_fn_executable_p "$ac_path_EGREP" || continue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5372 | # 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] | 5373 | # Check for GNU $ac_path_EGREP |
| 5374 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5375 | *GNU*) |
| 5376 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5377 | *) |
| 5378 | ac_count=0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5379 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5380 | while : |
| 5381 | do |
| 5382 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5383 | mv "conftest.tmp" "conftest.in" |
| 5384 | cp "conftest.in" "conftest.nl" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5385 | $as_echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5386 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5387 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5388 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5389 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5390 | # Best one so far, save it but keep looking for a better one |
| 5391 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5392 | ac_path_EGREP_max=$ac_count |
| 5393 | fi |
| 5394 | # 10*(2^10) chars as input seems more than enough |
| 5395 | test $ac_count -gt 10 && break |
| 5396 | done |
| 5397 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5398 | esac |
| 5399 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5400 | $ac_path_EGREP_found && break 3 |
| 5401 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5402 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5403 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5404 | IFS=$as_save_IFS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5405 | if test -z "$ac_cv_path_EGREP"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5406 | 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] | 5407 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5408 | else |
| 5409 | ac_cv_path_EGREP=$EGREP |
| 5410 | fi |
| 5411 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5412 | fi |
| 5413 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5415 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5416 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5417 | |
| 5418 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 5420 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5421 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5422 | $as_echo_n "(cached) " >&6 |
| 5423 | else |
| 5424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5425 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5426 | #include <stdlib.h> |
| 5427 | #include <stdarg.h> |
| 5428 | #include <string.h> |
| 5429 | #include <float.h> |
| 5430 | |
| 5431 | int |
| 5432 | main () |
| 5433 | { |
| 5434 | |
| 5435 | ; |
| 5436 | return 0; |
| 5437 | } |
| 5438 | _ACEOF |
| 5439 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5440 | ac_cv_header_stdc=yes |
| 5441 | else |
| 5442 | ac_cv_header_stdc=no |
| 5443 | fi |
| 5444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5445 | |
| 5446 | if test $ac_cv_header_stdc = yes; then |
| 5447 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5449 | /* end confdefs.h. */ |
| 5450 | #include <string.h> |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5451 | |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5452 | _ACEOF |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5453 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5454 | $EGREP "memchr" >/dev/null 2>&1; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5455 | |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5456 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5457 | ac_cv_header_stdc=no |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5458 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5459 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5460 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5461 | fi |
| 5462 | |
| 5463 | if test $ac_cv_header_stdc = yes; then |
| 5464 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5466 | /* end confdefs.h. */ |
| 5467 | #include <stdlib.h> |
| 5468 | |
| 5469 | _ACEOF |
| 5470 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5471 | $EGREP "free" >/dev/null 2>&1; then : |
| 5472 | |
| 5473 | else |
| 5474 | ac_cv_header_stdc=no |
| 5475 | fi |
| 5476 | rm -f conftest* |
| 5477 | |
| 5478 | fi |
| 5479 | |
| 5480 | if test $ac_cv_header_stdc = yes; then |
| 5481 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5482 | if test "$cross_compiling" = yes; then : |
| 5483 | : |
| 5484 | else |
| 5485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5486 | /* end confdefs.h. */ |
| 5487 | #include <ctype.h> |
| 5488 | #include <stdlib.h> |
| 5489 | #if ((' ' & 0x0FF) == 0x020) |
| 5490 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5491 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5492 | #else |
| 5493 | # define ISLOWER(c) \ |
| 5494 | (('a' <= (c) && (c) <= 'i') \ |
| 5495 | || ('j' <= (c) && (c) <= 'r') \ |
| 5496 | || ('s' <= (c) && (c) <= 'z')) |
| 5497 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5498 | #endif |
| 5499 | |
| 5500 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5501 | int |
| 5502 | main () |
| 5503 | { |
| 5504 | int i; |
| 5505 | for (i = 0; i < 256; i++) |
| 5506 | if (XOR (islower (i), ISLOWER (i)) |
| 5507 | || toupper (i) != TOUPPER (i)) |
| 5508 | return 2; |
| 5509 | return 0; |
| 5510 | } |
| 5511 | _ACEOF |
| 5512 | if ac_fn_c_try_run "$LINENO"; then : |
| 5513 | |
| 5514 | else |
| 5515 | ac_cv_header_stdc=no |
| 5516 | fi |
| 5517 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5518 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5519 | fi |
| 5520 | |
| 5521 | fi |
| 5522 | fi |
| 5523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 5524 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 5525 | if test $ac_cv_header_stdc = yes; then |
| 5526 | |
| 5527 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 5528 | |
| 5529 | fi |
| 5530 | |
| 5531 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5532 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5533 | inttypes.h stdint.h unistd.h |
| 5534 | do : |
| 5535 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5536 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5537 | " |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5538 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5539 | cat >>confdefs.h <<_ACEOF |
| 5540 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5541 | _ACEOF |
| 5542 | |
| 5543 | fi |
| 5544 | |
| 5545 | done |
| 5546 | |
| 5547 | |
| 5548 | |
| 5549 | 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] | 5550 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5551 | MINIX=yes |
| 5552 | else |
| 5553 | MINIX= |
| 5554 | fi |
| 5555 | |
| 5556 | |
| 5557 | if test "$MINIX" = yes; then |
| 5558 | |
| 5559 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5560 | |
| 5561 | |
| 5562 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5563 | |
| 5564 | |
| 5565 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 5566 | |
| 5567 | fi |
| 5568 | |
| 5569 | |
| 5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5571 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5572 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5573 | $as_echo_n "(cached) " >&6 |
| 5574 | else |
| 5575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5576 | /* end confdefs.h. */ |
| 5577 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5578 | # define __EXTENSIONS__ 1 |
| 5579 | $ac_includes_default |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5580 | int |
| 5581 | main () |
| 5582 | { |
| 5583 | |
| 5584 | ; |
| 5585 | return 0; |
| 5586 | } |
| 5587 | _ACEOF |
| 5588 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5589 | ac_cv_safe_to_define___extensions__=yes |
| 5590 | else |
| 5591 | ac_cv_safe_to_define___extensions__=no |
| 5592 | fi |
| 5593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5594 | fi |
| 5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5596 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5597 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 5598 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5599 | |
| 5600 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 5601 | |
| 5602 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 5603 | |
| 5604 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5605 | |
| 5606 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5607 | |
| 5608 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5609 | |
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 |
| 5611 | $as_echo_n "checking for the Android API level... " >&6; } |
| 5612 | cat >> conftest.c <<EOF |
| 5613 | #ifdef __ANDROID__ |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5614 | android_api = __ANDROID_API__ |
| 5615 | arm_arch = __ARM_ARCH |
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5616 | #else |
| 5617 | #error not Android |
| 5618 | #endif |
| 5619 | EOF |
| 5620 | |
| 5621 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5622 | ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` |
| 5623 | _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] | 5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 |
| 5625 | $as_echo "$ANDROID_API_LEVEL" >&6; } |
xdegaye | c06c22e | 2017-11-23 11:44:38 +0100 | [diff] [blame] | 5626 | if test -z "$ANDROID_API_LEVEL"; then |
| 5627 | echo 'Fatal: you must define __ANDROID_API__' |
| 5628 | exit 1 |
| 5629 | fi |
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5630 | |
| 5631 | cat >>confdefs.h <<_ACEOF |
| 5632 | #define ANDROID_API_LEVEL $ANDROID_API_LEVEL |
| 5633 | _ACEOF |
| 5634 | |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5635 | |
| 5636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 |
| 5637 | $as_echo_n "checking for the Android arm ABI... " >&6; } |
| 5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 |
| 5639 | $as_echo "$_arm_arch" >&6; } |
| 5640 | if test "$_arm_arch" = 7; then |
| 5641 | BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" |
| 5642 | LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" |
| 5643 | fi |
Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5644 | else |
| 5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 |
| 5646 | $as_echo "not Android" >&6; } |
| 5647 | fi |
| 5648 | rm -f conftest.c conftest.out |
| 5649 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5650 | # Check for unsupported systems |
| 5651 | case $ac_sys_system/$ac_sys_release in |
| 5652 | atheos*|Linux*/1*) |
| 5653 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 5654 | echo See README for details. |
| 5655 | exit 1;; |
| 5656 | esac |
| 5657 | |
| 5658 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
| 5660 | $as_echo_n "checking for --with-suffix... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5661 | |
| 5662 | # Check whether --with-suffix was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5663 | if test "${with_suffix+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5664 | withval=$with_suffix; |
| 5665 | case $withval in |
| 5666 | no) EXEEXT=;; |
| 5667 | yes) EXEEXT=.exe;; |
| 5668 | *) EXEEXT=$withval;; |
| 5669 | esac |
| 5670 | fi |
| 5671 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
| 5673 | $as_echo "$EXEEXT" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5674 | |
| 5675 | # Test whether we're running on a non-case-sensitive system, in which |
| 5676 | # case we give a warning if no ext is given |
| 5677 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
| 5679 | $as_echo_n "checking for case-insensitive build directory... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5680 | if test ! -d CaseSensitiveTestDir; then |
| 5681 | mkdir CaseSensitiveTestDir |
| 5682 | fi |
| 5683 | |
| 5684 | if test -d casesensitivetestdir |
| 5685 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5687 | $as_echo "yes" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5688 | BUILDEXEEXT=.exe |
| 5689 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5691 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5692 | BUILDEXEEXT=$EXEEXT |
| 5693 | fi |
| 5694 | rmdir CaseSensitiveTestDir |
| 5695 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5696 | case $ac_sys_system in |
| 5697 | hp*|HP*) |
| 5698 | case $CC in |
| 5699 | cc|*/cc) CC="$CC -Ae";; |
| 5700 | esac;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5701 | esac |
| 5702 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5703 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
| 5705 | $as_echo_n "checking LIBRARY... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5706 | if test -z "$LIBRARY" |
| 5707 | then |
Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5708 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5709 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
| 5711 | $as_echo "$LIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5712 | |
| 5713 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 5714 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 5715 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 5716 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 5717 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 5718 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 5719 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 5720 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 5721 | # |
| 5722 | # RUNSHARED is used to run shared python without installed libraries |
| 5723 | # |
| 5724 | # INSTSONAME is the name of the shared library that will be use to install |
| 5725 | # on the system - some systems like version suffix, others don't |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5726 | # |
| 5727 | # LDVERSION is the shared library version number, normally the Python version |
| 5728 | # with the ABI build flags appended. |
| 5729 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5730 | |
| 5731 | |
| 5732 | |
| 5733 | |
| 5734 | |
| 5735 | |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5736 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5737 | LDLIBRARY="$LIBRARY" |
| 5738 | BLDLIBRARY='$(LDLIBRARY)' |
| 5739 | INSTSONAME='$(LDLIBRARY)' |
| 5740 | DLLLIBRARY='' |
| 5741 | LDLIBRARYDIR='' |
| 5742 | RUNSHARED='' |
Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5743 | LDVERSION="$VERSION" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5744 | |
| 5745 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 5746 | # If CXX is set, and if it is needed to link a main function that was |
| 5747 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 5748 | # python might then depend on the C++ runtime |
| 5749 | # This is altered for AIX in order to build the export list before |
| 5750 | # linking. |
| 5751 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
| 5753 | $as_echo_n "checking LINKCC... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5754 | if test -z "$LINKCC" |
| 5755 | then |
| 5756 | LINKCC='$(PURIFY) $(MAINCC)' |
| 5757 | case $ac_sys_system in |
| 5758 | AIX*) |
| 5759 | exp_extra="\"\"" |
| 5760 | if test $ac_sys_release -ge 5 -o \ |
| 5761 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 5762 | exp_extra="." |
| 5763 | fi |
| 5764 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5765 | QNX*) |
| 5766 | # qcc must be used because the other compilers do not |
| 5767 | # support -N. |
| 5768 | LINKCC=qcc;; |
| 5769 | esac |
| 5770 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
| 5772 | $as_echo "$LINKCC" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5773 | |
| 5774 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 5775 | # make sure we default having it set to "no": this is used by |
| 5776 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 5777 | # to linker command lines, and failing to detect GNU ld simply results |
| 5778 | # in the same bahaviour as before. |
| 5779 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 5781 | $as_echo_n "checking for GNU ld... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5782 | ac_prog=ld |
| 5783 | if test "$GCC" = yes; then |
| 5784 | ac_prog=`$CC -print-prog-name=ld` |
| 5785 | fi |
| 5786 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 5787 | *GNU*) |
| 5788 | GNULD=yes;; |
| 5789 | *) |
| 5790 | GNULD=no;; |
| 5791 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
| 5793 | $as_echo "$GNULD" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5794 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
| 5796 | $as_echo_n "checking for --enable-shared... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5797 | # Check whether --enable-shared was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5798 | if test "${enable_shared+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5799 | enableval=$enable_shared; |
| 5800 | fi |
| 5801 | |
| 5802 | |
| 5803 | if test -z "$enable_shared" |
| 5804 | then |
| 5805 | case $ac_sys_system in |
Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5806 | CYGWIN*) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5807 | enable_shared="yes";; |
| 5808 | *) |
| 5809 | enable_shared="no";; |
| 5810 | esac |
| 5811 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 5813 | $as_echo "$enable_shared" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5814 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
| 5816 | $as_echo_n "checking for --enable-profiling... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5817 | # Check whether --enable-profiling was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5818 | if test "${enable_profiling+set}" = set; then : |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5819 | enableval=$enable_profiling; |
| 5820 | fi |
| 5821 | |
| 5822 | if test "x$enable_profiling" = xyes; then |
| 5823 | ac_save_cc="$CC" |
Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5824 | CC="$CC -pg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5826 | /* end confdefs.h. */ |
| 5827 | int main() { return 0; } |
| 5828 | _ACEOF |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5829 | if ac_fn_c_try_link "$LINENO"; then : |
| 5830 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5831 | else |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5832 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5833 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5834 | rm -f core conftest.err conftest.$ac_objext \ |
| 5835 | conftest$ac_exeext conftest.$ac_ext |
| 5836 | CC="$ac_save_cc" |
| 5837 | else |
| 5838 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5839 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 |
| 5841 | $as_echo "$enable_profiling" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5842 | |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5843 | if test "x$enable_profiling" = xyes; then |
| 5844 | BASECFLAGS="-pg $BASECFLAGS" |
| 5845 | LDFLAGS="-pg $LDFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5846 | fi |
| 5847 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
| 5849 | $as_echo_n "checking LDLIBRARY... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5850 | |
| 5851 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 5852 | # library that we build, but we do not want to link against it (we |
| 5853 | # will find it with a -framework option). For this reason there is an |
| 5854 | # extra variable BLDLIBRARY against which Python and the extension |
| 5855 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 5856 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 5857 | if test "$enable_framework" |
| 5858 | then |
| 5859 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5860 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5861 | BLDLIBRARY='' |
| 5862 | else |
| 5863 | BLDLIBRARY='$(LDLIBRARY)' |
| 5864 | fi |
| 5865 | |
| 5866 | # Other platforms follow |
| 5867 | if test $enable_shared = "yes"; then |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5868 | PY_ENABLE_SHARED=1 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5869 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5870 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5871 | |
| 5872 | case $ac_sys_system in |
| 5873 | CYGWIN*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5874 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
| 5875 | DLLLIBRARY='libpython$(LDVERSION).dll' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5876 | ;; |
| 5877 | SunOS*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5878 | LDLIBRARY='libpython$(LDVERSION).so' |
| 5879 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5880 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5881 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5882 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5883 | then |
| 5884 | PY3LIBRARY=libpython3.so |
| 5885 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5886 | ;; |
Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 5887 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5888 | LDLIBRARY='libpython$(LDVERSION).so' |
| 5889 | BLDLIBRARY='-L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5890 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5891 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5892 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5893 | then |
| 5894 | PY3LIBRARY=libpython3.so |
| 5895 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5896 | ;; |
| 5897 | hp*|HP*) |
| 5898 | case `uname -m` in |
| 5899 | ia64) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5900 | LDLIBRARY='libpython$(LDVERSION).so' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5901 | ;; |
| 5902 | *) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5903 | LDLIBRARY='libpython$(LDVERSION).sl' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5904 | ;; |
| 5905 | esac |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5906 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5907 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5908 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5909 | Darwin*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5910 | LDLIBRARY='libpython$(LDVERSION).dylib' |
| 5911 | BLDLIBRARY='-L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5912 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5913 | ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5914 | AIX*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5915 | LDLIBRARY='libpython$(LDVERSION).so' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5916 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5917 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5918 | |
| 5919 | esac |
| 5920 | else # shared is disabled |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5921 | PY_ENABLE_SHARED=0 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5922 | case $ac_sys_system in |
| 5923 | CYGWIN*) |
| 5924 | BLDLIBRARY='$(LIBRARY)' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5925 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5926 | ;; |
| 5927 | esac |
| 5928 | fi |
| 5929 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 5930 | if test "$cross_compiling" = yes; then |
| 5931 | RUNSHARED= |
| 5932 | fi |
| 5933 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
| 5935 | $as_echo "$LDLIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5936 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5937 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5938 | if test -n "$ac_tool_prefix"; then |
| 5939 | for ac_prog in ar aal |
| 5940 | do |
| 5941 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5942 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5944 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5945 | if ${ac_cv_prog_AR+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5946 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5947 | else |
| 5948 | if test -n "$AR"; then |
| 5949 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5950 | else |
| 5951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5952 | for as_dir in $PATH |
| 5953 | do |
| 5954 | IFS=$as_save_IFS |
| 5955 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5956 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5957 | 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] | 5958 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5959 | $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] | 5960 | break 2 |
| 5961 | fi |
| 5962 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5963 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5964 | IFS=$as_save_IFS |
| 5965 | |
| 5966 | fi |
| 5967 | fi |
| 5968 | AR=$ac_cv_prog_AR |
| 5969 | if test -n "$AR"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5971 | $as_echo "$AR" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5972 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5974 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5975 | fi |
| 5976 | |
| 5977 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5978 | test -n "$AR" && break |
| 5979 | done |
| 5980 | fi |
| 5981 | if test -z "$AR"; then |
| 5982 | ac_ct_AR=$AR |
| 5983 | for ac_prog in ar aal |
| 5984 | do |
| 5985 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5986 | set dummy $ac_prog; ac_word=$2 |
| 5987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5988 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5989 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 5990 | $as_echo_n "(cached) " >&6 |
| 5991 | else |
| 5992 | if test -n "$ac_ct_AR"; then |
| 5993 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5994 | else |
| 5995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5996 | for as_dir in $PATH |
| 5997 | do |
| 5998 | IFS=$as_save_IFS |
| 5999 | test -z "$as_dir" && as_dir=. |
| 6000 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 6001 | 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] | 6002 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 6003 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6004 | break 2 |
| 6005 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6006 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6007 | done |
| 6008 | IFS=$as_save_IFS |
| 6009 | |
| 6010 | fi |
| 6011 | fi |
| 6012 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6013 | if test -n "$ac_ct_AR"; then |
| 6014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6015 | $as_echo "$ac_ct_AR" >&6; } |
| 6016 | else |
| 6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6018 | $as_echo "no" >&6; } |
| 6019 | fi |
| 6020 | |
| 6021 | |
| 6022 | test -n "$ac_ct_AR" && break |
| 6023 | done |
| 6024 | |
| 6025 | if test "x$ac_ct_AR" = x; then |
| 6026 | AR="ar" |
| 6027 | else |
| 6028 | case $cross_compiling:$ac_tool_warned in |
| 6029 | yes:) |
| 6030 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6031 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6032 | ac_tool_warned=yes ;; |
| 6033 | esac |
| 6034 | AR=$ac_ct_AR |
| 6035 | fi |
| 6036 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6037 | |
| 6038 | |
| 6039 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 6040 | |
| 6041 | if test -z "$ARFLAGS" |
| 6042 | then |
Benjamin Peterson | d15108a | 2017-09-29 08:42:41 -0700 | [diff] [blame] | 6043 | ARFLAGS="rcs" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6044 | fi |
| 6045 | |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6046 | if test -n "$ac_tool_prefix"; then |
| 6047 | for ac_prog in readelf |
| 6048 | do |
| 6049 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6050 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6052 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6053 | if ${ac_cv_prog_READELF+:} false; then : |
| 6054 | $as_echo_n "(cached) " >&6 |
| 6055 | else |
| 6056 | if test -n "$READELF"; then |
| 6057 | ac_cv_prog_READELF="$READELF" # Let the user override the test. |
| 6058 | else |
| 6059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6060 | for as_dir in $PATH |
| 6061 | do |
| 6062 | IFS=$as_save_IFS |
| 6063 | test -z "$as_dir" && as_dir=. |
| 6064 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6065 | 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] | 6066 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" |
| 6067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6068 | break 2 |
| 6069 | fi |
| 6070 | done |
| 6071 | done |
| 6072 | IFS=$as_save_IFS |
| 6073 | |
| 6074 | fi |
| 6075 | fi |
| 6076 | READELF=$ac_cv_prog_READELF |
| 6077 | if test -n "$READELF"; then |
| 6078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 |
| 6079 | $as_echo "$READELF" >&6; } |
| 6080 | else |
| 6081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6082 | $as_echo "no" >&6; } |
| 6083 | fi |
| 6084 | |
| 6085 | |
| 6086 | test -n "$READELF" && break |
| 6087 | done |
| 6088 | fi |
| 6089 | if test -z "$READELF"; then |
| 6090 | ac_ct_READELF=$READELF |
| 6091 | for ac_prog in readelf |
| 6092 | do |
| 6093 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6094 | set dummy $ac_prog; ac_word=$2 |
| 6095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6096 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6097 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : |
| 6098 | $as_echo_n "(cached) " >&6 |
| 6099 | else |
| 6100 | if test -n "$ac_ct_READELF"; then |
| 6101 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. |
| 6102 | else |
| 6103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6104 | for as_dir in $PATH |
| 6105 | do |
| 6106 | IFS=$as_save_IFS |
| 6107 | test -z "$as_dir" && as_dir=. |
| 6108 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6109 | 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] | 6110 | ac_cv_prog_ac_ct_READELF="$ac_prog" |
| 6111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6112 | break 2 |
| 6113 | fi |
| 6114 | done |
| 6115 | done |
| 6116 | IFS=$as_save_IFS |
| 6117 | |
| 6118 | fi |
| 6119 | fi |
| 6120 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF |
| 6121 | if test -n "$ac_ct_READELF"; then |
| 6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 |
| 6123 | $as_echo "$ac_ct_READELF" >&6; } |
| 6124 | else |
| 6125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6126 | $as_echo "no" >&6; } |
| 6127 | fi |
| 6128 | |
| 6129 | |
| 6130 | test -n "$ac_ct_READELF" && break |
| 6131 | done |
| 6132 | |
| 6133 | if test "x$ac_ct_READELF" = x; then |
| 6134 | READELF=":" |
| 6135 | else |
| 6136 | case $cross_compiling:$ac_tool_warned in |
| 6137 | yes:) |
| 6138 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6139 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6140 | ac_tool_warned=yes ;; |
| 6141 | esac |
| 6142 | READELF=$ac_ct_READELF |
| 6143 | fi |
| 6144 | fi |
| 6145 | |
| 6146 | if test "$cross_compiling" = yes; then |
| 6147 | case "$READELF" in |
| 6148 | readelf|:) |
| 6149 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 |
| 6150 | ;; |
| 6151 | esac |
| 6152 | fi |
| 6153 | |
| 6154 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6155 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6156 | case $MACHDEP in |
Benjamin Peterson | 288d1da | 2017-09-28 22:44:27 -0700 | [diff] [blame] | 6157 | hp*|HP*) |
| 6158 | # install -d does not work on HP-UX |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6159 | if test -z "$INSTALL" |
| 6160 | then |
| 6161 | INSTALL="${srcdir}/install-sh -c" |
| 6162 | fi |
| 6163 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6164 | # Find a good install program. We prefer a C program (faster), |
| 6165 | # so one script is as good as another. But avoid the broken or |
| 6166 | # incompatible versions: |
| 6167 | # SysV /etc/install, /usr/sbin/install |
| 6168 | # SunOS /usr/etc/install |
| 6169 | # IRIX /sbin/install |
| 6170 | # AIX /bin/install |
| 6171 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6172 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6173 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6174 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 6175 | # OS/2's system install, which has a completely different semantic |
| 6176 | # ./install, which can be erroneously created by make from ./install.sh. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6177 | # Reject install programs that cannot install multiple files. |
| 6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 6179 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6180 | if test -z "$INSTALL"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6181 | if ${ac_cv_path_install+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6182 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6183 | else |
| 6184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6185 | for as_dir in $PATH |
| 6186 | do |
| 6187 | IFS=$as_save_IFS |
| 6188 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6189 | # Account for people who put trailing slashes in PATH elements. |
| 6190 | case $as_dir/ in #(( |
| 6191 | ./ | .// | /[cC]/* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6192 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6193 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6194 | /usr/ucb/* ) ;; |
| 6195 | *) |
| 6196 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6197 | # Don't use installbsd from OSF since it installs stuff as root |
| 6198 | # by default. |
| 6199 | for ac_prog in ginstall scoinst install; do |
| 6200 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6201 | 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] | 6202 | if test $ac_prog = install && |
| 6203 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6204 | # AIX install. It has an incompatible calling convention. |
| 6205 | : |
| 6206 | elif test $ac_prog = install && |
| 6207 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6208 | # program-specific install script used by HP pwplus--don't use. |
| 6209 | : |
| 6210 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6211 | rm -rf conftest.one conftest.two conftest.dir |
| 6212 | echo one > conftest.one |
| 6213 | echo two > conftest.two |
| 6214 | mkdir conftest.dir |
| 6215 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 6216 | test -s conftest.one && test -s conftest.two && |
| 6217 | test -s conftest.dir/conftest.one && |
| 6218 | test -s conftest.dir/conftest.two |
| 6219 | then |
| 6220 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6221 | break 3 |
| 6222 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6223 | fi |
| 6224 | fi |
| 6225 | done |
| 6226 | done |
| 6227 | ;; |
| 6228 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6229 | |
| 6230 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6231 | IFS=$as_save_IFS |
| 6232 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6233 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6234 | |
| 6235 | fi |
| 6236 | if test "${ac_cv_path_install+set}" = set; then |
| 6237 | INSTALL=$ac_cv_path_install |
| 6238 | else |
| 6239 | # As a last resort, use the slow shell script. Don't cache a |
| 6240 | # value for INSTALL within a source directory, because that will |
| 6241 | # break other packages using the cache if that directory is |
| 6242 | # removed, or if the value is a relative name. |
| 6243 | INSTALL=$ac_install_sh |
| 6244 | fi |
| 6245 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 6247 | $as_echo "$INSTALL" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6248 | |
| 6249 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6250 | # It thinks the first close brace ends the variable substitution. |
| 6251 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6252 | |
| 6253 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 6254 | |
| 6255 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6256 | |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 6258 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 6259 | if test -z "$MKDIR_P"; then |
| 6260 | if ${ac_cv_path_mkdir+:} false; then : |
| 6261 | $as_echo_n "(cached) " >&6 |
| 6262 | else |
| 6263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6264 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 6265 | do |
| 6266 | IFS=$as_save_IFS |
| 6267 | test -z "$as_dir" && as_dir=. |
| 6268 | for ac_prog in mkdir gmkdir; do |
| 6269 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6270 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6271 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 6272 | 'mkdir (GNU coreutils) '* | \ |
| 6273 | 'mkdir (coreutils) '* | \ |
| 6274 | 'mkdir (fileutils) '4.1*) |
| 6275 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 6276 | break 3;; |
| 6277 | esac |
| 6278 | done |
| 6279 | done |
| 6280 | done |
| 6281 | IFS=$as_save_IFS |
| 6282 | |
| 6283 | fi |
| 6284 | |
| 6285 | test -d ./--version && rmdir ./--version |
| 6286 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 6287 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 6288 | else |
| 6289 | # As a last resort, use the slow shell script. Don't cache a |
| 6290 | # value for MKDIR_P within a source directory, because that will |
| 6291 | # break other packages using the cache if that directory is |
| 6292 | # removed, or if the value is a relative name. |
| 6293 | MKDIR_P="$ac_install_sh -d" |
| 6294 | fi |
| 6295 | fi |
| 6296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 6297 | $as_echo "$MKDIR_P" >&6; } |
| 6298 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6299 | |
| 6300 | # Not every filesystem supports hard links |
| 6301 | |
| 6302 | if test -z "$LN" ; then |
| 6303 | case $ac_sys_system in |
| 6304 | CYGWIN*) LN="ln -s";; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6305 | *) LN=ln;; |
| 6306 | esac |
| 6307 | fi |
| 6308 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6309 | # For calculating the .so ABI tag. |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6310 | |
| 6311 | ABIFLAGS="" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6312 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6313 | # Check for --with-pydebug |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
| 6315 | $as_echo_n "checking for --with-pydebug... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6316 | |
| 6317 | # Check whether --with-pydebug was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6318 | if test "${with_pydebug+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6319 | withval=$with_pydebug; |
| 6320 | if test "$withval" != no |
| 6321 | then |
| 6322 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6323 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6324 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6326 | $as_echo "yes" >&6; }; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6327 | Py_DEBUG='true' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6328 | ABIFLAGS="${ABIFLAGS}d" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6329 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6330 | $as_echo "no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6331 | fi |
| 6332 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6334 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6335 | fi |
| 6336 | |
| 6337 | |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6338 | # Check for --with-assertions. Py_DEBUG implies assertions, but also changes |
| 6339 | # the ABI. This allows enabling assertions without changing the ABI. |
| 6340 | assertions='false' |
| 6341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 |
| 6342 | $as_echo_n "checking for --with-assertions... " >&6; } |
| 6343 | |
| 6344 | # Check whether --with-assertions was given. |
| 6345 | if test "${with_assertions+set}" = set; then : |
| 6346 | withval=$with_assertions; |
| 6347 | if test "$withval" != no |
| 6348 | then |
| 6349 | assertions='true' |
| 6350 | fi |
| 6351 | fi |
| 6352 | |
| 6353 | if test "$assertions" = 'true'; then |
| 6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6355 | $as_echo "yes" >&6; } |
| 6356 | elif test "$Py_DEBUG" = 'true'; then |
| 6357 | assertions='true' |
| 6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 |
| 6359 | $as_echo "implied by --with-pydebug" >&6; } |
| 6360 | else |
| 6361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6362 | $as_echo "no" >&6; } |
| 6363 | fi |
| 6364 | |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6365 | # Enable optimization flags |
| 6366 | |
| 6367 | |
| 6368 | Py_OPT='false' |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 |
| 6370 | $as_echo_n "checking for --enable-optimizations... " >&6; } |
| 6371 | # Check whether --enable-optimizations was given. |
| 6372 | if test "${enable_optimizations+set}" = set; then : |
| 6373 | enableval=$enable_optimizations; |
Alex Wang | 8cea592 | 2017-03-28 08:50:51 -0400 | [diff] [blame] | 6374 | if test "$enableval" != no |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6375 | then |
| 6376 | Py_OPT='true' |
| 6377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6378 | $as_echo "yes" >&6; }; |
| 6379 | else |
| 6380 | Py_OPT='false' |
| 6381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6382 | $as_echo "no" >&6; }; |
| 6383 | fi |
| 6384 | else |
| 6385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6386 | $as_echo "no" >&6; } |
| 6387 | fi |
| 6388 | |
| 6389 | if test "$Py_OPT" = 'true' ; then |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 6390 | # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not |
| 6391 | # 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] | 6392 | # 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] | 6393 | # who want LTO need to use --with-lto themselves. |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6394 | DEF_MAKE_ALL_RULE="profile-opt" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6395 | REQUIRE_PGO="yes" |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6396 | DEF_MAKE_RULE="build_all" |
| 6397 | else |
| 6398 | DEF_MAKE_ALL_RULE="build_all" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6399 | REQUIRE_PGO="no" |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6400 | DEF_MAKE_RULE="all" |
| 6401 | fi |
| 6402 | |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6403 | # Enable LTO flags |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 |
| 6405 | $as_echo_n "checking for --with-lto... " >&6; } |
| 6406 | |
| 6407 | # Check whether --with-lto was given. |
| 6408 | if test "${with_lto+set}" = set; then : |
| 6409 | withval=$with_lto; |
| 6410 | if test "$withval" != no |
| 6411 | then |
| 6412 | Py_LTO='true' |
| 6413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6414 | $as_echo "yes" >&6; }; |
| 6415 | else |
| 6416 | Py_LTO='false' |
| 6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6418 | $as_echo "no" >&6; }; |
| 6419 | fi |
| 6420 | else |
| 6421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6422 | $as_echo "no" >&6; } |
| 6423 | fi |
| 6424 | |
| 6425 | if test "$Py_LTO" = 'true' ; then |
| 6426 | case $CC in |
| 6427 | *clang*) |
Ned Deily | 8482ce4 | 2016-09-06 15:09:20 -0700 | [diff] [blame] | 6428 | case $ac_sys_system in |
| 6429 | Darwin*) |
| 6430 | # Any changes made here should be reflected in the GCC+Darwin case below |
| 6431 | LTOFLAGS="-flto -Wl,-export_dynamic" |
| 6432 | ;; |
| 6433 | *) |
| 6434 | LTOFLAGS="-flto" |
| 6435 | ;; |
| 6436 | esac |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6437 | ;; |
| 6438 | *gcc*) |
| 6439 | case $ac_sys_system in |
| 6440 | Darwin*) |
Ned Deily | 8482ce4 | 2016-09-06 15:09:20 -0700 | [diff] [blame] | 6441 | LTOFLAGS="-flto -Wl,-export_dynamic" |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6442 | ;; |
| 6443 | *) |
| 6444 | LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" |
| 6445 | ;; |
| 6446 | esac |
| 6447 | ;; |
| 6448 | esac |
octaviansoldea | 4c81401 | 2017-09-08 12:14:33 -0700 | [diff] [blame] | 6449 | CFLAGS="$CFLAGS $LTOFLAGS" |
| 6450 | LDFLAGS="$LDFLAGS $LTOFLAGS" |
Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6451 | fi |
| 6452 | |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6453 | # Enable PGO flags. |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6454 | |
| 6455 | |
| 6456 | |
| 6457 | |
| 6458 | |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6459 | # Make this work on systems where llvm tools are not installed with their |
| 6460 | # normal names in the default $PATH (ie: Ubuntu). They exist under the |
| 6461 | # non-suffixed name in their versioned llvm directory. |
| 6462 | llvm_bin_dir='' |
| 6463 | llvm_path="${PATH}" |
| 6464 | if test "${CC}" = "clang" |
| 6465 | then |
| 6466 | clang_bin=`which clang` |
| 6467 | # Some systems install clang elsewhere as a symlink to the real path |
| 6468 | # which is where the related llvm tools are located. |
| 6469 | if test -L "${clang_bin}" |
| 6470 | then |
| 6471 | clang_dir=`dirname "${clang_bin}"` |
| 6472 | clang_bin=`readlink "${clang_bin}"` |
| 6473 | llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` |
| 6474 | llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" |
| 6475 | fi |
| 6476 | fi |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6477 | |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 6479 | $as_echo_n "checking target system type... " >&6; } |
| 6480 | if ${ac_cv_target+:} false; then : |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6481 | $as_echo_n "(cached) " >&6 |
| 6482 | else |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6483 | if test "x$target_alias" = x; then |
| 6484 | ac_cv_target=$ac_cv_host |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6485 | else |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6486 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 6487 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
| 6488 | fi |
| 6489 | |
| 6490 | fi |
| 6491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 6492 | $as_echo "$ac_cv_target" >&6; } |
| 6493 | case $ac_cv_target in |
| 6494 | *-*-*) ;; |
| 6495 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
| 6496 | esac |
| 6497 | target=$ac_cv_target |
| 6498 | ac_save_IFS=$IFS; IFS='-' |
| 6499 | set x $ac_cv_target |
| 6500 | shift |
| 6501 | target_cpu=$1 |
| 6502 | target_vendor=$2 |
| 6503 | shift; shift |
| 6504 | # Remember, the first character of IFS is used to create $*, |
| 6505 | # except with old shells: |
| 6506 | target_os=$* |
| 6507 | IFS=$ac_save_IFS |
| 6508 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 6509 | |
| 6510 | |
| 6511 | # The aliases save the names the user supplied, while $host etc. |
| 6512 | # will get canonicalized. |
| 6513 | test -n "$target_alias" && |
| 6514 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 6515 | NONENONEs,x,x, && |
| 6516 | program_prefix=${target_alias}- |
| 6517 | # Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args. |
| 6518 | set dummy $target_alias-llvm-profdata; ac_word=$2 |
| 6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6520 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6521 | if ${ac_cv_path_LLVM_PROFDATA+:} false; then : |
| 6522 | $as_echo_n "(cached) " >&6 |
| 6523 | else |
| 6524 | case $LLVM_PROFDATA in |
| 6525 | [\\/]* | ?:[\\/]*) |
| 6526 | ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. |
| 6527 | ;; |
| 6528 | *) |
| 6529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6530 | for as_dir in ${llvm_path} |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6531 | do |
| 6532 | IFS=$as_save_IFS |
| 6533 | test -z "$as_dir" && as_dir=. |
| 6534 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6535 | 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] | 6536 | ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6537 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6538 | break 2 |
| 6539 | fi |
| 6540 | done |
| 6541 | done |
| 6542 | IFS=$as_save_IFS |
| 6543 | |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6544 | ;; |
| 6545 | esac |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6546 | fi |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6547 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA |
| 6548 | if test -n "$LLVM_PROFDATA"; then |
| 6549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 |
| 6550 | $as_echo "$LLVM_PROFDATA" >&6; } |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6551 | else |
| 6552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6553 | $as_echo "no" >&6; } |
| 6554 | fi |
| 6555 | |
| 6556 | |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6557 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then |
| 6558 | if test "$build" = "$target"; then |
| 6559 | ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA |
| 6560 | # Extract the first word of "llvm-profdata", so it can be a program name with args. |
| 6561 | set dummy llvm-profdata; ac_word=$2 |
| 6562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6563 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6564 | if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : |
| 6565 | $as_echo_n "(cached) " >&6 |
| 6566 | else |
| 6567 | case $ac_pt_LLVM_PROFDATA in |
| 6568 | [\\/]* | ?:[\\/]*) |
| 6569 | ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. |
| 6570 | ;; |
| 6571 | *) |
| 6572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6573 | for as_dir in ${llvm_path} |
| 6574 | do |
| 6575 | IFS=$as_save_IFS |
| 6576 | test -z "$as_dir" && as_dir=. |
| 6577 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6578 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6579 | ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" |
| 6580 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6581 | break 2 |
| 6582 | fi |
| 6583 | done |
| 6584 | done |
| 6585 | IFS=$as_save_IFS |
| 6586 | |
| 6587 | test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''" |
| 6588 | ;; |
| 6589 | esac |
| 6590 | fi |
| 6591 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA |
| 6592 | if test -n "$ac_pt_LLVM_PROFDATA"; then |
| 6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 |
| 6594 | $as_echo "$ac_pt_LLVM_PROFDATA" >&6; } |
| 6595 | else |
| 6596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6597 | $as_echo "no" >&6; } |
| 6598 | fi |
| 6599 | |
| 6600 | LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA |
| 6601 | else |
| 6602 | LLVM_PROFDATA="''" |
| 6603 | fi |
| 6604 | else |
| 6605 | LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" |
| 6606 | fi |
| 6607 | |
| 6608 | |
| 6609 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" |
| 6610 | then |
| 6611 | LLVM_PROF_FOUND="found" |
| 6612 | else |
| 6613 | LLVM_PROF_FOUND="not-found" |
| 6614 | fi |
| 6615 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" |
| 6616 | then |
| 6617 | found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` |
| 6618 | if test -n "${found_llvm_profdata}" |
| 6619 | then |
| 6620 | # llvm-profdata isn't directly in $PATH in some cases. |
| 6621 | # https://apple.stackexchange.com/questions/197053/ |
| 6622 | LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' |
| 6623 | LLVM_PROF_FOUND=found |
| 6624 | { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 |
| 6625 | $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} |
| 6626 | fi |
| 6627 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6628 | LLVM_PROF_ERR=no |
| 6629 | case $CC in |
| 6630 | *clang*) |
| 6631 | # Any changes made here should be reflected in the GCC+Darwin case below |
| 6632 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" |
| 6633 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6634 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6635 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
| 6636 | if test $LLVM_PROF_FOUND = not-found |
| 6637 | then |
| 6638 | LLVM_PROF_ERR=yes |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6639 | if test "${REQUIRE_PGO}" = "yes" |
| 6640 | then |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6641 | 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] | 6642 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6643 | fi |
| 6644 | ;; |
| 6645 | *gcc*) |
| 6646 | case $ac_sys_system in |
| 6647 | Darwin*) |
| 6648 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" |
| 6649 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6650 | LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6651 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6652 | if test "${LLVM_PROF_FOUND}" = "not-found" |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6653 | then |
| 6654 | LLVM_PROF_ERR=yes |
Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6655 | if test "${REQUIRE_PGO}" = "yes" |
| 6656 | then |
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6657 | 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] | 6658 | fi |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6659 | fi |
| 6660 | ;; |
| 6661 | *) |
| 6662 | PGO_PROF_GEN_FLAG="-fprofile-generate" |
| 6663 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" |
| 6664 | LLVM_PROF_MERGER="true" |
| 6665 | LLVM_PROF_FILE="" |
| 6666 | ;; |
| 6667 | esac |
| 6668 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6669 | *icc*) |
| 6670 | PGO_PROF_GEN_FLAG="-prof-gen" |
| 6671 | PGO_PROF_USE_FLAG="-prof-use" |
| 6672 | LLVM_PROF_MERGER="true" |
| 6673 | LLVM_PROF_FILE="" |
| 6674 | ;; |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6675 | esac |
| 6676 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6677 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 6678 | # merged with this chunk of code? |
| 6679 | |
| 6680 | # Optimizer/debugger flags |
| 6681 | # ------------------------ |
| 6682 | # (The following bit of code is complicated enough - please keep things |
| 6683 | # indented properly. Just pretend you're editing Python code. ;-) |
| 6684 | |
| 6685 | # There are two parallel sets of case statements below, one that checks to |
| 6686 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 6687 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 6688 | # user set OPT. |
| 6689 | |
| 6690 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 6691 | # it on the command line |
| 6692 | |
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 6693 | |
Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6694 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6695 | then |
| 6696 | case $GCC in |
| 6697 | yes) |
| 6698 | if test "$CC" != 'g++' ; then |
| 6699 | STRICT_PROTO="-Wstrict-prototypes" |
| 6700 | fi |
| 6701 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 6702 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 6703 | WRAP="-fwrapv" |
| 6704 | fi |
Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6705 | |
Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6706 | case $CC in |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6707 | *clang*) |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6708 | cc_is_clang=1 |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6709 | ;; |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6710 | *) |
| 6711 | if $CC --version 2>&1 | grep -q clang |
| 6712 | then |
| 6713 | cc_is_clang=1 |
| 6714 | else |
| 6715 | cc_is_clang= |
| 6716 | fi |
Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6717 | esac |
Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6718 | |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6719 | if test -n "${cc_is_clang}" |
| 6720 | then |
| 6721 | # Clang also needs -fwrapv |
| 6722 | WRAP="-fwrapv" |
Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 6723 | # bpo-30104: disable strict aliasing to compile correctly dtoa.c, |
| 6724 | # see Makefile.pre.in for more information |
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 6725 | CFLAGS_ALIASING="-fno-strict-aliasing" |
Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6726 | fi |
| 6727 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6728 | case $ac_cv_prog_cc_g in |
| 6729 | yes) |
| 6730 | if test "$Py_DEBUG" = 'true' ; then |
| 6731 | # Optimization messes up debuggers, so turn it off for |
| 6732 | # debug builds. |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6733 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6734 | OPT="-g -Og -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6735 | else |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6736 | OPT="-g -O0 -Wall" |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6737 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6738 | else |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6739 | OPT="-g $WRAP -O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6740 | fi |
| 6741 | ;; |
| 6742 | *) |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6743 | OPT="-O3 -Wall" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6744 | ;; |
| 6745 | esac |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6746 | |
Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 6747 | OPT="$OPT $STRICT_PROTO" |
Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6748 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6749 | case $ac_sys_system in |
| 6750 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 6751 | ;; |
| 6752 | esac |
| 6753 | ;; |
| 6754 | |
| 6755 | *) |
| 6756 | OPT="-O" |
| 6757 | ;; |
| 6758 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6759 | fi |
| 6760 | |
| 6761 | |
| 6762 | |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6763 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6764 | # The -arch flags for universal builds on OSX |
| 6765 | UNIVERSAL_ARCH_FLAGS= |
| 6766 | |
| 6767 | |
| 6768 | # tweak BASECFLAGS based on compiler and platform |
| 6769 | case $GCC in |
| 6770 | yes) |
Benjamin Peterson | 050af5d | 2016-09-10 17:53:13 -0700 | [diff] [blame] | 6771 | CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" |
Benjamin Peterson | d170256 | 2016-09-07 12:00:06 -0700 | [diff] [blame] | 6772 | |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 6773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 |
| 6774 | $as_echo_n "checking for -Wextra... " >&6; } |
| 6775 | ac_save_cc="$CC" |
| 6776 | CC="$CC -Wextra -Werror" |
| 6777 | if ${ac_cv_extra_warnings+:} false; then : |
| 6778 | $as_echo_n "(cached) " >&6 |
| 6779 | else |
| 6780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6781 | /* end confdefs.h. */ |
| 6782 | |
| 6783 | |
| 6784 | int |
| 6785 | main () |
| 6786 | { |
| 6787 | |
| 6788 | ; |
| 6789 | return 0; |
| 6790 | } |
| 6791 | |
| 6792 | _ACEOF |
| 6793 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6794 | |
| 6795 | ac_cv_extra_warnings=yes |
| 6796 | |
| 6797 | else |
| 6798 | |
| 6799 | ac_cv_extra_warnings=no |
| 6800 | |
| 6801 | fi |
| 6802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6803 | fi |
| 6804 | |
| 6805 | CC="$ac_save_cc" |
| 6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 |
| 6807 | $as_echo "$ac_cv_extra_warnings" >&6; } |
| 6808 | |
| 6809 | if test $ac_cv_extra_warnings = yes |
| 6810 | then |
| 6811 | CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" |
| 6812 | fi |
| 6813 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6814 | # Python doesn't violate C99 aliasing rules, but older versions of |
| 6815 | # GCC produce warnings for legal Python code. Enable |
| 6816 | # -fno-strict-aliasing on versions of GCC that support but produce |
| 6817 | # warnings. See Issue3326 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
| 6819 | $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] | 6820 | ac_save_cc="$CC" |
| 6821 | CC="$CC -fno-strict-aliasing" |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6822 | save_CFLAGS="$CFLAGS" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6823 | if ${ac_cv_no_strict_aliasing+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6824 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6825 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6827 | /* end confdefs.h. */ |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6828 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6829 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6830 | int |
| 6831 | main () |
| 6832 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6833 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6834 | ; |
| 6835 | return 0; |
| 6836 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6837 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6838 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6839 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6840 | |
| 6841 | CC="$ac_save_cc -fstrict-aliasing" |
| 6842 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" |
| 6843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6844 | /* end confdefs.h. */ |
| 6845 | |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6846 | void f(int **x) {} |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6847 | int |
| 6848 | main () |
| 6849 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6850 | double *x; f((int **) &x); |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6851 | ; |
| 6852 | return 0; |
| 6853 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6854 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6855 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6856 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6857 | |
| 6858 | ac_cv_no_strict_aliasing=no |
| 6859 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6860 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6861 | |
| 6862 | ac_cv_no_strict_aliasing=yes |
| 6863 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6864 | fi |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6866 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6867 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6868 | |
| 6869 | ac_cv_no_strict_aliasing=no |
| 6870 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6871 | fi |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6873 | fi |
| 6874 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6875 | CFLAGS="$save_CFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6876 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
| 6878 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6879 | if test $ac_cv_no_strict_aliasing = yes |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6880 | then |
| 6881 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 6882 | fi |
| 6883 | |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6884 | # ICC doesn't recognize the option, but only emits a warning |
| 6885 | ## XXX does it emit an unused result warning and can it be disabled? |
| 6886 | case "$CC" in |
| 6887 | *icc*) |
| 6888 | ac_cv_disable_unused_result_warning=no |
| 6889 | ;; |
| 6890 | *) |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 |
| 6892 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } |
| 6893 | ac_save_cc="$CC" |
| 6894 | CC="$CC -Wunused-result -Werror" |
| 6895 | save_CFLAGS="$CFLAGS" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6896 | if ${ac_cv_disable_unused_result_warning+:} false; then : |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6897 | $as_echo_n "(cached) " >&6 |
| 6898 | else |
| 6899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6900 | /* end confdefs.h. */ |
| 6901 | |
| 6902 | |
| 6903 | int |
| 6904 | main () |
| 6905 | { |
| 6906 | |
| 6907 | ; |
| 6908 | return 0; |
| 6909 | } |
| 6910 | |
| 6911 | _ACEOF |
| 6912 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6913 | |
| 6914 | ac_cv_disable_unused_result_warning=yes |
| 6915 | |
| 6916 | else |
| 6917 | |
| 6918 | ac_cv_disable_unused_result_warning=no |
| 6919 | |
| 6920 | fi |
| 6921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6922 | fi |
| 6923 | |
| 6924 | CFLAGS="$save_CFLAGS" |
| 6925 | CC="$ac_save_cc" |
| 6926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 |
| 6927 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6928 | ;; |
| 6929 | esac |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6930 | |
| 6931 | if test $ac_cv_disable_unused_result_warning = yes |
| 6932 | then |
| 6933 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" |
Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 6934 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" |
| 6935 | fi |
| 6936 | |
| 6937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 |
| 6938 | $as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } |
| 6939 | ac_save_cc="$CC" |
| 6940 | CC="$CC -Wunused-parameter -Werror" |
| 6941 | if ${ac_cv_disable_unused_parameter_warning+:} false; then : |
| 6942 | $as_echo_n "(cached) " >&6 |
| 6943 | else |
| 6944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6945 | /* end confdefs.h. */ |
| 6946 | |
| 6947 | |
| 6948 | int |
| 6949 | main () |
| 6950 | { |
| 6951 | |
| 6952 | ; |
| 6953 | return 0; |
| 6954 | } |
| 6955 | |
| 6956 | _ACEOF |
| 6957 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6958 | |
| 6959 | ac_cv_disable_unused_parameter_warning=yes |
| 6960 | |
| 6961 | else |
| 6962 | |
| 6963 | ac_cv_disable_unused_parameter_warning=no |
| 6964 | |
| 6965 | fi |
| 6966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6967 | fi |
| 6968 | |
| 6969 | CC="$ac_save_cc" |
| 6970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 |
| 6971 | $as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } |
| 6972 | |
| 6973 | if test $ac_cv_disable_unused_parameter_warning = yes |
| 6974 | then |
| 6975 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" |
| 6976 | fi |
| 6977 | |
| 6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 |
| 6979 | $as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } |
| 6980 | ac_save_cc="$CC" |
| 6981 | CC="$CC -Wmissing-field-initializers -Werror" |
| 6982 | if ${ac_cv_disable_missing_field_initializers+:} false; then : |
| 6983 | $as_echo_n "(cached) " >&6 |
| 6984 | else |
| 6985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6986 | /* end confdefs.h. */ |
| 6987 | |
| 6988 | |
| 6989 | int |
| 6990 | main () |
| 6991 | { |
| 6992 | |
| 6993 | ; |
| 6994 | return 0; |
| 6995 | } |
| 6996 | |
| 6997 | _ACEOF |
| 6998 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6999 | |
| 7000 | ac_cv_disable_missing_field_initializers=yes |
| 7001 | |
| 7002 | else |
| 7003 | |
| 7004 | ac_cv_disable_missing_field_initializers=no |
| 7005 | |
| 7006 | fi |
| 7007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7008 | fi |
| 7009 | |
| 7010 | CC="$ac_save_cc" |
| 7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 |
| 7012 | $as_echo "$ac_cv_disable_missing_field_initializers" >&6; } |
| 7013 | |
| 7014 | if test $ac_cv_disable_missing_field_initializers = yes |
| 7015 | then |
| 7016 | CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7017 | fi |
| 7018 | |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 |
| 7020 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } |
| 7021 | ac_save_cc="$CC" |
| 7022 | CC="$CC -Wsign-compare" |
| 7023 | save_CFLAGS="$CFLAGS" |
| 7024 | if ${ac_cv_enable_sign_compare_warning+:} false; then : |
| 7025 | $as_echo_n "(cached) " >&6 |
| 7026 | else |
| 7027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7028 | /* end confdefs.h. */ |
| 7029 | |
| 7030 | |
| 7031 | int |
| 7032 | main () |
| 7033 | { |
| 7034 | |
| 7035 | ; |
| 7036 | return 0; |
| 7037 | } |
| 7038 | |
| 7039 | _ACEOF |
| 7040 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7041 | |
| 7042 | ac_cv_enable_sign_compare_warning=yes |
| 7043 | |
| 7044 | else |
| 7045 | |
| 7046 | ac_cv_enable_sign_compare_warning=no |
| 7047 | |
| 7048 | fi |
| 7049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7050 | fi |
| 7051 | |
| 7052 | CFLAGS="$save_CFLAGS" |
| 7053 | CC="$ac_save_cc" |
| 7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 |
| 7055 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } |
| 7056 | |
| 7057 | if test $ac_cv_enable_sign_compare_warning = yes |
| 7058 | then |
| 7059 | BASECFLAGS="$BASECFLAGS -Wsign-compare" |
| 7060 | fi |
| 7061 | |
| 7062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 |
| 7063 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } |
| 7064 | ac_save_cc="$CC" |
| 7065 | CC="$CC -Wunreachable-code" |
| 7066 | save_CFLAGS="$CFLAGS" |
| 7067 | if ${ac_cv_enable_unreachable_code_warning+:} false; then : |
| 7068 | $as_echo_n "(cached) " >&6 |
| 7069 | else |
| 7070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7071 | /* end confdefs.h. */ |
| 7072 | |
| 7073 | |
| 7074 | int |
| 7075 | main () |
| 7076 | { |
| 7077 | |
| 7078 | ; |
| 7079 | return 0; |
| 7080 | } |
| 7081 | |
| 7082 | _ACEOF |
| 7083 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7084 | |
| 7085 | ac_cv_enable_unreachable_code_warning=yes |
| 7086 | |
| 7087 | else |
| 7088 | |
| 7089 | ac_cv_enable_unreachable_code_warning=no |
| 7090 | |
| 7091 | fi |
| 7092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7093 | fi |
| 7094 | |
| 7095 | CFLAGS="$save_CFLAGS" |
| 7096 | CC="$ac_save_cc" |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7097 | |
| 7098 | # Don't enable unreachable code warning in debug mode, since it usually |
| 7099 | # results in non-standard code paths. |
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7100 | # Issue #24324: Unfortunately, the unreachable code warning does not work |
| 7101 | # correctly on gcc and has been silently removed from the compiler. |
| 7102 | # It is supported on clang but on OS X systems gcc may be an alias |
| 7103 | # for clang. Try to determine if the compiler is not really gcc and, |
| 7104 | # if so, only then enable the warning. |
| 7105 | if test $ac_cv_enable_unreachable_code_warning = yes && \ |
| 7106 | test "$Py_DEBUG" != "true" && \ |
| 7107 | 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] | 7108 | then |
| 7109 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" |
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7110 | else |
| 7111 | ac_cv_enable_unreachable_code_warning=no |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7112 | fi |
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 |
| 7114 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7115 | |
Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 |
| 7117 | $as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; } |
| 7118 | ac_save_cc="$CC" |
| 7119 | CC="$CC -Werror=implicit-function-declaration" |
| 7120 | if ${ac_cv_enable_implicit_function_declaration_error+:} false; then : |
| 7121 | $as_echo_n "(cached) " >&6 |
| 7122 | else |
| 7123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7124 | /* end confdefs.h. */ |
| 7125 | |
| 7126 | |
| 7127 | int |
| 7128 | main () |
| 7129 | { |
| 7130 | |
| 7131 | ; |
| 7132 | return 0; |
| 7133 | } |
| 7134 | |
| 7135 | _ACEOF |
| 7136 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7137 | |
| 7138 | ac_cv_enable_implicit_function_declaration_error=yes |
| 7139 | |
| 7140 | else |
| 7141 | |
| 7142 | ac_cv_enable_implicit_function_declaration_error=no |
| 7143 | |
| 7144 | fi |
| 7145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7146 | fi |
| 7147 | |
| 7148 | CC="$ac_save_cc" |
| 7149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 |
| 7150 | $as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; } |
| 7151 | |
| 7152 | if test $ac_cv_enable_implicit_function_declaration_error = yes |
| 7153 | then |
| 7154 | CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" |
| 7155 | fi |
| 7156 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7157 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 7158 | # support. Without this, treatment of subnormals doesn't follow |
| 7159 | # the standard. |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 7160 | case $host in |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7161 | alpha*) |
| 7162 | BASECFLAGS="$BASECFLAGS -mieee" |
| 7163 | ;; |
| 7164 | esac |
| 7165 | |
| 7166 | case $ac_sys_system in |
| 7167 | SCO_SV*) |
| 7168 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 7169 | ;; |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7170 | |
| 7171 | # is there any other compiler on Darwin besides gcc? |
| 7172 | Darwin*) |
| 7173 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 7174 | # used to be here, but non-Apple gcc doesn't accept them. |
| 7175 | if test "${CC}" = gcc |
| 7176 | then |
| 7177 | { $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] | 7178 | $as_echo_n "checking which compiler should be used... " >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7179 | case "${UNIVERSALSDK}" in |
| 7180 | */MacOSX10.4u.sdk) |
| 7181 | # Build using 10.4 SDK, force usage of gcc when the |
| 7182 | # compiler is gcc, otherwise the user will get very |
| 7183 | # confusing error messages when building on OSX 10.6 |
| 7184 | CC=gcc-4.0 |
| 7185 | CPP=cpp-4.0 |
| 7186 | ;; |
| 7187 | esac |
| 7188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7189 | $as_echo "$CC" >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7190 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7191 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7192 | if test "${enable_universalsdk}" |
| 7193 | then |
| 7194 | case "$UNIVERSAL_ARCHS" in |
| 7195 | 32-bit) |
| 7196 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 7197 | LIPO_32BIT_FLAGS="" |
| 7198 | ARCH_RUN_32BIT="" |
| 7199 | ;; |
| 7200 | 64-bit) |
| 7201 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 7202 | LIPO_32BIT_FLAGS="" |
| 7203 | ARCH_RUN_32BIT="true" |
| 7204 | ;; |
| 7205 | all) |
| 7206 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 7207 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 7208 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
| 7209 | ;; |
| 7210 | intel) |
| 7211 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 7212 | LIPO_32BIT_FLAGS="-extract i386" |
| 7213 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
| 7214 | ;; |
| 7215 | intel-32) |
| 7216 | UNIVERSAL_ARCH_FLAGS="-arch i386" |
| 7217 | LIPO_32BIT_FLAGS="" |
| 7218 | ARCH_RUN_32BIT="" |
| 7219 | ;; |
| 7220 | 3-way) |
| 7221 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 7222 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 7223 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
| 7224 | ;; |
| 7225 | *) |
| 7226 | as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 |
| 7227 | ;; |
| 7228 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7229 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7230 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 7231 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 7232 | if test "${UNIVERSALSDK}" != "/" |
| 7233 | then |
| 7234 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
| 7235 | fi |
| 7236 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7237 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7238 | # Calculate an appropriate deployment target for this build: |
| 7239 | # The deployment target value is used explicitly to enable certain |
| 7240 | # features are enabled (such as builtin libedit support for readline) |
Raymond Hettinger | 15f44ab | 2016-08-30 10:47:49 -0700 | [diff] [blame] | 7241 | # 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] | 7242 | # component of the string returned by distutils.get_platform(). |
| 7243 | # |
| 7244 | # Use the value from: |
| 7245 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified |
| 7246 | # 2. the operating system version of the build machine if >= 10.6 |
| 7247 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests |
| 7248 | # below to pick either 10.3, 10.4, or 10.5 as the target. |
| 7249 | # 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] | 7250 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 |
| 7252 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7253 | cur_target_major=`sw_vers -productVersion | \ |
| 7254 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` |
| 7255 | cur_target_minor=`sw_vers -productVersion | \ |
| 7256 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` |
| 7257 | cur_target="${cur_target_major}.${cur_target_minor}" |
| 7258 | if test ${cur_target_major} -eq 10 && \ |
| 7259 | test ${cur_target_minor} -ge 3 && \ |
| 7260 | test ${cur_target_minor} -le 5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7261 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7262 | # OS X 10.3 through 10.5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7263 | cur_target=10.3 |
| 7264 | if test ${enable_universalsdk} |
| 7265 | then |
| 7266 | case "$UNIVERSAL_ARCHS" in |
| 7267 | all|3-way|intel|64-bit) |
| 7268 | # These configurations were first supported in 10.5 |
| 7269 | cur_target='10.5' |
| 7270 | ;; |
| 7271 | esac |
| 7272 | else |
| 7273 | if test `/usr/bin/arch` = "i386" |
| 7274 | then |
| 7275 | # 10.4 was the first release to support Intel archs |
| 7276 | cur_target="10.4" |
| 7277 | fi |
| 7278 | fi |
| 7279 | fi |
| 7280 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7281 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7282 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 7283 | # environment with a value that is the same as what we'll use |
| 7284 | # in the Makefile to ensure that we'll get the same compiler |
| 7285 | # environment during configure and build time. |
| 7286 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 7287 | export MACOSX_DEPLOYMENT_TARGET |
| 7288 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 7289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 |
| 7290 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7291 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7292 | # end of Darwin* tests |
| 7293 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7294 | esac |
| 7295 | ;; |
| 7296 | |
| 7297 | *) |
| 7298 | case $ac_sys_system in |
| 7299 | OpenUNIX*|UnixWare*) |
| 7300 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 7301 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7302 | SCO_SV*) |
| 7303 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 7304 | ;; |
| 7305 | esac |
| 7306 | ;; |
| 7307 | esac |
| 7308 | |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7309 | # ICC needs -fp-model strict or floats behave badly |
| 7310 | case "$CC" in |
| 7311 | *icc*) |
| 7312 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" |
| 7313 | ;; |
| 7314 | esac |
| 7315 | |
T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 7316 | if test "$assertions" = 'true'; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7317 | : |
| 7318 | else |
| 7319 | OPT="-DNDEBUG $OPT" |
| 7320 | fi |
| 7321 | |
| 7322 | if test "$ac_arch_flags" |
| 7323 | then |
| 7324 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 7325 | fi |
| 7326 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7327 | # On some compilers, pthreads are available without further options |
| 7328 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 7329 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 7330 | # So we have to see first whether pthreads are available without |
| 7331 | # options before we can check whether -Kpthread improves anything. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
| 7333 | $as_echo_n "checking whether pthreads are available without options... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7334 | if ${ac_cv_pthread_is_default+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7335 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7336 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7337 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7338 | ac_cv_pthread_is_default=no |
| 7339 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7341 | /* end confdefs.h. */ |
| 7342 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7343 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7344 | #include <pthread.h> |
| 7345 | |
| 7346 | void* routine(void* p){return NULL;} |
| 7347 | |
| 7348 | int main(){ |
| 7349 | pthread_t p; |
| 7350 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7351 | return 1; |
| 7352 | (void)pthread_detach(p); |
| 7353 | return 0; |
| 7354 | } |
| 7355 | |
| 7356 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7357 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7358 | |
| 7359 | ac_cv_pthread_is_default=yes |
| 7360 | ac_cv_kthread=no |
| 7361 | ac_cv_pthread=no |
| 7362 | |
| 7363 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7364 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7365 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7366 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7367 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7368 | fi |
| 7369 | |
| 7370 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7371 | fi |
| 7372 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
| 7374 | $as_echo "$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7375 | |
| 7376 | |
| 7377 | if test $ac_cv_pthread_is_default = yes |
| 7378 | then |
| 7379 | ac_cv_kpthread=no |
| 7380 | else |
| 7381 | # -Kpthread, if available, provides the right #defines |
| 7382 | # and linker options to make pthread_create available |
| 7383 | # Some compilers won't report that they do not support -Kpthread, |
| 7384 | # so we need to run a program to see whether it really made the |
| 7385 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
| 7387 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7388 | if ${ac_cv_kpthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7389 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7390 | else |
| 7391 | ac_save_cc="$CC" |
| 7392 | CC="$CC -Kpthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7393 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7394 | ac_cv_kpthread=no |
| 7395 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7397 | /* end confdefs.h. */ |
| 7398 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7399 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7400 | #include <pthread.h> |
| 7401 | |
| 7402 | void* routine(void* p){return NULL;} |
| 7403 | |
| 7404 | int main(){ |
| 7405 | pthread_t p; |
| 7406 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7407 | return 1; |
| 7408 | (void)pthread_detach(p); |
| 7409 | return 0; |
| 7410 | } |
| 7411 | |
| 7412 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7413 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7414 | ac_cv_kpthread=yes |
| 7415 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7416 | ac_cv_kpthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7417 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7418 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7419 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7420 | fi |
| 7421 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7422 | CC="$ac_save_cc" |
| 7423 | fi |
| 7424 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
| 7426 | $as_echo "$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7427 | fi |
| 7428 | |
| 7429 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 7430 | then |
| 7431 | # -Kthread, if available, provides the right #defines |
| 7432 | # and linker options to make pthread_create available |
| 7433 | # Some compilers won't report that they do not support -Kthread, |
| 7434 | # so we need to run a program to see whether it really made the |
| 7435 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
| 7437 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7438 | if ${ac_cv_kthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7439 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7440 | else |
| 7441 | ac_save_cc="$CC" |
| 7442 | CC="$CC -Kthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7443 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7444 | ac_cv_kthread=no |
| 7445 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7447 | /* end confdefs.h. */ |
| 7448 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7449 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7450 | #include <pthread.h> |
| 7451 | |
| 7452 | void* routine(void* p){return NULL;} |
| 7453 | |
| 7454 | int main(){ |
| 7455 | pthread_t p; |
| 7456 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7457 | return 1; |
| 7458 | (void)pthread_detach(p); |
| 7459 | return 0; |
| 7460 | } |
| 7461 | |
| 7462 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7463 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7464 | ac_cv_kthread=yes |
| 7465 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7466 | ac_cv_kthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7467 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7468 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7469 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7470 | fi |
| 7471 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7472 | CC="$ac_save_cc" |
| 7473 | fi |
| 7474 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
| 7476 | $as_echo "$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7477 | fi |
| 7478 | |
| 7479 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 7480 | then |
| 7481 | # -pthread, if available, provides the right #defines |
| 7482 | # and linker options to make pthread_create available |
| 7483 | # Some compilers won't report that they do not support -pthread, |
| 7484 | # so we need to run a program to see whether it really made the |
| 7485 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
| 7487 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } |
doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 7488 | if ${ac_cv_pthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7489 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7490 | else |
| 7491 | ac_save_cc="$CC" |
| 7492 | CC="$CC -pthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7493 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7494 | ac_cv_pthread=no |
| 7495 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7497 | /* end confdefs.h. */ |
| 7498 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7499 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7500 | #include <pthread.h> |
| 7501 | |
| 7502 | void* routine(void* p){return NULL;} |
| 7503 | |
| 7504 | int main(){ |
| 7505 | pthread_t p; |
| 7506 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7507 | return 1; |
| 7508 | (void)pthread_detach(p); |
| 7509 | return 0; |
| 7510 | } |
| 7511 | |
| 7512 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7513 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7514 | ac_cv_pthread=yes |
| 7515 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7516 | ac_cv_pthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7517 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7518 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7519 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7520 | fi |
| 7521 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7522 | CC="$ac_save_cc" |
| 7523 | fi |
| 7524 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
| 7526 | $as_echo "$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7527 | fi |
| 7528 | |
| 7529 | # If we have set a CC compiler flag for thread support then |
| 7530 | # check if it works for CXX, too. |
| 7531 | ac_cv_cxx_thread=no |
| 7532 | if test ! -z "$CXX" |
| 7533 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
| 7535 | $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] | 7536 | ac_save_cxx="$CXX" |
| 7537 | |
| 7538 | if test "$ac_cv_kpthread" = "yes" |
| 7539 | then |
| 7540 | CXX="$CXX -Kpthread" |
| 7541 | ac_cv_cxx_thread=yes |
| 7542 | elif test "$ac_cv_kthread" = "yes" |
| 7543 | then |
| 7544 | CXX="$CXX -Kthread" |
| 7545 | ac_cv_cxx_thread=yes |
| 7546 | elif test "$ac_cv_pthread" = "yes" |
| 7547 | then |
| 7548 | CXX="$CXX -pthread" |
| 7549 | ac_cv_cxx_thread=yes |
| 7550 | fi |
| 7551 | |
| 7552 | if test $ac_cv_cxx_thread = yes |
| 7553 | then |
| 7554 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 7555 | $CXX -c conftest.$ac_ext 2>&5 |
| 7556 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 7557 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 7558 | then |
| 7559 | ac_cv_cxx_thread=yes |
| 7560 | else |
| 7561 | ac_cv_cxx_thread=no |
| 7562 | fi |
| 7563 | rm -fr conftest* |
| 7564 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
| 7566 | $as_echo "$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7567 | fi |
| 7568 | CXX="$ac_save_cxx" |
| 7569 | |
| 7570 | |
| 7571 | # checks for header files |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7573 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7574 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7575 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7576 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7578 | /* end confdefs.h. */ |
| 7579 | #include <stdlib.h> |
| 7580 | #include <stdarg.h> |
| 7581 | #include <string.h> |
| 7582 | #include <float.h> |
| 7583 | |
| 7584 | int |
| 7585 | main () |
| 7586 | { |
| 7587 | |
| 7588 | ; |
| 7589 | return 0; |
| 7590 | } |
| 7591 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7592 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7593 | ac_cv_header_stdc=yes |
| 7594 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7595 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7596 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7598 | |
| 7599 | if test $ac_cv_header_stdc = yes; then |
| 7600 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7602 | /* end confdefs.h. */ |
| 7603 | #include <string.h> |
| 7604 | |
| 7605 | _ACEOF |
| 7606 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7607 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7608 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7609 | else |
| 7610 | ac_cv_header_stdc=no |
| 7611 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7612 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7613 | |
| 7614 | fi |
| 7615 | |
| 7616 | if test $ac_cv_header_stdc = yes; then |
| 7617 | # 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] | 7618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7619 | /* end confdefs.h. */ |
| 7620 | #include <stdlib.h> |
| 7621 | |
| 7622 | _ACEOF |
| 7623 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7624 | $EGREP "free" >/dev/null 2>&1; then : |
| 7625 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7626 | else |
| 7627 | ac_cv_header_stdc=no |
| 7628 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7629 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7630 | |
| 7631 | fi |
| 7632 | |
| 7633 | if test $ac_cv_header_stdc = yes; then |
| 7634 | # /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] | 7635 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7636 | : |
| 7637 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7639 | /* end confdefs.h. */ |
| 7640 | #include <ctype.h> |
| 7641 | #include <stdlib.h> |
| 7642 | #if ((' ' & 0x0FF) == 0x020) |
| 7643 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7644 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7645 | #else |
| 7646 | # define ISLOWER(c) \ |
| 7647 | (('a' <= (c) && (c) <= 'i') \ |
| 7648 | || ('j' <= (c) && (c) <= 'r') \ |
| 7649 | || ('s' <= (c) && (c) <= 'z')) |
| 7650 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7651 | #endif |
| 7652 | |
| 7653 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7654 | int |
| 7655 | main () |
| 7656 | { |
| 7657 | int i; |
| 7658 | for (i = 0; i < 256; i++) |
| 7659 | if (XOR (islower (i), ISLOWER (i)) |
| 7660 | || toupper (i) != TOUPPER (i)) |
| 7661 | return 2; |
| 7662 | return 0; |
| 7663 | } |
| 7664 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7665 | if ac_fn_c_try_run "$LINENO"; then : |
| 7666 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7667 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7668 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7669 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7670 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7671 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7672 | fi |
| 7673 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7674 | fi |
| 7675 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 7677 | $as_echo "$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7678 | if test $ac_cv_header_stdc = yes; then |
| 7679 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7680 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7681 | |
| 7682 | fi |
| 7683 | |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7684 | for ac_header in asm/types.h conio.h direct.h dlfcn.h errno.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7685 | fcntl.h grp.h \ |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7686 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ |
Benjamin Peterson | 4fe5510 | 2016-09-06 11:58:01 -0700 | [diff] [blame] | 7687 | sched.h shadow.h signal.h stropts.h termios.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 7688 | unistd.h utime.h \ |
Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7689 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ |
Antoine Pitrou | bcf2b59 | 2012-02-08 23:28:36 +0100 | [diff] [blame] | 7690 | 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] | 7691 | 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] | 7692 | 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] | 7693 | 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] | 7694 | 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] | 7695 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 7696 | 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] | 7697 | sys/endian.h sys/sysmacros.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7698 | do : |
| 7699 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7700 | 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] | 7701 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7702 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7703 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7704 | _ACEOF |
| 7705 | |
| 7706 | fi |
| 7707 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7708 | done |
| 7709 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7710 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7711 | 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] | 7712 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 7714 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7715 | if eval \${$as_ac_Header+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7716 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7717 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7719 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7720 | #include <sys/types.h> |
| 7721 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7723 | int |
| 7724 | main () |
| 7725 | { |
| 7726 | if ((DIR *) 0) |
| 7727 | return 0; |
| 7728 | ; |
| 7729 | return 0; |
| 7730 | } |
| 7731 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7732 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7733 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7734 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7735 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7736 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7738 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7739 | eval ac_res=\$$as_ac_Header |
| 7740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7741 | $as_echo "$ac_res" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7742 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7743 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7744 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7745 | _ACEOF |
| 7746 | |
| 7747 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7748 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7749 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7750 | done |
| 7751 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 7752 | if test $ac_header_dirent = dirent.h; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 7754 | $as_echo_n "checking for library containing opendir... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7755 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7756 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7758 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7760 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7761 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7762 | /* Override any GCC internal prototype to avoid an error. |
| 7763 | Use char because int might match the return type of a GCC |
| 7764 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7765 | #ifdef __cplusplus |
| 7766 | extern "C" |
| 7767 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7768 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7769 | int |
| 7770 | main () |
| 7771 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7772 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7773 | ; |
| 7774 | return 0; |
| 7775 | } |
| 7776 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7777 | for ac_lib in '' dir; do |
| 7778 | if test -z "$ac_lib"; then |
| 7779 | ac_res="none required" |
| 7780 | else |
| 7781 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7782 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7783 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7784 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7785 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7786 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7787 | rm -f core conftest.err conftest.$ac_objext \ |
| 7788 | conftest$ac_exeext |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7789 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7790 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7791 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7792 | done |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7793 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7794 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7795 | else |
| 7796 | ac_cv_search_opendir=no |
| 7797 | fi |
| 7798 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7799 | LIBS=$ac_func_search_save_LIBS |
| 7800 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 7802 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7803 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7804 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7805 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7806 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7807 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7808 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7809 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 7811 | $as_echo_n "checking for library containing opendir... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7812 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7813 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7814 | else |
| 7815 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7817 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7818 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7819 | /* Override any GCC internal prototype to avoid an error. |
| 7820 | Use char because int might match the return type of a GCC |
| 7821 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7822 | #ifdef __cplusplus |
| 7823 | extern "C" |
| 7824 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7825 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7826 | int |
| 7827 | main () |
| 7828 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7829 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7830 | ; |
| 7831 | return 0; |
| 7832 | } |
| 7833 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7834 | for ac_lib in '' x; do |
| 7835 | if test -z "$ac_lib"; then |
| 7836 | ac_res="none required" |
| 7837 | else |
| 7838 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7839 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7840 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7841 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7842 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7843 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7844 | rm -f core conftest.err conftest.$ac_objext \ |
| 7845 | conftest$ac_exeext |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7846 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7847 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7848 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7849 | done |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7850 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7851 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7852 | else |
| 7853 | ac_cv_search_opendir=no |
| 7854 | fi |
| 7855 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7856 | LIBS=$ac_func_search_save_LIBS |
| 7857 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 7859 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7860 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7861 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7862 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7863 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7864 | fi |
| 7865 | |
| 7866 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7867 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
| 7869 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7870 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7871 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7872 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7874 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7875 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7876 | int |
| 7877 | main () |
| 7878 | { |
| 7879 | return makedev(0, 0); |
| 7880 | ; |
| 7881 | return 0; |
| 7882 | } |
| 7883 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7884 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7885 | ac_cv_header_sys_types_h_makedev=yes |
| 7886 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7887 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7888 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7889 | rm -f core conftest.err conftest.$ac_objext \ |
| 7890 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7891 | |
| 7892 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 7894 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7895 | |
| 7896 | if test $ac_cv_header_sys_types_h_makedev = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7897 | 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] | 7898 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7899 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7900 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7901 | |
| 7902 | fi |
| 7903 | |
| 7904 | |
| 7905 | |
| 7906 | if test $ac_cv_header_sys_mkdev_h = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7907 | 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] | 7908 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7909 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7910 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7911 | |
| 7912 | fi |
| 7913 | |
| 7914 | |
| 7915 | fi |
| 7916 | fi |
| 7917 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7918 | |
Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 7919 | # bluetooth/bluetooth.h has been known to not compile with -std=c99. |
| 7920 | # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 |
| 7921 | SAVE_CFLAGS=$CFLAGS |
| 7922 | CFLAGS="-std=c99 $CFLAGS" |
| 7923 | for ac_header in bluetooth/bluetooth.h |
| 7924 | do : |
| 7925 | ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" |
| 7926 | if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : |
| 7927 | cat >>confdefs.h <<_ACEOF |
| 7928 | #define HAVE_BLUETOOTH_BLUETOOTH_H 1 |
| 7929 | _ACEOF |
| 7930 | |
| 7931 | fi |
| 7932 | |
| 7933 | done |
| 7934 | |
| 7935 | CFLAGS=$SAVE_CFLAGS |
| 7936 | |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7937 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. |
| 7938 | for ac_header in net/if.h |
| 7939 | do : |
| 7940 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> |
| 7941 | #ifdef STDC_HEADERS |
| 7942 | # include <stdlib.h> |
| 7943 | # include <stddef.h> |
| 7944 | #else |
| 7945 | # ifdef HAVE_STDLIB_H |
| 7946 | # include <stdlib.h> |
| 7947 | # endif |
| 7948 | #endif |
| 7949 | #ifdef HAVE_SYS_SOCKET_H |
| 7950 | # include <sys/socket.h> |
| 7951 | #endif |
| 7952 | |
| 7953 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7954 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7955 | cat >>confdefs.h <<_ACEOF |
| 7956 | #define HAVE_NET_IF_H 1 |
| 7957 | _ACEOF |
| 7958 | |
| 7959 | fi |
| 7960 | |
| 7961 | done |
| 7962 | |
| 7963 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7964 | # On Linux, netlink.h requires asm/types.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7965 | for ac_header in linux/netlink.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7966 | do : |
| 7967 | 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] | 7968 | #ifdef HAVE_ASM_TYPES_H |
| 7969 | #include <asm/types.h> |
| 7970 | #endif |
| 7971 | #ifdef HAVE_SYS_SOCKET_H |
| 7972 | #include <sys/socket.h> |
| 7973 | #endif |
| 7974 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7975 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7976 | 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] | 7977 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7978 | #define HAVE_LINUX_NETLINK_H 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7979 | _ACEOF |
| 7980 | |
| 7981 | fi |
| 7982 | |
| 7983 | done |
| 7984 | |
| 7985 | |
caavery | effc12f | 2017-09-06 18:18:10 -0400 | [diff] [blame] | 7986 | for ac_header in linux/vm_sockets.h |
| 7987 | do : |
| 7988 | ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" " |
| 7989 | #ifdef HAVE_SYS_SOCKET_H |
| 7990 | #include <sys/socket.h> |
| 7991 | #endif |
| 7992 | |
| 7993 | " |
| 7994 | if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then : |
| 7995 | cat >>confdefs.h <<_ACEOF |
| 7996 | #define HAVE_LINUX_VM_SOCKETS_H 1 |
| 7997 | _ACEOF |
| 7998 | |
| 7999 | fi |
| 8000 | |
| 8001 | done |
| 8002 | |
| 8003 | |
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 8004 | # 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] | 8005 | 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] | 8006 | do : |
| 8007 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8008 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
| 8009 | #ifdef HAVE_SYS_SOCKET_H |
| 8010 | #include <sys/socket.h> |
| 8011 | #endif |
| 8012 | |
| 8013 | " |
| 8014 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 8015 | cat >>confdefs.h <<_ACEOF |
| 8016 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8017 | _ACEOF |
| 8018 | |
| 8019 | fi |
| 8020 | |
| 8021 | done |
| 8022 | |
| 8023 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8024 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8025 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
| 8027 | $as_echo_n "checking for clock_t in time.h... " >&6; } |
| 8028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8029 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8030 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8031 | |
| 8032 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8033 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8034 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8035 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8036 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8037 | |
| 8038 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8039 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8040 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8041 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8042 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8043 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8044 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 8046 | $as_echo "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8047 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
| 8049 | $as_echo_n "checking for makedev... " >&6; } |
| 8050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8051 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8052 | |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8053 | #if defined(MAJOR_IN_MKDEV) |
| 8054 | #include <sys/mkdev.h> |
| 8055 | #elif defined(MAJOR_IN_SYSMACROS) |
| 8056 | #include <sys/sysmacros.h> |
| 8057 | #else |
| 8058 | #include <sys/types.h> |
| 8059 | #endif |
| 8060 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8061 | int |
| 8062 | main () |
| 8063 | { |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8064 | |
| 8065 | makedev(0, 0) |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8066 | ; |
| 8067 | return 0; |
| 8068 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8069 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8070 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8071 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8072 | ac_cv_has_makedev=yes |
| 8073 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8074 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8075 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8076 | rm -f core conftest.err conftest.$ac_objext \ |
| 8077 | conftest$ac_exeext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
| 8079 | $as_echo "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8080 | if test "$ac_cv_has_makedev" = "yes"; then |
| 8081 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8082 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8083 | |
| 8084 | fi |
| 8085 | |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8086 | # byte swapping |
| 8087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 |
| 8088 | $as_echo_n "checking for le64toh... " >&6; } |
| 8089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8090 | /* end confdefs.h. */ |
| 8091 | |
| 8092 | #ifdef HAVE_ENDIAN_H |
| 8093 | #include <endian.h> |
| 8094 | #elif defined(HAVE_SYS_ENDIAN_H) |
| 8095 | #include <sys/endian.h> |
| 8096 | #endif |
| 8097 | |
| 8098 | int |
| 8099 | main () |
| 8100 | { |
| 8101 | |
| 8102 | le64toh(1) |
| 8103 | ; |
| 8104 | return 0; |
| 8105 | } |
| 8106 | |
| 8107 | _ACEOF |
| 8108 | if ac_fn_c_try_link "$LINENO"; then : |
| 8109 | ac_cv_has_le64toh=yes |
| 8110 | else |
| 8111 | ac_cv_has_le64toh=no |
| 8112 | fi |
| 8113 | rm -f core conftest.err conftest.$ac_objext \ |
| 8114 | conftest$ac_exeext conftest.$ac_ext |
| 8115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 |
| 8116 | $as_echo "$ac_cv_has_le64toh" >&6; } |
| 8117 | if test "$ac_cv_has_le64toh" = "yes"; then |
| 8118 | |
| 8119 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h |
| 8120 | |
| 8121 | fi |
| 8122 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8123 | use_lfs=yes |
doko@ubuntu.com | 006a56c | 2016-06-14 10:15:25 +0200 | [diff] [blame] | 8124 | # Don't use largefile support for GNU/Hurd |
| 8125 | case $ac_sys_system in GNU*) |
| 8126 | use_lfs=no |
| 8127 | esac |
| 8128 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8129 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8130 | # Two defines needed to enable largefile support on various platforms |
| 8131 | # These may affect some typedefs |
Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 8132 | case $ac_sys_system/$ac_sys_release in |
| 8133 | AIX*) |
| 8134 | |
| 8135 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h |
| 8136 | |
| 8137 | ;; |
| 8138 | esac |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8139 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8140 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8141 | |
| 8142 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8143 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8144 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8145 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8146 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8147 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 8148 | cat >> confdefs.h <<\EOF |
| 8149 | #if defined(SCO_DS) |
| 8150 | #undef _OFF_T |
| 8151 | #endif |
| 8152 | EOF |
| 8153 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8154 | # Type availability checks |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8155 | 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] | 8156 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8157 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8158 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8159 | |
| 8160 | cat >>confdefs.h <<_ACEOF |
| 8161 | #define mode_t int |
| 8162 | _ACEOF |
| 8163 | |
| 8164 | fi |
| 8165 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8166 | 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] | 8167 | if test "x$ac_cv_type_off_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8168 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8169 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8170 | |
| 8171 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8172 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8173 | _ACEOF |
| 8174 | |
| 8175 | fi |
| 8176 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8177 | 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] | 8178 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8179 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8180 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8181 | |
| 8182 | cat >>confdefs.h <<_ACEOF |
| 8183 | #define pid_t int |
| 8184 | _ACEOF |
| 8185 | |
| 8186 | fi |
| 8187 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8189 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 8190 | #define RETSIGTYPE void |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8191 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8192 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8193 | 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] | 8194 | if test "x$ac_cv_type_size_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8195 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8197 | |
| 8198 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8199 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8200 | _ACEOF |
| 8201 | |
| 8202 | fi |
| 8203 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 8205 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8206 | if ${ac_cv_type_uid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8207 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8208 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8210 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8211 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8212 | |
| 8213 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8214 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8215 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8216 | ac_cv_type_uid_t=yes |
| 8217 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8218 | ac_cv_type_uid_t=no |
| 8219 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8220 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8221 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8222 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 8224 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8225 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8226 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8227 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8228 | |
| 8229 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8230 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8231 | |
| 8232 | fi |
| 8233 | |
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8234 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8235 | 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] | 8236 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8237 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8238 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8239 | |
| 8240 | fi |
| 8241 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8242 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" |
| 8243 | if test "x$ac_cv_type___uint128_t" = xyes; then : |
| 8244 | |
| 8245 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h |
| 8246 | |
| 8247 | fi |
| 8248 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8249 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8250 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8251 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8252 | # The cast to long int works around a bug in the HP C Compiler |
| 8253 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8254 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8255 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 8257 | $as_echo_n "checking size of int... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8258 | if ${ac_cv_sizeof_int+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8259 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8260 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8261 | 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] | 8262 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8263 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8264 | if test "$ac_cv_type_int" = yes; then |
| 8265 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8266 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8267 | as_fn_error 77 "cannot compute sizeof (int) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8268 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8269 | else |
| 8270 | ac_cv_sizeof_int=0 |
| 8271 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8272 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8273 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8274 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 8276 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8277 | |
| 8278 | |
| 8279 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8280 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8281 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8282 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8283 | |
| 8284 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8285 | # The cast to long int works around a bug in the HP C Compiler |
| 8286 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8287 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8288 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 8290 | $as_echo_n "checking size of long... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8291 | if ${ac_cv_sizeof_long+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8292 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8293 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8294 | 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] | 8295 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8296 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8297 | if test "$ac_cv_type_long" = yes; then |
| 8298 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8299 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8300 | as_fn_error 77 "cannot compute sizeof (long) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8301 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8302 | else |
| 8303 | ac_cv_sizeof_long=0 |
| 8304 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8305 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8307 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 8309 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8310 | |
| 8311 | |
| 8312 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8313 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8314 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8315 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8316 | |
| 8317 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8318 | # The cast to long int works around a bug in the HP C Compiler |
| 8319 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8320 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8321 | # This bug is HP SR number 8606223364. |
Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 8323 | $as_echo_n "checking size of long long... " >&6; } |
| 8324 | if ${ac_cv_sizeof_long_long+:} false; then : |
| 8325 | $as_echo_n "(cached) " >&6 |
| 8326 | else |
| 8327 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
| 8328 | |
| 8329 | else |
| 8330 | if test "$ac_cv_type_long_long" = yes; then |
| 8331 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8332 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8333 | as_fn_error 77 "cannot compute sizeof (long long) |
| 8334 | See \`config.log' for more details" "$LINENO" 5; } |
| 8335 | else |
| 8336 | ac_cv_sizeof_long_long=0 |
| 8337 | fi |
| 8338 | fi |
| 8339 | |
| 8340 | fi |
| 8341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 8342 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
| 8343 | |
| 8344 | |
| 8345 | |
| 8346 | cat >>confdefs.h <<_ACEOF |
| 8347 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 8348 | _ACEOF |
| 8349 | |
| 8350 | |
| 8351 | # The cast to long int works around a bug in the HP C Compiler |
| 8352 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8353 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8354 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 8356 | $as_echo_n "checking size of void *... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8357 | if ${ac_cv_sizeof_void_p+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8358 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8359 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8360 | 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] | 8361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8362 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8363 | if test "$ac_cv_type_void_p" = yes; then |
| 8364 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8365 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8366 | as_fn_error 77 "cannot compute sizeof (void *) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8367 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8368 | else |
| 8369 | ac_cv_sizeof_void_p=0 |
| 8370 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8371 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8372 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8373 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 8375 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8376 | |
| 8377 | |
| 8378 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8379 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8380 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8381 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8382 | |
| 8383 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8384 | # The cast to long int works around a bug in the HP C Compiler |
| 8385 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8386 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8387 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 8389 | $as_echo_n "checking size of short... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8390 | if ${ac_cv_sizeof_short+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8391 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8392 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8393 | 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] | 8394 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8395 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8396 | if test "$ac_cv_type_short" = yes; then |
| 8397 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8398 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8399 | as_fn_error 77 "cannot compute sizeof (short) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8400 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8401 | else |
| 8402 | ac_cv_sizeof_short=0 |
| 8403 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8404 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8405 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8406 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 8408 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8409 | |
| 8410 | |
| 8411 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8412 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8413 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8414 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8415 | |
| 8416 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8417 | # The cast to long int works around a bug in the HP C Compiler |
| 8418 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8419 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8420 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
| 8422 | $as_echo_n "checking size of float... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8423 | if ${ac_cv_sizeof_float+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8424 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8425 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8426 | 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] | 8427 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8428 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8429 | if test "$ac_cv_type_float" = yes; then |
| 8430 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8431 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8432 | as_fn_error 77 "cannot compute sizeof (float) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8433 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8434 | else |
| 8435 | ac_cv_sizeof_float=0 |
| 8436 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8437 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8438 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8439 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
| 8441 | $as_echo "$ac_cv_sizeof_float" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8442 | |
| 8443 | |
| 8444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8445 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8446 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8447 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8448 | |
| 8449 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8450 | # The cast to long int works around a bug in the HP C Compiler |
| 8451 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8452 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8453 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
| 8455 | $as_echo_n "checking size of double... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8456 | if ${ac_cv_sizeof_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8457 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8458 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8459 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8461 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8462 | if test "$ac_cv_type_double" = yes; then |
| 8463 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8464 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8465 | as_fn_error 77 "cannot compute sizeof (double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8466 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8467 | else |
| 8468 | ac_cv_sizeof_double=0 |
| 8469 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8470 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8471 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8472 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
| 8474 | $as_echo "$ac_cv_sizeof_double" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8475 | |
| 8476 | |
| 8477 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8478 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8479 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8480 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8481 | |
| 8482 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8483 | # The cast to long int works around a bug in the HP C Compiler |
| 8484 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8485 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8486 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
| 8488 | $as_echo_n "checking size of fpos_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8489 | if ${ac_cv_sizeof_fpos_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8490 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8491 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8492 | 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] | 8493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8494 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8495 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8496 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8497 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8498 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8499 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8500 | else |
| 8501 | ac_cv_sizeof_fpos_t=0 |
| 8502 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8503 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8504 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8505 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8507 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8508 | |
| 8509 | |
| 8510 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8511 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8512 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8513 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8514 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8515 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8516 | # The cast to long int works around a bug in the HP C Compiler |
| 8517 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8518 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8519 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 8521 | $as_echo_n "checking size of size_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8522 | if ${ac_cv_sizeof_size_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8523 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8524 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8525 | 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] | 8526 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8527 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8528 | if test "$ac_cv_type_size_t" = yes; then |
| 8529 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8530 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8531 | as_fn_error 77 "cannot compute sizeof (size_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8532 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8533 | else |
| 8534 | ac_cv_sizeof_size_t=0 |
| 8535 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8536 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8537 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8538 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 8540 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8541 | |
| 8542 | |
| 8543 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8544 | cat >>confdefs.h <<_ACEOF |
| 8545 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 8546 | _ACEOF |
| 8547 | |
| 8548 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8549 | # The cast to long int works around a bug in the HP C Compiler |
| 8550 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8551 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8552 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
| 8554 | $as_echo_n "checking size of pid_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8555 | if ${ac_cv_sizeof_pid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8556 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8557 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8558 | 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] | 8559 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8560 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8561 | if test "$ac_cv_type_pid_t" = yes; then |
| 8562 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8563 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8564 | as_fn_error 77 "cannot compute sizeof (pid_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8565 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8566 | else |
| 8567 | ac_cv_sizeof_pid_t=0 |
| 8568 | fi |
| 8569 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8570 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8571 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
| 8573 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8574 | |
| 8575 | |
| 8576 | |
| 8577 | cat >>confdefs.h <<_ACEOF |
| 8578 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 8579 | _ACEOF |
| 8580 | |
| 8581 | |
Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 8582 | # The cast to long int works around a bug in the HP C Compiler |
| 8583 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8584 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8585 | # This bug is HP SR number 8606223364. |
| 8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
| 8587 | $as_echo_n "checking size of uintptr_t... " >&6; } |
| 8588 | if ${ac_cv_sizeof_uintptr_t+:} false; then : |
| 8589 | $as_echo_n "(cached) " >&6 |
| 8590 | else |
| 8591 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : |
| 8592 | |
| 8593 | else |
| 8594 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8595 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8596 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8597 | as_fn_error 77 "cannot compute sizeof (uintptr_t) |
| 8598 | See \`config.log' for more details" "$LINENO" 5; } |
| 8599 | else |
| 8600 | ac_cv_sizeof_uintptr_t=0 |
| 8601 | fi |
| 8602 | fi |
| 8603 | |
| 8604 | fi |
| 8605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8606 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } |
| 8607 | |
| 8608 | |
| 8609 | |
| 8610 | cat >>confdefs.h <<_ACEOF |
| 8611 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
| 8612 | _ACEOF |
| 8613 | |
| 8614 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8615 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 |
| 8617 | $as_echo_n "checking for long double support... " >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8618 | have_long_double=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8620 | /* end confdefs.h. */ |
| 8621 | |
| 8622 | int |
| 8623 | main () |
| 8624 | { |
| 8625 | long double x; x = (long double)0; |
| 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 : |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8631 | |
| 8632 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8633 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8634 | |
| 8635 | have_long_double=yes |
| 8636 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8637 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 |
| 8640 | $as_echo "$have_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8641 | if test "$have_long_double" = yes ; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8642 | # The cast to long int works around a bug in the HP C Compiler |
| 8643 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8644 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8645 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
| 8647 | $as_echo_n "checking size of long double... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8648 | if ${ac_cv_sizeof_long_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8649 | $as_echo_n "(cached) " >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8650 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8651 | 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] | 8652 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8653 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8654 | if test "$ac_cv_type_long_double" = yes; then |
| 8655 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8656 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8657 | as_fn_error 77 "cannot compute sizeof (long double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8658 | See \`config.log' for more details" "$LINENO" 5; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8659 | else |
| 8660 | ac_cv_sizeof_long_double=0 |
| 8661 | fi |
| 8662 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8663 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8664 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
| 8666 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8667 | |
| 8668 | |
| 8669 | |
| 8670 | cat >>confdefs.h <<_ACEOF |
| 8671 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 8672 | _ACEOF |
| 8673 | |
| 8674 | |
| 8675 | fi |
| 8676 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8677 | # The cast to long int works around a bug in the HP C Compiler |
| 8678 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8679 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8680 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
| 8682 | $as_echo_n "checking size of _Bool... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8683 | if ${ac_cv_sizeof__Bool+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8684 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8685 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8686 | 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] | 8687 | |
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 test "$ac_cv_type__Bool" = yes; then |
| 8690 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8691 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8692 | as_fn_error 77 "cannot compute sizeof (_Bool) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8693 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8694 | else |
| 8695 | ac_cv_sizeof__Bool=0 |
| 8696 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8697 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8698 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8699 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
| 8701 | $as_echo "$ac_cv_sizeof__Bool" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8702 | |
| 8703 | |
| 8704 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8705 | cat >>confdefs.h <<_ACEOF |
| 8706 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 8707 | _ACEOF |
| 8708 | |
| 8709 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8710 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8711 | # The cast to long int works around a bug in the HP C Compiler |
| 8712 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8713 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8714 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 8716 | $as_echo_n "checking size of off_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8717 | if ${ac_cv_sizeof_off_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8718 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8719 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8720 | 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] | 8721 | #ifdef HAVE_SYS_TYPES_H |
| 8722 | #include <sys/types.h> |
| 8723 | #endif |
| 8724 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8725 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8726 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8727 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8728 | if test "$ac_cv_type_off_t" = yes; then |
| 8729 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8730 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8731 | as_fn_error 77 "cannot compute sizeof (off_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8732 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8733 | else |
| 8734 | ac_cv_sizeof_off_t=0 |
| 8735 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8736 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8737 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8738 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 8740 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8741 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8742 | |
| 8743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8744 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8745 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8746 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8747 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8748 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8749 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
| 8751 | $as_echo_n "checking whether to enable large file support... " >&6; } |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8752 | 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] | 8753 | "$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] | 8754 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8755 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8756 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8758 | $as_echo "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8759 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8761 | $as_echo "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8762 | fi |
| 8763 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8764 | # The cast to long int works around a bug in the HP C Compiler |
| 8765 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8766 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8767 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 8769 | $as_echo_n "checking size of time_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8770 | if ${ac_cv_sizeof_time_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8771 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8772 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8773 | 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] | 8774 | #ifdef HAVE_SYS_TYPES_H |
| 8775 | #include <sys/types.h> |
| 8776 | #endif |
| 8777 | #ifdef HAVE_TIME_H |
| 8778 | #include <time.h> |
| 8779 | #endif |
| 8780 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8781 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8782 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8783 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8784 | if test "$ac_cv_type_time_t" = yes; then |
| 8785 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8786 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8787 | as_fn_error 77 "cannot compute sizeof (time_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8788 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8789 | else |
| 8790 | ac_cv_sizeof_time_t=0 |
| 8791 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8792 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8793 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8794 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 8796 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8797 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8798 | |
| 8799 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8800 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8801 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8802 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8803 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8804 | |
| 8805 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8806 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8807 | ac_save_cc="$CC" |
| 8808 | if test "$ac_cv_kpthread" = "yes" |
| 8809 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8810 | elif test "$ac_cv_kthread" = "yes" |
| 8811 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8812 | elif test "$ac_cv_pthread" = "yes" |
| 8813 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8814 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8815 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
| 8817 | $as_echo_n "checking for pthread_t... " >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8818 | have_pthread_t=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8820 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8821 | |
| 8822 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8823 | int |
| 8824 | main () |
| 8825 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8826 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8827 | ; |
| 8828 | return 0; |
| 8829 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8831 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8832 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8833 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8834 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
| 8837 | $as_echo "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8838 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8839 | # 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] | 8840 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8841 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8842 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
| 8844 | $as_echo_n "checking size of pthread_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8845 | if ${ac_cv_sizeof_pthread_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8846 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8847 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8848 | 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] | 8849 | #ifdef HAVE_PTHREAD_H |
| 8850 | #include <pthread.h> |
| 8851 | #endif |
| 8852 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8853 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8854 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8855 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8856 | if test "$ac_cv_type_pthread_t" = yes; then |
| 8857 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8858 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8859 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8860 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8861 | else |
| 8862 | ac_cv_sizeof_pthread_t=0 |
| 8863 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8864 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8865 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8866 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
| 8868 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8869 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8870 | |
| 8871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8872 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8873 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8874 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8875 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8876 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8877 | fi |
Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 8878 | |
| 8879 | # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int. |
| 8880 | # This checking will be unnecessary after removing deprecated TLS API. |
| 8881 | # The cast to long int works around a bug in the HP C Compiler |
| 8882 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8883 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8884 | # This bug is HP SR number 8606223364. |
| 8885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5 |
| 8886 | $as_echo_n "checking size of pthread_key_t... " >&6; } |
| 8887 | if ${ac_cv_sizeof_pthread_key_t+:} false; then : |
| 8888 | $as_echo_n "(cached) " >&6 |
| 8889 | else |
| 8890 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h> |
| 8891 | "; then : |
| 8892 | |
| 8893 | else |
| 8894 | if test "$ac_cv_type_pthread_key_t" = yes; then |
| 8895 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8896 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8897 | as_fn_error 77 "cannot compute sizeof (pthread_key_t) |
| 8898 | See \`config.log' for more details" "$LINENO" 5; } |
| 8899 | else |
| 8900 | ac_cv_sizeof_pthread_key_t=0 |
| 8901 | fi |
| 8902 | fi |
| 8903 | |
| 8904 | fi |
| 8905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5 |
| 8906 | $as_echo "$ac_cv_sizeof_pthread_key_t" >&6; } |
| 8907 | |
| 8908 | |
| 8909 | |
| 8910 | cat >>confdefs.h <<_ACEOF |
| 8911 | #define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t |
| 8912 | _ACEOF |
| 8913 | |
| 8914 | |
| 8915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5 |
| 8916 | $as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; } |
| 8917 | if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then |
| 8918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8919 | /* end confdefs.h. */ |
| 8920 | #include <pthread.h> |
| 8921 | int |
| 8922 | main () |
| 8923 | { |
| 8924 | pthread_key_t k; k * 1; |
| 8925 | ; |
| 8926 | return 0; |
| 8927 | } |
| 8928 | _ACEOF |
| 8929 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8930 | ac_pthread_key_t_is_arithmetic_type=yes |
| 8931 | else |
| 8932 | ac_pthread_key_t_is_arithmetic_type=no |
| 8933 | |
| 8934 | fi |
| 8935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5 |
| 8937 | $as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; } |
| 8938 | if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then |
| 8939 | |
| 8940 | $as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h |
| 8941 | |
| 8942 | fi |
| 8943 | else |
| 8944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8945 | $as_echo "no" >&6; } |
| 8946 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8947 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8948 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8949 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8950 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8951 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8952 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 8953 | ;; |
| 8954 | Darwin/*) |
| 8955 | OTHER_LIBTOOL_OPT="" |
| 8956 | ;; |
| 8957 | esac |
| 8958 | |
| 8959 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8960 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8961 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8962 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8963 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 8964 | if test "${enable_universalsdk}"; then |
| 8965 | : |
| 8966 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8967 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8968 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8969 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8970 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8971 | Darwin/*) |
Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 8972 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8973 | if test ${gcc_version} '<' 4.0 |
| 8974 | then |
| 8975 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 8976 | else |
| 8977 | LIBTOOL_CRUFT="" |
| 8978 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8979 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8980 | ac_osx_32bit=yes |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8981 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8983 | /* end confdefs.h. */ |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8984 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8985 | #include <unistd.h> |
| 8986 | int main(int argc, char*argv[]) |
| 8987 | { |
| 8988 | if (sizeof(long) == 4) { |
| 8989 | return 0; |
| 8990 | } else { |
| 8991 | return 1; |
| 8992 | } |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8993 | } |
| 8994 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8995 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8996 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8997 | ac_osx_32bit=yes |
| 8998 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8999 | ac_osx_32bit=no |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9000 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9001 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9002 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9003 | fi |
| 9004 | |
| 9005 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9006 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9007 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9008 | i386) |
| 9009 | MACOSX_DEFAULT_ARCH="i386" |
| 9010 | ;; |
| 9011 | ppc) |
| 9012 | MACOSX_DEFAULT_ARCH="ppc" |
| 9013 | ;; |
| 9014 | *) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9015 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9016 | ;; |
| 9017 | esac |
| 9018 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9019 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9020 | i386) |
| 9021 | MACOSX_DEFAULT_ARCH="x86_64" |
| 9022 | ;; |
| 9023 | ppc) |
| 9024 | MACOSX_DEFAULT_ARCH="ppc64" |
| 9025 | ;; |
| 9026 | *) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9027 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9028 | ;; |
| 9029 | esac |
| 9030 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9031 | fi |
| 9032 | |
| 9033 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9034 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9035 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9036 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
| 9038 | $as_echo_n "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9039 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9040 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9041 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9042 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9043 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9044 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9045 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9046 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9048 | $as_echo "yes" >&6; } |
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9049 | if test $enable_shared = "yes" |
| 9050 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9051 | 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] | 9052 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9053 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9055 | $as_echo "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9056 | fi |
| 9057 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
| 9059 | $as_echo_n "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9060 | case $ac_sys_system/$ac_sys_release in |
| 9061 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9062 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9063 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9064 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
| 9066 | $as_echo "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9067 | ;; |
| 9068 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9070 | $as_echo "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9071 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9072 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9073 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9074 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9075 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9076 | |
| 9077 | |
| 9078 | |
| 9079 | |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9080 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9081 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9082 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) |
| 9083 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
| 9084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 |
| 9085 | $as_echo_n "checking the extension of shared libraries... " >&6; } |
| 9086 | if test -z "$SHLIB_SUFFIX"; then |
| 9087 | case $ac_sys_system in |
| 9088 | hp*|HP*) |
| 9089 | case `uname -m` in |
| 9090 | ia64) SHLIB_SUFFIX=.so;; |
| 9091 | *) SHLIB_SUFFIX=.sl;; |
| 9092 | esac |
| 9093 | ;; |
| 9094 | CYGWIN*) SHLIB_SUFFIX=.dll;; |
| 9095 | *) SHLIB_SUFFIX=.so;; |
| 9096 | esac |
| 9097 | fi |
| 9098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 |
| 9099 | $as_echo "$SHLIB_SUFFIX" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9100 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9101 | # LDSHARED is the ld *command* used to create shared library |
Benjamin Peterson | 0693063 | 2017-09-04 16:36:05 -0700 | [diff] [blame] | 9102 | # -- "cc -G" on SunOS 5.x. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9103 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9104 | # Python, as opposed to building Python itself as a shared library.) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
| 9106 | $as_echo_n "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9107 | if test -z "$LDSHARED" |
| 9108 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9109 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9110 | AIX*) |
Martin Panter | 395733d | 2016-11-20 07:56:37 +0000 | [diff] [blame] | 9111 | BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 9112 | LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9113 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9114 | SunOS/5*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9115 | if test "$GCC" = "yes" ; then |
| 9116 | LDSHARED='$(CC) -shared' |
| 9117 | LDCXXSHARED='$(CXX) -shared' |
| 9118 | else |
| 9119 | LDSHARED='$(CC) -G' |
| 9120 | LDCXXSHARED='$(CXX) -G' |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9121 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9122 | hp*|HP*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9123 | if test "$GCC" = "yes" ; then |
| 9124 | LDSHARED='$(CC) -shared' |
| 9125 | LDCXXSHARED='$(CXX) -shared' |
| 9126 | else |
| 9127 | LDSHARED='ld -b' |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9128 | fi ;; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9129 | Darwin/1.3*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9130 | LDSHARED='$(CC) -bundle' |
| 9131 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9132 | if test "$enable_framework" ; then |
| 9133 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9134 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 9135 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9136 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9137 | else |
| 9138 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9139 | LDSHARED="$LDSHARED -undefined suppress" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9140 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9141 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9142 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9143 | LDSHARED='$(CC) -bundle' |
| 9144 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9145 | if test "$enable_framework" ; then |
| 9146 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9147 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 9148 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9149 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9150 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9151 | # No framework, use the Python app as bundle-loader |
| 9152 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9153 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9154 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9155 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9156 | Darwin/*) |
| 9157 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 9158 | # This allows an extension to be used in any Python |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 9159 | |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9160 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
| 9161 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` |
| 9162 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
| 9163 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` |
| 9164 | if test ${dep_target_major} -eq 10 && \ |
| 9165 | test ${dep_target_minor} -le 2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9166 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9167 | # building for OS X 10.0 through 10.2 |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9168 | LDSHARED='$(CC) -bundle' |
| 9169 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9170 | if test "$enable_framework" ; then |
| 9171 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9172 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 9173 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9174 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9175 | else |
| 9176 | # No framework, use the Python app as bundle-loader |
| 9177 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 9178 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9179 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9180 | fi |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9181 | else |
| 9182 | # building for OS X 10.3 and later |
| 9183 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' |
| 9184 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' |
| 9185 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9186 | fi |
| 9187 | ;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9188 | Linux*|GNU*|QNX*) |
| 9189 | LDSHARED='$(CC) -shared' |
| 9190 | LDCXXSHARED='$(CXX) -shared';; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9191 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9192 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9193 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9194 | LDSHARED='$(CC) -shared' |
| 9195 | LDCXXSHARED='$(CXX) -shared' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9196 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9197 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9198 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9199 | OpenBSD*) |
| 9200 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9201 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9202 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 9203 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9204 | else |
| 9205 | case `uname -r` in |
| 9206 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 9207 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9208 | ;; |
| 9209 | *) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9210 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 9211 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9212 | ;; |
| 9213 | esac |
| 9214 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9215 | NetBSD*|DragonFly*) |
Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 9216 | LDSHARED='$(CC) -shared' |
| 9217 | LDCXXSHARED='$(CXX) -shared';; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9218 | OpenUNIX*|UnixWare*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9219 | if test "$GCC" = "yes" ; then |
| 9220 | LDSHARED='$(CC) -shared' |
| 9221 | LDCXXSHARED='$(CXX) -shared' |
| 9222 | else |
| 9223 | LDSHARED='$(CC) -G' |
| 9224 | LDCXXSHARED='$(CXX) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9225 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9226 | SCO_SV*) |
| 9227 | LDSHARED='$(CC) -Wl,-G,-Bexport' |
| 9228 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; |
| 9229 | CYGWIN*) |
| 9230 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" |
| 9231 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9232 | *) LDSHARED="ld";; |
| 9233 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9234 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
| 9236 | $as_echo "$LDSHARED" >&6; } |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9237 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9238 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9239 | # 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] | 9240 | # library (module) -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
| 9242 | $as_echo_n "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9243 | if test -z "$CCSHARED" |
| 9244 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9245 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9246 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9247 | then CCSHARED="-fPIC"; |
| 9248 | elif test `uname -p` = sparc; |
| 9249 | then CCSHARED="-xcode=pic32"; |
| 9250 | else CCSHARED="-Kpic"; |
| 9251 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9252 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9253 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9254 | else CCSHARED="+z"; |
| 9255 | fi;; |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 9256 | Linux-android*) ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9257 | Linux*|GNU*) CCSHARED="-fPIC";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9258 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9259 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9260 | if test "$GCC" = "yes" |
| 9261 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9262 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9263 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9264 | SCO_SV*) |
| 9265 | if test "$GCC" = "yes" |
| 9266 | then CCSHARED="-fPIC" |
| 9267 | else CCSHARED="-Kpic -belf" |
| 9268 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9269 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9270 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
| 9272 | $as_echo "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9273 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9274 | # the python executable -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
| 9276 | $as_echo_n "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9277 | if test -z "$LINKFORSHARED" |
| 9278 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9279 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9280 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9281 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9282 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9283 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 9284 | Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9285 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9286 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9287 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9288 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Łukasz Langa | 335ab5b | 2013-05-30 20:58:53 +0200 | [diff] [blame] | 9289 | |
| 9290 | # Issue #18075: the default maximum stack size (8MBytes) is too |
| 9291 | # small for the default recursion limit. Increase the stack size |
| 9292 | # to ensure that tests don't crash |
| 9293 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" |
| 9294 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9295 | if test "$enable_framework" |
| 9296 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9297 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9298 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9299 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9300 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9301 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9302 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9303 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9304 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9305 | then |
| 9306 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9307 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9308 | SunOS/5*) case $CC in |
| 9309 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9310 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9311 | then |
| 9312 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9313 | fi;; |
| 9314 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9315 | CYGWIN*) |
| 9316 | if test $enable_shared = "no" |
| 9317 | then |
| 9318 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 9319 | fi;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9320 | QNX*) |
| 9321 | # -Wl,-E causes the symbols to be added to the dynamic |
| 9322 | # symbol table so that they can be found when a module |
| 9323 | # is loaded. -N 2048K causes the stack size to be set |
| 9324 | # to 2048 kilobytes so that the stack doesn't overflow |
| 9325 | # when running test_compile.py. |
| 9326 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9327 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9328 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
| 9330 | $as_echo "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9331 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9332 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9333 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
| 9335 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9336 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9337 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9338 | case $ac_sys_system in |
| 9339 | CYGWIN*) |
| 9340 | # Cygwin needs CCSHARED when building extension DLLs |
| 9341 | # but not when building the interpreter DLL. |
| 9342 | CFLAGSFORSHARED='';; |
| 9343 | *) |
| 9344 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9345 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9346 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
| 9348 | $as_echo "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9349 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9350 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9351 | # library (with --enable-shared). |
| 9352 | # 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] | 9353 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9354 | # if it is not required, since it creates a dependency of the shared library |
| 9355 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9356 | # don't need to link LIBS explicitly. The default should be only changed |
| 9357 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9358 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
| 9360 | $as_echo_n "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9361 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9362 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9363 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9364 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
| 9366 | $as_echo "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9367 | |
| 9368 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9369 | # checks for libraries |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 |
| 9371 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9372 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9373 | $as_echo_n "(cached) " >&6 |
| 9374 | else |
| 9375 | ac_check_lib_save_LIBS=$LIBS |
| 9376 | LIBS="-lsendfile $LIBS" |
| 9377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9378 | /* end confdefs.h. */ |
| 9379 | |
| 9380 | /* Override any GCC internal prototype to avoid an error. |
| 9381 | Use char because int might match the return type of a GCC |
| 9382 | builtin and then its argument prototype would still apply. */ |
| 9383 | #ifdef __cplusplus |
| 9384 | extern "C" |
| 9385 | #endif |
| 9386 | char sendfile (); |
| 9387 | int |
| 9388 | main () |
| 9389 | { |
| 9390 | return sendfile (); |
| 9391 | ; |
| 9392 | return 0; |
| 9393 | } |
| 9394 | _ACEOF |
| 9395 | if ac_fn_c_try_link "$LINENO"; then : |
| 9396 | ac_cv_lib_sendfile_sendfile=yes |
| 9397 | else |
| 9398 | ac_cv_lib_sendfile_sendfile=no |
| 9399 | fi |
| 9400 | rm -f core conftest.err conftest.$ac_objext \ |
| 9401 | conftest$ac_exeext conftest.$ac_ext |
| 9402 | LIBS=$ac_check_lib_save_LIBS |
| 9403 | fi |
| 9404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 |
| 9405 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9406 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9407 | cat >>confdefs.h <<_ACEOF |
| 9408 | #define HAVE_LIBSENDFILE 1 |
| 9409 | _ACEOF |
| 9410 | |
| 9411 | LIBS="-lsendfile $LIBS" |
| 9412 | |
| 9413 | fi |
| 9414 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 9416 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9417 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9418 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9419 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9420 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9421 | LIBS="-ldl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9423 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9424 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9425 | /* Override any GCC internal prototype to avoid an error. |
| 9426 | Use char because int might match the return type of a GCC |
| 9427 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9428 | #ifdef __cplusplus |
| 9429 | extern "C" |
| 9430 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9431 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9432 | int |
| 9433 | main () |
| 9434 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9435 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9436 | ; |
| 9437 | return 0; |
| 9438 | } |
| 9439 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9440 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9441 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9442 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9443 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9444 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9445 | rm -f core conftest.err conftest.$ac_objext \ |
| 9446 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9447 | LIBS=$ac_check_lib_save_LIBS |
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9450 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9451 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9452 | cat >>confdefs.h <<_ACEOF |
| 9453 | #define HAVE_LIBDL 1 |
| 9454 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9455 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9456 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9457 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9458 | fi |
| 9459 | # Dynamic linking for SunOS/Solaris and SYSV |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 9461 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9462 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9463 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9464 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9465 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9466 | LIBS="-ldld $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9468 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9469 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9470 | /* Override any GCC internal prototype to avoid an error. |
| 9471 | Use char because int might match the return type of a GCC |
| 9472 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9473 | #ifdef __cplusplus |
| 9474 | extern "C" |
| 9475 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9476 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9477 | int |
| 9478 | main () |
| 9479 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9480 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9481 | ; |
| 9482 | return 0; |
| 9483 | } |
| 9484 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9485 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9486 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9487 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9488 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9489 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9490 | rm -f core conftest.err conftest.$ac_objext \ |
| 9491 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9492 | LIBS=$ac_check_lib_save_LIBS |
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9495 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9496 | 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] | 9497 | cat >>confdefs.h <<_ACEOF |
| 9498 | #define HAVE_LIBDLD 1 |
| 9499 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9500 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9501 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9502 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9503 | fi |
| 9504 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9505 | |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 9506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5 |
| 9507 | $as_echo_n "checking for uuid_generate_time_safe... " >&6; } |
| 9508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9509 | /* end confdefs.h. */ |
| 9510 | #include <uuid/uuid.h> |
| 9511 | int |
| 9512 | main () |
| 9513 | { |
| 9514 | |
| 9515 | #ifndef uuid_generate_time_safe |
Berker Peksag | 0e163d2 | 2017-11-09 00:43:14 +0300 | [diff] [blame] | 9516 | void *x = uuid_generate_time_safe |
Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 9517 | #endif |
| 9518 | |
| 9519 | ; |
| 9520 | return 0; |
| 9521 | } |
| 9522 | _ACEOF |
| 9523 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9524 | |
| 9525 | $as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h |
| 9526 | |
| 9527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9528 | $as_echo "yes" >&6; } |
| 9529 | else |
| 9530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9531 | $as_echo "no" >&6; } |
| 9532 | |
| 9533 | fi |
| 9534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9535 | |
Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame] | 9536 | # 'Real Time' functions on Solaris |
| 9537 | # posix4 on Solaris 2.6 |
| 9538 | # pthread (first!) on Linux |
Berker Peksag | 7e666ee | 2017-11-06 19:06:05 +0300 | [diff] [blame] | 9539 | { $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] | 9540 | $as_echo_n "checking for library containing sem_init... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9541 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9542 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9543 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9544 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9546 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9547 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9548 | /* Override any GCC internal prototype to avoid an error. |
| 9549 | Use char because int might match the return type of a GCC |
| 9550 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9551 | #ifdef __cplusplus |
| 9552 | extern "C" |
| 9553 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9554 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9555 | int |
| 9556 | main () |
| 9557 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9558 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9559 | ; |
| 9560 | return 0; |
| 9561 | } |
| 9562 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9563 | for ac_lib in '' pthread rt posix4; do |
| 9564 | if test -z "$ac_lib"; then |
| 9565 | ac_res="none required" |
| 9566 | else |
| 9567 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9568 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9569 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9570 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9571 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9572 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9573 | rm -f core conftest.err conftest.$ac_objext \ |
| 9574 | conftest$ac_exeext |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9575 | if ${ac_cv_search_sem_init+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9576 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9577 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9578 | done |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9579 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9580 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9581 | else |
| 9582 | ac_cv_search_sem_init=no |
| 9583 | fi |
| 9584 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9585 | LIBS=$ac_func_search_save_LIBS |
| 9586 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
| 9588 | $as_echo "$ac_cv_search_sem_init" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9589 | ac_res=$ac_cv_search_sem_init |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9590 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9591 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9592 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9593 | fi |
Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame] | 9594 | |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9595 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9596 | # check if we need libintl for locale functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
| 9598 | $as_echo_n "checking for textdomain in -lintl... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9599 | if ${ac_cv_lib_intl_textdomain+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9600 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9601 | else |
| 9602 | ac_check_lib_save_LIBS=$LIBS |
| 9603 | LIBS="-lintl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9605 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9606 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9607 | /* Override any GCC internal prototype to avoid an error. |
| 9608 | Use char because int might match the return type of a GCC |
| 9609 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9610 | #ifdef __cplusplus |
| 9611 | extern "C" |
| 9612 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9613 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9614 | int |
| 9615 | main () |
| 9616 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9617 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9618 | ; |
| 9619 | return 0; |
| 9620 | } |
| 9621 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9622 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9623 | ac_cv_lib_intl_textdomain=yes |
| 9624 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9625 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9626 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9627 | rm -f core conftest.err conftest.$ac_objext \ |
| 9628 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9629 | LIBS=$ac_check_lib_save_LIBS |
| 9630 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
| 9632 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9633 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9634 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9635 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9636 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 9637 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9638 | fi |
| 9639 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9640 | |
| 9641 | # checks for system dependent C++ extensions support |
| 9642 | case "$ac_sys_system" in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9643 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
| 9644 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } |
| 9645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9646 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9647 | |
Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 9648 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9649 | int |
| 9650 | main () |
| 9651 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9652 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9653 | ; |
| 9654 | return 0; |
| 9655 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9657 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9658 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9659 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9660 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9661 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9662 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9664 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9665 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9666 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9667 | |
| 9668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9669 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9670 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9671 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9672 | rm -f core conftest.err conftest.$ac_objext \ |
| 9673 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9674 | *) ;; |
| 9675 | esac |
| 9676 | |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9677 | # check for systems that require aligned memory access |
| 9678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 |
| 9679 | $as_echo_n "checking aligned memory access is required... " >&6; } |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9680 | if ${ac_cv_aligned_required+:} false; then : |
| 9681 | $as_echo_n "(cached) " >&6 |
| 9682 | else |
| 9683 | if test "$cross_compiling" = yes; then : |
| 9684 | ac_cv_aligned_required=yes |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9685 | else |
| 9686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9687 | /* end confdefs.h. */ |
| 9688 | |
| 9689 | int main() |
| 9690 | { |
| 9691 | char s[16]; |
| 9692 | int i, *p1, *p2; |
| 9693 | for (i=0; i < 16; i++) |
| 9694 | s[i] = i; |
| 9695 | p1 = (int*)(s+1); |
| 9696 | p2 = (int*)(s+2); |
| 9697 | if (*p1 == *p2) |
| 9698 | return 1; |
| 9699 | return 0; |
| 9700 | } |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9701 | _ACEOF |
| 9702 | if ac_fn_c_try_run "$LINENO"; then : |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9703 | ac_cv_aligned_required=no |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9704 | else |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9705 | ac_cv_aligned_required=yes |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9706 | fi |
| 9707 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9708 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9709 | fi |
| 9710 | |
| 9711 | |
Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9712 | fi |
| 9713 | |
| 9714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 |
| 9715 | $as_echo "$ac_cv_aligned_required" >&6; } |
| 9716 | if test "$ac_cv_aligned_required" = yes ; then |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9717 | |
| 9718 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h |
| 9719 | |
| 9720 | fi |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9721 | |
| 9722 | # str, bytes and memoryview hash algorithm |
| 9723 | |
| 9724 | |
| 9725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 |
| 9726 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } |
| 9727 | |
| 9728 | # Check whether --with-hash_algorithm was given. |
| 9729 | if test "${with_hash_algorithm+set}" = set; then : |
| 9730 | withval=$with_hash_algorithm; |
| 9731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 9732 | $as_echo "$withval" >&6; } |
| 9733 | case "$withval" in |
| 9734 | siphash24) |
| 9735 | $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h |
| 9736 | |
| 9737 | ;; |
| 9738 | fnv) |
| 9739 | $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h |
| 9740 | |
| 9741 | ;; |
| 9742 | *) |
| 9743 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 |
| 9744 | ;; |
| 9745 | esac |
| 9746 | |
| 9747 | else |
| 9748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 |
| 9749 | $as_echo "default" >&6; } |
| 9750 | fi |
| 9751 | |
| 9752 | |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 9753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 |
| 9754 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } |
| 9755 | |
| 9756 | # Check whether --with-address_sanitizer was given. |
| 9757 | if test "${with_address_sanitizer+set}" = set; then : |
| 9758 | withval=$with_address_sanitizer; |
| 9759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 9760 | $as_echo "$withval" >&6; } |
| 9761 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" |
| 9762 | LDFLAGS="-fsanitize=address $LDFLAGS" |
| 9763 | |
| 9764 | else |
| 9765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9766 | $as_echo "no" >&6; } |
| 9767 | fi |
| 9768 | |
| 9769 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9770 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
| 9772 | $as_echo_n "checking for t_open in -lnsl... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9773 | if ${ac_cv_lib_nsl_t_open+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9774 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9775 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9776 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9777 | LIBS="-lnsl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9779 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9780 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9781 | /* Override any GCC internal prototype to avoid an error. |
| 9782 | Use char because int might match the return type of a GCC |
| 9783 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9784 | #ifdef __cplusplus |
| 9785 | extern "C" |
| 9786 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9787 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9788 | int |
| 9789 | main () |
| 9790 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9791 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9792 | ; |
| 9793 | return 0; |
| 9794 | } |
| 9795 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9796 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9797 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9798 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9799 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9800 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9801 | rm -f core conftest.err conftest.$ac_objext \ |
| 9802 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9803 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9804 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9806 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9807 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9808 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9809 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9810 | # SVR4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 9812 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9813 | if ${ac_cv_lib_socket_socket+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9814 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9815 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9816 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9817 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9819 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9820 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9821 | /* Override any GCC internal prototype to avoid an error. |
| 9822 | Use char because int might match the return type of a GCC |
| 9823 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9824 | #ifdef __cplusplus |
| 9825 | extern "C" |
| 9826 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9827 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9828 | int |
| 9829 | main () |
| 9830 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9831 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9832 | ; |
| 9833 | return 0; |
| 9834 | } |
| 9835 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9836 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9837 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9838 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9839 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9840 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9841 | rm -f core conftest.err conftest.$ac_objext \ |
| 9842 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9843 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9844 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 9846 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9847 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9848 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9849 | fi |
| 9850 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 9851 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
| 9853 | $as_echo_n "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9854 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9855 | # Check whether --with-libs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9856 | if test "${with_libs+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9857 | withval=$with_libs; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 9859 | $as_echo "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9860 | LIBS="$withval $LIBS" |
| 9861 | |
| 9862 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9864 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9865 | fi |
| 9866 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9867 | |
Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 9868 | |
| 9869 | |
| 9870 | |
| 9871 | |
| 9872 | |
| 9873 | |
| 9874 | |
| 9875 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 9876 | if test -n "$ac_tool_prefix"; then |
| 9877 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 9878 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 9879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9880 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9881 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 9882 | $as_echo_n "(cached) " >&6 |
| 9883 | else |
| 9884 | case $PKG_CONFIG in |
| 9885 | [\\/]* | ?:[\\/]*) |
| 9886 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 9887 | ;; |
| 9888 | *) |
| 9889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9890 | for as_dir in $PATH |
| 9891 | do |
| 9892 | IFS=$as_save_IFS |
| 9893 | test -z "$as_dir" && as_dir=. |
| 9894 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9895 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9896 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 9897 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9898 | break 2 |
| 9899 | fi |
| 9900 | done |
| 9901 | done |
| 9902 | IFS=$as_save_IFS |
| 9903 | |
| 9904 | ;; |
| 9905 | esac |
| 9906 | fi |
| 9907 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 9908 | if test -n "$PKG_CONFIG"; then |
| 9909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 9910 | $as_echo "$PKG_CONFIG" >&6; } |
| 9911 | else |
| 9912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9913 | $as_echo "no" >&6; } |
| 9914 | fi |
| 9915 | |
| 9916 | |
| 9917 | fi |
| 9918 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 9919 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 9920 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 9921 | set dummy pkg-config; ac_word=$2 |
| 9922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9923 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9924 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 9925 | $as_echo_n "(cached) " >&6 |
| 9926 | else |
| 9927 | case $ac_pt_PKG_CONFIG in |
| 9928 | [\\/]* | ?:[\\/]*) |
| 9929 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 9930 | ;; |
| 9931 | *) |
| 9932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9933 | for as_dir in $PATH |
| 9934 | do |
| 9935 | IFS=$as_save_IFS |
| 9936 | test -z "$as_dir" && as_dir=. |
| 9937 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9938 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9939 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 9940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9941 | break 2 |
| 9942 | fi |
| 9943 | done |
| 9944 | done |
| 9945 | IFS=$as_save_IFS |
| 9946 | |
| 9947 | ;; |
| 9948 | esac |
| 9949 | fi |
| 9950 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 9951 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 9952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 9953 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 9954 | else |
| 9955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9956 | $as_echo "no" >&6; } |
| 9957 | fi |
| 9958 | |
| 9959 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 9960 | PKG_CONFIG="" |
| 9961 | else |
| 9962 | case $cross_compiling:$ac_tool_warned in |
| 9963 | yes:) |
| 9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9965 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9966 | ac_tool_warned=yes ;; |
| 9967 | esac |
| 9968 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 9969 | fi |
| 9970 | else |
| 9971 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 9972 | fi |
| 9973 | |
| 9974 | fi |
| 9975 | if test -n "$PKG_CONFIG"; then |
| 9976 | _pkg_min_version=0.9.0 |
| 9977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 9978 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 9979 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 9980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9981 | $as_echo "yes" >&6; } |
| 9982 | else |
| 9983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9984 | $as_echo "no" >&6; } |
| 9985 | PKG_CONFIG="" |
| 9986 | fi |
| 9987 | fi |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9988 | |
| 9989 | # Check for use of the system expat library |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
| 9991 | $as_echo_n "checking for --with-system-expat... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9992 | |
| 9993 | # Check whether --with-system_expat was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9994 | if test "${with_system_expat+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9995 | withval=$with_system_expat; |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 9996 | else |
| 9997 | with_system_expat="no" |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9998 | fi |
| 9999 | |
| 10000 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
| 10002 | $as_echo "$with_system_expat" >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10003 | |
| 10004 | # Check for use of the system libffi library |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
| 10006 | $as_echo_n "checking for --with-system-ffi... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10007 | |
| 10008 | # Check whether --with-system_ffi was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10009 | if test "${with_system_ffi+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10010 | withval=$with_system_ffi; |
| 10011 | fi |
| 10012 | |
| 10013 | |
Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 10014 | if test "$ac_sys_system" = "Darwin" |
| 10015 | then |
| 10016 | case "$with_system_ffi" in |
| 10017 | "") |
| 10018 | with_system_ffi="no" |
| 10019 | ;; |
| 10020 | yes|no) |
| 10021 | ;; |
| 10022 | *) |
| 10023 | as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 |
| 10024 | ;; |
| 10025 | esac |
| 10026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
| 10027 | $as_echo "$with_system_ffi" >&6; } |
| 10028 | else |
| 10029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10030 | $as_echo "yes" >&6; } |
| 10031 | if test "$with_system_ffi" != "" |
| 10032 | then |
| 10033 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5 |
| 10034 | $as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;} |
| 10035 | fi |
| 10036 | with_system_ffi="yes" |
| 10037 | fi |
Zachary Ware | 935043d | 2016-09-09 17:01:21 -0700 | [diff] [blame] | 10038 | |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10039 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 10040 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 10041 | else |
| 10042 | LIBFFI_INCLUDEDIR="" |
| 10043 | fi |
| 10044 | |
| 10045 | |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10046 | # Check for use of the system libmpdec library |
| 10047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 |
| 10048 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } |
| 10049 | |
| 10050 | # Check whether --with-system_libmpdec was given. |
| 10051 | if test "${with_system_libmpdec+set}" = set; then : |
| 10052 | withval=$with_system_libmpdec; |
| 10053 | else |
| 10054 | with_system_libmpdec="no" |
| 10055 | fi |
| 10056 | |
| 10057 | |
| 10058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 |
| 10059 | $as_echo "$with_system_libmpdec" >&6; } |
| 10060 | |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10061 | # Check for support for loadable sqlite extensions |
| 10062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 |
| 10063 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } |
| 10064 | # Check whether --enable-loadable-sqlite-extensions was given. |
| 10065 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : |
| 10066 | enableval=$enable_loadable_sqlite_extensions; |
| 10067 | else |
| 10068 | enable_loadable_sqlite_extensions="no" |
| 10069 | fi |
| 10070 | |
| 10071 | |
| 10072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 |
| 10073 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } |
| 10074 | |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10075 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path |
| 10076 | |
| 10077 | |
| 10078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 |
| 10079 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } |
| 10080 | |
| 10081 | # Check whether --with-tcltk-includes was given. |
| 10082 | if test "${with_tcltk_includes+set}" = set; then : |
| 10083 | withval=$with_tcltk_includes; |
| 10084 | else |
| 10085 | with_tcltk_includes="default" |
| 10086 | fi |
| 10087 | |
| 10088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 |
| 10089 | $as_echo "$with_tcltk_includes" >&6; } |
| 10090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 |
| 10091 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } |
| 10092 | |
| 10093 | # Check whether --with-tcltk-libs was given. |
| 10094 | if test "${with_tcltk_libs+set}" = set; then : |
| 10095 | withval=$with_tcltk_libs; |
| 10096 | else |
| 10097 | with_tcltk_libs="default" |
| 10098 | fi |
| 10099 | |
| 10100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 |
| 10101 | $as_echo "$with_tcltk_libs" >&6; } |
| 10102 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault |
| 10103 | then |
| 10104 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" |
| 10105 | then |
| 10106 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 |
| 10107 | fi |
| 10108 | TCLTK_INCLUDES="" |
| 10109 | TCLTK_LIBS="" |
| 10110 | else |
| 10111 | TCLTK_INCLUDES="$with_tcltk_includes" |
| 10112 | TCLTK_LIBS="$with_tcltk_libs" |
| 10113 | fi |
| 10114 | |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10115 | # Check for --with-dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
| 10117 | $as_echo_n "checking for --with-dbmliborder... " >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10118 | |
| 10119 | # Check whether --with-dbmliborder was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10120 | if test "${with_dbmliborder+set}" = set; then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10121 | withval=$with_dbmliborder; |
| 10122 | if test x$with_dbmliborder = xyes |
| 10123 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10124 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10125 | else |
| 10126 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 10127 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 10128 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10129 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10130 | fi |
| 10131 | done |
| 10132 | fi |
| 10133 | fi |
| 10134 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
| 10136 | $as_echo "$with_dbmliborder" >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10137 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10138 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10139 | |
| 10140 | # Templates for things AC_DEFINEd more than once. |
| 10141 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10142 | |
| 10143 | |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10144 | if test "$ac_cv_pthread_is_default" = yes |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10145 | then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10146 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10147 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10148 | |
| 10149 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10150 | elif test "$ac_cv_kpthread" = "yes" |
| 10151 | then |
| 10152 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10153 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10154 | CXX="$CXX -Kpthread" |
| 10155 | fi |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10156 | posix_threads=yes |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10157 | elif test "$ac_cv_kthread" = "yes" |
| 10158 | then |
| 10159 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10160 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10161 | CXX="$CXX -Kthread" |
| 10162 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10163 | posix_threads=yes |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10164 | elif test "$ac_cv_pthread" = "yes" |
| 10165 | then |
| 10166 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10167 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10168 | CXX="$CXX -pthread" |
| 10169 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10170 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10171 | else |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10172 | if test ! -z "$withval" -a -d "$withval" |
| 10173 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10174 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10175 | |
| 10176 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 10177 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 10178 | # (e.g. gnu pth with pthread emulation) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10180 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } |
| 10181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10182 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10183 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10184 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10185 | #ifdef _POSIX_THREADS |
| 10186 | yes |
| 10187 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10188 | |
| 10189 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10190 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10191 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10192 | unistd_defines_pthreads=yes |
| 10193 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10194 | unistd_defines_pthreads=no |
| 10195 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10196 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10197 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
| 10199 | $as_echo "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10200 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10201 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10202 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10203 | # Just looking for pthread_create in libpthread is not enough: |
| 10204 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10205 | # So we really have to include pthread.h, and then link. |
| 10206 | _libs=$LIBS |
| 10207 | LIBS="$LIBS -lpthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 10209 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
| 10210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10211 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10212 | |
| 10213 | #include <stdio.h> |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10214 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10215 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10216 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10217 | int |
| 10218 | main () |
| 10219 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10220 | |
| 10221 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10222 | ; |
| 10223 | return 0; |
| 10224 | } |
| 10225 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10226 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10227 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10229 | $as_echo "yes" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10230 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10231 | |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10232 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10233 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10234 | LIBS=$_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10235 | 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] | 10236 | if test "x$ac_cv_func_pthread_detach" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10237 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10238 | posix_threads=yes |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10239 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10240 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10241 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
| 10243 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10244 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10245 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10246 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10247 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10248 | LIBS="-lpthreads $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10250 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10251 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10252 | /* Override any GCC internal prototype to avoid an error. |
| 10253 | Use char because int might match the return type of a GCC |
| 10254 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10255 | #ifdef __cplusplus |
| 10256 | extern "C" |
| 10257 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10258 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10259 | int |
| 10260 | main () |
| 10261 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10262 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10263 | ; |
| 10264 | return 0; |
| 10265 | } |
| 10266 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10267 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10268 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10269 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10270 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10271 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10272 | rm -f core conftest.err conftest.$ac_objext \ |
| 10273 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10274 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10275 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10277 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10278 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10279 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10280 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10281 | LIBS="$LIBS -lpthreads" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10282 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10283 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10284 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
| 10286 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10287 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10288 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10289 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10290 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10291 | LIBS="-lc_r $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10293 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10294 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10295 | /* Override any GCC internal prototype to avoid an error. |
| 10296 | Use char because int might match the return type of a GCC |
| 10297 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10298 | #ifdef __cplusplus |
| 10299 | extern "C" |
| 10300 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10301 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10302 | int |
| 10303 | main () |
| 10304 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10305 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10306 | ; |
| 10307 | return 0; |
| 10308 | } |
| 10309 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10310 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10311 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10312 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10313 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10314 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10315 | rm -f core conftest.err conftest.$ac_objext \ |
| 10316 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10317 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10318 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10320 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10321 | 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] | 10322 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10323 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10324 | LIBS="$LIBS -lc_r" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10325 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10326 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10327 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
| 10329 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10330 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10331 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10332 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10333 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10334 | LIBS="-lpthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10336 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10337 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10338 | /* Override any GCC internal prototype to avoid an error. |
| 10339 | Use char because int might match the return type of a GCC |
| 10340 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10341 | #ifdef __cplusplus |
| 10342 | extern "C" |
| 10343 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10344 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10345 | int |
| 10346 | main () |
| 10347 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10348 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10349 | ; |
| 10350 | return 0; |
| 10351 | } |
| 10352 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10353 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10354 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10355 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10356 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10357 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10358 | rm -f core conftest.err conftest.$ac_objext \ |
| 10359 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10360 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10361 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10363 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10364 | 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] | 10365 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10366 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10367 | LIBS="$LIBS -lpthread" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10368 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10369 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10370 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
| 10372 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10373 | if ${ac_cv_lib_cma_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10374 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10375 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10376 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10377 | LIBS="-lcma $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10379 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10380 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10381 | /* Override any GCC internal prototype to avoid an error. |
| 10382 | Use char because int might match the return type of a GCC |
| 10383 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 | #ifdef __cplusplus |
| 10385 | extern "C" |
| 10386 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10387 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10388 | int |
| 10389 | main () |
| 10390 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10391 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10392 | ; |
| 10393 | return 0; |
| 10394 | } |
| 10395 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10396 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10397 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10398 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10399 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10400 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10401 | rm -f core conftest.err conftest.$ac_objext \ |
| 10402 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10403 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10404 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10406 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10407 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10408 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10409 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10410 | LIBS="$LIBS -lcma" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10411 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10412 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10413 | |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10414 | as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 |
| 10415 | |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10416 | fi |
| 10417 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10418 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10419 | fi |
| 10420 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10421 | fi |
| 10422 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10423 | fi |
| 10424 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10425 | fi |
| 10426 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10427 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10428 | rm -f core conftest.err conftest.$ac_objext \ |
| 10429 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10430 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
| 10432 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10433 | if ${ac_cv_lib_mpc_usconfig+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10434 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10436 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10437 | LIBS="-lmpc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10439 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10440 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10441 | /* Override any GCC internal prototype to avoid an error. |
| 10442 | Use char because int might match the return type of a GCC |
| 10443 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10444 | #ifdef __cplusplus |
| 10445 | extern "C" |
| 10446 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10447 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10448 | int |
| 10449 | main () |
| 10450 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10451 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10452 | ; |
| 10453 | return 0; |
| 10454 | } |
| 10455 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10456 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10457 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10458 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10459 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10460 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10461 | rm -f core conftest.err conftest.$ac_objext \ |
| 10462 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10463 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10464 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 10466 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10467 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10468 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10469 | LIBS="$LIBS -lmpc" |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10470 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10471 | fi |
| 10472 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10473 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10474 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10475 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10476 | if test "$posix_threads" = "yes"; then |
| 10477 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10478 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10479 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10480 | |
| 10481 | fi |
| 10482 | |
| 10483 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 10484 | case $ac_sys_system/$ac_sys_release in |
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10485 | SunOS/5.6) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10486 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10487 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10488 | ;; |
| 10489 | SunOS/5.8) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10490 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10491 | |
| 10492 | ;; |
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10493 | AIX/*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10494 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 10495 | |
| 10496 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10497 | esac |
| 10498 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 10500 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10501 | if ${ac_cv_pthread_system_supported+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10502 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10503 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10504 | if test "$cross_compiling" = yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10505 | ac_cv_pthread_system_supported=no |
| 10506 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10508 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10509 | |
| 10510 | #include <stdio.h> |
| 10511 | #include <pthread.h> |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10512 | void *foo(void *parm) { |
| 10513 | return NULL; |
| 10514 | } |
| 10515 | main() { |
| 10516 | pthread_attr_t attr; |
| 10517 | pthread_t id; |
| 10518 | if (pthread_attr_init(&attr)) exit(-1); |
| 10519 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 10520 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 10521 | exit(0); |
| 10522 | } |
| 10523 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10524 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10525 | ac_cv_pthread_system_supported=yes |
| 10526 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10527 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10528 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10529 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10530 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10531 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10532 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10533 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10534 | fi |
| 10535 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
| 10537 | $as_echo "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10538 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 10539 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10540 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10541 | |
| 10542 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10543 | for ac_func in pthread_sigmask |
| 10544 | do : |
| 10545 | 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] | 10546 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10547 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10548 | #define HAVE_PTHREAD_SIGMASK 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10549 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10550 | case $ac_sys_system in |
| 10551 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10552 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10553 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10554 | |
| 10555 | ;; |
| 10556 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10557 | fi |
| 10558 | done |
| 10559 | |
pdox | e14679c | 2017-10-05 00:01:56 -0700 | [diff] [blame] | 10560 | for ac_func in pthread_getcpuclockid |
| 10561 | do : |
| 10562 | ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid" |
| 10563 | if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then : |
| 10564 | cat >>confdefs.h <<_ACEOF |
| 10565 | #define HAVE_PTHREAD_GETCPUCLOCKID 1 |
| 10566 | _ACEOF |
| 10567 | |
| 10568 | fi |
| 10569 | done |
| 10570 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10571 | fi |
| 10572 | |
| 10573 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10574 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10575 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
| 10577 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10578 | # Check whether --enable-ipv6 was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10579 | if test "${enable_ipv6+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10580 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10581 | no) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10583 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10584 | ipv6=no |
| 10585 | ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10586 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10587 | $as_echo "yes" >&6; } |
| 10588 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10589 | |
| 10590 | ipv6=yes |
| 10591 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10592 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10593 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10594 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10596 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10597 | /* AF_INET6 available check */ |
| 10598 | #include <sys/types.h> |
| 10599 | #include <sys/socket.h> |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10600 | int |
| 10601 | main () |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10602 | { |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10603 | int domain = AF_INET6; |
| 10604 | ; |
| 10605 | return 0; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10606 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10607 | _ACEOF |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10608 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10609 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10611 | $as_echo "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10612 | ipv6=yes |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10613 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10614 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10615 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10617 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10618 | ipv6=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10619 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10620 | fi |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10622 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10623 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
| 10625 | $as_echo_n "checking if RFC2553 API is available... " >&6; } |
| 10626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10627 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10628 | |
| 10629 | #include <sys/types.h> |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10630 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10631 | int |
| 10632 | main () |
| 10633 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10634 | struct sockaddr_in6 x; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10635 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10636 | ; |
| 10637 | return 0; |
| 10638 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10640 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10641 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10642 | |
| 10643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10644 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10645 | ipv6=yes |
| 10646 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10647 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10648 | |
| 10649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10650 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10651 | ipv6=no |
| 10652 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10653 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10654 | 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] | 10655 | fi |
| 10656 | |
| 10657 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10658 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10659 | |
| 10660 | fi |
| 10661 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10662 | fi |
| 10663 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10664 | |
| 10665 | ipv6type=unknown |
| 10666 | ipv6lib=none |
| 10667 | ipv6trylibc=no |
| 10668 | |
| 10669 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
| 10671 | $as_echo_n "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10672 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 10673 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10674 | case $i in |
| 10675 | inria) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10677 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10678 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10679 | #include <netinet/in.h> |
| 10680 | #ifdef IPV6_INRIA_VERSION |
| 10681 | yes |
| 10682 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10683 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10684 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10685 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10686 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10687 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10688 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10689 | |
| 10690 | ;; |
| 10691 | kame) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10693 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10694 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10695 | #include <netinet/in.h> |
| 10696 | #ifdef __KAME__ |
| 10697 | yes |
| 10698 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10699 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10700 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10701 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10702 | ipv6type=$i; |
| 10703 | ipv6lib=inet6 |
| 10704 | ipv6libdir=/usr/local/v6/lib |
| 10705 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10706 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10707 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10708 | |
| 10709 | ;; |
| 10710 | linux-glibc) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10712 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10713 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10714 | #include <features.h> |
| 10715 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 10716 | yes |
| 10717 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10718 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10719 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10720 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10721 | ipv6type=$i; |
| 10722 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10723 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10724 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10725 | |
| 10726 | ;; |
| 10727 | linux-inet6) |
| 10728 | if test -d /usr/inet6; then |
| 10729 | ipv6type=$i |
| 10730 | ipv6lib=inet6 |
| 10731 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10732 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10733 | fi |
| 10734 | ;; |
| 10735 | solaris) |
| 10736 | if test -f /etc/netconfig; then |
Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 10737 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10738 | ipv6type=$i |
| 10739 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10740 | fi |
| 10741 | fi |
| 10742 | ;; |
| 10743 | toshiba) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10745 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10746 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10747 | #include <sys/param.h> |
| 10748 | #ifdef _TOSHIBA_INET6 |
| 10749 | yes |
| 10750 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10751 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10752 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10753 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10754 | ipv6type=$i; |
| 10755 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10756 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10757 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10758 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10759 | |
| 10760 | ;; |
| 10761 | v6d) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10763 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10764 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10765 | #include </usr/local/v6/include/sys/v6config.h> |
| 10766 | #ifdef __V6D__ |
| 10767 | yes |
| 10768 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10769 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10771 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10772 | ipv6type=$i; |
| 10773 | ipv6lib=v6; |
| 10774 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10775 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10776 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10777 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10778 | |
| 10779 | ;; |
| 10780 | zeta) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10782 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10783 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10784 | #include <sys/param.h> |
| 10785 | #ifdef _ZETA_MINAMI_INET6 |
| 10786 | yes |
| 10787 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10788 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10789 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10790 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10791 | ipv6type=$i; |
| 10792 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10793 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10794 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10795 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10796 | |
| 10797 | ;; |
| 10798 | esac |
| 10799 | if test "$ipv6type" != "unknown"; then |
| 10800 | break |
| 10801 | fi |
| 10802 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
| 10804 | $as_echo "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10805 | fi |
| 10806 | |
| 10807 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 10808 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 10809 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 10810 | echo "using lib$ipv6lib" |
| 10811 | else |
| 10812 | if test $ipv6trylibc = "yes"; then |
| 10813 | echo "using libc" |
| 10814 | else |
| 10815 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 10816 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 10817 | echo 'ipv6 kit and compile beforehand.' |
| 10818 | exit 1 |
| 10819 | fi |
| 10820 | fi |
| 10821 | fi |
| 10822 | |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 10823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 |
| 10824 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } |
| 10825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10826 | /* end confdefs.h. */ |
| 10827 | /* CAN_RAW_FD_FRAMES available check */ |
| 10828 | #include <linux/can/raw.h> |
| 10829 | int |
| 10830 | main () |
| 10831 | { |
| 10832 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; |
| 10833 | ; |
| 10834 | return 0; |
| 10835 | } |
| 10836 | _ACEOF |
| 10837 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10838 | |
| 10839 | |
| 10840 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h |
| 10841 | |
| 10842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10843 | $as_echo "yes" >&6; } |
| 10844 | |
| 10845 | else |
| 10846 | |
| 10847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10848 | $as_echo "no" >&6; } |
| 10849 | |
| 10850 | fi |
| 10851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10852 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10853 | # Check for --with-doc-strings |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
| 10855 | $as_echo_n "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10856 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10857 | # Check whether --with-doc-strings was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10858 | if test "${with_doc_strings+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10859 | withval=$with_doc_strings; |
| 10860 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10861 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10862 | |
| 10863 | if test -z "$with_doc_strings" |
| 10864 | then with_doc_strings="yes" |
| 10865 | fi |
| 10866 | if test "$with_doc_strings" != "no" |
| 10867 | then |
| 10868 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10869 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10870 | |
| 10871 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
| 10873 | $as_echo "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10874 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10875 | # Check for Python-specific malloc support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
| 10877 | $as_echo_n "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10878 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10879 | # Check whether --with-pymalloc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10880 | if test "${with_pymalloc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10881 | withval=$with_pymalloc; |
| 10882 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10883 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10884 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10885 | if test -z "$with_pymalloc" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 10886 | then |
| 10887 | with_pymalloc="yes" |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10888 | fi |
| 10889 | if test "$with_pymalloc" != "no" |
| 10890 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10891 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10892 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10893 | |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 10894 | ABIFLAGS="${ABIFLAGS}m" |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10895 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
| 10897 | $as_echo "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10898 | |
Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 10899 | # Check for --with-c-locale-coercion |
| 10900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5 |
| 10901 | $as_echo_n "checking for --with-c-locale-coercion... " >&6; } |
| 10902 | |
| 10903 | # Check whether --with-c-locale-coercion was given. |
| 10904 | if test "${with_c_locale_coercion+set}" = set; then : |
| 10905 | withval=$with_c_locale_coercion; |
| 10906 | fi |
| 10907 | |
| 10908 | |
| 10909 | if test -z "$with_c_locale_coercion" |
| 10910 | then |
| 10911 | with_c_locale_coercion="yes" |
| 10912 | fi |
| 10913 | if test "$with_c_locale_coercion" != "no" |
| 10914 | then |
| 10915 | |
| 10916 | $as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h |
| 10917 | |
| 10918 | fi |
| 10919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5 |
| 10920 | $as_echo "$with_c_locale_coercion" >&6; } |
| 10921 | |
| 10922 | # Check for --with-c-locale-warning |
| 10923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-warning" >&5 |
| 10924 | $as_echo_n "checking for --with-c-locale-warning... " >&6; } |
| 10925 | |
| 10926 | # Check whether --with-c-locale-warning was given. |
| 10927 | if test "${with_c_locale_warning+set}" = set; then : |
| 10928 | withval=$with_c_locale_warning; |
| 10929 | fi |
| 10930 | |
| 10931 | |
| 10932 | if test -z "$with_c_locale_warning" |
| 10933 | then |
| 10934 | with_c_locale_warning="yes" |
| 10935 | fi |
| 10936 | if test "$with_c_locale_warning" != "no" |
| 10937 | then |
| 10938 | |
| 10939 | $as_echo "#define PY_WARN_ON_C_LOCALE 1" >>confdefs.h |
| 10940 | |
| 10941 | fi |
| 10942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_warning" >&5 |
| 10943 | $as_echo "$with_c_locale_warning" >&6; } |
| 10944 | |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10945 | # Check for Valgrind support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
| 10947 | $as_echo_n "checking for --with-valgrind... " >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10948 | |
| 10949 | # Check whether --with-valgrind was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10950 | if test "${with_valgrind+set}" = set; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10951 | withval=$with_valgrind; |
| 10952 | else |
| 10953 | with_valgrind=no |
| 10954 | fi |
| 10955 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
| 10957 | $as_echo "$with_valgrind" >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10958 | if test "$with_valgrind" != no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10959 | 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] | 10960 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10961 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10962 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10963 | |
| 10964 | else |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10965 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10966 | |
| 10967 | fi |
| 10968 | |
| 10969 | |
Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 10970 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10971 | fi |
| 10972 | |
Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 10973 | # Check for DTrace support |
| 10974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 |
| 10975 | $as_echo_n "checking for --with-dtrace... " >&6; } |
| 10976 | |
| 10977 | # Check whether --with-dtrace was given. |
| 10978 | if test "${with_dtrace+set}" = set; then : |
| 10979 | withval=$with_dtrace; |
| 10980 | else |
| 10981 | with_dtrace=no |
| 10982 | fi |
| 10983 | |
| 10984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 |
| 10985 | $as_echo "$with_dtrace" >&6; } |
| 10986 | |
| 10987 | |
| 10988 | |
| 10989 | |
| 10990 | |
| 10991 | DTRACE= |
| 10992 | DFLAGS= |
| 10993 | DTRACE_HEADERS= |
| 10994 | DTRACE_OBJS= |
| 10995 | |
| 10996 | if test "$with_dtrace" = "yes" |
| 10997 | then |
| 10998 | # Extract the first word of "dtrace", so it can be a program name with args. |
| 10999 | set dummy dtrace; ac_word=$2 |
| 11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11001 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11002 | if ${ac_cv_path_DTRACE+:} false; then : |
| 11003 | $as_echo_n "(cached) " >&6 |
| 11004 | else |
| 11005 | case $DTRACE in |
| 11006 | [\\/]* | ?:[\\/]*) |
| 11007 | ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. |
| 11008 | ;; |
| 11009 | *) |
| 11010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11011 | for as_dir in $PATH |
| 11012 | do |
| 11013 | IFS=$as_save_IFS |
| 11014 | test -z "$as_dir" && as_dir=. |
| 11015 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11016 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11017 | ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" |
| 11018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11019 | break 2 |
| 11020 | fi |
| 11021 | done |
| 11022 | done |
| 11023 | IFS=$as_save_IFS |
| 11024 | |
| 11025 | test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" |
| 11026 | ;; |
| 11027 | esac |
| 11028 | fi |
| 11029 | DTRACE=$ac_cv_path_DTRACE |
| 11030 | if test -n "$DTRACE"; then |
| 11031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 |
| 11032 | $as_echo "$DTRACE" >&6; } |
| 11033 | else |
| 11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11035 | $as_echo "no" >&6; } |
| 11036 | fi |
| 11037 | |
| 11038 | |
| 11039 | if test "$DTRACE" = "not found"; then |
| 11040 | as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 |
| 11041 | fi |
| 11042 | |
| 11043 | $as_echo "#define WITH_DTRACE 1" >>confdefs.h |
| 11044 | |
| 11045 | DTRACE_HEADERS="Include/pydtrace_probes.h" |
| 11046 | |
| 11047 | # On OS X, DTrace providers do not need to be explicitly compiled and |
| 11048 | # linked into the binary. Correspondingly, dtrace(1) is missing the ELF |
| 11049 | # generation flag '-G'. We check for presence of this flag, rather than |
| 11050 | # hardcoding support by OS, in the interest of robustness. |
| 11051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 |
| 11052 | $as_echo_n "checking whether DTrace probes require linking... " >&6; } |
| 11053 | if ${ac_cv_dtrace_link+:} false; then : |
| 11054 | $as_echo_n "(cached) " >&6 |
| 11055 | else |
| 11056 | ac_cv_dtrace_link=no |
| 11057 | echo 'BEGIN' > conftest.d |
| 11058 | "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ |
| 11059 | ac_cv_dtrace_link=yes |
| 11060 | |
| 11061 | fi |
| 11062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 |
| 11063 | $as_echo "$ac_cv_dtrace_link" >&6; } |
| 11064 | if test "$ac_cv_dtrace_link" = "yes"; then |
| 11065 | DTRACE_OBJS="Python/pydtrace.o" |
| 11066 | fi |
| 11067 | fi |
| 11068 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11069 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11070 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11071 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11072 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11073 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11074 | # 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] | 11075 | for ac_func in dlopen |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11076 | do : |
| 11077 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11078 | if test "x$ac_cv_func_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11079 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11080 | #define HAVE_DLOPEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11081 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11082 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11083 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11084 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11085 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11086 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11087 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11088 | # loading of modules. |
| 11089 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
| 11091 | $as_echo_n "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11092 | if test -z "$DYNLOADFILE" |
| 11093 | then |
| 11094 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 11095 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 11096 | if test "$ac_cv_func_dlopen" = yes |
| 11097 | then DYNLOADFILE="dynload_shlib.o" |
| 11098 | else DYNLOADFILE="dynload_aix.o" |
| 11099 | fi |
| 11100 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11101 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 11102 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 11103 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11104 | *) |
| 11105 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11106 | # out any dynamic loading |
| 11107 | if test "$ac_cv_func_dlopen" = yes |
| 11108 | then DYNLOADFILE="dynload_shlib.o" |
| 11109 | else DYNLOADFILE="dynload_stub.o" |
| 11110 | fi |
| 11111 | ;; |
| 11112 | esac |
| 11113 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
| 11115 | $as_echo "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11116 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11117 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11118 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11119 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11120 | |
| 11121 | fi |
| 11122 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11123 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11124 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11125 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
| 11127 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11128 | if test -z "$MACHDEP_OBJS" |
| 11129 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11130 | MACHDEP_OBJS=$extra_machdep_objs |
| 11131 | else |
| 11132 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11133 | fi |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11134 | if test -z "$MACHDEP_OBJS"; then |
| 11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 11136 | $as_echo "none" >&6; } |
| 11137 | else |
| 11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 |
| 11139 | $as_echo "$MACHDEP_OBJS" >&6; } |
| 11140 | fi |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11141 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11142 | # checks for library functions |
Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 11143 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ |
Victor Stinner | daf4555 | 2013-08-28 00:53:59 +0200 | [diff] [blame] | 11144 | clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11145 | fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ |
Victor Stinner | 4d6a3d6 | 2014-12-21 01:16:38 +0100 | [diff] [blame] | 11146 | futimens futimes gai_strerror getentropy \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11147 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 11148 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
xdegaye | 5ad7ef8 | 2017-11-23 11:13:22 +0100 | [diff] [blame] | 11149 | if_nameindex \ |
xdegaye | 5ce1069 | 2017-11-23 12:01:36 +0100 | [diff] [blame] | 11150 | initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \ |
Antoine Pitrou | f0effe6 | 2011-11-26 01:11:02 +0100 | [diff] [blame] | 11151 | memrchr mbrtowc mkdirat mkfifo \ |
Charles-François Natali | daafdd5 | 2011-05-29 20:07:40 +0200 | [diff] [blame] | 11152 | mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11153 | posix_fallocate posix_fadvise pread \ |
Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 11154 | pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ |
Benjamin Peterson | a234485 | 2017-09-04 10:21:42 -0700 | [diff] [blame] | 11155 | sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ |
Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 11156 | setgid sethostname \ |
Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 11157 | 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] | 11158 | sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ |
| 11159 | sched_rr_get_interval \ |
Ross Lagerwall | bc80822 | 2011-06-25 12:13:40 +0200 | [diff] [blame] | 11160 | sigaction sigaltstack siginterrupt sigpending sigrelse \ |
| 11161 | sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11162 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11163 | truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ |
Victor Stinner | cd777ea | 2013-04-08 22:43:44 +0200 | [diff] [blame] | 11164 | wcscoll wcsftime wcsxfrm wmemcmp writev _getpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11165 | do : |
| 11166 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11167 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11168 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11169 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11170 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11171 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11172 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11173 | fi |
| 11174 | done |
| 11175 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11176 | |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11177 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> |
| 11178 | #include <dirent.h> |
| 11179 | " |
| 11180 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : |
| 11181 | |
| 11182 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h |
| 11183 | |
| 11184 | fi |
| 11185 | |
| 11186 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11187 | # For some functions, having a definition is not sufficient, since |
| 11188 | # we want to take their address. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
| 11190 | $as_echo_n "checking for chroot... " >&6; } |
| 11191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11192 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11193 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11194 | int |
| 11195 | main () |
| 11196 | { |
| 11197 | void *x=chroot |
| 11198 | ; |
| 11199 | return 0; |
| 11200 | } |
| 11201 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11202 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11203 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11204 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11205 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11207 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11208 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11210 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11211 | |
| 11212 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
| 11215 | $as_echo_n "checking for link... " >&6; } |
| 11216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11217 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11218 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11219 | int |
| 11220 | main () |
| 11221 | { |
| 11222 | void *x=link |
| 11223 | ; |
| 11224 | return 0; |
| 11225 | } |
| 11226 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11227 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11228 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11229 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11230 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11232 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11233 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11235 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11236 | |
| 11237 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
| 11240 | $as_echo_n "checking for symlink... " >&6; } |
| 11241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11242 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11243 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11244 | int |
| 11245 | main () |
| 11246 | { |
| 11247 | void *x=symlink |
| 11248 | ; |
| 11249 | return 0; |
| 11250 | } |
| 11251 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11252 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11253 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11254 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11255 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11257 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11258 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11260 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11261 | |
| 11262 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
| 11265 | $as_echo_n "checking for fchdir... " >&6; } |
| 11266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11267 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11268 | #include <unistd.h> |
| 11269 | int |
| 11270 | main () |
| 11271 | { |
| 11272 | void *x=fchdir |
| 11273 | ; |
| 11274 | return 0; |
| 11275 | } |
| 11276 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11277 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11278 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11279 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11280 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11282 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11283 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11285 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11286 | |
| 11287 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
| 11290 | $as_echo_n "checking for fsync... " >&6; } |
| 11291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11292 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11293 | #include <unistd.h> |
| 11294 | int |
| 11295 | main () |
| 11296 | { |
| 11297 | void *x=fsync |
| 11298 | ; |
| 11299 | return 0; |
| 11300 | } |
| 11301 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11302 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11303 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11304 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11305 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11307 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11308 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11310 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11311 | |
| 11312 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
| 11315 | $as_echo_n "checking for fdatasync... " >&6; } |
| 11316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11317 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11318 | #include <unistd.h> |
| 11319 | int |
| 11320 | main () |
| 11321 | { |
| 11322 | void *x=fdatasync |
| 11323 | ; |
| 11324 | return 0; |
| 11325 | } |
| 11326 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11327 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11328 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11329 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11330 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11332 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11333 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11335 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11336 | |
| 11337 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
| 11340 | $as_echo_n "checking for epoll... " >&6; } |
| 11341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11342 | /* end confdefs.h. */ |
| 11343 | #include <sys/epoll.h> |
| 11344 | int |
| 11345 | main () |
| 11346 | { |
| 11347 | void *x=epoll_create |
| 11348 | ; |
| 11349 | return 0; |
| 11350 | } |
| 11351 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11352 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11353 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11354 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11355 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11357 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11358 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11360 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11361 | |
| 11362 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 11364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 |
| 11365 | $as_echo_n "checking for epoll_create1... " >&6; } |
| 11366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11367 | /* end confdefs.h. */ |
| 11368 | #include <sys/epoll.h> |
| 11369 | int |
| 11370 | main () |
| 11371 | { |
| 11372 | void *x=epoll_create1 |
| 11373 | ; |
| 11374 | return 0; |
| 11375 | } |
| 11376 | _ACEOF |
| 11377 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11378 | |
| 11379 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h |
| 11380 | |
| 11381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11382 | $as_echo "yes" >&6; } |
| 11383 | else |
| 11384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11385 | $as_echo "no" >&6; } |
| 11386 | |
| 11387 | fi |
| 11388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
| 11390 | $as_echo_n "checking for kqueue... " >&6; } |
| 11391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11392 | /* end confdefs.h. */ |
| 11393 | |
| 11394 | #include <sys/types.h> |
| 11395 | #include <sys/event.h> |
| 11396 | |
| 11397 | int |
| 11398 | main () |
| 11399 | { |
| 11400 | int x=kqueue() |
| 11401 | ; |
| 11402 | return 0; |
| 11403 | } |
| 11404 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11405 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11406 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11407 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11408 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11410 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11411 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11413 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11414 | |
| 11415 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 11417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 |
| 11418 | $as_echo_n "checking for prlimit... " >&6; } |
| 11419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11420 | /* end confdefs.h. */ |
| 11421 | |
| 11422 | #include <sys/time.h> |
| 11423 | #include <sys/resource.h> |
| 11424 | |
| 11425 | int |
| 11426 | main () |
| 11427 | { |
| 11428 | void *x=prlimit |
| 11429 | ; |
| 11430 | return 0; |
| 11431 | } |
| 11432 | _ACEOF |
| 11433 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11434 | |
| 11435 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h |
| 11436 | |
| 11437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11438 | $as_echo "yes" >&6; } |
| 11439 | else |
| 11440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11441 | $as_echo "no" >&6; } |
| 11442 | |
| 11443 | fi |
| 11444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11445 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11446 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 11447 | # functions ctermid_r, setgroups in the library, but no prototype |
| 11448 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 11449 | # address to avoid compiler warnings and potential miscompilations |
| 11450 | # because of the missing prototypes. |
| 11451 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
| 11453 | $as_echo_n "checking for ctermid_r... " >&6; } |
| 11454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11455 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11456 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11457 | #include <stdio.h> |
| 11458 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11459 | int |
| 11460 | main () |
| 11461 | { |
| 11462 | void* p = ctermid_r |
| 11463 | ; |
| 11464 | return 0; |
| 11465 | } |
| 11466 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11467 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11468 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11469 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11470 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11472 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11473 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11475 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11476 | |
| 11477 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11479 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
| 11481 | $as_echo_n "checking for flock declaration... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11482 | if ${ac_cv_flock_decl+:} false; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11483 | $as_echo_n "(cached) " >&6 |
| 11484 | else |
| 11485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11486 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11487 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11488 | int |
| 11489 | main () |
| 11490 | { |
| 11491 | void* p = flock |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11492 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11493 | ; |
| 11494 | return 0; |
| 11495 | } |
| 11496 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11497 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11498 | ac_cv_flock_decl=yes |
| 11499 | else |
| 11500 | ac_cv_flock_decl=no |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11501 | |
| 11502 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11504 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11505 | fi |
| 11506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 |
| 11507 | $as_echo "$ac_cv_flock_decl" >&6; } |
| 11508 | if test "x${ac_cv_flock_decl}" = xyes; then |
| 11509 | for ac_func in flock |
| 11510 | do : |
| 11511 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11512 | if test "x$ac_cv_func_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11513 | cat >>confdefs.h <<_ACEOF |
| 11514 | #define HAVE_FLOCK 1 |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11515 | _ACEOF |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11516 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11517 | else |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11518 | { $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] | 11519 | $as_echo_n "checking for flock in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11520 | if ${ac_cv_lib_bsd_flock+:} false; then : |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11521 | $as_echo_n "(cached) " >&6 |
| 11522 | else |
| 11523 | ac_check_lib_save_LIBS=$LIBS |
| 11524 | LIBS="-lbsd $LIBS" |
| 11525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11526 | /* end confdefs.h. */ |
| 11527 | |
| 11528 | /* Override any GCC internal prototype to avoid an error. |
| 11529 | Use char because int might match the return type of a GCC |
| 11530 | builtin and then its argument prototype would still apply. */ |
| 11531 | #ifdef __cplusplus |
| 11532 | extern "C" |
| 11533 | #endif |
| 11534 | char flock (); |
| 11535 | int |
| 11536 | main () |
| 11537 | { |
| 11538 | return flock (); |
| 11539 | ; |
| 11540 | return 0; |
| 11541 | } |
| 11542 | _ACEOF |
| 11543 | if ac_fn_c_try_link "$LINENO"; then : |
| 11544 | ac_cv_lib_bsd_flock=yes |
| 11545 | else |
| 11546 | ac_cv_lib_bsd_flock=no |
| 11547 | fi |
| 11548 | rm -f core conftest.err conftest.$ac_objext \ |
| 11549 | conftest$ac_exeext conftest.$ac_ext |
| 11550 | LIBS=$ac_check_lib_save_LIBS |
| 11551 | fi |
| 11552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 |
| 11553 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11554 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11555 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11556 | |
| 11557 | |
| 11558 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h |
| 11559 | |
| 11560 | |
| 11561 | fi |
| 11562 | |
| 11563 | |
| 11564 | fi |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11565 | done |
| 11566 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11567 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11568 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
| 11570 | $as_echo_n "checking for getpagesize... " >&6; } |
| 11571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11572 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11573 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11574 | #include <unistd.h> |
| 11575 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11576 | int |
| 11577 | main () |
| 11578 | { |
| 11579 | void* p = getpagesize |
| 11580 | ; |
| 11581 | return 0; |
| 11582 | } |
| 11583 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11584 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11585 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11586 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11587 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11589 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11590 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11592 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11593 | |
| 11594 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11595 | 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] | 11596 | |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 11597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 |
| 11598 | $as_echo_n "checking for broken unsetenv... " >&6; } |
| 11599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11600 | /* end confdefs.h. */ |
| 11601 | |
| 11602 | #include <stdlib.h> |
| 11603 | |
| 11604 | int |
| 11605 | main () |
| 11606 | { |
| 11607 | int res = unsetenv("DUMMY") |
| 11608 | ; |
| 11609 | return 0; |
| 11610 | } |
| 11611 | _ACEOF |
| 11612 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11614 | $as_echo "no" >&6; } |
| 11615 | else |
| 11616 | |
| 11617 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h |
| 11618 | |
| 11619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11620 | $as_echo "yes" >&6; } |
| 11621 | |
| 11622 | fi |
| 11623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11624 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11625 | for ac_prog in true |
| 11626 | do |
| 11627 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11628 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11630 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11631 | if ${ac_cv_prog_TRUE+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11632 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11633 | else |
| 11634 | if test -n "$TRUE"; then |
| 11635 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 11636 | else |
| 11637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11638 | for as_dir in $PATH |
| 11639 | do |
| 11640 | IFS=$as_save_IFS |
| 11641 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11642 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11643 | 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] | 11644 | ac_cv_prog_TRUE="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11645 | $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] | 11646 | break 2 |
| 11647 | fi |
| 11648 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11649 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11650 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11651 | |
| 11652 | fi |
| 11653 | fi |
| 11654 | TRUE=$ac_cv_prog_TRUE |
| 11655 | if test -n "$TRUE"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
| 11657 | $as_echo "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11658 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11660 | $as_echo "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11661 | fi |
| 11662 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11663 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11664 | test -n "$TRUE" && break |
| 11665 | done |
| 11666 | test -n "$TRUE" || TRUE="/bin/true" |
| 11667 | |
| 11668 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
| 11670 | $as_echo_n "checking for inet_aton in -lc... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11671 | if ${ac_cv_lib_c_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11672 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11673 | else |
| 11674 | ac_check_lib_save_LIBS=$LIBS |
| 11675 | LIBS="-lc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11677 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11678 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11679 | /* Override any GCC internal prototype to avoid an error. |
| 11680 | Use char because int might match the return type of a GCC |
| 11681 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11682 | #ifdef __cplusplus |
| 11683 | extern "C" |
| 11684 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11685 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11686 | int |
| 11687 | main () |
| 11688 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11689 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11690 | ; |
| 11691 | return 0; |
| 11692 | } |
| 11693 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11694 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11695 | ac_cv_lib_c_inet_aton=yes |
| 11696 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11697 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11698 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11699 | rm -f core conftest.err conftest.$ac_objext \ |
| 11700 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11701 | LIBS=$ac_check_lib_save_LIBS |
| 11702 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
| 11704 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11705 | 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] | 11706 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11707 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
| 11709 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11710 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11711 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11712 | else |
| 11713 | ac_check_lib_save_LIBS=$LIBS |
| 11714 | LIBS="-lresolv $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11716 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11717 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11718 | /* Override any GCC internal prototype to avoid an error. |
| 11719 | Use char because int might match the return type of a GCC |
| 11720 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11721 | #ifdef __cplusplus |
| 11722 | extern "C" |
| 11723 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11724 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11725 | int |
| 11726 | main () |
| 11727 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11728 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11729 | ; |
| 11730 | return 0; |
| 11731 | } |
| 11732 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11733 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11734 | ac_cv_lib_resolv_inet_aton=yes |
| 11735 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11736 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11737 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11738 | rm -f core conftest.err conftest.$ac_objext \ |
| 11739 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11740 | LIBS=$ac_check_lib_save_LIBS |
| 11741 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 11743 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11744 | 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] | 11745 | cat >>confdefs.h <<_ACEOF |
| 11746 | #define HAVE_LIBRESOLV 1 |
| 11747 | _ACEOF |
| 11748 | |
| 11749 | LIBS="-lresolv $LIBS" |
| 11750 | |
| 11751 | fi |
| 11752 | |
| 11753 | |
| 11754 | fi |
| 11755 | |
| 11756 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11757 | # On Tru64, chflags seems to be present, but calling it will |
| 11758 | # exit Python |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
| 11760 | $as_echo_n "checking for chflags... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11761 | if ${ac_cv_have_chflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11762 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11763 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11764 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11765 | ac_cv_have_chflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11766 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11768 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11769 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11770 | #include <sys/stat.h> |
| 11771 | #include <unistd.h> |
| 11772 | int main(int argc, char*argv[]) |
| 11773 | { |
| 11774 | if(chflags(argv[0], 0) != 0) |
| 11775 | return 1; |
| 11776 | return 0; |
| 11777 | } |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11778 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11779 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11780 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11781 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11782 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11783 | ac_cv_have_chflags=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11784 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11785 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11786 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 11787 | fi |
| 11788 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11789 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11790 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
| 11792 | $as_echo "$ac_cv_have_chflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11793 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11794 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11795 | if test "x$ac_cv_func_chflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11796 | ac_cv_have_chflags="yes" |
| 11797 | else |
| 11798 | ac_cv_have_chflags="no" |
| 11799 | fi |
| 11800 | |
| 11801 | fi |
| 11802 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11803 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11804 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11805 | |
| 11806 | fi |
| 11807 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
| 11809 | $as_echo_n "checking for lchflags... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11810 | if ${ac_cv_have_lchflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11811 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11812 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11813 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11814 | ac_cv_have_lchflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11815 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11817 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11818 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11819 | #include <sys/stat.h> |
| 11820 | #include <unistd.h> |
| 11821 | int main(int argc, char*argv[]) |
| 11822 | { |
| 11823 | if(lchflags(argv[0], 0) != 0) |
| 11824 | return 1; |
| 11825 | return 0; |
| 11826 | } |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11827 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11828 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11829 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11830 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11831 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11832 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11833 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11834 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11835 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11836 | fi |
| 11837 | |
| 11838 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11839 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
| 11841 | $as_echo "$ac_cv_have_lchflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11842 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11843 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11844 | if test "x$ac_cv_func_lchflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11845 | ac_cv_have_lchflags="yes" |
| 11846 | else |
| 11847 | ac_cv_have_lchflags="no" |
| 11848 | fi |
| 11849 | |
| 11850 | fi |
| 11851 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11852 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11853 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11854 | |
| 11855 | fi |
| 11856 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11857 | case $ac_sys_system/$ac_sys_release in |
| 11858 | Darwin/*) |
| 11859 | _CUR_CFLAGS="${CFLAGS}" |
| 11860 | _CUR_LDFLAGS="${LDFLAGS}" |
| 11861 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 11862 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 11863 | ;; |
| 11864 | esac |
| 11865 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
| 11867 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11868 | if ${ac_cv_lib_z_inflateCopy+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11869 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11870 | else |
| 11871 | ac_check_lib_save_LIBS=$LIBS |
| 11872 | LIBS="-lz $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11874 | /* end confdefs.h. */ |
| 11875 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11876 | /* Override any GCC internal prototype to avoid an error. |
| 11877 | Use char because int might match the return type of a GCC |
| 11878 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11879 | #ifdef __cplusplus |
| 11880 | extern "C" |
| 11881 | #endif |
| 11882 | char inflateCopy (); |
| 11883 | int |
| 11884 | main () |
| 11885 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11886 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11887 | ; |
| 11888 | return 0; |
| 11889 | } |
| 11890 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11891 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11892 | ac_cv_lib_z_inflateCopy=yes |
| 11893 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11894 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11895 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11896 | rm -f core conftest.err conftest.$ac_objext \ |
| 11897 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11898 | LIBS=$ac_check_lib_save_LIBS |
| 11899 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 11901 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11902 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11903 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11904 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11905 | |
| 11906 | fi |
| 11907 | |
| 11908 | |
| 11909 | case $ac_sys_system/$ac_sys_release in |
| 11910 | Darwin/*) |
| 11911 | CFLAGS="${_CUR_CFLAGS}" |
| 11912 | LDFLAGS="${_CUR_LDFLAGS}" |
| 11913 | ;; |
| 11914 | esac |
| 11915 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
| 11917 | $as_echo_n "checking for hstrerror... " >&6; } |
| 11918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11919 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11920 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11921 | #include <netdb.h> |
| 11922 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11923 | int |
| 11924 | main () |
| 11925 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11926 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11927 | ; |
| 11928 | return 0; |
| 11929 | } |
| 11930 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11931 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11932 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11933 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11934 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11936 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11937 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11939 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11940 | |
| 11941 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11942 | rm -f core conftest.err conftest.$ac_objext \ |
| 11943 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11944 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
| 11946 | $as_echo_n "checking for inet_aton... " >&6; } |
| 11947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11948 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11949 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11950 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11951 | #include <sys/socket.h> |
| 11952 | #include <netinet/in.h> |
| 11953 | #include <arpa/inet.h> |
| 11954 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11955 | int |
| 11956 | main () |
| 11957 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11958 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11959 | ; |
| 11960 | return 0; |
| 11961 | } |
| 11962 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11963 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11964 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11965 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11966 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11968 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11969 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11971 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11972 | |
| 11973 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11974 | rm -f core conftest.err conftest.$ac_objext \ |
| 11975 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11976 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
| 11978 | $as_echo_n "checking for inet_pton... " >&6; } |
| 11979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11980 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11981 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11982 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11983 | #include <sys/socket.h> |
| 11984 | #include <netinet/in.h> |
| 11985 | #include <arpa/inet.h> |
| 11986 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11987 | int |
| 11988 | main () |
| 11989 | { |
| 11990 | void* p = inet_pton |
| 11991 | ; |
| 11992 | return 0; |
| 11993 | } |
| 11994 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11995 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11996 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11997 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11998 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12000 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12001 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12003 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12004 | |
| 12005 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12006 | 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] | 12007 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12008 | # 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] | 12009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
| 12010 | $as_echo_n "checking for setgroups... " >&6; } |
| 12011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12012 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12013 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12014 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12015 | #ifdef HAVE_GRP_H |
| 12016 | #include <grp.h> |
| 12017 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12018 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12019 | int |
| 12020 | main () |
| 12021 | { |
| 12022 | void* p = setgroups |
| 12023 | ; |
| 12024 | return 0; |
| 12025 | } |
| 12026 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12027 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12028 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12029 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12030 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12032 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12033 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12035 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12036 | |
| 12037 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12038 | 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] | 12039 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12040 | # check for openpty and forkpty |
| 12041 | |
| 12042 | for ac_func in openpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12043 | do : |
| 12044 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12045 | if test "x$ac_cv_func_openpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12046 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12047 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12048 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12049 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12050 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
| 12052 | $as_echo_n "checking for openpty in -lutil... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12053 | if ${ac_cv_lib_util_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12054 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12055 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12056 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12057 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12059 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12060 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12061 | /* Override any GCC internal prototype to avoid an error. |
| 12062 | Use char because int might match the return type of a GCC |
| 12063 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12064 | #ifdef __cplusplus |
| 12065 | extern "C" |
| 12066 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12067 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12068 | int |
| 12069 | main () |
| 12070 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12071 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12072 | ; |
| 12073 | return 0; |
| 12074 | } |
| 12075 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12076 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12077 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12078 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12079 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12080 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12081 | rm -f core conftest.err conftest.$ac_objext \ |
| 12082 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12083 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12084 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
| 12086 | $as_echo "$ac_cv_lib_util_openpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12087 | if test "x$ac_cv_lib_util_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12088 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12089 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12090 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
| 12092 | $as_echo_n "checking for openpty in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12093 | if ${ac_cv_lib_bsd_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12094 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12095 | else |
| 12096 | ac_check_lib_save_LIBS=$LIBS |
| 12097 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12099 | /* end confdefs.h. */ |
| 12100 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12101 | /* Override any GCC internal prototype to avoid an error. |
| 12102 | Use char because int might match the return type of a GCC |
| 12103 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12104 | #ifdef __cplusplus |
| 12105 | extern "C" |
| 12106 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12107 | char openpty (); |
| 12108 | int |
| 12109 | main () |
| 12110 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12111 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12112 | ; |
| 12113 | return 0; |
| 12114 | } |
| 12115 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12116 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12117 | ac_cv_lib_bsd_openpty=yes |
| 12118 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12119 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12120 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12121 | rm -f core conftest.err conftest.$ac_objext \ |
| 12122 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12123 | LIBS=$ac_check_lib_save_LIBS |
| 12124 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
| 12126 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12127 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12128 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12129 | LIBS="$LIBS -lbsd" |
| 12130 | fi |
| 12131 | |
| 12132 | |
| 12133 | fi |
| 12134 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12135 | |
| 12136 | fi |
| 12137 | done |
| 12138 | |
| 12139 | for ac_func in forkpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12140 | do : |
| 12141 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12142 | if test "x$ac_cv_func_forkpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12143 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12144 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12145 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12146 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12147 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
| 12149 | $as_echo_n "checking for forkpty in -lutil... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12150 | if ${ac_cv_lib_util_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12151 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12152 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12153 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12154 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12156 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12157 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12158 | /* Override any GCC internal prototype to avoid an error. |
| 12159 | Use char because int might match the return type of a GCC |
| 12160 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12161 | #ifdef __cplusplus |
| 12162 | extern "C" |
| 12163 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12164 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12165 | int |
| 12166 | main () |
| 12167 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12168 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12169 | ; |
| 12170 | return 0; |
| 12171 | } |
| 12172 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12173 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12174 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12175 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12176 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12177 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12178 | rm -f core conftest.err conftest.$ac_objext \ |
| 12179 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12180 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12181 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
| 12183 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12184 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12185 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12186 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12187 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 |
| 12189 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12190 | if ${ac_cv_lib_bsd_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12191 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12192 | else |
| 12193 | ac_check_lib_save_LIBS=$LIBS |
| 12194 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12196 | /* end confdefs.h. */ |
| 12197 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12198 | /* Override any GCC internal prototype to avoid an error. |
| 12199 | Use char because int might match the return type of a GCC |
| 12200 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12201 | #ifdef __cplusplus |
| 12202 | extern "C" |
| 12203 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12204 | char forkpty (); |
| 12205 | int |
| 12206 | main () |
| 12207 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12208 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12209 | ; |
| 12210 | return 0; |
| 12211 | } |
| 12212 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12213 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12214 | ac_cv_lib_bsd_forkpty=yes |
| 12215 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12216 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12217 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12218 | rm -f core conftest.err conftest.$ac_objext \ |
| 12219 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12220 | LIBS=$ac_check_lib_save_LIBS |
| 12221 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 12223 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12224 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12225 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12226 | LIBS="$LIBS -lbsd" |
| 12227 | fi |
| 12228 | |
| 12229 | |
| 12230 | fi |
| 12231 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12232 | |
| 12233 | fi |
| 12234 | done |
| 12235 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12236 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12237 | # check for long file support functions |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12238 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12239 | do : |
| 12240 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12241 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12242 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12243 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12244 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12245 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12246 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12247 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12248 | done |
| 12249 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12250 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12251 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12252 | if test "x$ac_cv_func_dup2" = xyes; then : |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12253 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12254 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12255 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12256 | case " $LIBOBJS " in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12257 | *" dup2.$ac_objext "* ) ;; |
| 12258 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12259 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12260 | esac |
| 12261 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12262 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12263 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12264 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12265 | if test "x$ac_cv_func_strdup" = xyes; then : |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12266 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h |
| 12267 | |
| 12268 | else |
| 12269 | case " $LIBOBJS " in |
| 12270 | *" strdup.$ac_objext "* ) ;; |
| 12271 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" |
| 12272 | ;; |
| 12273 | esac |
| 12274 | |
| 12275 | fi |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12276 | |
| 12277 | |
| 12278 | for ac_func in getpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12279 | do : |
| 12280 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12281 | if test "x$ac_cv_func_getpgrp" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12282 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12283 | #define HAVE_GETPGRP 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12284 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12286 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12287 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12288 | int |
| 12289 | main () |
| 12290 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12291 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12297 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12298 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12299 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12300 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12301 | 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] | 12302 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12303 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12304 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12305 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12306 | for ac_func in setpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12307 | do : |
| 12308 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12309 | if test "x$ac_cv_func_setpgrp" = xyes; then : |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12310 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12311 | #define HAVE_SETPGRP 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12312 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12314 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12315 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12316 | int |
| 12317 | main () |
| 12318 | { |
| 12319 | setpgrp(0,0); |
| 12320 | ; |
| 12321 | return 0; |
| 12322 | } |
| 12323 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12324 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12325 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12326 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12327 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12328 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12330 | |
| 12331 | fi |
| 12332 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12333 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12334 | for ac_func in gettimeofday |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12335 | do : |
| 12336 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12337 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12338 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12339 | #define HAVE_GETTIMEOFDAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12340 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12342 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12343 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12344 | int |
| 12345 | main () |
| 12346 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12347 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12348 | ; |
| 12349 | return 0; |
| 12350 | } |
| 12351 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12352 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12353 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12354 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12355 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12356 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12357 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12358 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12359 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12360 | 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] | 12361 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12362 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12363 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12364 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12365 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12366 | for ac_func in clock_gettime |
| 12367 | do : |
| 12368 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
| 12369 | if test "x$ac_cv_func_clock_gettime" = xyes; then : |
| 12370 | cat >>confdefs.h <<_ACEOF |
| 12371 | #define HAVE_CLOCK_GETTIME 1 |
| 12372 | _ACEOF |
| 12373 | |
| 12374 | else |
| 12375 | |
| 12376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
| 12377 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } |
| 12378 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
| 12379 | $as_echo_n "(cached) " >&6 |
| 12380 | else |
| 12381 | ac_check_lib_save_LIBS=$LIBS |
| 12382 | LIBS="-lrt $LIBS" |
| 12383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12384 | /* end confdefs.h. */ |
| 12385 | |
| 12386 | /* Override any GCC internal prototype to avoid an error. |
| 12387 | Use char because int might match the return type of a GCC |
| 12388 | builtin and then its argument prototype would still apply. */ |
| 12389 | #ifdef __cplusplus |
| 12390 | extern "C" |
| 12391 | #endif |
| 12392 | char clock_gettime (); |
| 12393 | int |
| 12394 | main () |
| 12395 | { |
| 12396 | return clock_gettime (); |
| 12397 | ; |
| 12398 | return 0; |
| 12399 | } |
| 12400 | _ACEOF |
| 12401 | if ac_fn_c_try_link "$LINENO"; then : |
| 12402 | ac_cv_lib_rt_clock_gettime=yes |
| 12403 | else |
| 12404 | ac_cv_lib_rt_clock_gettime=no |
| 12405 | fi |
| 12406 | rm -f core conftest.err conftest.$ac_objext \ |
| 12407 | conftest$ac_exeext conftest.$ac_ext |
| 12408 | LIBS=$ac_check_lib_save_LIBS |
| 12409 | fi |
| 12410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
| 12411 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } |
| 12412 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
| 12413 | |
Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 12414 | LIBS="$LIBS -lrt" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12415 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| 12416 | |
| 12417 | |
| 12418 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h |
| 12419 | |
| 12420 | |
| 12421 | fi |
| 12422 | |
| 12423 | |
| 12424 | fi |
| 12425 | done |
| 12426 | |
| 12427 | |
| 12428 | for ac_func in clock_getres |
| 12429 | do : |
| 12430 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" |
| 12431 | if test "x$ac_cv_func_clock_getres" = xyes; then : |
| 12432 | cat >>confdefs.h <<_ACEOF |
| 12433 | #define HAVE_CLOCK_GETRES 1 |
| 12434 | _ACEOF |
| 12435 | |
| 12436 | else |
| 12437 | |
| 12438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 |
| 12439 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } |
| 12440 | if ${ac_cv_lib_rt_clock_getres+:} false; then : |
| 12441 | $as_echo_n "(cached) " >&6 |
| 12442 | else |
| 12443 | ac_check_lib_save_LIBS=$LIBS |
| 12444 | LIBS="-lrt $LIBS" |
| 12445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12446 | /* end confdefs.h. */ |
| 12447 | |
| 12448 | /* Override any GCC internal prototype to avoid an error. |
| 12449 | Use char because int might match the return type of a GCC |
| 12450 | builtin and then its argument prototype would still apply. */ |
| 12451 | #ifdef __cplusplus |
| 12452 | extern "C" |
| 12453 | #endif |
| 12454 | char clock_getres (); |
| 12455 | int |
| 12456 | main () |
| 12457 | { |
| 12458 | return clock_getres (); |
| 12459 | ; |
| 12460 | return 0; |
| 12461 | } |
| 12462 | _ACEOF |
| 12463 | if ac_fn_c_try_link "$LINENO"; then : |
| 12464 | ac_cv_lib_rt_clock_getres=yes |
| 12465 | else |
| 12466 | ac_cv_lib_rt_clock_getres=no |
| 12467 | fi |
| 12468 | rm -f core conftest.err conftest.$ac_objext \ |
| 12469 | conftest$ac_exeext conftest.$ac_ext |
| 12470 | LIBS=$ac_check_lib_save_LIBS |
| 12471 | fi |
| 12472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 |
| 12473 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } |
| 12474 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : |
| 12475 | |
| 12476 | $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h |
| 12477 | |
| 12478 | |
| 12479 | fi |
| 12480 | |
| 12481 | |
| 12482 | fi |
| 12483 | done |
| 12484 | |
| 12485 | |
Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 12486 | for ac_func in clock_settime |
| 12487 | do : |
| 12488 | ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" |
| 12489 | if test "x$ac_cv_func_clock_settime" = xyes; then : |
| 12490 | cat >>confdefs.h <<_ACEOF |
| 12491 | #define HAVE_CLOCK_SETTIME 1 |
| 12492 | _ACEOF |
| 12493 | |
| 12494 | else |
| 12495 | |
| 12496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 |
| 12497 | $as_echo_n "checking for clock_settime in -lrt... " >&6; } |
| 12498 | if ${ac_cv_lib_rt_clock_settime+:} false; then : |
| 12499 | $as_echo_n "(cached) " >&6 |
| 12500 | else |
| 12501 | ac_check_lib_save_LIBS=$LIBS |
| 12502 | LIBS="-lrt $LIBS" |
| 12503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12504 | /* end confdefs.h. */ |
| 12505 | |
| 12506 | /* Override any GCC internal prototype to avoid an error. |
| 12507 | Use char because int might match the return type of a GCC |
| 12508 | builtin and then its argument prototype would still apply. */ |
| 12509 | #ifdef __cplusplus |
| 12510 | extern "C" |
| 12511 | #endif |
| 12512 | char clock_settime (); |
| 12513 | int |
| 12514 | main () |
| 12515 | { |
| 12516 | return clock_settime (); |
| 12517 | ; |
| 12518 | return 0; |
| 12519 | } |
| 12520 | _ACEOF |
| 12521 | if ac_fn_c_try_link "$LINENO"; then : |
| 12522 | ac_cv_lib_rt_clock_settime=yes |
| 12523 | else |
| 12524 | ac_cv_lib_rt_clock_settime=no |
| 12525 | fi |
| 12526 | rm -f core conftest.err conftest.$ac_objext \ |
| 12527 | conftest$ac_exeext conftest.$ac_ext |
| 12528 | LIBS=$ac_check_lib_save_LIBS |
| 12529 | fi |
| 12530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 |
| 12531 | $as_echo "$ac_cv_lib_rt_clock_settime" >&6; } |
| 12532 | if test "x$ac_cv_lib_rt_clock_settime" = xyes; then : |
| 12533 | |
| 12534 | $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h |
| 12535 | |
| 12536 | |
| 12537 | fi |
| 12538 | |
| 12539 | |
| 12540 | fi |
| 12541 | done |
| 12542 | |
| 12543 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
| 12545 | $as_echo_n "checking for major... " >&6; } |
| 12546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12547 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12548 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12549 | #if defined(MAJOR_IN_MKDEV) |
| 12550 | #include <sys/mkdev.h> |
| 12551 | #elif defined(MAJOR_IN_SYSMACROS) |
| 12552 | #include <sys/sysmacros.h> |
| 12553 | #else |
| 12554 | #include <sys/types.h> |
| 12555 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12556 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12557 | int |
| 12558 | main () |
| 12559 | { |
| 12560 | |
| 12561 | makedev(major(0),minor(0)); |
| 12562 | |
| 12563 | ; |
| 12564 | return 0; |
| 12565 | } |
| 12566 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12567 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12568 | |
| 12569 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12570 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12571 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12573 | $as_echo "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12574 | |
| 12575 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12576 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12578 | $as_echo "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12579 | |
| 12580 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12581 | rm -f core conftest.err conftest.$ac_objext \ |
| 12582 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12583 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12584 | # 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] | 12585 | # for [no]getaddrinfo in netdb.h. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
| 12587 | $as_echo_n "checking for getaddrinfo... " >&6; } |
| 12588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12589 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12590 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12591 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12592 | #include <sys/socket.h> |
| 12593 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12594 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12595 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12596 | int |
| 12597 | main () |
| 12598 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12599 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12600 | ; |
| 12601 | return 0; |
| 12602 | } |
| 12603 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12604 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12605 | have_getaddrinfo=yes |
| 12606 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12607 | have_getaddrinfo=no |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12608 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12609 | rm -f core conftest.err conftest.$ac_objext \ |
| 12610 | conftest$ac_exeext conftest.$ac_ext |
| 12611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 |
| 12612 | $as_echo "$have_getaddrinfo" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12613 | if test $have_getaddrinfo = yes |
| 12614 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
| 12616 | $as_echo_n "checking getaddrinfo bug... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12617 | if ${ac_cv_buggy_getaddrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12618 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12619 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12620 | if test "$cross_compiling" = yes; then : |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12621 | |
| 12622 | if test "${enable_ipv6+set}" = set; then |
| 12623 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" |
| 12624 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12625 | ac_cv_buggy_getaddrinfo=yes |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12626 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12627 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12629 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12630 | |
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 12631 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12632 | #include <sys/types.h> |
| 12633 | #include <netdb.h> |
| 12634 | #include <string.h> |
| 12635 | #include <sys/socket.h> |
| 12636 | #include <netinet/in.h> |
| 12637 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12638 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12639 | { |
| 12640 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 12641 | struct addrinfo hints, *ai, *aitop; |
| 12642 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 12643 | |
| 12644 | for (passive = 0; passive <= 1; passive++) { |
| 12645 | memset(&hints, 0, sizeof(hints)); |
| 12646 | hints.ai_family = AF_UNSPEC; |
| 12647 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 12648 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 12649 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12650 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 12651 | (void)gai_strerror(gaierr); |
| 12652 | goto bad; |
| 12653 | } |
| 12654 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 12655 | if (ai->ai_addr == NULL || |
| 12656 | ai->ai_addrlen == 0 || |
| 12657 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 12658 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 12659 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 12660 | goto bad; |
| 12661 | } |
| 12662 | switch (ai->ai_family) { |
| 12663 | case AF_INET: |
| 12664 | if (strcmp(strport, "54321") != 0) { |
| 12665 | goto bad; |
| 12666 | } |
| 12667 | if (passive) { |
| 12668 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 12669 | goto bad; |
| 12670 | } |
| 12671 | } else { |
| 12672 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 12673 | goto bad; |
| 12674 | } |
| 12675 | } |
| 12676 | inet4++; |
| 12677 | break; |
| 12678 | case AF_INET6: |
| 12679 | if (strcmp(strport, "54321") != 0) { |
| 12680 | goto bad; |
| 12681 | } |
| 12682 | if (passive) { |
| 12683 | if (strcmp(straddr, "::") != 0) { |
| 12684 | goto bad; |
| 12685 | } |
| 12686 | } else { |
| 12687 | if (strcmp(straddr, "::1") != 0) { |
| 12688 | goto bad; |
| 12689 | } |
| 12690 | } |
| 12691 | inet6++; |
| 12692 | break; |
| 12693 | case AF_UNSPEC: |
| 12694 | goto bad; |
| 12695 | break; |
| 12696 | default: |
| 12697 | /* another family support? */ |
| 12698 | break; |
| 12699 | } |
| 12700 | } |
Benjamin Peterson | 01c340d | 2016-09-06 15:54:24 -0700 | [diff] [blame] | 12701 | freeaddrinfo(aitop); |
| 12702 | aitop = NULL; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12703 | } |
| 12704 | |
| 12705 | if (!(inet4 == 0 || inet4 == 2)) |
| 12706 | goto bad; |
| 12707 | if (!(inet6 == 0 || inet6 == 2)) |
| 12708 | goto bad; |
| 12709 | |
| 12710 | if (aitop) |
| 12711 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12712 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12713 | |
| 12714 | bad: |
| 12715 | if (aitop) |
| 12716 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12717 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12718 | } |
| 12719 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12720 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12721 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12722 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12723 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12724 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12725 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12726 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12727 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12728 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12729 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12730 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12731 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12732 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12733 | |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
| 12735 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } |
| 12736 | |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12737 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12738 | then |
| 12739 | if test $ipv6 = yes |
| 12740 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12741 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 12742 | echo ' or you can specify "--disable-ipv6"'. |
| 12743 | exit 1 |
| 12744 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12746 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12747 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12748 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12749 | fi |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12750 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12751 | for ac_func in getnameinfo |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12752 | do : |
| 12753 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12754 | if test "x$ac_cv_func_getnameinfo" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12755 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12756 | #define HAVE_GETNAMEINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12757 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12758 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12759 | fi |
| 12760 | done |
| 12761 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12762 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12763 | # checks for structures |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 12765 | $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] | 12766 | if ${ac_cv_header_time+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12767 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12768 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12770 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12771 | #include <sys/types.h> |
| 12772 | #include <sys/time.h> |
| 12773 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12775 | int |
| 12776 | main () |
| 12777 | { |
| 12778 | if ((struct tm *) 0) |
| 12779 | return 0; |
| 12780 | ; |
| 12781 | return 0; |
| 12782 | } |
| 12783 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12784 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12785 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12786 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12787 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12788 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12790 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 12792 | $as_echo "$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12793 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12794 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12795 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12796 | |
| 12797 | fi |
| 12798 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 12800 | $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] | 12801 | if ${ac_cv_struct_tm+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12802 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12803 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12805 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12806 | #include <sys/types.h> |
| 12807 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12809 | int |
| 12810 | main () |
| 12811 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12812 | struct tm tm; |
| 12813 | int *p = &tm.tm_sec; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12814 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12815 | ; |
| 12816 | return 0; |
| 12817 | } |
| 12818 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12819 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12820 | ac_cv_struct_tm=time.h |
| 12821 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12822 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12823 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12825 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 12827 | $as_echo "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12828 | if test $ac_cv_struct_tm = sys/time.h; then |
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 TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12831 | |
| 12832 | fi |
| 12833 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12834 | 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] | 12835 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12836 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12837 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12838 | 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] | 12839 | |
| 12840 | cat >>confdefs.h <<_ACEOF |
| 12841 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 12842 | _ACEOF |
| 12843 | |
| 12844 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12845 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12846 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12847 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 12848 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12849 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12850 | |
| 12851 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12852 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 12853 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12854 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12855 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12856 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12857 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12858 | fi |
| 12859 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12860 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12861 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12862 | _ACEOF |
| 12863 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 12865 | $as_echo_n "checking for tzname... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12866 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12867 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12868 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12870 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12871 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12872 | #if !HAVE_DECL_TZNAME |
| 12873 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12874 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12876 | int |
| 12877 | main () |
| 12878 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12879 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12880 | ; |
| 12881 | return 0; |
| 12882 | } |
| 12883 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12884 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12885 | ac_cv_var_tzname=yes |
| 12886 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12887 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12888 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12889 | rm -f core conftest.err conftest.$ac_objext \ |
| 12890 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12891 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 12893 | $as_echo "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12894 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12895 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12896 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12897 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12898 | fi |
| 12899 | fi |
| 12900 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12901 | 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] | 12902 | 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] | 12903 | |
| 12904 | cat >>confdefs.h <<_ACEOF |
| 12905 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 12906 | _ACEOF |
| 12907 | |
| 12908 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12909 | fi |
| 12910 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12911 | 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] | 12912 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12913 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12914 | cat >>confdefs.h <<_ACEOF |
| 12915 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 12916 | _ACEOF |
| 12917 | |
| 12918 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12919 | fi |
| 12920 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12921 | 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] | 12922 | 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] | 12923 | |
| 12924 | cat >>confdefs.h <<_ACEOF |
| 12925 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 12926 | _ACEOF |
| 12927 | |
| 12928 | |
| 12929 | fi |
| 12930 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12931 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12932 | if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 12933 | |
| 12934 | cat >>confdefs.h <<_ACEOF |
| 12935 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 12936 | _ACEOF |
| 12937 | |
| 12938 | |
| 12939 | fi |
| 12940 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12941 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12942 | if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 12943 | |
| 12944 | cat >>confdefs.h <<_ACEOF |
| 12945 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 12946 | _ACEOF |
| 12947 | |
| 12948 | |
| 12949 | fi |
| 12950 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12951 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12952 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12954 | cat >>confdefs.h <<_ACEOF |
| 12955 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 12956 | _ACEOF |
| 12957 | |
| 12958 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12959 | fi |
| 12960 | |
Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 12961 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " |
| 12962 | #include <sys/types.h> |
| 12963 | #include <pwd.h> |
| 12964 | |
| 12965 | " |
| 12966 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : |
| 12967 | |
| 12968 | cat >>confdefs.h <<_ACEOF |
| 12969 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 |
| 12970 | _ACEOF |
| 12971 | |
| 12972 | |
| 12973 | fi |
| 12974 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " |
| 12975 | #include <sys/types.h> |
| 12976 | #include <pwd.h> |
| 12977 | |
| 12978 | " |
| 12979 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : |
| 12980 | |
| 12981 | cat >>confdefs.h <<_ACEOF |
| 12982 | #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 |
| 12983 | _ACEOF |
| 12984 | |
| 12985 | |
| 12986 | fi |
| 12987 | |
Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 12988 | # Issue #21085: In Cygwin, siginfo_t does not have si_band field. |
| 12989 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> |
| 12990 | " |
| 12991 | if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then : |
| 12992 | |
| 12993 | cat >>confdefs.h <<_ACEOF |
| 12994 | #define HAVE_SIGINFO_T_SI_BAND 1 |
| 12995 | _ACEOF |
| 12996 | |
| 12997 | |
| 12998 | fi |
| 12999 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13000 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
| 13002 | $as_echo_n "checking for time.h that defines altzone... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13003 | if ${ac_cv_header_time_altzone+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13004 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13005 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13006 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13008 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13009 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13010 | int |
| 13011 | main () |
| 13012 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13013 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13014 | ; |
| 13015 | return 0; |
| 13016 | } |
| 13017 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13018 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13019 | ac_cv_header_time_altzone=yes |
| 13020 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13021 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13022 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13024 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13025 | fi |
| 13026 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
| 13028 | $as_echo "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13029 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13030 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13031 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13032 | |
| 13033 | fi |
| 13034 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13035 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13037 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
| 13038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13039 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13040 | |
| 13041 | #include <sys/types.h> |
| 13042 | #include <sys/select.h> |
| 13043 | #include <sys/time.h> |
| 13044 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13045 | int |
| 13046 | main () |
| 13047 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13048 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13049 | ; |
| 13050 | return 0; |
| 13051 | } |
| 13052 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13053 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13054 | |
| 13055 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13056 | $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] | 13057 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13058 | was_it_defined=yes |
| 13059 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13060 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 13063 | $as_echo "$was_it_defined" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13064 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
| 13066 | $as_echo_n "checking for addrinfo... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13067 | if ${ac_cv_struct_addrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13068 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13069 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13071 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13072 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13073 | int |
| 13074 | main () |
| 13075 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13076 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13077 | ; |
| 13078 | return 0; |
| 13079 | } |
| 13080 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13081 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13082 | ac_cv_struct_addrinfo=yes |
| 13083 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13084 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13085 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13087 | fi |
| 13088 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
| 13090 | $as_echo "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13091 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13092 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13093 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13094 | |
| 13095 | fi |
| 13096 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
| 13098 | $as_echo_n "checking for sockaddr_storage... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13099 | if ${ac_cv_struct_sockaddr_storage+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13100 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13101 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13103 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13104 | |
| 13105 | # include <sys/types.h> |
| 13106 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13107 | int |
| 13108 | main () |
| 13109 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13110 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13111 | ; |
| 13112 | return 0; |
| 13113 | } |
| 13114 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13115 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13116 | ac_cv_struct_sockaddr_storage=yes |
| 13117 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13118 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13119 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13121 | fi |
| 13122 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13124 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13125 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13126 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13127 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13128 | |
| 13129 | fi |
| 13130 | |
Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 |
| 13132 | $as_echo_n "checking for sockaddr_alg... " >&6; } |
| 13133 | if ${ac_cv_struct_sockaddr_alg+:} false; then : |
| 13134 | $as_echo_n "(cached) " >&6 |
| 13135 | else |
| 13136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13137 | /* end confdefs.h. */ |
| 13138 | |
| 13139 | # include <sys/types.h> |
| 13140 | # include <sys/socket.h> |
| 13141 | # include <linux/if_alg.h> |
| 13142 | int |
| 13143 | main () |
| 13144 | { |
| 13145 | struct sockaddr_alg s |
| 13146 | ; |
| 13147 | return 0; |
| 13148 | } |
| 13149 | _ACEOF |
| 13150 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13151 | ac_cv_struct_sockaddr_alg=yes |
| 13152 | else |
| 13153 | ac_cv_struct_sockaddr_alg=no |
| 13154 | fi |
| 13155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13156 | fi |
| 13157 | |
| 13158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 |
| 13159 | $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } |
| 13160 | if test $ac_cv_struct_sockaddr_alg = yes; then |
| 13161 | |
| 13162 | $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h |
| 13163 | |
| 13164 | fi |
| 13165 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13166 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13167 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| 13169 | $as_echo_n "checking whether char is unsigned... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13170 | if ${ac_cv_c_char_unsigned+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13171 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13172 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13174 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13175 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13176 | int |
| 13177 | main () |
| 13178 | { |
| 13179 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13180 | test_array [0] = 0; |
| 13181 | return test_array [0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13182 | |
| 13183 | ; |
| 13184 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13185 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13186 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13187 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13188 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13189 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13190 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13191 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13193 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| 13195 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13196 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13197 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13198 | |
| 13199 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13200 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 13202 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13203 | if ${ac_cv_c_const+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13204 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13205 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13207 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13209 | int |
| 13210 | main () |
| 13211 | { |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13212 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13213 | #ifndef __cplusplus |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13214 | /* Ultrix mips cc rejects this sort of thing. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13215 | typedef int charset[2]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13216 | const charset cs = { 0, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13217 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13218 | char const *const *pcpcc; |
| 13219 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13220 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13221 | struct point {int x, y;}; |
| 13222 | static struct point const zero = {0,0}; |
| 13223 | /* AIX XL C 1.02.0.0 rejects this. |
| 13224 | It does not let you subtract one const X* pointer from another in |
| 13225 | an arm of an if-expression whose if-part is not a constant |
| 13226 | expression */ |
| 13227 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13228 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13229 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13230 | ++pcpcc; |
| 13231 | ppc = (char**) pcpcc; |
| 13232 | pcpcc = (char const *const *) ppc; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13233 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 13234 | char tx; |
| 13235 | char *t = &tx; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13236 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13238 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13239 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13240 | } |
| 13241 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13242 | int x[] = {25, 17}; |
| 13243 | const int *foo = &x[0]; |
| 13244 | ++foo; |
| 13245 | } |
| 13246 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13247 | typedef const int *iptr; |
| 13248 | iptr p = 0; |
| 13249 | ++p; |
| 13250 | } |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13251 | { /* 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] | 13252 | "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] | 13253 | struct s { int j; const int *ap[3]; } bx; |
| 13254 | struct s *b = &bx; b->j = 5; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13255 | } |
| 13256 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13257 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13258 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13259 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13260 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13261 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13262 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13263 | ; |
| 13264 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13265 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13266 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13267 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13268 | ac_cv_c_const=yes |
| 13269 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13270 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13271 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13273 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 13275 | $as_echo "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13276 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13277 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13278 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13279 | |
| 13280 | fi |
| 13281 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13282 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13283 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
| 13285 | $as_echo_n "checking for working signed char... " >&6; } |
| 13286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13287 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13289 | int |
| 13290 | main () |
| 13291 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13292 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13293 | ; |
| 13294 | return 0; |
| 13295 | } |
| 13296 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13297 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13298 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13299 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13300 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13301 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13302 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13303 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13304 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 13307 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13308 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13309 | have_prototypes=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
| 13311 | $as_echo_n "checking for prototypes... " >&6; } |
| 13312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13313 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13314 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13315 | int |
| 13316 | main () |
| 13317 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13318 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13319 | ; |
| 13320 | return 0; |
| 13321 | } |
| 13322 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13323 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13324 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13325 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13326 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13327 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13328 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
| 13331 | $as_echo "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13332 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13333 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
| 13335 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } |
| 13336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13337 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13338 | |
| 13339 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13340 | int foo(int x, ...) { |
| 13341 | va_list va; |
| 13342 | va_start(va, x); |
| 13343 | va_arg(va, int); |
| 13344 | va_arg(va, char *); |
| 13345 | va_arg(va, double); |
| 13346 | return 0; |
| 13347 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13348 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13349 | int |
| 13350 | main () |
| 13351 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13352 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13353 | ; |
| 13354 | return 0; |
| 13355 | } |
| 13356 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13357 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13358 | |
| 13359 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13360 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13361 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13362 | works=yes |
| 13363 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13364 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 13367 | $as_echo "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13368 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13369 | # check for socketpair |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
| 13371 | $as_echo_n "checking for socketpair... " >&6; } |
| 13372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13373 | /* end confdefs.h. */ |
| 13374 | |
| 13375 | #include <sys/types.h> |
| 13376 | #include <sys/socket.h> |
| 13377 | |
| 13378 | int |
| 13379 | main () |
| 13380 | { |
| 13381 | void *x=socketpair |
| 13382 | ; |
| 13383 | return 0; |
| 13384 | } |
| 13385 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13386 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13387 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13388 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13389 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13391 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13392 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13394 | $as_echo "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13395 | |
| 13396 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13397 | 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] | 13398 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13399 | # check if sockaddr has sa_len member |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
| 13401 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } |
| 13402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13403 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13404 | #include <sys/types.h> |
| 13405 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13406 | int |
| 13407 | main () |
| 13408 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13409 | struct sockaddr x; |
| 13410 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13411 | ; |
| 13412 | return 0; |
| 13413 | } |
| 13414 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13415 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13417 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13418 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13419 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13420 | |
| 13421 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13423 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13424 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13425 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13426 | 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] | 13427 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13428 | # 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] | 13429 | |
| 13430 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13431 | 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] | 13432 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13433 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13434 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13435 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
| 13437 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13438 | OLD_CFLAGS=$CFLAGS |
| 13439 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13441 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13442 | |
| 13443 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13445 | int |
| 13446 | main () |
| 13447 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13448 | |
| 13449 | char *name; |
| 13450 | struct hostent *he, *res; |
| 13451 | char buffer[2048]; |
| 13452 | int buflen = 2048; |
| 13453 | int h_errnop; |
| 13454 | |
| 13455 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13456 | |
| 13457 | ; |
| 13458 | return 0; |
| 13459 | } |
| 13460 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13461 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13462 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13463 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13465 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13466 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13467 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13469 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13470 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13471 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13472 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13474 | $as_echo "no" >&6; } |
| 13475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 |
| 13476 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } |
| 13477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13478 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13479 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13480 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13482 | int |
| 13483 | main () |
| 13484 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13485 | |
| 13486 | char *name; |
| 13487 | struct hostent *he; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13488 | char buffer[2048]; |
| 13489 | int buflen = 2048; |
| 13490 | int h_errnop; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13491 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13492 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13493 | |
| 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 : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13499 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13500 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13501 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13502 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13503 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13504 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13506 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13507 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13508 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13509 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13511 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
| 13513 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } |
| 13514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13515 | /* end confdefs.h. */ |
| 13516 | |
| 13517 | # include <netdb.h> |
| 13518 | |
| 13519 | int |
| 13520 | main () |
| 13521 | { |
| 13522 | |
| 13523 | char *name; |
| 13524 | struct hostent *he; |
| 13525 | struct hostent_data data; |
| 13526 | |
| 13527 | (void) gethostbyname_r(name, he, &data); |
| 13528 | |
| 13529 | ; |
| 13530 | return 0; |
| 13531 | } |
| 13532 | _ACEOF |
| 13533 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13534 | |
| 13535 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
| 13536 | |
| 13537 | |
| 13538 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h |
| 13539 | |
| 13540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13541 | $as_echo "yes" >&6; } |
| 13542 | |
| 13543 | else |
| 13544 | |
| 13545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13546 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13547 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13548 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13549 | 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] | 13550 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13551 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13552 | 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] | 13553 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13554 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13556 | CFLAGS=$OLD_CFLAGS |
| 13557 | |
| 13558 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13559 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13560 | for ac_func in gethostbyname |
| 13561 | do : |
| 13562 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13563 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13564 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13565 | #define HAVE_GETHOSTBYNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13566 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13567 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13568 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13569 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13570 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13571 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13572 | fi |
| 13573 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13574 | |
| 13575 | |
| 13576 | |
| 13577 | |
| 13578 | |
| 13579 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13580 | # checks for system services |
| 13581 | # (none yet) |
| 13582 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13583 | # Linux requires this for correct f.p. operations |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13584 | 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] | 13585 | if test "x$ac_cv_func___fpu_control" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13586 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13587 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
| 13589 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13590 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13591 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13592 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13593 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13594 | LIBS="-lieee $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13596 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13597 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13598 | /* Override any GCC internal prototype to avoid an error. |
| 13599 | Use char because int might match the return type of a GCC |
| 13600 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13601 | #ifdef __cplusplus |
| 13602 | extern "C" |
| 13603 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13604 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13605 | int |
| 13606 | main () |
| 13607 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13608 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13609 | ; |
| 13610 | return 0; |
| 13611 | } |
| 13612 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13613 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13614 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13615 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13616 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13617 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13618 | rm -f core conftest.err conftest.$ac_objext \ |
| 13619 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13620 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13621 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 13623 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13624 | 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] | 13625 | cat >>confdefs.h <<_ACEOF |
| 13626 | #define HAVE_LIBIEEE 1 |
| 13627 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13628 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13629 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13630 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13631 | fi |
| 13632 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13633 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13634 | fi |
| 13635 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13636 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13637 | # Check for --with-fpectl |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 |
| 13639 | $as_echo_n "checking for --with-fpectl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13640 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13641 | # Check whether --with-fpectl was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13642 | if test "${with_fpectl+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13643 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13644 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13645 | then |
| 13646 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13647 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13648 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13650 | $as_echo "yes" >&6; } |
| 13651 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13652 | $as_echo "no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13653 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13654 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13656 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13657 | fi |
| 13658 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13659 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13660 | # check for --with-libm=... |
| 13661 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13662 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 13663 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13664 | *) LIBM=-lm |
| 13665 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
| 13667 | $as_echo_n "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13668 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13669 | # Check whether --with-libm was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13670 | if test "${with_libm+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13671 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13672 | if test "$withval" = no |
| 13673 | then LIBM= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
| 13675 | $as_echo "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13676 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13677 | then LIBM=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
| 13679 | $as_echo "set LIBM=\"$withval\"" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13680 | 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] | 13681 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13682 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
| 13684 | $as_echo "default LIBM=\"$LIBM\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13685 | fi |
| 13686 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13687 | |
| 13688 | # check for --with-libc=... |
| 13689 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
| 13691 | $as_echo_n "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13692 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13693 | # Check whether --with-libc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13694 | if test "${with_libc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13695 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13696 | if test "$withval" = no |
| 13697 | then LIBC= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
| 13699 | $as_echo "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13700 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13701 | then LIBC=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
| 13703 | $as_echo "set LIBC=\"$withval\"" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13704 | 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] | 13705 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13706 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
| 13708 | $as_echo "default LIBC=\"$LIBC\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13709 | fi |
| 13710 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13711 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13712 | # ************************************** |
| 13713 | # * Check for gcc x64 inline assembler * |
| 13714 | # ************************************** |
| 13715 | |
| 13716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 |
| 13717 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } |
| 13718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13719 | /* end confdefs.h. */ |
| 13720 | |
| 13721 | int |
| 13722 | main () |
| 13723 | { |
| 13724 | |
| 13725 | __asm__ __volatile__ ("movq %rcx, %rax"); |
| 13726 | |
| 13727 | ; |
| 13728 | return 0; |
| 13729 | } |
| 13730 | _ACEOF |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13731 | if ac_fn_c_try_link "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13732 | have_gcc_asm_for_x64=yes |
| 13733 | else |
| 13734 | have_gcc_asm_for_x64=no |
| 13735 | fi |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13736 | rm -f core conftest.err conftest.$ac_objext \ |
| 13737 | conftest$ac_exeext conftest.$ac_ext |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 |
| 13739 | $as_echo "$have_gcc_asm_for_x64" >&6; } |
| 13740 | if test "$have_gcc_asm_for_x64" = yes |
| 13741 | then |
| 13742 | |
| 13743 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h |
| 13744 | |
| 13745 | fi |
| 13746 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13747 | # ************************************************** |
| 13748 | # * Check for various properties of floating point * |
| 13749 | # ************************************************** |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13750 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 13752 | $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] | 13753 | if ${ac_cv_little_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13754 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13755 | else |
| 13756 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13757 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13758 | ac_cv_little_endian_double=no |
| 13759 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13761 | /* end confdefs.h. */ |
| 13762 | |
| 13763 | #include <string.h> |
| 13764 | int main() { |
| 13765 | double x = 9006104071832581.0; |
| 13766 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 13767 | return 0; |
| 13768 | else |
| 13769 | return 1; |
| 13770 | } |
| 13771 | |
| 13772 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13773 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13774 | ac_cv_little_endian_double=yes |
| 13775 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13776 | ac_cv_little_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13777 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13778 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13779 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13780 | fi |
| 13781 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13782 | fi |
| 13783 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 |
| 13785 | $as_echo "$ac_cv_little_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13786 | if test "$ac_cv_little_endian_double" = yes |
| 13787 | then |
| 13788 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13789 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13790 | |
| 13791 | fi |
| 13792 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 13794 | $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] | 13795 | if ${ac_cv_big_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13796 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13797 | else |
| 13798 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13799 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13800 | ac_cv_big_endian_double=no |
| 13801 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13803 | /* end confdefs.h. */ |
| 13804 | |
| 13805 | #include <string.h> |
| 13806 | int main() { |
| 13807 | double x = 9006104071832581.0; |
| 13808 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 13809 | return 0; |
| 13810 | else |
| 13811 | return 1; |
| 13812 | } |
| 13813 | |
| 13814 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13815 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13816 | ac_cv_big_endian_double=yes |
| 13817 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13818 | ac_cv_big_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13819 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13820 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13821 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13822 | fi |
| 13823 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13824 | fi |
| 13825 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 |
| 13827 | $as_echo "$ac_cv_big_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13828 | if test "$ac_cv_big_endian_double" = yes |
| 13829 | then |
| 13830 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13831 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13832 | |
| 13833 | fi |
| 13834 | |
| 13835 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 13836 | # While Python doesn't currently have full support for these platforms |
| 13837 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 13838 | # conversions work. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 13840 | $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] | 13841 | if ${ac_cv_mixed_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13842 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13843 | else |
| 13844 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13845 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13846 | ac_cv_mixed_endian_double=no |
| 13847 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13849 | /* end confdefs.h. */ |
| 13850 | |
| 13851 | #include <string.h> |
| 13852 | int main() { |
| 13853 | double x = 9006104071832581.0; |
| 13854 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 13855 | return 0; |
| 13856 | else |
| 13857 | return 1; |
| 13858 | } |
| 13859 | |
| 13860 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13861 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13862 | ac_cv_mixed_endian_double=yes |
| 13863 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13864 | ac_cv_mixed_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13865 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13866 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13867 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13868 | fi |
| 13869 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13870 | fi |
| 13871 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 |
| 13873 | $as_echo "$ac_cv_mixed_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13874 | if test "$ac_cv_mixed_endian_double" = yes |
| 13875 | then |
| 13876 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13877 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13878 | |
| 13879 | fi |
| 13880 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13881 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13882 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13883 | # 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] | 13884 | # 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] | 13885 | # 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] | 13886 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13887 | |
| 13888 | # This inline assembler syntax may also work for suncc and icc, |
| 13889 | # so we try it on all platforms. |
| 13890 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
| 13892 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } |
| 13893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13894 | /* end confdefs.h. */ |
| 13895 | |
| 13896 | int |
| 13897 | main () |
| 13898 | { |
| 13899 | |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13900 | unsigned short cw; |
| 13901 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 13902 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13903 | |
| 13904 | ; |
| 13905 | return 0; |
| 13906 | } |
| 13907 | _ACEOF |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13908 | if ac_fn_c_try_link "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13909 | have_gcc_asm_for_x87=yes |
| 13910 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13911 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13912 | fi |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13913 | rm -f core conftest.err conftest.$ac_objext \ |
| 13914 | conftest$ac_exeext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
| 13916 | $as_echo "$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13917 | if test "$have_gcc_asm_for_x87" = yes |
| 13918 | then |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13919 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13920 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13921 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13922 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13923 | |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 |
| 13925 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } |
| 13926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13927 | /* end confdefs.h. */ |
| 13928 | |
| 13929 | int |
| 13930 | main () |
| 13931 | { |
| 13932 | |
| 13933 | unsigned int fpcr; |
| 13934 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); |
| 13935 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); |
| 13936 | |
| 13937 | ; |
| 13938 | return 0; |
| 13939 | } |
| 13940 | _ACEOF |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13941 | if ac_fn_c_try_link "$LINENO"; then : |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13942 | have_gcc_asm_for_mc68881=yes |
| 13943 | else |
| 13944 | have_gcc_asm_for_mc68881=no |
| 13945 | fi |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13946 | rm -f core conftest.err conftest.$ac_objext \ |
| 13947 | conftest$ac_exeext conftest.$ac_ext |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 |
| 13949 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } |
| 13950 | if test "$have_gcc_asm_for_mc68881" = yes |
| 13951 | then |
| 13952 | |
| 13953 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h |
| 13954 | |
| 13955 | fi |
| 13956 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13957 | # Detect whether system arithmetic is subject to x87-style double |
| 13958 | # rounding issues. The result of this test has little meaning on non |
| 13959 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 13960 | # mode is round-to-nearest and double rounding issues are present, and |
| 13961 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
| 13963 | $as_echo_n "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13964 | # $BASECFLAGS may affect the result |
| 13965 | ac_save_cc="$CC" |
| 13966 | CC="$CC $BASECFLAGS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13967 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13968 | ac_cv_x87_double_rounding=no |
| 13969 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13971 | /* end confdefs.h. */ |
| 13972 | |
| 13973 | #include <stdlib.h> |
| 13974 | #include <math.h> |
| 13975 | int main() { |
| 13976 | volatile double x, y, z; |
| 13977 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 13978 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 13979 | y = 1./x; |
| 13980 | if (y != 1.) |
| 13981 | exit(0); |
| 13982 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 13983 | x = 1e16; |
| 13984 | y = 2.99999; |
| 13985 | z = x + y; |
| 13986 | if (z != 1e16+4.) |
| 13987 | exit(0); |
| 13988 | /* both tests show evidence of double rounding */ |
| 13989 | exit(1); |
| 13990 | } |
| 13991 | |
| 13992 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13993 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13994 | ac_cv_x87_double_rounding=no |
| 13995 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13996 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13997 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13998 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13999 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14000 | fi |
| 14001 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14002 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
| 14004 | $as_echo "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14005 | if test "$ac_cv_x87_double_rounding" = yes |
| 14006 | then |
| 14007 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14008 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14009 | |
| 14010 | fi |
| 14011 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14012 | # ************************************ |
| 14013 | # * Check for mathematical functions * |
| 14014 | # ************************************ |
| 14015 | |
| 14016 | LIBS_SAVE=$LIBS |
| 14017 | LIBS="$LIBS $LIBM" |
| 14018 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14019 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 14020 | do : |
| 14021 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14022 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14023 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14024 | cat >>confdefs.h <<_ACEOF |
| 14025 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14026 | _ACEOF |
| 14027 | |
| 14028 | fi |
| 14029 | done |
| 14030 | |
Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 14031 | for ac_func in hypot lgamma log1p log2 round tgamma |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14032 | do : |
| 14033 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14034 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14035 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14036 | cat >>confdefs.h <<_ACEOF |
| 14037 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14038 | _ACEOF |
| 14039 | |
| 14040 | fi |
| 14041 | done |
| 14042 | |
| 14043 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> |
| 14044 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14045 | if test "x$ac_cv_have_decl_isinf" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14046 | ac_have_decl=1 |
| 14047 | else |
| 14048 | ac_have_decl=0 |
| 14049 | fi |
| 14050 | |
| 14051 | cat >>confdefs.h <<_ACEOF |
| 14052 | #define HAVE_DECL_ISINF $ac_have_decl |
| 14053 | _ACEOF |
| 14054 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> |
| 14055 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14056 | if test "x$ac_cv_have_decl_isnan" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14057 | ac_have_decl=1 |
| 14058 | else |
| 14059 | ac_have_decl=0 |
| 14060 | fi |
| 14061 | |
| 14062 | cat >>confdefs.h <<_ACEOF |
| 14063 | #define HAVE_DECL_ISNAN $ac_have_decl |
| 14064 | _ACEOF |
| 14065 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> |
| 14066 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14067 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14068 | ac_have_decl=1 |
| 14069 | else |
| 14070 | ac_have_decl=0 |
| 14071 | fi |
| 14072 | |
| 14073 | cat >>confdefs.h <<_ACEOF |
| 14074 | #define HAVE_DECL_ISFINITE $ac_have_decl |
| 14075 | _ACEOF |
| 14076 | |
| 14077 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14078 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 14079 | # -0. on some architectures. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 |
| 14081 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14082 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14083 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14084 | else |
| 14085 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14086 | if test "$cross_compiling" = yes; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14087 | ac_cv_tanh_preserves_zero_sign=no |
| 14088 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14090 | /* end confdefs.h. */ |
| 14091 | |
| 14092 | #include <math.h> |
| 14093 | #include <stdlib.h> |
| 14094 | int main() { |
| 14095 | /* return 0 if either negative zeros don't exist |
| 14096 | on this platform or if negative zeros exist |
| 14097 | and tanh(-0.) == -0. */ |
| 14098 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 14099 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 14100 | else exit(1); |
| 14101 | } |
| 14102 | |
| 14103 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14104 | if ac_fn_c_try_run "$LINENO"; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14105 | ac_cv_tanh_preserves_zero_sign=yes |
| 14106 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14107 | ac_cv_tanh_preserves_zero_sign=no |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14108 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14109 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14110 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14111 | fi |
| 14112 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14113 | fi |
| 14114 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 14116 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14117 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 14118 | then |
| 14119 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14120 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14121 | |
| 14122 | fi |
| 14123 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14124 | if test "$ac_cv_func_log1p" = yes |
| 14125 | then |
| 14126 | # On some versions of AIX, log1p(-0.) returns 0. instead of |
| 14127 | # -0. See issue #9920. |
| 14128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 |
| 14129 | $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] | 14130 | if ${ac_cv_log1p_drops_zero_sign+:} false; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14131 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14132 | else |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14133 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14134 | if test "$cross_compiling" = yes; then : |
| 14135 | ac_cv_log1p_drops_zero_sign=no |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14136 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14138 | /* end confdefs.h. */ |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14139 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14140 | #include <math.h> |
| 14141 | #include <stdlib.h> |
| 14142 | int main() { |
| 14143 | /* Fail if the signs of log1p(-0.) and -0. can be |
| 14144 | distinguished. */ |
| 14145 | if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) |
| 14146 | return 0; |
| 14147 | else |
| 14148 | return 1; |
| 14149 | } |
| 14150 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14151 | _ACEOF |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14152 | if ac_fn_c_try_run "$LINENO"; then : |
| 14153 | ac_cv_log1p_drops_zero_sign=no |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14154 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14155 | ac_cv_log1p_drops_zero_sign=yes |
| 14156 | fi |
| 14157 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14158 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14159 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14160 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14161 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14162 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 |
| 14164 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } |
| 14165 | fi |
| 14166 | if test "$ac_cv_log1p_drops_zero_sign" = yes |
| 14167 | then |
| 14168 | |
| 14169 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h |
| 14170 | |
| 14171 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14172 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14173 | LIBS=$LIBS_SAVE |
| 14174 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14175 | # For multiprocessing module, check that sem_open |
| 14176 | # actually works. For FreeBSD versions <= 7.2, |
| 14177 | # the kernel module that provides POSIX semaphores |
| 14178 | # isn't loaded by default, so an attempt to call |
| 14179 | # sem_open results in a 'Signal 12' error. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
| 14181 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14182 | if ${ac_cv_posix_semaphores_enabled+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14183 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14184 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14185 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14186 | ac_cv_posix_semaphores_enabled=yes |
| 14187 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14189 | /* end confdefs.h. */ |
| 14190 | |
| 14191 | #include <unistd.h> |
| 14192 | #include <fcntl.h> |
| 14193 | #include <stdio.h> |
| 14194 | #include <semaphore.h> |
| 14195 | #include <sys/stat.h> |
| 14196 | |
| 14197 | int main(void) { |
| 14198 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 14199 | if (a == SEM_FAILED) { |
| 14200 | perror("sem_open"); |
| 14201 | return 1; |
| 14202 | } |
| 14203 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14204 | sem_unlink("/autoconf"); |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14205 | return 0; |
| 14206 | } |
| 14207 | |
| 14208 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14209 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14210 | ac_cv_posix_semaphores_enabled=yes |
| 14211 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14212 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14213 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14214 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14215 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14216 | fi |
| 14217 | |
| 14218 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14219 | fi |
| 14220 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 14222 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14223 | if test $ac_cv_posix_semaphores_enabled = no |
| 14224 | then |
| 14225 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14226 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14227 | |
| 14228 | fi |
| 14229 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14230 | # Multiprocessing check for broken sem_getvalue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
| 14232 | $as_echo_n "checking for broken sem_getvalue... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14233 | if ${ac_cv_broken_sem_getvalue+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14234 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14235 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14236 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14237 | ac_cv_broken_sem_getvalue=yes |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14238 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14240 | /* end confdefs.h. */ |
| 14241 | |
| 14242 | #include <unistd.h> |
| 14243 | #include <fcntl.h> |
| 14244 | #include <stdio.h> |
| 14245 | #include <semaphore.h> |
| 14246 | #include <sys/stat.h> |
| 14247 | |
| 14248 | int main(void){ |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14249 | 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] | 14250 | int count; |
| 14251 | int res; |
| 14252 | if(a==SEM_FAILED){ |
| 14253 | perror("sem_open"); |
| 14254 | return 1; |
| 14255 | |
| 14256 | } |
| 14257 | res = sem_getvalue(a, &count); |
| 14258 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14259 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14260 | return res==-1 ? 1 : 0; |
| 14261 | } |
| 14262 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14263 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14264 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14265 | ac_cv_broken_sem_getvalue=no |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14266 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14267 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14268 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14269 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14270 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14271 | fi |
| 14272 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14273 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14274 | fi |
| 14275 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
| 14277 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14278 | if test $ac_cv_broken_sem_getvalue = yes |
| 14279 | then |
| 14280 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14281 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14282 | |
| 14283 | fi |
| 14284 | |
Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14285 | ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> |
| 14286 | " |
| 14287 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : |
| 14288 | ac_have_decl=1 |
| 14289 | else |
| 14290 | ac_have_decl=0 |
| 14291 | fi |
| 14292 | |
| 14293 | cat >>confdefs.h <<_ACEOF |
| 14294 | #define HAVE_DECL_RTLD_LAZY $ac_have_decl |
| 14295 | _ACEOF |
| 14296 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> |
| 14297 | " |
| 14298 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : |
| 14299 | ac_have_decl=1 |
| 14300 | else |
| 14301 | ac_have_decl=0 |
| 14302 | fi |
| 14303 | |
| 14304 | cat >>confdefs.h <<_ACEOF |
| 14305 | #define HAVE_DECL_RTLD_NOW $ac_have_decl |
| 14306 | _ACEOF |
| 14307 | ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> |
| 14308 | " |
| 14309 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : |
| 14310 | ac_have_decl=1 |
| 14311 | else |
| 14312 | ac_have_decl=0 |
| 14313 | fi |
| 14314 | |
| 14315 | cat >>confdefs.h <<_ACEOF |
| 14316 | #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl |
| 14317 | _ACEOF |
| 14318 | ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> |
| 14319 | " |
| 14320 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : |
| 14321 | ac_have_decl=1 |
| 14322 | else |
| 14323 | ac_have_decl=0 |
| 14324 | fi |
| 14325 | |
| 14326 | cat >>confdefs.h <<_ACEOF |
| 14327 | #define HAVE_DECL_RTLD_LOCAL $ac_have_decl |
| 14328 | _ACEOF |
| 14329 | ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> |
| 14330 | " |
| 14331 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : |
| 14332 | ac_have_decl=1 |
| 14333 | else |
| 14334 | ac_have_decl=0 |
| 14335 | fi |
| 14336 | |
| 14337 | cat >>confdefs.h <<_ACEOF |
| 14338 | #define HAVE_DECL_RTLD_NODELETE $ac_have_decl |
| 14339 | _ACEOF |
| 14340 | ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> |
| 14341 | " |
| 14342 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : |
| 14343 | ac_have_decl=1 |
| 14344 | else |
| 14345 | ac_have_decl=0 |
| 14346 | fi |
| 14347 | |
| 14348 | cat >>confdefs.h <<_ACEOF |
| 14349 | #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl |
| 14350 | _ACEOF |
| 14351 | ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> |
| 14352 | " |
| 14353 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : |
| 14354 | ac_have_decl=1 |
| 14355 | else |
| 14356 | ac_have_decl=0 |
| 14357 | fi |
| 14358 | |
| 14359 | cat >>confdefs.h <<_ACEOF |
| 14360 | #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl |
| 14361 | _ACEOF |
| 14362 | |
| 14363 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14364 | # determine what size digit to use for Python's longs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
| 14366 | $as_echo_n "checking digit size for Python's longs... " >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14367 | # Check whether --enable-big-digits was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14368 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14369 | enableval=$enable_big_digits; case $enable_big_digits in |
| 14370 | yes) |
| 14371 | enable_big_digits=30 ;; |
| 14372 | no) |
| 14373 | enable_big_digits=15 ;; |
| 14374 | 15|30) |
| 14375 | ;; |
| 14376 | *) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14377 | 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] | 14378 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
| 14380 | $as_echo "$enable_big_digits" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14381 | |
| 14382 | cat >>confdefs.h <<_ACEOF |
| 14383 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 14384 | _ACEOF |
| 14385 | |
| 14386 | |
| 14387 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 14389 | $as_echo "no value specified" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14390 | fi |
| 14391 | |
| 14392 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14393 | # check for wchar.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14394 | 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] | 14395 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14396 | |
| 14397 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14398 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14399 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14400 | wchar_h="yes" |
| 14401 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14402 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14403 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14404 | |
| 14405 | fi |
| 14406 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14407 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14408 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14409 | # determine wchar_t size |
| 14410 | if test "$wchar_h" = yes |
| 14411 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14412 | # 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] | 14413 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14414 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14415 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
| 14417 | $as_echo_n "checking size of wchar_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14418 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14419 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14420 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14421 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
| 14422 | "; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14424 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14425 | if test "$ac_cv_type_wchar_t" = yes; then |
| 14426 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14427 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14428 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14429 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14430 | else |
| 14431 | ac_cv_sizeof_wchar_t=0 |
| 14432 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14433 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14434 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14435 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
| 14437 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14438 | |
| 14439 | |
| 14440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14441 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14442 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14443 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14444 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14445 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14446 | fi |
| 14447 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
| 14449 | $as_echo_n "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14450 | have_ucs4_tcl=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14452 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14453 | |
| 14454 | #include <tcl.h> |
| 14455 | #if TCL_UTF_MAX != 6 |
| 14456 | # error "NOT UCS4_TCL" |
| 14457 | #endif |
| 14458 | int |
| 14459 | main () |
| 14460 | { |
| 14461 | |
| 14462 | ; |
| 14463 | return 0; |
| 14464 | } |
| 14465 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14466 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14467 | |
| 14468 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14469 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14470 | |
| 14471 | have_ucs4_tcl=yes |
| 14472 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14473 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
| 14476 | $as_echo "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14477 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14478 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14479 | if test "$wchar_h" = yes |
| 14480 | then |
| 14481 | # check whether wchar_t is signed or not |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
| 14483 | $as_echo_n "checking whether wchar_t is signed... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14484 | if ${ac_cv_wchar_t_signed+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14485 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14486 | else |
| 14487 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14488 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14489 | ac_cv_wchar_t_signed=yes |
| 14490 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14492 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14493 | |
| 14494 | #include <wchar.h> |
| 14495 | int main() |
| 14496 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14497 | /* Success: exit code 0 */ |
| 14498 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14499 | } |
| 14500 | |
| 14501 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14502 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14503 | ac_cv_wchar_t_signed=yes |
| 14504 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14505 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14506 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14507 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14508 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14509 | fi |
| 14510 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14511 | fi |
| 14512 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
| 14514 | $as_echo "$ac_cv_wchar_t_signed" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14515 | fi |
| 14516 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14517 | # 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] | 14518 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 14519 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14520 | then |
Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14521 | HAVE_USABLE_WCHAR_T="yes" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14522 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14523 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14524 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14525 | else |
Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14526 | HAVE_USABLE_WCHAR_T="no usable wchar_t found" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14527 | fi |
Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 |
| 14529 | $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14530 | |
| 14531 | # check for endianness |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 14533 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14534 | if ${ac_cv_c_bigendian+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14535 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14536 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14537 | ac_cv_c_bigendian=unknown |
| 14538 | # See if we're dealing with a universal compiler. |
| 14539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14540 | /* end confdefs.h. */ |
| 14541 | #ifndef __APPLE_CC__ |
| 14542 | not a universal capable compiler |
| 14543 | #endif |
| 14544 | typedef int dummy; |
| 14545 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14546 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14547 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14548 | |
| 14549 | # Check for potential -arch flags. It is not universal unless |
| 14550 | # there are at least two -arch flags with different values. |
| 14551 | ac_arch= |
| 14552 | ac_prev= |
| 14553 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 14554 | if test -n "$ac_prev"; then |
| 14555 | case $ac_word in |
| 14556 | i?86 | x86_64 | ppc | ppc64) |
| 14557 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 14558 | ac_arch=$ac_word |
| 14559 | else |
| 14560 | ac_cv_c_bigendian=universal |
| 14561 | break |
| 14562 | fi |
| 14563 | ;; |
| 14564 | esac |
| 14565 | ac_prev= |
| 14566 | elif test "x$ac_word" = "x-arch"; then |
| 14567 | ac_prev=arch |
| 14568 | fi |
| 14569 | done |
| 14570 | fi |
| 14571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14572 | if test $ac_cv_c_bigendian = unknown; then |
| 14573 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 14574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14575 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14576 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14577 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14579 | int |
| 14580 | main () |
| 14581 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14582 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 14583 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 14584 | && LITTLE_ENDIAN) |
| 14585 | bogus endian macros |
| 14586 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14587 | |
| 14588 | ; |
| 14589 | return 0; |
| 14590 | } |
| 14591 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14592 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14593 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14595 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14596 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14597 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14599 | int |
| 14600 | main () |
| 14601 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14602 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14603 | not big endian |
| 14604 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14605 | |
| 14606 | ; |
| 14607 | return 0; |
| 14608 | } |
| 14609 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14610 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14611 | ac_cv_c_bigendian=yes |
| 14612 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14613 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14614 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14616 | fi |
| 14617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14618 | fi |
| 14619 | if test $ac_cv_c_bigendian = unknown; then |
| 14620 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 14621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14622 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14623 | #include <limits.h> |
| 14624 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14625 | int |
| 14626 | main () |
| 14627 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14628 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 14629 | bogus endian macros |
| 14630 | #endif |
| 14631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14632 | ; |
| 14633 | return 0; |
| 14634 | } |
| 14635 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14636 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14637 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 14638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14639 | /* end confdefs.h. */ |
| 14640 | #include <limits.h> |
| 14641 | |
| 14642 | int |
| 14643 | main () |
| 14644 | { |
| 14645 | #ifndef _BIG_ENDIAN |
| 14646 | not big endian |
| 14647 | #endif |
| 14648 | |
| 14649 | ; |
| 14650 | return 0; |
| 14651 | } |
| 14652 | _ACEOF |
| 14653 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14654 | ac_cv_c_bigendian=yes |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14655 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14656 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14657 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14659 | fi |
| 14660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14661 | fi |
| 14662 | if test $ac_cv_c_bigendian = unknown; then |
| 14663 | # Compile a test program. |
| 14664 | if test "$cross_compiling" = yes; then : |
| 14665 | # Try to guess by grepping values from an object file. |
| 14666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14667 | /* end confdefs.h. */ |
| 14668 | short int ascii_mm[] = |
| 14669 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 14670 | short int ascii_ii[] = |
| 14671 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 14672 | int use_ascii (int i) { |
| 14673 | return ascii_mm[i] + ascii_ii[i]; |
| 14674 | } |
| 14675 | short int ebcdic_ii[] = |
| 14676 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 14677 | short int ebcdic_mm[] = |
| 14678 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 14679 | int use_ebcdic (int i) { |
| 14680 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 14681 | } |
| 14682 | extern int foo; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14683 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14684 | int |
| 14685 | main () |
| 14686 | { |
| 14687 | return use_ascii (foo) == use_ebcdic (foo); |
| 14688 | ; |
| 14689 | return 0; |
| 14690 | } |
| 14691 | _ACEOF |
| 14692 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14693 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 14694 | ac_cv_c_bigendian=yes |
| 14695 | fi |
| 14696 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 14697 | if test "$ac_cv_c_bigendian" = unknown; then |
| 14698 | ac_cv_c_bigendian=no |
| 14699 | else |
| 14700 | # finding both strings is unlikely to happen, but who knows? |
| 14701 | ac_cv_c_bigendian=unknown |
| 14702 | fi |
| 14703 | fi |
| 14704 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14705 | 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] | 14706 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14708 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14709 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14710 | int |
| 14711 | main () |
| 14712 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14713 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14714 | /* Are we little or big endian? From Harbison&Steele. */ |
| 14715 | union |
| 14716 | { |
| 14717 | long int l; |
| 14718 | char c[sizeof (long int)]; |
| 14719 | } u; |
| 14720 | u.l = 1; |
| 14721 | return u.c[sizeof (long int) - 1] == 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14722 | |
| 14723 | ; |
| 14724 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14725 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14726 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14727 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14728 | ac_cv_c_bigendian=no |
| 14729 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14730 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14731 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14732 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14733 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14734 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14735 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14736 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14737 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 14739 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 14740 | case $ac_cv_c_bigendian in #( |
| 14741 | yes) |
| 14742 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 14743 | ;; #( |
| 14744 | no) |
| 14745 | ;; #( |
| 14746 | universal) |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14747 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14748 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14749 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14750 | ;; #( |
| 14751 | *) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14752 | as_fn_error $? "unknown endianness |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14753 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14754 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14755 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14756 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14757 | # ABI version string for Python extension modules. This appears between the |
| 14758 | # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated |
| 14759 | # from the following attributes which affect the ABI of this Python build (in |
| 14760 | # this order): |
| 14761 | # |
| 14762 | # * The Python implementation (always 'cpython-' for us) |
| 14763 | # * The major and minor version numbers |
| 14764 | # * --with-pydebug (adds a 'd') |
| 14765 | # * --with-pymalloc (adds a 'm') |
| 14766 | # * --with-wide-unicode (adds a 'u') |
| 14767 | # |
| 14768 | # 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] | 14769 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared |
| 14770 | # libraries would be named 'foo.cpython-32dmu.so'. |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14771 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 |
| 14773 | $as_echo_n "checking ABIFLAGS... " >&6; } |
| 14774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 |
| 14775 | $as_echo "$ABIFLAGS" >&6; } |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 |
| 14777 | $as_echo_n "checking SOABI... " >&6; } |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 14778 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 |
| 14780 | $as_echo "$SOABI" >&6; } |
| 14781 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14782 | |
| 14783 | case $ac_sys_system in |
Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 14784 | Linux*|GNU*|Darwin) |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14785 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; |
| 14786 | *) |
| 14787 | EXT_SUFFIX=${SHLIB_SUFFIX};; |
| 14788 | esac |
| 14789 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 |
| 14791 | $as_echo_n "checking LDVERSION... " >&6; } |
| 14792 | LDVERSION='$(VERSION)$(ABIFLAGS)' |
| 14793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 |
| 14794 | $as_echo "$LDVERSION" >&6; } |
| 14795 | |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14796 | |
doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 14797 | if test x$PLATFORM_TRIPLET = x; then |
| 14798 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" |
| 14799 | else |
| 14800 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" |
| 14801 | fi |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14802 | |
| 14803 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14804 | # Check whether right shifting a negative integer extends the sign bit |
| 14805 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
| 14807 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14808 | if ${ac_cv_rshift_extends_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14809 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14810 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14811 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14812 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14813 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14814 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14816 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14817 | |
| 14818 | int main() |
| 14819 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14820 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14821 | } |
| 14822 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14823 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14824 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14825 | ac_cv_rshift_extends_sign=yes |
| 14826 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14827 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14828 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14829 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14830 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14831 | fi |
| 14832 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14833 | fi |
| 14834 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
| 14836 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14837 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14838 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14839 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14840 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14841 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14842 | fi |
| 14843 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14844 | # check for getc_unlocked and related locking functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
| 14846 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14847 | if ${ac_cv_have_getc_unlocked+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14848 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14850 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14852 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14853 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14854 | int |
| 14855 | main () |
| 14856 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14857 | |
| 14858 | FILE *f = fopen("/dev/null", "r"); |
| 14859 | flockfile(f); |
| 14860 | getc_unlocked(f); |
| 14861 | funlockfile(f); |
| 14862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14863 | ; |
| 14864 | return 0; |
| 14865 | } |
| 14866 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14867 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14868 | ac_cv_have_getc_unlocked=yes |
| 14869 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14870 | ac_cv_have_getc_unlocked=no |
| 14871 | fi |
| 14872 | rm -f core conftest.err conftest.$ac_objext \ |
| 14873 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14874 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14875 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
| 14877 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14878 | if test "$ac_cv_have_getc_unlocked" = yes |
| 14879 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14880 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14881 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14882 | |
| 14883 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14884 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14885 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 14886 | # save the value of LIBS so we don't actually link Python with readline |
| 14887 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14888 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14889 | # On some systems we need to link readline to a termcap compatible |
| 14890 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 14891 | # with setup.py. |
| 14892 | py_cv_lib_readline=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
| 14894 | $as_echo_n "checking how to link readline libs... " >&6; } |
doko@ubuntu.com | f2967c7 | 2012-06-30 17:32:23 +0200 | [diff] [blame] | 14895 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14896 | if test -z "$py_libtermcap"; then |
| 14897 | READLINE_LIBS="-lreadline" |
| 14898 | else |
| 14899 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 14900 | fi |
| 14901 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14903 | /* end confdefs.h. */ |
| 14904 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14905 | /* Override any GCC internal prototype to avoid an error. |
| 14906 | Use char because int might match the return type of a GCC |
| 14907 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14908 | #ifdef __cplusplus |
| 14909 | extern "C" |
| 14910 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14911 | char readline (); |
| 14912 | int |
| 14913 | main () |
| 14914 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14915 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14916 | ; |
| 14917 | return 0; |
| 14918 | } |
| 14919 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14920 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14921 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14922 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14923 | rm -f core conftest.err conftest.$ac_objext \ |
| 14924 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14925 | if test $py_cv_lib_readline = yes; then |
| 14926 | break |
| 14927 | fi |
| 14928 | done |
| 14929 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 14930 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 14931 | if test $py_cv_lib_readline = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 14933 | $as_echo "none" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14934 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
| 14936 | $as_echo "$READLINE_LIBS" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14937 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14938 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14939 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14940 | fi |
| 14941 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14942 | # check for readline 2.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14944 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14945 | #include <readline/readline.h> |
| 14946 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14947 | if ac_fn_c_try_cpp "$LINENO"; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14948 | have_readline=yes |
| 14949 | else |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14950 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14951 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14952 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14953 | rm -f conftest.err conftest.i conftest.$ac_ext |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14954 | if test $have_readline = yes |
| 14955 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14957 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14958 | #include <readline/readline.h> |
| 14959 | |
| 14960 | _ACEOF |
| 14961 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14962 | $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] | 14963 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14964 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14965 | |
| 14966 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14967 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14968 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14970 | /* end confdefs.h. */ |
| 14971 | #include <readline/readline.h> |
| 14972 | |
| 14973 | _ACEOF |
| 14974 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14975 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14976 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14977 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14978 | |
| 14979 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14980 | rm -f conftest* |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14981 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14982 | fi |
| 14983 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14984 | # check for readline 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 |
| 14986 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14987 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14988 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14990 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14991 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14993 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14994 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14995 | /* Override any GCC internal prototype to avoid an error. |
| 14996 | Use char because int might match the return type of a GCC |
| 14997 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14998 | #ifdef __cplusplus |
| 14999 | extern "C" |
| 15000 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15001 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15002 | int |
| 15003 | main () |
| 15004 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15005 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15006 | ; |
| 15007 | return 0; |
| 15008 | } |
| 15009 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15010 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15011 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15012 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15013 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15014 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15015 | rm -f core conftest.err conftest.$ac_objext \ |
| 15016 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15017 | LIBS=$ac_check_lib_save_LIBS |
| 15018 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 15020 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15021 | 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] | 15022 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15023 | $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] | 15024 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15025 | fi |
| 15026 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15027 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15028 | # also in 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 15030 | $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] | 15031 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15032 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15033 | else |
| 15034 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15035 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15037 | /* end confdefs.h. */ |
| 15038 | |
| 15039 | /* Override any GCC internal prototype to avoid an error. |
| 15040 | Use char because int might match the return type of a GCC |
| 15041 | builtin and then its argument prototype would still apply. */ |
| 15042 | #ifdef __cplusplus |
| 15043 | extern "C" |
| 15044 | #endif |
| 15045 | char rl_completion_display_matches_hook (); |
| 15046 | int |
| 15047 | main () |
| 15048 | { |
| 15049 | return rl_completion_display_matches_hook (); |
| 15050 | ; |
| 15051 | return 0; |
| 15052 | } |
| 15053 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15054 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15055 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 15056 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15057 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15058 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15059 | rm -f core conftest.err conftest.$ac_objext \ |
| 15060 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15061 | LIBS=$ac_check_lib_save_LIBS |
| 15062 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 15064 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15065 | 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] | 15066 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15067 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15068 | |
| 15069 | fi |
| 15070 | |
| 15071 | |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15072 | # also in 4.0, but not in editline |
| 15073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 |
| 15074 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } |
| 15075 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : |
| 15076 | $as_echo_n "(cached) " >&6 |
| 15077 | else |
| 15078 | ac_check_lib_save_LIBS=$LIBS |
| 15079 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
| 15080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15081 | /* end confdefs.h. */ |
| 15082 | |
| 15083 | /* Override any GCC internal prototype to avoid an error. |
| 15084 | Use char because int might match the return type of a GCC |
| 15085 | builtin and then its argument prototype would still apply. */ |
| 15086 | #ifdef __cplusplus |
| 15087 | extern "C" |
| 15088 | #endif |
| 15089 | char rl_resize_terminal (); |
| 15090 | int |
| 15091 | main () |
| 15092 | { |
| 15093 | return rl_resize_terminal (); |
| 15094 | ; |
| 15095 | return 0; |
| 15096 | } |
| 15097 | _ACEOF |
| 15098 | if ac_fn_c_try_link "$LINENO"; then : |
| 15099 | ac_cv_lib_readline_rl_resize_terminal=yes |
| 15100 | else |
| 15101 | ac_cv_lib_readline_rl_resize_terminal=no |
| 15102 | fi |
| 15103 | rm -f core conftest.err conftest.$ac_objext \ |
| 15104 | conftest$ac_exeext conftest.$ac_ext |
| 15105 | LIBS=$ac_check_lib_save_LIBS |
| 15106 | fi |
| 15107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 |
| 15108 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } |
| 15109 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : |
| 15110 | |
| 15111 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h |
| 15112 | |
| 15113 | fi |
| 15114 | |
| 15115 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15116 | # check for readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 |
| 15118 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15119 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15120 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15121 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15122 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15123 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15125 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15126 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15127 | /* Override any GCC internal prototype to avoid an error. |
| 15128 | Use char because int might match the return type of a GCC |
| 15129 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15130 | #ifdef __cplusplus |
| 15131 | extern "C" |
| 15132 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15133 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15134 | int |
| 15135 | main () |
| 15136 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15137 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15138 | ; |
| 15139 | return 0; |
| 15140 | } |
| 15141 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15142 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15143 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15144 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15145 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15146 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15147 | rm -f core conftest.err conftest.$ac_objext \ |
| 15148 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15149 | LIBS=$ac_check_lib_save_LIBS |
| 15150 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 15152 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15153 | 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] | 15154 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15155 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15156 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15157 | fi |
| 15158 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15159 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15160 | # also in readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15162 | /* end confdefs.h. */ |
| 15163 | #include <readline/readline.h> |
| 15164 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15165 | if ac_fn_c_try_cpp "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15166 | have_readline=yes |
| 15167 | else |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15168 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15169 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15170 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15171 | rm -f conftest.err conftest.i conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15172 | if test $have_readline = yes |
| 15173 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15175 | /* end confdefs.h. */ |
| 15176 | #include <readline/readline.h> |
| 15177 | |
| 15178 | _ACEOF |
| 15179 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15180 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15181 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15182 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15183 | |
| 15184 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15185 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15186 | |
| 15187 | fi |
| 15188 | |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 |
| 15190 | $as_echo_n "checking for append_history in -lreadline... " >&6; } |
| 15191 | if ${ac_cv_lib_readline_append_history+:} false; then : |
| 15192 | $as_echo_n "(cached) " >&6 |
| 15193 | else |
| 15194 | ac_check_lib_save_LIBS=$LIBS |
| 15195 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
| 15196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15197 | /* end confdefs.h. */ |
| 15198 | |
| 15199 | /* Override any GCC internal prototype to avoid an error. |
| 15200 | Use char because int might match the return type of a GCC |
| 15201 | builtin and then its argument prototype would still apply. */ |
| 15202 | #ifdef __cplusplus |
| 15203 | extern "C" |
| 15204 | #endif |
| 15205 | char append_history (); |
| 15206 | int |
| 15207 | main () |
| 15208 | { |
| 15209 | return append_history (); |
| 15210 | ; |
| 15211 | return 0; |
| 15212 | } |
| 15213 | _ACEOF |
| 15214 | if ac_fn_c_try_link "$LINENO"; then : |
| 15215 | ac_cv_lib_readline_append_history=yes |
| 15216 | else |
| 15217 | ac_cv_lib_readline_append_history=no |
| 15218 | fi |
| 15219 | rm -f core conftest.err conftest.$ac_objext \ |
| 15220 | conftest$ac_exeext conftest.$ac_ext |
| 15221 | LIBS=$ac_check_lib_save_LIBS |
| 15222 | fi |
| 15223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 |
| 15224 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } |
| 15225 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : |
| 15226 | |
| 15227 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h |
| 15228 | |
| 15229 | fi |
| 15230 | |
| 15231 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15232 | # End of readline checks: restore LIBS |
| 15233 | LIBS=$LIBS_no_readline |
| 15234 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
| 15236 | $as_echo_n "checking for broken nice()... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15237 | if ${ac_cv_broken_nice+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15238 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15239 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15240 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15241 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15242 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15243 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15245 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15246 | |
| 15247 | int main() |
| 15248 | { |
| 15249 | int val1 = nice(1); |
| 15250 | if (val1 != -1 && val1 == nice(2)) |
| 15251 | exit(0); |
| 15252 | exit(1); |
| 15253 | } |
| 15254 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15255 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15256 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15257 | ac_cv_broken_nice=yes |
| 15258 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15259 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15260 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15261 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15262 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15263 | fi |
| 15264 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15265 | fi |
| 15266 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
| 15268 | $as_echo "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15269 | if test "$ac_cv_broken_nice" = yes |
| 15270 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15271 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15272 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15273 | |
| 15274 | fi |
| 15275 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
| 15277 | $as_echo_n "checking for broken poll()... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15278 | if ${ac_cv_broken_poll+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15279 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15280 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15281 | if test "$cross_compiling" = yes; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15282 | ac_cv_broken_poll=no |
| 15283 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15285 | /* end confdefs.h. */ |
| 15286 | |
| 15287 | #include <poll.h> |
| 15288 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15289 | int main() |
| 15290 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15291 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15292 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15293 | |
| 15294 | close (42); |
| 15295 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15296 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15297 | if (poll_test < 0) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15298 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15299 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15300 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15301 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15302 | return 1; |
| 15303 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15304 | |
| 15305 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15306 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15307 | ac_cv_broken_poll=yes |
| 15308 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15309 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15310 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15311 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15312 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15313 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15314 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15315 | fi |
| 15316 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
| 15318 | $as_echo "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15319 | if test "$ac_cv_broken_poll" = yes |
| 15320 | then |
| 15321 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15322 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15323 | |
| 15324 | fi |
| 15325 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15326 | # 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] | 15327 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 15328 | # tzname[] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15329 | 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] | 15330 | #include <$ac_cv_struct_tm> |
| 15331 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15332 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15333 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15334 | |
| 15335 | cat >>confdefs.h <<_ACEOF |
| 15336 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 15337 | _ACEOF |
| 15338 | |
| 15339 | |
| 15340 | fi |
| 15341 | |
| 15342 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 15343 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15344 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15345 | |
| 15346 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15347 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 15348 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15349 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15350 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15351 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15352 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15353 | fi |
| 15354 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15355 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15356 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15357 | _ACEOF |
| 15358 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 15360 | $as_echo_n "checking for tzname... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15361 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15362 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15363 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15365 | /* end confdefs.h. */ |
| 15366 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15367 | #if !HAVE_DECL_TZNAME |
| 15368 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15369 | #endif |
| 15370 | |
| 15371 | int |
| 15372 | main () |
| 15373 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15374 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15375 | ; |
| 15376 | return 0; |
| 15377 | } |
| 15378 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15379 | if ac_fn_c_try_link "$LINENO"; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15380 | ac_cv_var_tzname=yes |
| 15381 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15382 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15383 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15384 | rm -f core conftest.err conftest.$ac_objext \ |
| 15385 | conftest$ac_exeext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15386 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 15388 | $as_echo "$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15389 | if test $ac_cv_var_tzname = yes; then |
| 15390 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15391 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15392 | |
| 15393 | fi |
| 15394 | fi |
| 15395 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15396 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15397 | # check tzset(3) exists and works like we expect it to |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
| 15399 | $as_echo_n "checking for working tzset()... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15400 | if ${ac_cv_working_tzset+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15401 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15402 | else |
| 15403 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15404 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15405 | ac_cv_working_tzset=no |
| 15406 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15408 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15409 | |
| 15410 | #include <stdlib.h> |
| 15411 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15412 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15413 | |
| 15414 | #if HAVE_TZNAME |
| 15415 | extern char *tzname[]; |
| 15416 | #endif |
| 15417 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15418 | int main() |
| 15419 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15420 | /* Note that we need to ensure that not only does tzset(3) |
| 15421 | do 'something' with localtime, but it works as documented |
| 15422 | 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] | 15423 | This includes making sure that tzname is set properly if |
| 15424 | tm->tm_zone does not exist since it is the alternative way |
| 15425 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15426 | |
| 15427 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15428 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15429 | */ |
| 15430 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15431 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15432 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 15433 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15434 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15435 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15436 | if (localtime(&groundhogday)->tm_hour != 0) |
| 15437 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15438 | #if HAVE_TZNAME |
| 15439 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 15440 | if (strcmp(tzname[0], "UTC") || |
| 15441 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 15442 | exit(1); |
| 15443 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15444 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15445 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15446 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15447 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15448 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15449 | #if HAVE_TZNAME |
| 15450 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 15451 | exit(1); |
| 15452 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15453 | |
| 15454 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 15455 | tzset(); |
| 15456 | if (localtime(&groundhogday)->tm_hour != 11) |
| 15457 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15458 | #if HAVE_TZNAME |
| 15459 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 15460 | exit(1); |
| 15461 | #endif |
| 15462 | |
| 15463 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15464 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 15465 | exit(1); |
| 15466 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 15467 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15468 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15469 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15470 | exit(0); |
| 15471 | } |
| 15472 | |
| 15473 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15474 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15475 | ac_cv_working_tzset=yes |
| 15476 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15477 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15478 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15479 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15480 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15481 | fi |
| 15482 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15483 | fi |
| 15484 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
| 15486 | $as_echo "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15487 | if test "$ac_cv_working_tzset" = yes |
| 15488 | then |
| 15489 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15490 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15491 | |
| 15492 | fi |
| 15493 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15494 | # Look for subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
| 15496 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15497 | if ${ac_cv_stat_tv_nsec+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15498 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15499 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15501 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15502 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15503 | int |
| 15504 | main () |
| 15505 | { |
| 15506 | |
| 15507 | struct stat st; |
| 15508 | st.st_mtim.tv_nsec = 1; |
| 15509 | |
| 15510 | ; |
| 15511 | return 0; |
| 15512 | } |
| 15513 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15514 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 15515 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15516 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15517 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15518 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15520 | fi |
| 15521 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
| 15523 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15524 | if test "$ac_cv_stat_tv_nsec" = yes |
| 15525 | then |
| 15526 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15527 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15528 | |
| 15529 | fi |
| 15530 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15531 | # Look for BSD style subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
| 15533 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15534 | if ${ac_cv_stat_tv_nsec2+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15535 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15536 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15538 | /* end confdefs.h. */ |
| 15539 | #include <sys/stat.h> |
| 15540 | int |
| 15541 | main () |
| 15542 | { |
| 15543 | |
| 15544 | struct stat st; |
| 15545 | st.st_mtimespec.tv_nsec = 1; |
| 15546 | |
| 15547 | ; |
| 15548 | return 0; |
| 15549 | } |
| 15550 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15551 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15552 | ac_cv_stat_tv_nsec2=yes |
| 15553 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15554 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15555 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15557 | fi |
| 15558 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
| 15560 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15561 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 15562 | then |
| 15563 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15564 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15565 | |
| 15566 | fi |
| 15567 | |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15568 | # first curses header check |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15569 | ac_save_cppflags="$CPPFLAGS" |
Xavier de Gaye | e13c320 | 2016-12-13 16:04:14 +0100 | [diff] [blame] | 15570 | if test "$cross_compiling" = no; then |
| 15571 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" |
| 15572 | fi |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15573 | |
| 15574 | for ac_header in curses.h ncurses.h |
| 15575 | do : |
| 15576 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15577 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 15578 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 15579 | cat >>confdefs.h <<_ACEOF |
| 15580 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15581 | _ACEOF |
| 15582 | |
| 15583 | fi |
| 15584 | |
| 15585 | done |
| 15586 | |
| 15587 | |
| 15588 | # On Solaris, term.h requires curses.h |
| 15589 | for ac_header in term.h |
| 15590 | do : |
| 15591 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " |
| 15592 | #ifdef HAVE_CURSES_H |
| 15593 | #include <curses.h> |
| 15594 | #endif |
| 15595 | |
| 15596 | " |
| 15597 | if test "x$ac_cv_header_term_h" = xyes; then : |
| 15598 | cat >>confdefs.h <<_ACEOF |
| 15599 | #define HAVE_TERM_H 1 |
| 15600 | _ACEOF |
| 15601 | |
| 15602 | fi |
| 15603 | |
| 15604 | done |
| 15605 | |
| 15606 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15607 | # 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] | 15608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
| 15609 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15610 | if ${ac_cv_mvwdelch_is_expression+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15611 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15612 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15614 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15615 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15616 | int |
| 15617 | main () |
| 15618 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15619 | |
| 15620 | int rtn; |
| 15621 | rtn = mvwdelch(0,0,0); |
| 15622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15623 | ; |
| 15624 | return 0; |
| 15625 | } |
| 15626 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15627 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15628 | ac_cv_mvwdelch_is_expression=yes |
| 15629 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15630 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15631 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15633 | fi |
| 15634 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 15636 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15637 | |
| 15638 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 15639 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15640 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15641 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15642 | |
| 15643 | fi |
| 15644 | |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 15645 | # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque |
| 15646 | # structs since version 5.7. If the macro is defined as zero before including |
| 15647 | # [n]curses.h, ncurses will expose fields of the structs regardless of the |
| 15648 | # configuration. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
| 15650 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15651 | if ${ac_cv_window_has_flags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15652 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15653 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15655 | /* end confdefs.h. */ |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 15656 | |
| 15657 | #define NCURSES_OPAQUE 0 |
| 15658 | #include <curses.h> |
| 15659 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15660 | int |
| 15661 | main () |
| 15662 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15663 | |
| 15664 | WINDOW *w; |
| 15665 | w->_flags = 0; |
| 15666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15667 | ; |
| 15668 | return 0; |
| 15669 | } |
| 15670 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15671 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15672 | ac_cv_window_has_flags=yes |
| 15673 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15674 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15675 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15677 | fi |
| 15678 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
| 15680 | $as_echo "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15681 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15682 | |
| 15683 | if test "$ac_cv_window_has_flags" = yes |
| 15684 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15685 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15686 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15687 | |
| 15688 | fi |
| 15689 | |
Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 15690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 |
| 15691 | $as_echo_n "checking for is_pad... " >&6; } |
| 15692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15693 | /* end confdefs.h. */ |
| 15694 | #include <curses.h> |
| 15695 | int |
| 15696 | main () |
| 15697 | { |
| 15698 | |
| 15699 | #ifndef is_pad |
| 15700 | void *x=is_pad |
| 15701 | #endif |
| 15702 | |
| 15703 | ; |
| 15704 | return 0; |
| 15705 | } |
| 15706 | _ACEOF |
| 15707 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15708 | |
| 15709 | $as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h |
| 15710 | |
| 15711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15712 | $as_echo "yes" >&6; } |
| 15713 | else |
| 15714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15715 | $as_echo "no" >&6; } |
| 15716 | |
| 15717 | fi |
| 15718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15719 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
| 15721 | $as_echo_n "checking for is_term_resized... " >&6; } |
| 15722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15723 | /* end confdefs.h. */ |
| 15724 | #include <curses.h> |
| 15725 | int |
| 15726 | main () |
| 15727 | { |
| 15728 | void *x=is_term_resized |
| 15729 | ; |
| 15730 | return 0; |
| 15731 | } |
| 15732 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15733 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15734 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15735 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15736 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15738 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15739 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15741 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15742 | |
| 15743 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15745 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
| 15747 | $as_echo_n "checking for resize_term... " >&6; } |
| 15748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15749 | /* end confdefs.h. */ |
| 15750 | #include <curses.h> |
| 15751 | int |
| 15752 | main () |
| 15753 | { |
| 15754 | void *x=resize_term |
| 15755 | ; |
| 15756 | return 0; |
| 15757 | } |
| 15758 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15759 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15760 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15761 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15762 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15764 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15765 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15767 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15768 | |
| 15769 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15771 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
| 15773 | $as_echo_n "checking for resizeterm... " >&6; } |
| 15774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15775 | /* end confdefs.h. */ |
| 15776 | #include <curses.h> |
| 15777 | int |
| 15778 | main () |
| 15779 | { |
| 15780 | void *x=resizeterm |
| 15781 | ; |
| 15782 | return 0; |
| 15783 | } |
| 15784 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15785 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15786 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15787 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15788 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15790 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15791 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15793 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15794 | |
| 15795 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 15797 | |
| 15798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5 |
| 15799 | $as_echo_n "checking for immedok... " >&6; } |
| 15800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15801 | /* end confdefs.h. */ |
| 15802 | #include <curses.h> |
| 15803 | int |
| 15804 | main () |
| 15805 | { |
| 15806 | |
| 15807 | #ifndef immedok |
| 15808 | void *x=immedok |
| 15809 | #endif |
| 15810 | |
| 15811 | ; |
| 15812 | return 0; |
| 15813 | } |
| 15814 | _ACEOF |
| 15815 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15816 | |
| 15817 | $as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h |
| 15818 | |
| 15819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15820 | $as_echo "yes" >&6; } |
| 15821 | else |
| 15822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15823 | $as_echo "no" >&6; } |
| 15824 | |
| 15825 | fi |
| 15826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15827 | |
| 15828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5 |
| 15829 | $as_echo_n "checking for syncok... " >&6; } |
| 15830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15831 | /* end confdefs.h. */ |
| 15832 | #include <curses.h> |
| 15833 | int |
| 15834 | main () |
| 15835 | { |
| 15836 | |
| 15837 | #ifndef syncok |
| 15838 | void *x=syncok |
| 15839 | #endif |
| 15840 | |
| 15841 | ; |
| 15842 | return 0; |
| 15843 | } |
| 15844 | _ACEOF |
| 15845 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15846 | |
| 15847 | $as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h |
| 15848 | |
| 15849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15850 | $as_echo "yes" >&6; } |
| 15851 | else |
| 15852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15853 | $as_echo "no" >&6; } |
| 15854 | |
| 15855 | fi |
| 15856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15857 | |
Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 15858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5 |
| 15859 | $as_echo_n "checking for wchgat... " >&6; } |
| 15860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15861 | /* end confdefs.h. */ |
| 15862 | #include <curses.h> |
| 15863 | int |
| 15864 | main () |
| 15865 | { |
| 15866 | |
| 15867 | #ifndef wchgat |
| 15868 | void *x=wchgat |
| 15869 | #endif |
| 15870 | |
| 15871 | ; |
| 15872 | return 0; |
| 15873 | } |
| 15874 | _ACEOF |
| 15875 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15876 | |
| 15877 | $as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h |
| 15878 | |
| 15879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15880 | $as_echo "yes" >&6; } |
| 15881 | else |
| 15882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15883 | $as_echo "no" >&6; } |
| 15884 | |
| 15885 | fi |
| 15886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15887 | |
Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 15888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5 |
| 15889 | $as_echo_n "checking for filter... " >&6; } |
| 15890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15891 | /* end confdefs.h. */ |
| 15892 | #include <curses.h> |
| 15893 | int |
| 15894 | main () |
| 15895 | { |
| 15896 | |
| 15897 | #ifndef filter |
| 15898 | void *x=filter |
| 15899 | #endif |
| 15900 | |
| 15901 | ; |
| 15902 | return 0; |
| 15903 | } |
| 15904 | _ACEOF |
| 15905 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15906 | |
| 15907 | $as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h |
| 15908 | |
| 15909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15910 | $as_echo "yes" >&6; } |
| 15911 | else |
| 15912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15913 | $as_echo "no" >&6; } |
| 15914 | |
| 15915 | fi |
| 15916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15917 | |
| 15918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5 |
| 15919 | $as_echo_n "checking for has_key... " >&6; } |
| 15920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15921 | /* end confdefs.h. */ |
| 15922 | #include <curses.h> |
| 15923 | int |
| 15924 | main () |
| 15925 | { |
| 15926 | |
| 15927 | #ifndef has_key |
| 15928 | void *x=has_key |
| 15929 | #endif |
| 15930 | |
| 15931 | ; |
| 15932 | return 0; |
| 15933 | } |
| 15934 | _ACEOF |
| 15935 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15936 | |
| 15937 | $as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h |
| 15938 | |
| 15939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15940 | $as_echo "yes" >&6; } |
| 15941 | else |
| 15942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15943 | $as_echo "no" >&6; } |
| 15944 | |
| 15945 | fi |
| 15946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15947 | |
| 15948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5 |
| 15949 | $as_echo_n "checking for typeahead... " >&6; } |
| 15950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15951 | /* end confdefs.h. */ |
| 15952 | #include <curses.h> |
| 15953 | int |
| 15954 | main () |
| 15955 | { |
| 15956 | |
| 15957 | #ifndef typeahead |
| 15958 | void *x=typeahead |
| 15959 | #endif |
| 15960 | |
| 15961 | ; |
| 15962 | return 0; |
| 15963 | } |
| 15964 | _ACEOF |
| 15965 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15966 | |
| 15967 | $as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h |
| 15968 | |
| 15969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15970 | $as_echo "yes" >&6; } |
| 15971 | else |
| 15972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15973 | $as_echo "no" >&6; } |
| 15974 | |
| 15975 | fi |
| 15976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15977 | |
| 15978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5 |
| 15979 | $as_echo_n "checking for use_env... " >&6; } |
| 15980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15981 | /* end confdefs.h. */ |
| 15982 | #include <curses.h> |
| 15983 | int |
| 15984 | main () |
| 15985 | { |
| 15986 | |
| 15987 | #ifndef use_env |
| 15988 | void *x=use_env |
| 15989 | #endif |
| 15990 | |
| 15991 | ; |
| 15992 | return 0; |
| 15993 | } |
| 15994 | _ACEOF |
| 15995 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15996 | |
| 15997 | $as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h |
| 15998 | |
| 15999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16000 | $as_echo "yes" >&6; } |
| 16001 | else |
| 16002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16003 | $as_echo "no" >&6; } |
| 16004 | |
| 16005 | fi |
| 16006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 16007 | # last curses configure check |
| 16008 | CPPFLAGS=$ac_save_cppflags |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16009 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 |
| 16011 | $as_echo "$as_me: checking for device files" >&6;} |
| 16012 | |
| 16013 | if test "x$cross_compiling" = xyes; then |
| 16014 | if test "${ac_cv_file__dev_ptmx+set}" != set; then |
| 16015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 16016 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
| 16017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 16018 | $as_echo "not set" >&6; } |
| 16019 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
| 16020 | fi |
| 16021 | if test "${ac_cv_file__dev_ptc+set}" != set; then |
| 16022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 16023 | $as_echo_n "checking for /dev/ptc... " >&6; } |
| 16024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 16025 | $as_echo "not set" >&6; } |
| 16026 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
| 16027 | fi |
| 16028 | fi |
| 16029 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 16031 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16032 | if ${ac_cv_file__dev_ptmx+:} false; then : |
| 16033 | $as_echo_n "(cached) " >&6 |
| 16034 | else |
| 16035 | test "$cross_compiling" = yes && |
| 16036 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 16037 | if test -r "/dev/ptmx"; then |
| 16038 | ac_cv_file__dev_ptmx=yes |
| 16039 | else |
| 16040 | ac_cv_file__dev_ptmx=no |
| 16041 | fi |
| 16042 | fi |
| 16043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 |
| 16044 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } |
| 16045 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16046 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16047 | fi |
| 16048 | |
| 16049 | if test "x$ac_cv_file__dev_ptmx" = xyes; then |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16050 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16051 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16052 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16053 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 16055 | $as_echo_n "checking for /dev/ptc... " >&6; } |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16056 | if ${ac_cv_file__dev_ptc+:} false; then : |
| 16057 | $as_echo_n "(cached) " >&6 |
| 16058 | else |
| 16059 | test "$cross_compiling" = yes && |
| 16060 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 16061 | if test -r "/dev/ptc"; then |
| 16062 | ac_cv_file__dev_ptc=yes |
| 16063 | else |
| 16064 | ac_cv_file__dev_ptc=no |
| 16065 | fi |
| 16066 | fi |
| 16067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 |
| 16068 | $as_echo "$ac_cv_file__dev_ptc" >&6; } |
| 16069 | if test "x$ac_cv_file__dev_ptc" = xyes; then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16070 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16071 | fi |
| 16072 | |
| 16073 | if test "x$ac_cv_file__dev_ptc" = xyes; then |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16074 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16075 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16076 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16077 | fi |
| 16078 | |
Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 16079 | if test $ac_sys_system = Darwin |
| 16080 | then |
| 16081 | LIBS="$LIBS -framework CoreFoundation" |
| 16082 | fi |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 16083 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
| 16085 | $as_echo_n "checking for %zd printf() format support... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16086 | if ${ac_cv_have_size_t_format+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16087 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16088 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16089 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16090 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 16091 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16092 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16094 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16095 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16096 | #include <stdio.h> |
| 16097 | #include <stddef.h> |
| 16098 | #include <string.h> |
| 16099 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16100 | #ifdef HAVE_SYS_TYPES_H |
| 16101 | #include <sys/types.h> |
| 16102 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16103 | |
| 16104 | #ifdef HAVE_SSIZE_T |
| 16105 | typedef ssize_t Py_ssize_t; |
| 16106 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 16107 | typedef long Py_ssize_t; |
| 16108 | #else |
| 16109 | typedef int Py_ssize_t; |
| 16110 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16111 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16112 | int main() |
| 16113 | { |
| 16114 | char buffer[256]; |
| 16115 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16116 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 16117 | return 1; |
| 16118 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16119 | if (strcmp(buffer, "123")) |
| 16120 | return 1; |
| 16121 | |
| 16122 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 16123 | return 1; |
| 16124 | |
| 16125 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16126 | return 1; |
| 16127 | |
| 16128 | return 0; |
| 16129 | } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16130 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16131 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16132 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16133 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16134 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16135 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16136 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16137 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16138 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 16139 | fi |
| 16140 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16141 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
| 16143 | $as_echo "$ac_cv_have_size_t_format" >&6; } |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16144 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16145 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16146 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16147 | |
| 16148 | fi |
| 16149 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16150 | 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] | 16151 | #ifdef HAVE_SYS_TYPES_H |
| 16152 | #include <sys/types.h> |
| 16153 | #endif |
| 16154 | #ifdef HAVE_SYS_SOCKET_H |
| 16155 | #include <sys/socket.h> |
| 16156 | #endif |
| 16157 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16158 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16159 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16160 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16161 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16162 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16163 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16164 | |
| 16165 | fi |
| 16166 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16167 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
| 16169 | $as_echo_n "checking for broken mbstowcs... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16170 | if ${ac_cv_broken_mbstowcs+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16171 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16172 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16173 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16174 | ac_cv_broken_mbstowcs=no |
| 16175 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16177 | /* end confdefs.h. */ |
| 16178 | |
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 16179 | #include <stdio.h> |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16180 | #include<stdlib.h> |
| 16181 | int main() { |
| 16182 | size_t len = -1; |
| 16183 | const char *str = "text"; |
| 16184 | len = mbstowcs(NULL, str, 0); |
| 16185 | return (len != 4); |
| 16186 | } |
| 16187 | |
| 16188 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16189 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16190 | ac_cv_broken_mbstowcs=no |
| 16191 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16192 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16193 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16194 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16195 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16196 | fi |
| 16197 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16198 | fi |
| 16199 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
| 16201 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16202 | if test "$ac_cv_broken_mbstowcs" = yes |
| 16203 | then |
| 16204 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16205 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16206 | |
| 16207 | fi |
| 16208 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16209 | # Check for --with-computed-gotos |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
| 16211 | $as_echo_n "checking for --with-computed-gotos... " >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16212 | |
| 16213 | # Check whether --with-computed-gotos was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16214 | if test "${with_computed_gotos+set}" = set; then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16215 | withval=$with_computed_gotos; |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16216 | if test "$withval" = yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16217 | then |
| 16218 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16219 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16220 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16222 | $as_echo "yes" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16223 | fi |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16224 | if test "$withval" = no |
| 16225 | then |
| 16226 | |
| 16227 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h |
| 16228 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16230 | $as_echo "no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16231 | fi |
| 16232 | |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16233 | else |
| 16234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 16235 | $as_echo "no value specified" >&6; } |
| 16236 | fi |
| 16237 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16238 | |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 |
| 16240 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } |
| 16241 | if ${ac_cv_computed_gotos+:} false; then : |
| 16242 | $as_echo_n "(cached) " >&6 |
| 16243 | else |
| 16244 | if test "$cross_compiling" = yes; then : |
| 16245 | if test "${with_computed_gotos+set}" = set; then |
| 16246 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" |
| 16247 | else |
| 16248 | ac_cv_computed_gotos=no |
| 16249 | fi |
| 16250 | else |
| 16251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16252 | /* end confdefs.h. */ |
| 16253 | |
| 16254 | int main(int argc, char **argv) |
| 16255 | { |
| 16256 | static void *targets[1] = { &&LABEL1 }; |
| 16257 | goto LABEL2; |
| 16258 | LABEL1: |
| 16259 | return 0; |
| 16260 | LABEL2: |
| 16261 | goto *targets[0]; |
| 16262 | return 1; |
| 16263 | } |
| 16264 | |
| 16265 | _ACEOF |
| 16266 | if ac_fn_c_try_run "$LINENO"; then : |
| 16267 | ac_cv_computed_gotos=yes |
| 16268 | else |
| 16269 | ac_cv_computed_gotos=no |
| 16270 | fi |
| 16271 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16272 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16273 | fi |
| 16274 | |
| 16275 | fi |
| 16276 | |
| 16277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 |
| 16278 | $as_echo "$ac_cv_computed_gotos" >&6; } |
| 16279 | case "$ac_cv_computed_gotos" in yes*) |
| 16280 | |
| 16281 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h |
| 16282 | |
| 16283 | esac |
| 16284 | |
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 16285 | case $ac_sys_system in |
| 16286 | AIX*) |
| 16287 | |
| 16288 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h |
| 16289 | ;; |
| 16290 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16291 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16292 | |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 16293 | |
| 16294 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16295 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 16296 | do |
| 16297 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 16298 | done |
| 16299 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16300 | |
Alex Dzyoba | 8a543c0 | 2017-03-24 11:23:43 +0300 | [diff] [blame] | 16301 | SRCDIRS="Parser Objects Python Modules Programs" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
| 16303 | $as_echo_n "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16304 | for dir in $SRCDIRS; do |
| 16305 | if test ! -d $dir; then |
| 16306 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16307 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16308 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 16310 | $as_echo "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16311 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16312 | # Availability of -O2: |
| 16313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 |
| 16314 | $as_echo_n "checking for -O2... " >&6; } |
| 16315 | saved_cflags="$CFLAGS" |
| 16316 | CFLAGS="-O2" |
| 16317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16318 | /* end confdefs.h. */ |
| 16319 | |
| 16320 | int |
| 16321 | main () |
| 16322 | { |
| 16323 | |
| 16324 | |
| 16325 | ; |
| 16326 | return 0; |
| 16327 | } |
| 16328 | _ACEOF |
| 16329 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16330 | have_O2=yes |
| 16331 | else |
| 16332 | have_O2=no |
| 16333 | fi |
| 16334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 |
| 16336 | $as_echo "$have_O2" >&6; } |
| 16337 | CFLAGS="$saved_cflags" |
| 16338 | |
| 16339 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: |
| 16340 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html |
| 16341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 |
| 16342 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } |
| 16343 | saved_cflags="$CFLAGS" |
| 16344 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" |
| 16345 | if test "$have_O2" = no; then |
| 16346 | CFLAGS="" |
| 16347 | fi |
| 16348 | if test "$cross_compiling" = yes; then : |
| 16349 | have_glibc_memmove_bug=undefined |
| 16350 | else |
| 16351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16352 | /* end confdefs.h. */ |
| 16353 | |
| 16354 | #include <stdio.h> |
| 16355 | #include <stdlib.h> |
| 16356 | #include <string.h> |
| 16357 | void foo(void *p, void *q) { memmove(p, q, 19); } |
| 16358 | int main() { |
| 16359 | char a[32] = "123456789000000000"; |
| 16360 | foo(&a[9], a); |
| 16361 | if (strcmp(a, "123456789123456789000000000") != 0) |
| 16362 | return 1; |
| 16363 | foo(a, &a[9]); |
| 16364 | if (strcmp(a, "123456789000000000") != 0) |
| 16365 | return 1; |
| 16366 | return 0; |
| 16367 | } |
| 16368 | |
| 16369 | _ACEOF |
| 16370 | if ac_fn_c_try_run "$LINENO"; then : |
| 16371 | have_glibc_memmove_bug=no |
| 16372 | else |
| 16373 | have_glibc_memmove_bug=yes |
| 16374 | fi |
| 16375 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16376 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16377 | fi |
| 16378 | |
| 16379 | CFLAGS="$saved_cflags" |
| 16380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 |
| 16381 | $as_echo "$have_glibc_memmove_bug" >&6; } |
| 16382 | if test "$have_glibc_memmove_bug" = yes; then |
| 16383 | |
| 16384 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h |
| 16385 | |
| 16386 | fi |
| 16387 | |
| 16388 | if test "$have_gcc_asm_for_x87" = yes; then |
| 16389 | # Some versions of gcc miscompile inline asm: |
| 16390 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 |
| 16391 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html |
| 16392 | case $CC in |
| 16393 | *gcc*) |
| 16394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 |
| 16395 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } |
| 16396 | saved_cflags="$CFLAGS" |
| 16397 | CFLAGS="-O2" |
| 16398 | if test "$cross_compiling" = yes; then : |
| 16399 | have_ipa_pure_const_bug=undefined |
| 16400 | else |
| 16401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16402 | /* end confdefs.h. */ |
| 16403 | |
| 16404 | __attribute__((noinline)) int |
| 16405 | foo(int *p) { |
| 16406 | int r; |
| 16407 | asm ( "movl \$6, (%1)\n\t" |
| 16408 | "xorl %0, %0\n\t" |
| 16409 | : "=r" (r) : "r" (p) : "memory" |
| 16410 | ); |
| 16411 | return r; |
| 16412 | } |
| 16413 | int main() { |
| 16414 | int p = 8; |
| 16415 | if ((foo(&p) ? : p) != 6) |
| 16416 | return 1; |
| 16417 | return 0; |
| 16418 | } |
| 16419 | |
| 16420 | _ACEOF |
| 16421 | if ac_fn_c_try_run "$LINENO"; then : |
| 16422 | have_ipa_pure_const_bug=no |
| 16423 | else |
| 16424 | have_ipa_pure_const_bug=yes |
| 16425 | fi |
| 16426 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16427 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16428 | fi |
| 16429 | |
| 16430 | CFLAGS="$saved_cflags" |
| 16431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 |
| 16432 | $as_echo "$have_ipa_pure_const_bug" >&6; } |
| 16433 | if test "$have_ipa_pure_const_bug" = yes; then |
| 16434 | |
| 16435 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h |
| 16436 | |
| 16437 | fi |
| 16438 | ;; |
| 16439 | esac |
| 16440 | fi |
| 16441 | |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16442 | # Check for stdatomic.h |
| 16443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 |
| 16444 | $as_echo_n "checking for stdatomic.h... " >&6; } |
| 16445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16446 | /* end confdefs.h. */ |
| 16447 | |
| 16448 | |
| 16449 | #include <stdatomic.h> |
Victor Stinner | 923e06f | 2015-01-14 16:01:46 +0100 | [diff] [blame] | 16450 | atomic_int value = ATOMIC_VAR_INIT(1); |
| 16451 | _Atomic void *py_atomic_address = (void*) &value; |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16452 | int main() { |
| 16453 | int loaded_value = atomic_load(&value); |
| 16454 | return 0; |
| 16455 | } |
| 16456 | |
| 16457 | |
| 16458 | _ACEOF |
| 16459 | if ac_fn_c_try_link "$LINENO"; then : |
| 16460 | have_stdatomic_h=yes |
| 16461 | else |
| 16462 | have_stdatomic_h=no |
| 16463 | fi |
| 16464 | rm -f core conftest.err conftest.$ac_objext \ |
| 16465 | conftest$ac_exeext conftest.$ac_ext |
| 16466 | |
| 16467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 |
| 16468 | $as_echo "$have_stdatomic_h" >&6; } |
| 16469 | |
| 16470 | if test "$have_stdatomic_h" = yes; then |
| 16471 | |
| 16472 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h |
| 16473 | |
| 16474 | fi |
| 16475 | |
| 16476 | # Check for GCC >= 4.7 __atomic builtins |
| 16477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 |
| 16478 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } |
| 16479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16480 | /* end confdefs.h. */ |
| 16481 | |
| 16482 | |
| 16483 | volatile int val = 1; |
| 16484 | int main() { |
| 16485 | __atomic_load_n(&val, __ATOMIC_SEQ_CST); |
| 16486 | return 0; |
| 16487 | } |
| 16488 | |
| 16489 | |
| 16490 | _ACEOF |
| 16491 | if ac_fn_c_try_link "$LINENO"; then : |
| 16492 | have_builtin_atomic=yes |
| 16493 | else |
| 16494 | have_builtin_atomic=no |
| 16495 | fi |
| 16496 | rm -f core conftest.err conftest.$ac_objext \ |
| 16497 | conftest$ac_exeext conftest.$ac_ext |
| 16498 | |
| 16499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 |
| 16500 | $as_echo "$have_builtin_atomic" >&6; } |
| 16501 | |
| 16502 | if test "$have_builtin_atomic" = yes; then |
| 16503 | |
| 16504 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h |
| 16505 | |
| 16506 | fi |
| 16507 | |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 16508 | # ensurepip option |
| 16509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 |
| 16510 | $as_echo_n "checking for ensurepip... " >&6; } |
| 16511 | |
| 16512 | # Check whether --with-ensurepip was given. |
| 16513 | if test "${with_ensurepip+set}" = set; then : |
| 16514 | withval=$with_ensurepip; |
| 16515 | else |
| 16516 | with_ensurepip=upgrade |
| 16517 | fi |
| 16518 | |
| 16519 | case $with_ensurepip in #( |
| 16520 | yes|upgrade) : |
| 16521 | ENSUREPIP=upgrade ;; #( |
| 16522 | install) : |
| 16523 | ENSUREPIP=install ;; #( |
| 16524 | no) : |
| 16525 | ENSUREPIP=no ;; #( |
| 16526 | *) : |
| 16527 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; |
| 16528 | esac |
| 16529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 |
| 16530 | $as_echo "$ENSUREPIP" >&6; } |
| 16531 | |
| 16532 | |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 16533 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined |
| 16534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 |
| 16535 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } |
| 16536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16537 | /* end confdefs.h. */ |
| 16538 | |
| 16539 | |
| 16540 | #include <dirent.h> |
| 16541 | |
| 16542 | int main() { |
| 16543 | struct dirent entry; |
| 16544 | return entry.d_type == DT_UNKNOWN; |
| 16545 | } |
| 16546 | |
| 16547 | |
| 16548 | _ACEOF |
| 16549 | if ac_fn_c_try_link "$LINENO"; then : |
| 16550 | have_dirent_d_type=yes |
| 16551 | else |
| 16552 | have_dirent_d_type=no |
| 16553 | fi |
| 16554 | rm -f core conftest.err conftest.$ac_objext \ |
| 16555 | conftest$ac_exeext conftest.$ac_ext |
| 16556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 |
| 16557 | $as_echo "$have_dirent_d_type" >&6; } |
| 16558 | |
| 16559 | if test "$have_dirent_d_type" = yes; then |
| 16560 | |
| 16561 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h |
| 16562 | |
| 16563 | fi |
| 16564 | |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16565 | # check if the Linux getrandom() syscall is available |
| 16566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 |
| 16567 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } |
| 16568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16569 | /* end confdefs.h. */ |
| 16570 | |
| 16571 | |
Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 16572 | #include <unistd.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16573 | #include <sys/syscall.h> |
Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16574 | #include <linux/random.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16575 | |
| 16576 | int main() { |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16577 | char buffer[1]; |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16578 | const size_t buflen = sizeof(buffer); |
Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16579 | const int flags = GRND_NONBLOCK; |
| 16580 | /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16581 | (void)syscall(SYS_getrandom, buffer, buflen, flags); |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16582 | return 0; |
| 16583 | } |
| 16584 | |
| 16585 | |
| 16586 | _ACEOF |
| 16587 | if ac_fn_c_try_link "$LINENO"; then : |
| 16588 | have_getrandom_syscall=yes |
| 16589 | else |
| 16590 | have_getrandom_syscall=no |
| 16591 | fi |
| 16592 | rm -f core conftest.err conftest.$ac_objext \ |
| 16593 | conftest$ac_exeext conftest.$ac_ext |
| 16594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 |
| 16595 | $as_echo "$have_getrandom_syscall" >&6; } |
| 16596 | |
| 16597 | if test "$have_getrandom_syscall" = yes; then |
| 16598 | |
| 16599 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h |
| 16600 | |
| 16601 | fi |
| 16602 | |
Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16603 | # check if the getrandom() function is available |
| 16604 | # the test was written for the Solaris function of <sys/random.h> |
| 16605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 |
| 16606 | $as_echo_n "checking for the getrandom() function... " >&6; } |
| 16607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16608 | /* end confdefs.h. */ |
| 16609 | |
| 16610 | |
| 16611 | #include <sys/random.h> |
| 16612 | |
| 16613 | int main() { |
| 16614 | char buffer[1]; |
| 16615 | const size_t buflen = sizeof(buffer); |
| 16616 | const int flags = 0; |
| 16617 | /* ignore the result, Python checks for ENOSYS at runtime */ |
| 16618 | (void)getrandom(buffer, buflen, flags); |
| 16619 | return 0; |
| 16620 | } |
| 16621 | |
| 16622 | |
| 16623 | _ACEOF |
| 16624 | if ac_fn_c_try_link "$LINENO"; then : |
| 16625 | have_getrandom=yes |
| 16626 | else |
| 16627 | have_getrandom=no |
| 16628 | fi |
| 16629 | rm -f core conftest.err conftest.$ac_objext \ |
| 16630 | conftest$ac_exeext conftest.$ac_ext |
| 16631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 |
| 16632 | $as_echo "$have_getrandom" >&6; } |
| 16633 | |
| 16634 | if test "$have_getrandom" = yes; then |
| 16635 | |
| 16636 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h |
| 16637 | |
| 16638 | fi |
| 16639 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16640 | # generate output files |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 16641 | 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] | 16642 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 16643 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
| 16644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16645 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16646 | # This file is a shell script that caches the results of configure |
| 16647 | # 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] | 16648 | # scripts and configure runs, see configure's option --config-cache. |
| 16649 | # It is not useful on other systems. If it contains results you don't |
| 16650 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16651 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16652 | # config.status only pays attention to the cache file if you give it |
| 16653 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16654 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16655 | # `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] | 16656 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16657 | # following values. |
| 16658 | |
| 16659 | _ACEOF |
| 16660 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16661 | # The following way of writing the cache mishandles newlines in values, |
| 16662 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16663 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16664 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16665 | # 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] | 16666 | ( |
| 16667 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 16668 | eval ac_val=\$$ac_var |
| 16669 | case $ac_val in #( |
| 16670 | *${as_nl}*) |
| 16671 | case $ac_var in #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16672 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 16673 | $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] | 16674 | esac |
| 16675 | case $ac_var in #( |
| 16676 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16677 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 16678 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16679 | esac ;; |
| 16680 | esac |
| 16681 | done |
| 16682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16683 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16684 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 16685 | *${as_nl}ac_space=\ *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16686 | # `set' does not quote correctly, so add quotes: double-quote |
| 16687 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16688 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16689 | "s/'/'\\\\''/g; |
| 16690 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16691 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16692 | *) |
| 16693 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16694 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16695 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16696 | esac | |
| 16697 | sort |
| 16698 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16699 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16700 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16701 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16702 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16703 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16704 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16705 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16706 | :end' >>confcache |
| 16707 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 16708 | if test -w "$cache_file"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16709 | if test "x$cache_file" != "x/dev/null"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16710 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 16711 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16712 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 16713 | cat confcache >"$cache_file" |
| 16714 | else |
| 16715 | case $cache_file in #( |
| 16716 | */* | ?:*) |
| 16717 | mv -f confcache "$cache_file"$$ && |
| 16718 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 16719 | *) |
| 16720 | mv -f confcache "$cache_file" ;; |
| 16721 | esac |
| 16722 | fi |
| 16723 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16724 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16725 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 16726 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16727 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16728 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16729 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16730 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16731 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16732 | # Let make expand exec_prefix. |
| 16733 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16734 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16735 | DEFS=-DHAVE_CONFIG_H |
| 16736 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16737 | ac_libobjs= |
| 16738 | ac_ltlibobjs= |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16739 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16740 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16741 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16742 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16743 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16744 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 16745 | # will be set to the directory where LIBOBJS objects are built. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16746 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 16747 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16748 | done |
| 16749 | LIBOBJS=$ac_libobjs |
| 16750 | |
| 16751 | LTLIBOBJS=$ac_ltlibobjs |
| 16752 | |
| 16753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16754 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16755 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16756 | : "${CONFIG_STATUS=./config.status}" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16757 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16758 | ac_clean_files_save=$ac_clean_files |
| 16759 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16760 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 16761 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16762 | as_write_fail=0 |
| 16763 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16764 | #! $SHELL |
| 16765 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16766 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16767 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16768 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16770 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16771 | ac_cs_recheck=false |
| 16772 | ac_cs_silent=false |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16773 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16774 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16775 | export SHELL |
| 16776 | _ASEOF |
| 16777 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 16778 | ## -------------------- ## |
| 16779 | ## M4sh Initialization. ## |
| 16780 | ## -------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16781 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16782 | # Be more Bourne compatible |
| 16783 | DUALCASE=1; export DUALCASE # for MKS sh |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16784 | 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] | 16785 | emulate sh |
| 16786 | NULLCMD=: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16787 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16788 | # is contrary to our usage. Disable this feature. |
| 16789 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16790 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 16791 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16792 | case `(set -o) 2>/dev/null` in #( |
| 16793 | *posix*) : |
| 16794 | set -o posix ;; #( |
| 16795 | *) : |
| 16796 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16797 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16798 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16799 | |
| 16800 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16801 | as_nl=' |
| 16802 | ' |
| 16803 | export as_nl |
| 16804 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 16805 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 16806 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16807 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16808 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 16809 | # but without wasting forks for bash or zsh. |
| 16810 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 16811 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16812 | as_echo='print -r --' |
| 16813 | as_echo_n='print -rn --' |
| 16814 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16815 | as_echo='printf %s\n' |
| 16816 | as_echo_n='printf %s' |
| 16817 | else |
| 16818 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 16819 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 16820 | as_echo_n='/usr/ucb/echo -n' |
| 16821 | else |
| 16822 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 16823 | as_echo_n_body='eval |
| 16824 | arg=$1; |
| 16825 | case $arg in #( |
| 16826 | *"$as_nl"*) |
| 16827 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 16828 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 16829 | esac; |
| 16830 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 16831 | ' |
| 16832 | export as_echo_n_body |
| 16833 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 16834 | fi |
| 16835 | export as_echo_body |
| 16836 | as_echo='sh -c $as_echo_body as_echo' |
| 16837 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16838 | |
| 16839 | # The user is always right. |
| 16840 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16841 | PATH_SEPARATOR=: |
| 16842 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 16843 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 16844 | PATH_SEPARATOR=';' |
| 16845 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16846 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16847 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16848 | |
| 16849 | # IFS |
| 16850 | # We need space, tab and new line, in precisely that order. Quoting is |
| 16851 | # there to prevent editors from complaining about space-tab. |
| 16852 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 16853 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16854 | IFS=" "" $as_nl" |
| 16855 | |
| 16856 | # 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] | 16857 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16858 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16859 | *[\\/]* ) as_myself=$0 ;; |
| 16860 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16861 | for as_dir in $PATH |
| 16862 | do |
| 16863 | IFS=$as_save_IFS |
| 16864 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16865 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16866 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16867 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16868 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16869 | ;; |
| 16870 | esac |
| 16871 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16872 | # in which case we are not to be found in the path. |
| 16873 | if test "x$as_myself" = x; then |
| 16874 | as_myself=$0 |
| 16875 | fi |
| 16876 | if test ! -f "$as_myself"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16877 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 16878 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16879 | fi |
| 16880 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16881 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 16882 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 16883 | # suppresses any "Segmentation fault" message there. '((' could |
| 16884 | # trigger a bug in pdksh 5.2.14. |
| 16885 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 16886 | do eval test x\${$as_var+set} = xset \ |
| 16887 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16888 | done |
| 16889 | PS1='$ ' |
| 16890 | PS2='> ' |
| 16891 | PS4='+ ' |
| 16892 | |
| 16893 | # NLS nuisances. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16894 | LC_ALL=C |
| 16895 | export LC_ALL |
| 16896 | LANGUAGE=C |
| 16897 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16898 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16899 | # CDPATH. |
| 16900 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 16901 | |
| 16902 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16903 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 16904 | # ---------------------------------------- |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16905 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 16906 | # 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] | 16907 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16908 | as_fn_error () |
| 16909 | { |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16910 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 16911 | if test "$4"; then |
| 16912 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 16913 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16914 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16915 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16916 | as_fn_exit $as_status |
| 16917 | } # as_fn_error |
| 16918 | |
| 16919 | |
| 16920 | # as_fn_set_status STATUS |
| 16921 | # ----------------------- |
| 16922 | # Set $? to STATUS, without forking. |
| 16923 | as_fn_set_status () |
| 16924 | { |
| 16925 | return $1 |
| 16926 | } # as_fn_set_status |
| 16927 | |
| 16928 | # as_fn_exit STATUS |
| 16929 | # ----------------- |
| 16930 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 16931 | as_fn_exit () |
| 16932 | { |
| 16933 | set +e |
| 16934 | as_fn_set_status $1 |
| 16935 | exit $1 |
| 16936 | } # as_fn_exit |
| 16937 | |
| 16938 | # as_fn_unset VAR |
| 16939 | # --------------- |
| 16940 | # Portably unset VAR. |
| 16941 | as_fn_unset () |
| 16942 | { |
| 16943 | { eval $1=; unset $1;} |
| 16944 | } |
| 16945 | as_unset=as_fn_unset |
| 16946 | # as_fn_append VAR VALUE |
| 16947 | # ---------------------- |
| 16948 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 16949 | # advantage of any shell optimizations that allow amortized linear growth over |
| 16950 | # repeated appends, instead of the typical quadratic growth present in naive |
| 16951 | # implementations. |
| 16952 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 16953 | eval 'as_fn_append () |
| 16954 | { |
| 16955 | eval $1+=\$2 |
| 16956 | }' |
| 16957 | else |
| 16958 | as_fn_append () |
| 16959 | { |
| 16960 | eval $1=\$$1\$2 |
| 16961 | } |
| 16962 | fi # as_fn_append |
| 16963 | |
| 16964 | # as_fn_arith ARG... |
| 16965 | # ------------------ |
| 16966 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 16967 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 16968 | # must be portable across $(()) and expr. |
| 16969 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 16970 | eval 'as_fn_arith () |
| 16971 | { |
| 16972 | as_val=$(( $* )) |
| 16973 | }' |
| 16974 | else |
| 16975 | as_fn_arith () |
| 16976 | { |
| 16977 | as_val=`expr "$@" || test $? -eq 1` |
| 16978 | } |
| 16979 | fi # as_fn_arith |
| 16980 | |
| 16981 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16982 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 16983 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 16984 | as_expr=expr |
| 16985 | else |
| 16986 | as_expr=false |
| 16987 | fi |
| 16988 | |
| 16989 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 16990 | as_basename=basename |
| 16991 | else |
| 16992 | as_basename=false |
| 16993 | fi |
| 16994 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16995 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 16996 | as_dirname=dirname |
| 16997 | else |
| 16998 | as_dirname=false |
| 16999 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17000 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17001 | as_me=`$as_basename -- "$0" || |
| 17002 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 17003 | X"$0" : 'X\(//\)$' \| \ |
| 17004 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17005 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17006 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 17007 | s//\1/ |
| 17008 | q |
| 17009 | } |
| 17010 | /^X\/\(\/\/\)$/{ |
| 17011 | s//\1/ |
| 17012 | q |
| 17013 | } |
| 17014 | /^X\/\(\/\).*/{ |
| 17015 | s//\1/ |
| 17016 | q |
| 17017 | } |
| 17018 | s/.*/./; q'` |
| 17019 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17020 | # Avoid depending upon Character Ranges. |
| 17021 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 17022 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 17023 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 17024 | as_cr_digits='0123456789' |
| 17025 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17026 | |
| 17027 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17028 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17029 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17030 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17031 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17032 | xy) ECHO_C='\c';; |
| 17033 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 17034 | ECHO_T=' ';; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17035 | esac;; |
| 17036 | *) |
| 17037 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17038 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17040 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17041 | if test -d conf$$.dir; then |
| 17042 | rm -f conf$$.dir/conf$$.file |
| 17043 | else |
| 17044 | rm -f conf$$.dir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17045 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17046 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17047 | if (echo >conf$$.file) 2>/dev/null; then |
| 17048 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 17049 | as_ln_s='ln -s' |
| 17050 | # ... but there are two gotchas: |
| 17051 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 17052 | # 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] | 17053 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17054 | 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] | 17055 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17056 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17057 | as_ln_s=ln |
| 17058 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17059 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17060 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17061 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17062 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17063 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17064 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 17065 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17066 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17067 | |
| 17068 | # as_fn_mkdir_p |
| 17069 | # ------------- |
| 17070 | # Create "$as_dir" as a directory, including parents if necessary. |
| 17071 | as_fn_mkdir_p () |
| 17072 | { |
| 17073 | |
| 17074 | case $as_dir in #( |
| 17075 | -*) as_dir=./$as_dir;; |
| 17076 | esac |
| 17077 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 17078 | as_dirs= |
| 17079 | while :; do |
| 17080 | case $as_dir in #( |
| 17081 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 17082 | *) as_qdir=$as_dir;; |
| 17083 | esac |
| 17084 | as_dirs="'$as_qdir' $as_dirs" |
| 17085 | as_dir=`$as_dirname -- "$as_dir" || |
| 17086 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17087 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17088 | X"$as_dir" : 'X\(//\)$' \| \ |
| 17089 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 17090 | $as_echo X"$as_dir" | |
| 17091 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17092 | s//\1/ |
| 17093 | q |
| 17094 | } |
| 17095 | /^X\(\/\/\)[^/].*/{ |
| 17096 | s//\1/ |
| 17097 | q |
| 17098 | } |
| 17099 | /^X\(\/\/\)$/{ |
| 17100 | s//\1/ |
| 17101 | q |
| 17102 | } |
| 17103 | /^X\(\/\).*/{ |
| 17104 | s//\1/ |
| 17105 | q |
| 17106 | } |
| 17107 | s/.*/./; q'` |
| 17108 | test -d "$as_dir" && break |
| 17109 | done |
| 17110 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17111 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17112 | |
| 17113 | |
| 17114 | } # as_fn_mkdir_p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17115 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17116 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17117 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17118 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17119 | as_mkdir_p=false |
| 17120 | fi |
| 17121 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17122 | |
| 17123 | # as_fn_executable_p FILE |
| 17124 | # ----------------------- |
| 17125 | # Test if FILE is an executable regular file. |
| 17126 | as_fn_executable_p () |
| 17127 | { |
| 17128 | test -f "$1" && test -x "$1" |
| 17129 | } # as_fn_executable_p |
| 17130 | as_test_x='test -x' |
| 17131 | as_executable_p=as_fn_executable_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17132 | |
| 17133 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17134 | 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] | 17135 | |
| 17136 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17137 | 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] | 17138 | |
| 17139 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17140 | exec 6>&1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17141 | ## ----------------------------------- ## |
| 17142 | ## Main body of $CONFIG_STATUS script. ## |
| 17143 | ## ----------------------------------- ## |
| 17144 | _ASEOF |
| 17145 | 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] | 17146 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17147 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17148 | # 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] | 17149 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17150 | # values after options handling. |
| 17151 | ac_log=" |
Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 17152 | This file was extended by python $as_me 3.7, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17153 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17154 | |
| 17155 | CONFIG_FILES = $CONFIG_FILES |
| 17156 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17157 | CONFIG_LINKS = $CONFIG_LINKS |
| 17158 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17159 | $ $0 $@ |
| 17160 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17161 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 17162 | " |
| 17163 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17164 | _ACEOF |
| 17165 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17166 | case $ac_config_files in *" |
| 17167 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 17168 | esac |
| 17169 | |
| 17170 | case $ac_config_headers in *" |
| 17171 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 17172 | esac |
| 17173 | |
| 17174 | |
| 17175 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17176 | # Files that config.status was made for. |
Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 17177 | config_files="$ac_config_files" |
| 17178 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17179 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17180 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17181 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17182 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17183 | ac_cs_usage="\ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17184 | \`$as_me' instantiates files and other configuration actions |
| 17185 | from templates according to the current configuration. Unless the files |
| 17186 | 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] | 17187 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17188 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17189 | |
| 17190 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17191 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17192 | --config print configuration, then exit |
| 17193 | -q, --quiet, --silent |
| 17194 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17195 | -d, --debug don't remove temporary files |
| 17196 | --recheck update $as_me by reconfiguring in the same conditions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17197 | --file=FILE[:TEMPLATE] |
| 17198 | instantiate the configuration file FILE |
| 17199 | --header=FILE[:TEMPLATE] |
| 17200 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17201 | |
| 17202 | Configuration files: |
| 17203 | $config_files |
| 17204 | |
| 17205 | Configuration headers: |
| 17206 | $config_headers |
| 17207 | |
Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 17208 | Report bugs to <https://bugs.python.org/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 17209 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17210 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17211 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17212 | 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] | 17213 | ac_cs_version="\\ |
Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 17214 | python config.status 3.7 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17215 | configured by $0, generated by GNU Autoconf 2.69, |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17216 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17217 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17218 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17219 | This config.status script is free software; the Free Software Foundation |
| 17220 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17221 | |
| 17222 | ac_pwd='$ac_pwd' |
| 17223 | srcdir='$srcdir' |
| 17224 | INSTALL='$INSTALL' |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17225 | MKDIR_P='$MKDIR_P' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17226 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17227 | _ACEOF |
| 17228 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17229 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17230 | # 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] | 17231 | ac_need_defaults=: |
| 17232 | while test $# != 0 |
| 17233 | do |
| 17234 | case $1 in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17235 | --*=?*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17236 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17237 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17238 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17239 | ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17240 | --*=) |
| 17241 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17242 | ac_optarg= |
| 17243 | ac_shift=: |
| 17244 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17245 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17246 | ac_option=$1 |
| 17247 | ac_optarg=$2 |
| 17248 | ac_shift=shift |
| 17249 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17250 | esac |
| 17251 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17252 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17253 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17254 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17255 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17256 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17257 | $as_echo "$ac_cs_version"; exit ;; |
| 17258 | --config | --confi | --conf | --con | --co | --c ) |
| 17259 | $as_echo "$ac_cs_config"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17260 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17261 | debug=: ;; |
| 17262 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17263 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17264 | case $ac_optarg in |
| 17265 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17266 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17267 | esac |
| 17268 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17269 | ac_need_defaults=false;; |
| 17270 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17271 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17272 | case $ac_optarg in |
| 17273 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17274 | esac |
| 17275 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17276 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17277 | --he | --h) |
| 17278 | # Conflict between --help and --header |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17279 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17280 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17281 | --help | --hel | -h ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17282 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17283 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 17284 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 17285 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17286 | |
| 17287 | # This is an error. |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17288 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17289 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17290 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17291 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17292 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17293 | |
| 17294 | esac |
| 17295 | shift |
| 17296 | done |
| 17297 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17298 | ac_configure_extra_args= |
| 17299 | |
| 17300 | if $ac_cs_silent; then |
| 17301 | exec 6>/dev/null |
| 17302 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 17303 | fi |
| 17304 | |
| 17305 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17306 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17307 | if \$ac_cs_recheck; then |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17308 | 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] | 17309 | shift |
| 17310 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 17311 | CONFIG_SHELL='$SHELL' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17312 | export CONFIG_SHELL |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17313 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17314 | fi |
| 17315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17316 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17317 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17318 | exec 5>>config.log |
| 17319 | { |
| 17320 | echo |
| 17321 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17322 | ## Running $as_me. ## |
| 17323 | _ASBOX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17324 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17325 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17326 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17327 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17328 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17329 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17330 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17331 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17332 | |
| 17333 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17334 | for ac_config_target in $ac_config_targets |
| 17335 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17336 | case $ac_config_target in |
| 17337 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 17338 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 17339 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 17340 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 17341 | "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] | 17342 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17343 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17344 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17345 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17346 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17347 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17348 | esac |
| 17349 | done |
| 17350 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17351 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17352 | # If the user did not use the arguments to specify the items to instantiate, |
| 17353 | # then the envvar interface is used. Set only those that are not. |
| 17354 | # We use the long form for the default assignment because of an extremely |
| 17355 | # bizarre bug on SunOS 4.1.3. |
| 17356 | if $ac_need_defaults; then |
| 17357 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17358 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17359 | fi |
| 17360 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17361 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17362 | # 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] | 17363 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17364 | # Hook for its removal unless debugging. |
| 17365 | # Note that there is a small window in which the directory will not be cleaned: |
| 17366 | # 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] | 17367 | $debug || |
| 17368 | { |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17369 | tmp= ac_tmp= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17370 | trap 'exit_status=$? |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17371 | : "${ac_tmp:=$tmp}" |
| 17372 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17373 | ' 0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17374 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17375 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17376 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17378 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17379 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17380 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17381 | } || |
| 17382 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17383 | tmp=./conf$$-$RANDOM |
| 17384 | (umask 077 && mkdir "$tmp") |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17385 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17386 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17387 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17388 | # Set up the scripts for CONFIG_FILES section. |
| 17389 | # No need to generate them if there are no CONFIG_FILES. |
| 17390 | # This happens for instance with `./config.status config.h'. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17391 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17392 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17393 | |
| 17394 | ac_cr=`echo X | tr X '\015'` |
| 17395 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 17396 | # But we know of no other shell where ac_cr would be empty at this |
| 17397 | # point, so we can use a bashism as a fallback. |
| 17398 | if test "x$ac_cr" = x; then |
| 17399 | eval ac_cr=\$\'\\r\' |
| 17400 | fi |
| 17401 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 17402 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17403 | ac_cs_awk_cr='\\r' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17404 | else |
| 17405 | ac_cs_awk_cr=$ac_cr |
| 17406 | fi |
| 17407 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17408 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17409 | _ACEOF |
| 17410 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17411 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17412 | { |
| 17413 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 17414 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 17415 | echo "_ACEOF" |
| 17416 | } >conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17417 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 17418 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17419 | ac_delim='%!_!# ' |
| 17420 | for ac_last_try in false false false false false :; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17421 | . ./conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17422 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17423 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17424 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 17425 | if test $ac_delim_n = $ac_delim_num; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17426 | break |
| 17427 | elif $ac_last_try; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17428 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17429 | else |
| 17430 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17431 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17432 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17433 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17434 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17435 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17436 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17437 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17438 | sed -n ' |
| 17439 | h |
| 17440 | s/^/S["/; s/!.*/"]=/ |
| 17441 | p |
| 17442 | g |
| 17443 | s/^[^!]*!// |
| 17444 | :repl |
| 17445 | t repl |
| 17446 | s/'"$ac_delim"'$// |
| 17447 | t delim |
| 17448 | :nl |
| 17449 | h |
| 17450 | s/\(.\{148\}\)..*/\1/ |
| 17451 | t more1 |
| 17452 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 17453 | p |
| 17454 | n |
| 17455 | b repl |
| 17456 | :more1 |
| 17457 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17458 | p |
| 17459 | g |
| 17460 | s/.\{148\}// |
| 17461 | t nl |
| 17462 | :delim |
| 17463 | h |
| 17464 | s/\(.\{148\}\)..*/\1/ |
| 17465 | t more2 |
| 17466 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 17467 | p |
| 17468 | b |
| 17469 | :more2 |
| 17470 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17471 | p |
| 17472 | g |
| 17473 | s/.\{148\}// |
| 17474 | t delim |
| 17475 | ' <conf$$subs.awk | sed ' |
| 17476 | /^[^""]/{ |
| 17477 | N |
| 17478 | s/\n// |
| 17479 | } |
| 17480 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17481 | rm -f conf$$subs.awk |
| 17482 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17483 | _ACAWK |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17484 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17485 | for (key in S) S_is_set[key] = 1 |
| 17486 | FS = "" |
| 17487 | |
| 17488 | } |
| 17489 | { |
| 17490 | line = $ 0 |
| 17491 | nfields = split(line, field, "@") |
| 17492 | substed = 0 |
| 17493 | len = length(field[1]) |
| 17494 | for (i = 2; i < nfields; i++) { |
| 17495 | key = field[i] |
| 17496 | keylen = length(key) |
| 17497 | if (S_is_set[key]) { |
| 17498 | value = S[key] |
| 17499 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 17500 | len += length(value) + length(field[++i]) |
| 17501 | substed = 1 |
| 17502 | } else |
| 17503 | len += 1 + keylen |
| 17504 | } |
| 17505 | |
| 17506 | print line |
| 17507 | } |
| 17508 | |
| 17509 | _ACAWK |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17510 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17511 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17512 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 17513 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 17514 | else |
| 17515 | cat |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17516 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17517 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17518 | _ACEOF |
| 17519 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17520 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 17521 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17522 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17523 | # (actually we leave an empty line to preserve line numbers). |
| 17524 | if test "x$srcdir" = x.; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17525 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 17526 | h |
| 17527 | s/// |
| 17528 | s/^/:/ |
| 17529 | s/[ ]*$/:/ |
| 17530 | s/:\$(srcdir):/:/g |
| 17531 | s/:\${srcdir}:/:/g |
| 17532 | s/:@srcdir@:/:/g |
| 17533 | s/^:*// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17534 | s/:*$// |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17535 | x |
| 17536 | s/\(=[ ]*\).*/\1/ |
| 17537 | G |
| 17538 | s/\n// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17539 | s/^[^=]*=[ ]*$// |
| 17540 | }' |
| 17541 | fi |
| 17542 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17543 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17544 | fi # test -n "$CONFIG_FILES" |
| 17545 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17546 | # Set up the scripts for CONFIG_HEADERS section. |
| 17547 | # No need to generate them if there are no CONFIG_HEADERS. |
| 17548 | # This happens for instance with `./config.status Makefile'. |
| 17549 | if test -n "$CONFIG_HEADERS"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17550 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17551 | BEGIN { |
| 17552 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17553 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17554 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 17555 | # here-document in config.status, that substitutes the proper values into |
| 17556 | # config.h.in to produce config.h. |
| 17557 | |
| 17558 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 17559 | # handling of long lines. |
| 17560 | ac_delim='%!_!# ' |
| 17561 | for ac_last_try in false false :; do |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17562 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 17563 | if test -z "$ac_tt"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17564 | break |
| 17565 | elif $ac_last_try; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17566 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17567 | else |
| 17568 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17569 | fi |
| 17570 | done |
| 17571 | |
| 17572 | # For the awk script, D is an array of macro values keyed by name, |
| 17573 | # likewise P contains macro parameters if any. Preserve backslash |
| 17574 | # newline sequences. |
| 17575 | |
| 17576 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 17577 | sed -n ' |
| 17578 | s/.\{148\}/&'"$ac_delim"'/g |
| 17579 | t rset |
| 17580 | :rset |
| 17581 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 17582 | t def |
| 17583 | d |
| 17584 | :def |
| 17585 | s/\\$// |
| 17586 | t bsnl |
| 17587 | s/["\\]/\\&/g |
| 17588 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17589 | D["\1"]=" \3"/p |
| 17590 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 17591 | d |
| 17592 | :bsnl |
| 17593 | s/["\\]/\\&/g |
| 17594 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17595 | D["\1"]=" \3\\\\\\n"\\/p |
| 17596 | t cont |
| 17597 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 17598 | t cont |
| 17599 | d |
| 17600 | :cont |
| 17601 | n |
| 17602 | s/.\{148\}/&'"$ac_delim"'/g |
| 17603 | t clear |
| 17604 | :clear |
| 17605 | s/\\$// |
| 17606 | t bsnlc |
| 17607 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 17608 | d |
| 17609 | :bsnlc |
| 17610 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 17611 | b cont |
| 17612 | ' <confdefs.h | sed ' |
| 17613 | s/'"$ac_delim"'/"\\\ |
| 17614 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17615 | |
| 17616 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17617 | for (key in D) D_is_set[key] = 1 |
| 17618 | FS = "" |
| 17619 | } |
| 17620 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 17621 | line = \$ 0 |
| 17622 | split(line, arg, " ") |
| 17623 | if (arg[1] == "#") { |
| 17624 | defundef = arg[2] |
| 17625 | mac1 = arg[3] |
| 17626 | } else { |
| 17627 | defundef = substr(arg[1], 2) |
| 17628 | mac1 = arg[2] |
| 17629 | } |
| 17630 | split(mac1, mac2, "(") #) |
| 17631 | macro = mac2[1] |
| 17632 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 17633 | if (D_is_set[macro]) { |
| 17634 | # Preserve the white space surrounding the "#". |
| 17635 | print prefix "define", macro P[macro] D[macro] |
| 17636 | next |
| 17637 | } else { |
| 17638 | # Replace #undef with comments. This is necessary, for example, |
| 17639 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 17640 | # on some systems where configure will not decide to define it. |
| 17641 | if (defundef == "undef") { |
| 17642 | print "/*", prefix defundef, macro, "*/" |
| 17643 | next |
| 17644 | } |
| 17645 | } |
| 17646 | } |
| 17647 | { print } |
| 17648 | _ACAWK |
| 17649 | _ACEOF |
| 17650 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17651 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17652 | fi # test -n "$CONFIG_HEADERS" |
| 17653 | |
| 17654 | |
| 17655 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 17656 | shift |
| 17657 | for ac_tag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17658 | do |
| 17659 | case $ac_tag in |
| 17660 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 17661 | esac |
| 17662 | case $ac_mode$ac_tag in |
| 17663 | :[FHL]*:*);; |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17664 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17665 | :[FH]-) ac_tag=-:-;; |
| 17666 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 17667 | esac |
| 17668 | ac_save_IFS=$IFS |
| 17669 | IFS=: |
| 17670 | set x $ac_tag |
| 17671 | IFS=$ac_save_IFS |
| 17672 | shift |
| 17673 | ac_file=$1 |
| 17674 | shift |
| 17675 | |
| 17676 | case $ac_mode in |
| 17677 | :L) ac_source=$1;; |
| 17678 | :[FH]) |
| 17679 | ac_file_inputs= |
| 17680 | for ac_f |
| 17681 | do |
| 17682 | case $ac_f in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17683 | -) ac_f="$ac_tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17684 | *) # Look for the file first in the build tree, then in the source tree |
| 17685 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 17686 | # because $ac_f cannot contain `:'. |
| 17687 | test -f "$ac_f" || |
| 17688 | case $ac_f in |
| 17689 | [\\/$]*) false;; |
| 17690 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 17691 | esac || |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17692 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17693 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17694 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 17695 | as_fn_append ac_file_inputs " '$ac_f'" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17696 | done |
| 17697 | |
| 17698 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17699 | # use $as_me), people would be surprised to read: |
| 17700 | # /* config.h. Generated by config.status. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17701 | configure_input='Generated from '` |
| 17702 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 17703 | `' by configure.' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17704 | if test x"$ac_file" != x-; then |
| 17705 | configure_input="$ac_file. $configure_input" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17706 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 17707 | $as_echo "$as_me: creating $ac_file" >&6;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17708 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17709 | # Neutralize special characters interpreted by sed in replacement strings. |
| 17710 | case $configure_input in #( |
| 17711 | *\&* | *\|* | *\\* ) |
| 17712 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 17713 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 17714 | *) ac_sed_conf_input=$configure_input;; |
| 17715 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17716 | |
| 17717 | case $ac_tag in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17718 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 17719 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17720 | esac |
| 17721 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17722 | esac |
| 17723 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17724 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17725 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17726 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17727 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17728 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17729 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17730 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17731 | s//\1/ |
| 17732 | q |
| 17733 | } |
| 17734 | /^X\(\/\/\)[^/].*/{ |
| 17735 | s//\1/ |
| 17736 | q |
| 17737 | } |
| 17738 | /^X\(\/\/\)$/{ |
| 17739 | s//\1/ |
| 17740 | q |
| 17741 | } |
| 17742 | /^X\(\/\).*/{ |
| 17743 | s//\1/ |
| 17744 | q |
| 17745 | } |
| 17746 | s/.*/./; q'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17747 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17748 | ac_builddir=. |
| 17749 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17750 | case "$ac_dir" in |
| 17751 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17752 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17753 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17754 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17755 | 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] | 17756 | case $ac_top_builddir_sub in |
| 17757 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17758 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 17759 | esac ;; |
| 17760 | esac |
| 17761 | ac_abs_top_builddir=$ac_pwd |
| 17762 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 17763 | # for backward compatibility: |
| 17764 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17765 | |
| 17766 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17767 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17768 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17769 | ac_top_srcdir=$ac_top_builddir_sub |
| 17770 | ac_abs_top_srcdir=$ac_pwd ;; |
| 17771 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17772 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17773 | ac_top_srcdir=$srcdir |
| 17774 | ac_abs_top_srcdir=$srcdir ;; |
| 17775 | *) # Relative name. |
| 17776 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 17777 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 17778 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17779 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17780 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17782 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17783 | case $ac_mode in |
| 17784 | :F) |
| 17785 | # |
| 17786 | # CONFIG_FILE |
| 17787 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17788 | |
| 17789 | case $INSTALL in |
| 17790 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17791 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17792 | esac |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17793 | ac_MKDIR_P=$MKDIR_P |
| 17794 | case $MKDIR_P in |
| 17795 | [\\/$]* | ?:[\\/]* ) ;; |
| 17796 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 17797 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17798 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17799 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17800 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17801 | # If the template does not know about datarootdir, expand it. |
| 17802 | # FIXME: This hack should be removed a few years after 2.60. |
| 17803 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17804 | ac_sed_dataroot=' |
| 17805 | /datarootdir/ { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17806 | p |
| 17807 | q |
| 17808 | } |
| 17809 | /@datadir@/p |
| 17810 | /@docdir@/p |
| 17811 | /@infodir@/p |
| 17812 | /@localedir@/p |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17813 | /@mandir@/p' |
| 17814 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17815 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 17816 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17817 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 17818 | $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] | 17819 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17820 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17821 | ac_datarootdir_hack=' |
| 17822 | s&@datadir@&$datadir&g |
| 17823 | s&@docdir@&$docdir&g |
| 17824 | s&@infodir@&$infodir&g |
| 17825 | s&@localedir@&$localedir&g |
| 17826 | s&@mandir@&$mandir&g |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17827 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17828 | esac |
| 17829 | _ACEOF |
| 17830 | |
| 17831 | # Neutralize VPATH when `$srcdir' = `.'. |
| 17832 | # Shell code in configure.ac might set extrasub. |
| 17833 | # FIXME: do we really want to maintain this feature? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17834 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17835 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17836 | $extrasub |
| 17837 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17838 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17839 | :t |
| 17840 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17841 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17842 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17843 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17844 | s&@srcdir@&$ac_srcdir&;t t |
| 17845 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 17846 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 17847 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 17848 | s&@builddir@&$ac_builddir&;t t |
| 17849 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 17850 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 17851 | s&@INSTALL@&$ac_INSTALL&;t t |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17852 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17853 | $ac_datarootdir_hack |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17854 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17855 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 17856 | >$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] | 17857 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17858 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17859 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 17860 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 17861 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17862 | { $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] | 17863 | which seems to be undefined. Please make sure it is defined" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17864 | $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] | 17865 | which seems to be undefined. Please make sure it is defined" >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17866 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17867 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17868 | case $ac_file in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17869 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 17870 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17871 | esac \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17872 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17873 | ;; |
| 17874 | :H) |
| 17875 | # |
| 17876 | # CONFIG_HEADER |
| 17877 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17878 | if test x"$ac_file" != x-; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17879 | { |
| 17880 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17881 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 17882 | } >"$ac_tmp/config.h" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17883 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17884 | 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] | 17885 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 17886 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17887 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17888 | rm -f "$ac_file" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17889 | mv "$ac_tmp/config.h" "$ac_file" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17890 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17891 | fi |
| 17892 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17893 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17894 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17895 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17896 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17897 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17898 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17899 | |
| 17900 | esac |
| 17901 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17902 | |
| 17903 | case $ac_file$ac_mode in |
| 17904 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; |
| 17905 | |
| 17906 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17907 | done # for ac_tag |
| 17908 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17909 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17910 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17911 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17912 | ac_clean_files=$ac_clean_files_save |
| 17913 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17914 | test $ac_write_fail = 0 || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17915 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17917 | |
| 17918 | # configure is writing to config.log, and then calls config.status. |
| 17919 | # config.status does its own redirection, appending to config.log. |
| 17920 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17921 | # by configure, so config.status won't be able to write to it; its |
| 17922 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17923 | # effectively closing config.log, so it can be properly (re)opened and |
| 17924 | # appended to by config.status. When coming back to configure, we |
| 17925 | # need to make the FD available again. |
| 17926 | if test "$no_create" != yes; then |
| 17927 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17928 | ac_config_status_args= |
| 17929 | test "$silent" = yes && |
| 17930 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17931 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17932 | $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] | 17933 | exec 5>>config.log |
| 17934 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17935 | # would make configure fail if this is the last instruction. |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17936 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17937 | fi |
| 17938 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 17939 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 17940 | $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] | 17941 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17942 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17943 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17944 | echo "creating Modules/Setup" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17945 | if test ! -f Modules/Setup |
| 17946 | then |
| 17947 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 17948 | fi |
| 17949 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17950 | echo "creating Modules/Setup.local" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17951 | if test ! -f Modules/Setup.local |
| 17952 | then |
| 17953 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 17954 | fi |
| 17955 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17956 | echo "creating Makefile" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17957 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 17958 | -s Modules \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17959 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17960 | mv config.c Modules |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 17961 | |
| 17962 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then |
| 17963 | echo "" >&6 |
| 17964 | echo "" >&6 |
Brett Cannon | b4e5fee | 2017-06-09 13:56:57 -0700 | [diff] [blame] | 17965 | 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] | 17966 | echo "please run ./configure --enable-optimizations" >&6 |
Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 17967 | echo "" >&6 |
| 17968 | echo "" >&6 |
| 17969 | fi |
| 17970 | |