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. |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for python 3.5. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | # |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 5 | # Report bugs to <http://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 |
| 270 | $0: http://bugs.python.org/ about your system, including |
| 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' |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 583 | PACKAGE_VERSION='3.5' |
| 584 | PACKAGE_STRING='python 3.5' |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 586 | PACKAGE_URL='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | |
| 588 | ac_unique_file="Include/object.h" |
| 589 | # Factoring default headers for most tests. |
| 590 | ac_includes_default="\ |
| 591 | #include <stdio.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 592 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <sys/types.h> |
| 594 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 595 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 596 | # include <sys/stat.h> |
| 597 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 598 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 599 | # include <stdlib.h> |
| 600 | # include <stddef.h> |
| 601 | #else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 602 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | # include <stdlib.h> |
| 604 | # endif |
| 605 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRING_H |
| 607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 608 | # include <memory.h> |
| 609 | # endif |
| 610 | # include <string.h> |
| 611 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 613 | # include <strings.h> |
| 614 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 615 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <inttypes.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 617 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 618 | #ifdef HAVE_STDINT_H |
| 619 | # include <stdint.h> |
| 620 | #endif |
| 621 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 622 | # include <unistd.h> |
| 623 | #endif" |
| 624 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 625 | ac_subst_vars='LTLIBOBJS |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 626 | ENSUREPIP |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 627 | SRCDIRS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 628 | THREADHEADERS |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 629 | LIBPL |
| 630 | PY_ENABLE_SHARED |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 631 | EXT_SUFFIX |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 632 | SOABI |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 633 | LIBC |
| 634 | LIBM |
| 635 | HAVE_GETHOSTBYNAME |
| 636 | HAVE_GETHOSTBYNAME_R |
| 637 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 638 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 639 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 640 | LIBOBJS |
| 641 | TRUE |
| 642 | MACHDEP_OBJS |
| 643 | DYNLOADFILE |
| 644 | DLINCLDIR |
| 645 | THREADOBJ |
| 646 | LDLAST |
| 647 | USE_THREAD_MODULE |
| 648 | SIGNAL_OBJS |
| 649 | USE_SIGNAL_MODULE |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 650 | TCLTK_LIBS |
| 651 | TCLTK_INCLUDES |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 652 | LIBFFI_INCLUDEDIR |
Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 653 | PKG_CONFIG_LIBDIR |
| 654 | PKG_CONFIG_PATH |
| 655 | PKG_CONFIG |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 656 | SHLIBS |
| 657 | CFLAGSFORSHARED |
| 658 | LINKFORSHARED |
| 659 | CCSHARED |
| 660 | BLDSHARED |
| 661 | LDCXXSHARED |
| 662 | LDSHARED |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 663 | SHLIB_SUFFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 664 | LIBTOOL_CRUFT |
| 665 | OTHER_LIBTOOL_OPT |
| 666 | UNIVERSAL_ARCH_FLAGS |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 667 | CFLAGS_NODIST |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 668 | BASECFLAGS |
| 669 | OPT |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 670 | LLVM_PROF_FOUND |
| 671 | LLVM_PROF_ERR |
| 672 | LLVM_PROF_FILE |
| 673 | LLVM_PROF_MERGER |
| 674 | PGO_PROF_USE_FLAG |
| 675 | PGO_PROF_GEN_FLAG |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 676 | ABIFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 677 | LN |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 678 | MKDIR_P |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 679 | INSTALL_DATA |
| 680 | INSTALL_SCRIPT |
| 681 | INSTALL_PROGRAM |
Kushal Das | 02d23a2 | 2014-04-15 23:50:06 +0530 | [diff] [blame] | 682 | OPCODEHGEN |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 683 | PYTHON |
| 684 | ASDLGEN |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 685 | ac_ct_READELF |
| 686 | READELF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 687 | ARFLAGS |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 688 | ac_ct_AR |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 689 | AR |
| 690 | RANLIB |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 691 | USE_INLINE |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 692 | GNULD |
| 693 | LINKCC |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 694 | LDVERSION |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 695 | RUNSHARED |
| 696 | INSTSONAME |
| 697 | LDLIBRARYDIR |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 698 | PY3LIBRARY |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 699 | BLDLIBRARY |
| 700 | DLLLIBRARY |
| 701 | LDLIBRARY |
| 702 | LIBRARY |
| 703 | BUILDEXEEXT |
| 704 | EGREP |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 705 | NO_AS_NEEDED |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 706 | PLATFORM_TRIPLET |
doko@ubuntu.com | 092f616 | 2015-04-15 20:45:33 +0200 | [diff] [blame] | 707 | PLATDIR |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 708 | MULTIARCH |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 709 | ac_ct_CXX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 710 | MAINCC |
| 711 | CXX |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 712 | GREP |
| 713 | CPP |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 714 | OBJEXT |
| 715 | EXEEXT |
| 716 | ac_ct_CC |
| 717 | CPPFLAGS |
| 718 | LDFLAGS |
| 719 | CFLAGS |
| 720 | CC |
| 721 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 722 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 723 | SGI_ABI |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 724 | _PYTHON_HOST_PLATFORM |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 725 | MACHDEP |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 726 | FRAMEWORKINSTALLAPPSPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 727 | FRAMEWORKUNIXTOOLSPREFIX |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 728 | FRAMEWORKPYTHONW |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 729 | FRAMEWORKALTINSTALLLAST |
| 730 | FRAMEWORKALTINSTALLFIRST |
| 731 | FRAMEWORKINSTALLLAST |
| 732 | FRAMEWORKINSTALLFIRST |
| 733 | PYTHONFRAMEWORKINSTALLDIR |
| 734 | PYTHONFRAMEWORKPREFIX |
| 735 | PYTHONFRAMEWORKDIR |
| 736 | PYTHONFRAMEWORKIDENTIFIER |
| 737 | PYTHONFRAMEWORK |
| 738 | LIPO_32BIT_FLAGS |
| 739 | ARCH_RUN_32BIT |
| 740 | UNIVERSALSDK |
| 741 | CONFIG_ARGS |
| 742 | SOVERSION |
| 743 | VERSION |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 744 | PYTHON_FOR_BUILD |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 745 | host_os |
| 746 | host_vendor |
| 747 | host_cpu |
| 748 | host |
| 749 | build_os |
| 750 | build_vendor |
| 751 | build_cpu |
| 752 | build |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 753 | HAS_HG |
| 754 | HGBRANCH |
| 755 | HGTAG |
| 756 | HGVERSION |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 757 | BASECPPFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 758 | target_alias |
| 759 | host_alias |
| 760 | build_alias |
| 761 | LIBS |
| 762 | ECHO_T |
| 763 | ECHO_N |
| 764 | ECHO_C |
| 765 | DEFS |
| 766 | mandir |
| 767 | localedir |
| 768 | libdir |
| 769 | psdir |
| 770 | pdfdir |
| 771 | dvidir |
| 772 | htmldir |
| 773 | infodir |
| 774 | docdir |
| 775 | oldincludedir |
| 776 | includedir |
| 777 | localstatedir |
| 778 | sharedstatedir |
| 779 | sysconfdir |
| 780 | datadir |
| 781 | datarootdir |
| 782 | libexecdir |
| 783 | sbindir |
| 784 | bindir |
| 785 | program_transform_name |
| 786 | prefix |
| 787 | exec_prefix |
| 788 | PACKAGE_URL |
| 789 | PACKAGE_BUGREPORT |
| 790 | PACKAGE_STRING |
| 791 | PACKAGE_VERSION |
| 792 | PACKAGE_TARNAME |
| 793 | PACKAGE_NAME |
| 794 | PATH_SEPARATOR |
| 795 | SHELL' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 796 | ac_subst_files='' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 797 | ac_user_opts=' |
| 798 | enable_option_checking |
| 799 | enable_universalsdk |
| 800 | with_universal_archs |
| 801 | with_framework_name |
| 802 | enable_framework |
| 803 | with_gcc |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 804 | with_icc |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 805 | with_cxx_main |
| 806 | with_suffix |
| 807 | enable_shared |
| 808 | enable_profiling |
| 809 | with_pydebug |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 810 | with_hash_algorithm |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 811 | with_address_sanitizer |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 812 | with_libs |
| 813 | with_system_expat |
| 814 | with_system_ffi |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 815 | with_system_libmpdec |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 816 | enable_loadable_sqlite_extensions |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 817 | with_tcltk_includes |
| 818 | with_tcltk_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 819 | with_dbmliborder |
| 820 | with_signal_module |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 821 | with_threads |
| 822 | with_thread |
| 823 | enable_ipv6 |
| 824 | with_doc_strings |
| 825 | with_tsc |
| 826 | with_pymalloc |
| 827 | with_valgrind |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 828 | with_fpectl |
| 829 | with_libm |
| 830 | with_libc |
| 831 | enable_big_digits |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 832 | with_computed_gotos |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 833 | with_ensurepip |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 834 | ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 835 | ac_precious_vars='build_alias |
| 836 | host_alias |
| 837 | target_alias |
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 838 | MACHDEP |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 839 | CC |
| 840 | CFLAGS |
| 841 | LDFLAGS |
| 842 | LIBS |
| 843 | CPPFLAGS |
Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 844 | CPP |
| 845 | PKG_CONFIG |
| 846 | PKG_CONFIG_PATH |
| 847 | PKG_CONFIG_LIBDIR' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 848 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 849 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 850 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 851 | ac_init_help= |
| 852 | ac_init_version=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 853 | ac_unrecognized_opts= |
| 854 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 855 | # The variables have the same names as the options, with |
| 856 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 857 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 858 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 859 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 860 | no_recursion= |
| 861 | prefix=NONE |
| 862 | program_prefix=NONE |
| 863 | program_suffix=NONE |
| 864 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 865 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 866 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 867 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 868 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 869 | x_includes=NONE |
| 870 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 871 | |
| 872 | # Installation directory options. |
| 873 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 874 | # and all the variables that are supposed to be based on exec_prefix |
| 875 | # by default will actually change. |
| 876 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 877 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 878 | bindir='${exec_prefix}/bin' |
| 879 | sbindir='${exec_prefix}/sbin' |
| 880 | libexecdir='${exec_prefix}/libexec' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 881 | datarootdir='${prefix}/share' |
| 882 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 883 | sysconfdir='${prefix}/etc' |
| 884 | sharedstatedir='${prefix}/com' |
| 885 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 886 | includedir='${prefix}/include' |
| 887 | oldincludedir='/usr/include' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 888 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 889 | infodir='${datarootdir}/info' |
| 890 | htmldir='${docdir}' |
| 891 | dvidir='${docdir}' |
| 892 | pdfdir='${docdir}' |
| 893 | psdir='${docdir}' |
| 894 | libdir='${exec_prefix}/lib' |
| 895 | localedir='${datarootdir}/locale' |
| 896 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 897 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 898 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 899 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 900 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 901 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 902 | # If the previous option needs an argument, assign it. |
| 903 | if test -n "$ac_prev"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 904 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 905 | ac_prev= |
| 906 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 907 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 908 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 909 | case $ac_option in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 910 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 911 | *=) ac_optarg= ;; |
| 912 | *) ac_optarg=yes ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 913 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 914 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 915 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 916 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 917 | case $ac_dashdash$ac_option in |
| 918 | --) |
| 919 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 920 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 921 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 922 | ac_prev=bindir ;; |
| 923 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 924 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 925 | |
| 926 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 927 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 928 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 929 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 930 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 931 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 932 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 933 | ac_prev=cache_file ;; |
| 934 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 935 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 936 | cache_file=$ac_optarg ;; |
| 937 | |
| 938 | --config-cache | -C) |
| 939 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 940 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 941 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 942 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 943 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 944 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 945 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 946 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 947 | | --dataroo | --dataro | --datar) |
| 948 | ac_prev=datarootdir ;; |
| 949 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 950 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 951 | datarootdir=$ac_optarg ;; |
| 952 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 953 | -disable-* | --disable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 954 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 955 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 956 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 957 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 958 | ac_useropt_orig=$ac_useropt |
| 959 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 960 | case $ac_user_opts in |
| 961 | *" |
| 962 | "enable_$ac_useropt" |
| 963 | "*) ;; |
| 964 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 965 | ac_unrecognized_sep=', ';; |
| 966 | esac |
| 967 | eval enable_$ac_useropt=no ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 968 | |
| 969 | -docdir | --docdir | --docdi | --doc | --do) |
| 970 | ac_prev=docdir ;; |
| 971 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 972 | docdir=$ac_optarg ;; |
| 973 | |
| 974 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 975 | ac_prev=dvidir ;; |
| 976 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 977 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 978 | |
| 979 | -enable-* | --enable-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 980 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 981 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 982 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 983 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 984 | ac_useropt_orig=$ac_useropt |
| 985 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 986 | case $ac_user_opts in |
| 987 | *" |
| 988 | "enable_$ac_useropt" |
| 989 | "*) ;; |
| 990 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 991 | ac_unrecognized_sep=', ';; |
| 992 | esac |
| 993 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 994 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 995 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 996 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 997 | | --exec | --exe | --ex) |
| 998 | ac_prev=exec_prefix ;; |
| 999 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1000 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1001 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1002 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1003 | |
| 1004 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1005 | # Obsolete; use --with-gas. |
| 1006 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1007 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1008 | -help | --help | --hel | --he | -h) |
| 1009 | ac_init_help=long ;; |
| 1010 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1011 | ac_init_help=recursive ;; |
| 1012 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1013 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1014 | |
| 1015 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1016 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1017 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1018 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1019 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1020 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1021 | ac_prev=htmldir ;; |
| 1022 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1023 | | --ht=*) |
| 1024 | htmldir=$ac_optarg ;; |
| 1025 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1026 | -includedir | --includedir | --includedi | --included | --include \ |
| 1027 | | --includ | --inclu | --incl | --inc) |
| 1028 | ac_prev=includedir ;; |
| 1029 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1030 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1031 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1032 | |
| 1033 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1034 | ac_prev=infodir ;; |
| 1035 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1036 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1037 | |
| 1038 | -libdir | --libdir | --libdi | --libd) |
| 1039 | ac_prev=libdir ;; |
| 1040 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1041 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1042 | |
| 1043 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1044 | | --libexe | --libex | --libe) |
| 1045 | ac_prev=libexecdir ;; |
| 1046 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1047 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1048 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1049 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1050 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1051 | ac_prev=localedir ;; |
| 1052 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1053 | localedir=$ac_optarg ;; |
| 1054 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1055 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1056 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1057 | ac_prev=localstatedir ;; |
| 1058 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1059 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1060 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1061 | |
| 1062 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1063 | ac_prev=mandir ;; |
| 1064 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1065 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1066 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1067 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1068 | # Obsolete; use --without-fp. |
| 1069 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1070 | |
| 1071 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1072 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1073 | no_create=yes ;; |
| 1074 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1075 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1076 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1077 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1078 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1079 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1080 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1081 | | --oldin | --oldi | --old | --ol | --o) |
| 1082 | ac_prev=oldincludedir ;; |
| 1083 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1084 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1085 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1086 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1087 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1088 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1089 | ac_prev=prefix ;; |
| 1090 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1091 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1092 | |
| 1093 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1094 | | --program-pre | --program-pr | --program-p) |
| 1095 | ac_prev=program_prefix ;; |
| 1096 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1097 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1098 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1099 | |
| 1100 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1101 | | --program-suf | --program-su | --program-s) |
| 1102 | ac_prev=program_suffix ;; |
| 1103 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1104 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1105 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1106 | |
| 1107 | -program-transform-name | --program-transform-name \ |
| 1108 | | --program-transform-nam | --program-transform-na \ |
| 1109 | | --program-transform-n | --program-transform- \ |
| 1110 | | --program-transform | --program-transfor \ |
| 1111 | | --program-transfo | --program-transf \ |
| 1112 | | --program-trans | --program-tran \ |
| 1113 | | --progr-tra | --program-tr | --program-t) |
| 1114 | ac_prev=program_transform_name ;; |
| 1115 | -program-transform-name=* | --program-transform-name=* \ |
| 1116 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1117 | | --program-transform-n=* | --program-transform-=* \ |
| 1118 | | --program-transform=* | --program-transfor=* \ |
| 1119 | | --program-transfo=* | --program-transf=* \ |
| 1120 | | --program-trans=* | --program-tran=* \ |
| 1121 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1122 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1123 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1124 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1125 | ac_prev=pdfdir ;; |
| 1126 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1127 | pdfdir=$ac_optarg ;; |
| 1128 | |
| 1129 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1130 | ac_prev=psdir ;; |
| 1131 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1132 | psdir=$ac_optarg ;; |
| 1133 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1134 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1135 | | -silent | --silent | --silen | --sile | --sil) |
| 1136 | silent=yes ;; |
| 1137 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1138 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1139 | ac_prev=sbindir ;; |
| 1140 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1141 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1142 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1143 | |
| 1144 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1145 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1146 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1147 | | --sha | --sh) |
| 1148 | ac_prev=sharedstatedir ;; |
| 1149 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1150 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1151 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1152 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1153 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1154 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1155 | -site | --site | --sit) |
| 1156 | ac_prev=site ;; |
| 1157 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1158 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1159 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1160 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1161 | ac_prev=srcdir ;; |
| 1162 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1163 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1164 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1165 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1166 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1167 | ac_prev=sysconfdir ;; |
| 1168 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1169 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1170 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1171 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1172 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1173 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1174 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1175 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1176 | |
| 1177 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1178 | verbose=yes ;; |
| 1179 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1180 | -version | --version | --versio | --versi | --vers | -V) |
| 1181 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1182 | |
| 1183 | -with-* | --with-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1184 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1185 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1186 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1187 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1188 | ac_useropt_orig=$ac_useropt |
| 1189 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1190 | case $ac_user_opts in |
| 1191 | *" |
| 1192 | "with_$ac_useropt" |
| 1193 | "*) ;; |
| 1194 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1195 | ac_unrecognized_sep=', ';; |
| 1196 | esac |
| 1197 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1198 | |
| 1199 | -without-* | --without-*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1200 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1201 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1202 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1203 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1204 | ac_useropt_orig=$ac_useropt |
| 1205 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1206 | case $ac_user_opts in |
| 1207 | *" |
| 1208 | "with_$ac_useropt" |
| 1209 | "*) ;; |
| 1210 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1211 | ac_unrecognized_sep=', ';; |
| 1212 | esac |
| 1213 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1214 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1215 | --x) |
| 1216 | # Obsolete; use --with-x. |
| 1217 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1218 | |
| 1219 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1220 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1221 | ac_prev=x_includes ;; |
| 1222 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1223 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1224 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1225 | |
| 1226 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1227 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1228 | ac_prev=x_libraries ;; |
| 1229 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1230 | | --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] | 1231 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1232 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1233 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1234 | Try \`$0 --help' for more information" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1235 | ;; |
| 1236 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1237 | *=*) |
| 1238 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1239 | # Reject names that are not valid shell variable names. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1240 | case $ac_envvar in #( |
| 1241 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1242 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1243 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1244 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1245 | export $ac_envvar ;; |
| 1246 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1247 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1248 | # FIXME: should be removed in autoconf 3.0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1249 | $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] | 1250 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1251 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1252 | : "${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] | 1253 | ;; |
| 1254 | |
| 1255 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1256 | done |
| 1257 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1258 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1259 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1260 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1261 | fi |
| 1262 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1263 | if test -n "$ac_unrecognized_opts"; then |
| 1264 | case $enable_option_checking in |
| 1265 | no) ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1266 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1267 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1268 | esac |
| 1269 | fi |
| 1270 | |
| 1271 | # Check all directory arguments for consistency. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1272 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1273 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1274 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1275 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1276 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1277 | eval ac_val=\$$ac_var |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1278 | # Remove trailing slashes. |
| 1279 | case $ac_val in |
| 1280 | */ ) |
| 1281 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1282 | eval $ac_var=\$ac_val;; |
| 1283 | esac |
| 1284 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1285 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1286 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1287 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1288 | esac |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1289 | 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] | 1290 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1291 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1292 | # There might be people who depend on the old broken behavior: `$host' |
| 1293 | # used to hold the argument of --host etc. |
| 1294 | # FIXME: To remove some day. |
| 1295 | build=$build_alias |
| 1296 | host=$host_alias |
| 1297 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1298 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1299 | # FIXME: To remove some day. |
| 1300 | if test "x$host_alias" != x; then |
| 1301 | if test "x$build_alias" = x; then |
| 1302 | cross_compiling=maybe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1303 | elif test "x$build_alias" != "x$host_alias"; then |
| 1304 | cross_compiling=yes |
| 1305 | fi |
| 1306 | fi |
| 1307 | |
| 1308 | ac_tool_prefix= |
| 1309 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1310 | |
| 1311 | test "$silent" = yes && exec 6>/dev/null |
| 1312 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1313 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1314 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1315 | ac_ls_di=`ls -di .` && |
| 1316 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1317 | as_fn_error $? "working directory cannot be determined" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1318 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1319 | as_fn_error $? "pwd does not report name of working directory" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1320 | |
| 1321 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1322 | # Find the source files, if location was not specified. |
| 1323 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1324 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1325 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1326 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1327 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1328 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1329 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1330 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1331 | $as_echo X"$as_myself" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1332 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1333 | s//\1/ |
| 1334 | q |
| 1335 | } |
| 1336 | /^X\(\/\/\)[^/].*/{ |
| 1337 | s//\1/ |
| 1338 | q |
| 1339 | } |
| 1340 | /^X\(\/\/\)$/{ |
| 1341 | s//\1/ |
| 1342 | q |
| 1343 | } |
| 1344 | /^X\(\/\).*/{ |
| 1345 | s//\1/ |
| 1346 | q |
| 1347 | } |
| 1348 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1349 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1350 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1351 | srcdir=.. |
| 1352 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1353 | else |
| 1354 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1355 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1357 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1358 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1359 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1360 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1361 | ac_abs_confdir=`( |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1362 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1363 | pwd)` |
| 1364 | # When building in place, set srcdir=. |
| 1365 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1366 | srcdir=. |
| 1367 | fi |
| 1368 | # Remove unnecessary trailing slashes from srcdir. |
| 1369 | # Double slashes in file names in object file debugging info |
| 1370 | # mess up M-x gdb in Emacs. |
| 1371 | case $srcdir in |
| 1372 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1373 | esac |
| 1374 | for ac_var in $ac_precious_vars; do |
| 1375 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1376 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1377 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1378 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1379 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1381 | # |
| 1382 | # Report the --help message. |
| 1383 | # |
| 1384 | if test "$ac_init_help" = "long"; then |
| 1385 | # Omit some internal or obsolete options to make the list less imposing. |
| 1386 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1387 | cat <<_ACEOF |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 1388 | \`configure' configures python 3.5 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1389 | |
| 1390 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1391 | |
| 1392 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1393 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1394 | |
| 1395 | Defaults for the options are specified in brackets. |
| 1396 | |
| 1397 | Configuration: |
| 1398 | -h, --help display this help and exit |
| 1399 | --help=short display options specific to this package |
| 1400 | --help=recursive display the short help of all the included packages |
| 1401 | -V, --version display version information and exit |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1402 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1403 | --cache-file=FILE cache test results in FILE [disabled] |
| 1404 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1405 | -n, --no-create do not create output files |
| 1406 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1407 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1408 | Installation directories: |
| 1409 | --prefix=PREFIX install architecture-independent files in PREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1410 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1411 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1412 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1413 | |
| 1414 | By default, \`make install' will install all the files in |
| 1415 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1416 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1417 | for instance \`--prefix=\$HOME'. |
| 1418 | |
| 1419 | For better control, use the options below. |
| 1420 | |
| 1421 | Fine tuning of the installation directories: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1422 | --bindir=DIR user executables [EPREFIX/bin] |
| 1423 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1424 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1425 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1426 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1427 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1428 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1429 | --includedir=DIR C header files [PREFIX/include] |
| 1430 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1431 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1432 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1433 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1434 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1435 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1436 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1437 | --htmldir=DIR html documentation [DOCDIR] |
| 1438 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1439 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1440 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1441 | _ACEOF |
| 1442 | |
| 1443 | cat <<\_ACEOF |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1444 | |
| 1445 | System types: |
| 1446 | --build=BUILD configure for building on BUILD [guessed] |
| 1447 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1448 | _ACEOF |
| 1449 | fi |
| 1450 | |
| 1451 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1452 | case $ac_init_help in |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 1453 | short | recursive ) echo "Configuration of python 3.5:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1454 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1455 | cat <<\_ACEOF |
| 1456 | |
| 1457 | Optional Features: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1458 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1459 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1460 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1461 | --enable-universalsdk[=SDKDIR] |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 1462 | Build fat binary against Mac OS X SDK |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1463 | --enable-framework[=INSTALLDIR] |
| 1464 | Build (MacOSX|Darwin) framework |
| 1465 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1466 | --enable-profiling enable C-level code profiling |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1467 | --enable-loadable-sqlite-extensions |
| 1468 | support loadable extensions in _sqlite module |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1469 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1470 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1471 | --enable-big-digits[=BITS] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1472 | use big digits for Python longs [[BITS=30]] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1473 | |
| 1474 | Optional Packages: |
| 1475 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1476 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1477 | --with-universal-archs=ARCH |
| 1478 | select architectures for universal build ("32-bit", |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 1479 | "64-bit", "3-way", "intel", "intel-32", or "all") |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1480 | --with-framework-name=FRAMEWORK |
| 1481 | specify an alternate name of the framework built |
| 1482 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1483 | --without-gcc never use gcc |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 1484 | --with-icc build with icc |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1485 | --with-cxx-main=<compiler> |
| 1486 | compile main() and link python executable with C++ |
| 1487 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1488 | --with-suffix=.exe set executable suffix |
| 1489 | --with-pydebug build with Py_DEBUG defined |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1490 | --with-hash-algorithm=[fnv|siphash24] |
| 1491 | select hash algorithm |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1492 | --with-address-sanitizer |
| 1493 | enable AddressSanitizer |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1494 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1495 | --with-system-expat build pyexpat module using an installed expat |
| 1496 | library |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1497 | --with-system-ffi build _ctypes module using an installed ffi library |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1498 | --with-system-libmpdec build _decimal module using an installed libmpdec |
| 1499 | library |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1500 | --with-tcltk-includes='-I...' |
| 1501 | override search for Tcl and Tk include files |
| 1502 | --with-tcltk-libs='-L...' |
| 1503 | override search for Tcl and Tk libs |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1504 | --with-dbmliborder=db1:db2:... |
| 1505 | order to check db backends for dbm. Valid value is a |
| 1506 | colon separated string with the backend names |
| 1507 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1508 | --with-signal-module disable/enable signal module |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1509 | --with(out)-threads[=DIRECTORY] |
| 1510 | disable/enable thread support |
| 1511 | --with(out)-thread[=DIRECTORY] |
| 1512 | deprecated; use --with(out)-threads |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1513 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1514 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1515 | --with(out)-pymalloc disable/enable specialized mallocs |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1516 | --with-valgrind Enable Valgrind support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1517 | --with-fpectl enable SIGFPE catching |
| 1518 | --with-libm=STRING math library |
| 1519 | --with-libc=STRING C library |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1520 | --with(out)-computed-gotos |
| 1521 | Use computed gotos in evaluation loop (enabled by |
| 1522 | default on supported compilers) |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 1523 | --with(out)-ensurepip=[=upgrade] |
| 1524 | "install" or "upgrade" using bundled pip |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1525 | |
| 1526 | Some influential environment variables: |
doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1527 | MACHDEP name for machine-dependent library files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1528 | CC C compiler command |
| 1529 | CFLAGS C compiler flags |
| 1530 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1531 | nonstandard directory <lib dir> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1532 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1533 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1534 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1535 | CPP C preprocessor |
Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 1536 | PKG_CONFIG path to pkg-config utility |
| 1537 | PKG_CONFIG_PATH |
| 1538 | directories to add to pkg-config's search path |
| 1539 | PKG_CONFIG_LIBDIR |
| 1540 | path overriding pkg-config's built-in search path |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1541 | |
| 1542 | Use these variables to override the choices made by `configure' or to help |
| 1543 | it to find libraries and programs with nonstandard names/locations. |
| 1544 | |
Georg Brandl | e2e1561 | 2009-05-20 18:25:10 +0000 | [diff] [blame] | 1545 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1546 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1547 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1548 | fi |
| 1549 | |
| 1550 | if test "$ac_init_help" = "recursive"; then |
| 1551 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1552 | 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] | 1553 | test -d "$ac_dir" || |
| 1554 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1555 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1556 | ac_builddir=. |
| 1557 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1558 | case "$ac_dir" in |
| 1559 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1560 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1561 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1562 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1563 | 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] | 1564 | case $ac_top_builddir_sub in |
| 1565 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1566 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1567 | esac ;; |
| 1568 | esac |
| 1569 | ac_abs_top_builddir=$ac_pwd |
| 1570 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1571 | # for backward compatibility: |
| 1572 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1573 | |
| 1574 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1575 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1576 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1577 | ac_top_srcdir=$ac_top_builddir_sub |
| 1578 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1579 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1580 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1581 | ac_top_srcdir=$srcdir |
| 1582 | ac_abs_top_srcdir=$srcdir ;; |
| 1583 | *) # Relative name. |
| 1584 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1585 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1586 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1587 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1588 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1589 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1590 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1591 | # Check for guested configure. |
| 1592 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1593 | echo && |
| 1594 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1595 | elif test -f "$ac_srcdir/configure"; then |
| 1596 | echo && |
| 1597 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1598 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1599 | $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] | 1600 | fi || ac_status=$? |
| 1601 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1602 | done |
| 1603 | fi |
| 1604 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1605 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1606 | if $ac_init_version; then |
| 1607 | cat <<\_ACEOF |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 1608 | python configure 3.5 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1609 | generated by GNU Autoconf 2.69 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1610 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1611 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1612 | This configure script is free software; the Free Software Foundation |
| 1613 | gives unlimited permission to copy, distribute and modify it. |
| 1614 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1615 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1616 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1617 | |
| 1618 | ## ------------------------ ## |
| 1619 | ## Autoconf initialization. ## |
| 1620 | ## ------------------------ ## |
| 1621 | |
| 1622 | # ac_fn_c_try_compile LINENO |
| 1623 | # -------------------------- |
| 1624 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1625 | ac_fn_c_try_compile () |
| 1626 | { |
| 1627 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1628 | rm -f conftest.$ac_objext |
| 1629 | if { { ac_try="$ac_compile" |
| 1630 | case "(($ac_try" in |
| 1631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1632 | *) ac_try_echo=$ac_try;; |
| 1633 | esac |
| 1634 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1635 | $as_echo "$ac_try_echo"; } >&5 |
| 1636 | (eval "$ac_compile") 2>conftest.err |
| 1637 | ac_status=$? |
| 1638 | if test -s conftest.err; then |
| 1639 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1640 | cat conftest.er1 >&5 |
| 1641 | mv -f conftest.er1 conftest.err |
| 1642 | fi |
| 1643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1644 | test $ac_status = 0; } && { |
| 1645 | test -z "$ac_c_werror_flag" || |
| 1646 | test ! -s conftest.err |
| 1647 | } && test -s conftest.$ac_objext; then : |
| 1648 | ac_retval=0 |
| 1649 | else |
| 1650 | $as_echo "$as_me: failed program was:" >&5 |
| 1651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1652 | |
| 1653 | ac_retval=1 |
| 1654 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1655 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1656 | as_fn_set_status $ac_retval |
| 1657 | |
| 1658 | } # ac_fn_c_try_compile |
| 1659 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1660 | # ac_fn_c_try_cpp LINENO |
| 1661 | # ---------------------- |
| 1662 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1663 | ac_fn_c_try_cpp () |
| 1664 | { |
| 1665 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1666 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1667 | case "(($ac_try" in |
| 1668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1669 | *) ac_try_echo=$ac_try;; |
| 1670 | esac |
| 1671 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1672 | $as_echo "$ac_try_echo"; } >&5 |
| 1673 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1674 | ac_status=$? |
| 1675 | if test -s conftest.err; then |
| 1676 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1677 | cat conftest.er1 >&5 |
| 1678 | mv -f conftest.er1 conftest.err |
| 1679 | fi |
| 1680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1681 | test $ac_status = 0; } > conftest.i && { |
| 1682 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1683 | test ! -s conftest.err |
| 1684 | }; then : |
| 1685 | ac_retval=0 |
| 1686 | else |
| 1687 | $as_echo "$as_me: failed program was:" >&5 |
| 1688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1689 | |
| 1690 | ac_retval=1 |
| 1691 | fi |
| 1692 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1693 | as_fn_set_status $ac_retval |
| 1694 | |
| 1695 | } # ac_fn_c_try_cpp |
| 1696 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1697 | # ac_fn_c_try_link LINENO |
| 1698 | # ----------------------- |
| 1699 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1700 | ac_fn_c_try_link () |
| 1701 | { |
| 1702 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1703 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1704 | if { { ac_try="$ac_link" |
| 1705 | case "(($ac_try" in |
| 1706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1707 | *) ac_try_echo=$ac_try;; |
| 1708 | esac |
| 1709 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1710 | $as_echo "$ac_try_echo"; } >&5 |
| 1711 | (eval "$ac_link") 2>conftest.err |
| 1712 | ac_status=$? |
| 1713 | if test -s conftest.err; then |
| 1714 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1715 | cat conftest.er1 >&5 |
| 1716 | mv -f conftest.er1 conftest.err |
| 1717 | fi |
| 1718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1719 | test $ac_status = 0; } && { |
| 1720 | test -z "$ac_c_werror_flag" || |
| 1721 | test ! -s conftest.err |
| 1722 | } && test -s conftest$ac_exeext && { |
| 1723 | test "$cross_compiling" = yes || |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1724 | test -x conftest$ac_exeext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1725 | }; then : |
| 1726 | ac_retval=0 |
| 1727 | else |
| 1728 | $as_echo "$as_me: failed program was:" >&5 |
| 1729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1730 | |
| 1731 | ac_retval=1 |
| 1732 | fi |
| 1733 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1734 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1735 | # interfere with the next link command; also delete a directory that is |
| 1736 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1737 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1738 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1739 | as_fn_set_status $ac_retval |
| 1740 | |
| 1741 | } # ac_fn_c_try_link |
| 1742 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1743 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1744 | # ------------------------------------------------------- |
| 1745 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1746 | # the include files in INCLUDES and setting the cache variable VAR |
| 1747 | # accordingly. |
| 1748 | ac_fn_c_check_header_mongrel () |
| 1749 | { |
| 1750 | 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] | 1751 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1753 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1754 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1755 | $as_echo_n "(cached) " >&6 |
| 1756 | fi |
| 1757 | eval ac_res=\$$3 |
| 1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1759 | $as_echo "$ac_res" >&6; } |
| 1760 | else |
| 1761 | # Is the header compilable? |
| 1762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1763 | $as_echo_n "checking $2 usability... " >&6; } |
| 1764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1765 | /* end confdefs.h. */ |
| 1766 | $4 |
| 1767 | #include <$2> |
| 1768 | _ACEOF |
| 1769 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1770 | ac_header_compiler=yes |
| 1771 | else |
| 1772 | ac_header_compiler=no |
| 1773 | fi |
| 1774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1776 | $as_echo "$ac_header_compiler" >&6; } |
| 1777 | |
| 1778 | # Is the header present? |
| 1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1780 | $as_echo_n "checking $2 presence... " >&6; } |
| 1781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1782 | /* end confdefs.h. */ |
| 1783 | #include <$2> |
| 1784 | _ACEOF |
| 1785 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1786 | ac_header_preproc=yes |
| 1787 | else |
| 1788 | ac_header_preproc=no |
| 1789 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1790 | rm -f conftest.err conftest.i conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1792 | $as_echo "$ac_header_preproc" >&6; } |
| 1793 | |
| 1794 | # So? What about this header? |
| 1795 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1796 | yes:no: ) |
| 1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1798 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1800 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1801 | ;; |
| 1802 | no:yes:* ) |
| 1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1804 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1806 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1808 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1810 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1812 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1813 | ( $as_echo "## -------------------------------------- ## |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1814 | ## Report this to http://bugs.python.org/ ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1815 | ## -------------------------------------- ##" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1816 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1817 | ;; |
| 1818 | esac |
| 1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1820 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1821 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1822 | $as_echo_n "(cached) " >&6 |
| 1823 | else |
| 1824 | eval "$3=\$ac_header_compiler" |
| 1825 | fi |
| 1826 | eval ac_res=\$$3 |
| 1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1828 | $as_echo "$ac_res" >&6; } |
| 1829 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1830 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1831 | |
| 1832 | } # ac_fn_c_check_header_mongrel |
| 1833 | |
| 1834 | # ac_fn_c_try_run LINENO |
| 1835 | # ---------------------- |
| 1836 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1837 | # that executables *can* be run. |
| 1838 | ac_fn_c_try_run () |
| 1839 | { |
| 1840 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1841 | if { { ac_try="$ac_link" |
| 1842 | case "(($ac_try" in |
| 1843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1844 | *) ac_try_echo=$ac_try;; |
| 1845 | esac |
| 1846 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1847 | $as_echo "$ac_try_echo"; } >&5 |
| 1848 | (eval "$ac_link") 2>&5 |
| 1849 | ac_status=$? |
| 1850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1851 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1852 | { { case "(($ac_try" in |
| 1853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1854 | *) ac_try_echo=$ac_try;; |
| 1855 | esac |
| 1856 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1857 | $as_echo "$ac_try_echo"; } >&5 |
| 1858 | (eval "$ac_try") 2>&5 |
| 1859 | ac_status=$? |
| 1860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1861 | test $ac_status = 0; }; }; then : |
| 1862 | ac_retval=0 |
| 1863 | else |
| 1864 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1865 | $as_echo "$as_me: failed program was:" >&5 |
| 1866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1867 | |
| 1868 | ac_retval=$ac_status |
| 1869 | fi |
| 1870 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1871 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1872 | as_fn_set_status $ac_retval |
| 1873 | |
| 1874 | } # ac_fn_c_try_run |
| 1875 | |
| 1876 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1877 | # ------------------------------------------------------- |
| 1878 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1879 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1880 | ac_fn_c_check_header_compile () |
| 1881 | { |
| 1882 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1884 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1885 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1886 | $as_echo_n "(cached) " >&6 |
| 1887 | else |
| 1888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1889 | /* end confdefs.h. */ |
| 1890 | $4 |
| 1891 | #include <$2> |
| 1892 | _ACEOF |
| 1893 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1894 | eval "$3=yes" |
| 1895 | else |
| 1896 | eval "$3=no" |
| 1897 | fi |
| 1898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1899 | fi |
| 1900 | eval ac_res=\$$3 |
| 1901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1902 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1903 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1904 | |
| 1905 | } # ac_fn_c_check_header_compile |
| 1906 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1907 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1908 | # ------------------------------------------- |
| 1909 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1910 | # variable VAR accordingly. |
| 1911 | ac_fn_c_check_type () |
| 1912 | { |
| 1913 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1915 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1916 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1917 | $as_echo_n "(cached) " >&6 |
| 1918 | else |
| 1919 | eval "$3=no" |
| 1920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1921 | /* end confdefs.h. */ |
| 1922 | $4 |
| 1923 | int |
| 1924 | main () |
| 1925 | { |
| 1926 | if (sizeof ($2)) |
| 1927 | return 0; |
| 1928 | ; |
| 1929 | return 0; |
| 1930 | } |
| 1931 | _ACEOF |
| 1932 | if ac_fn_c_try_compile "$LINENO"; then : |
| 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 | |
| 1947 | else |
| 1948 | eval "$3=yes" |
| 1949 | fi |
| 1950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1951 | fi |
| 1952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1953 | fi |
| 1954 | eval ac_res=\$$3 |
| 1955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1956 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1957 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1958 | |
| 1959 | } # ac_fn_c_check_type |
| 1960 | |
| 1961 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 1962 | # ------------------------------------ |
| 1963 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 1964 | # accordingly. |
| 1965 | ac_fn_c_find_uintX_t () |
| 1966 | { |
| 1967 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 1969 | $as_echo_n "checking for uint$2_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1970 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1971 | $as_echo_n "(cached) " >&6 |
| 1972 | else |
| 1973 | eval "$3=no" |
| 1974 | # Order is important - never check a type that is potentially smaller |
| 1975 | # than half of the expected target width. |
| 1976 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 1977 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 1978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1979 | /* end confdefs.h. */ |
| 1980 | $ac_includes_default |
| 1981 | int |
| 1982 | main () |
| 1983 | { |
| 1984 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1985 | test_array [0] = 0; |
| 1986 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1987 | |
| 1988 | ; |
| 1989 | return 0; |
| 1990 | } |
| 1991 | _ACEOF |
| 1992 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1993 | case $ac_type in #( |
| 1994 | uint$2_t) : |
| 1995 | eval "$3=yes" ;; #( |
| 1996 | *) : |
| 1997 | eval "$3=\$ac_type" ;; |
| 1998 | esac |
| 1999 | fi |
| 2000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2001 | if eval test \"x\$"$3"\" = x"no"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2002 | |
| 2003 | else |
| 2004 | break |
| 2005 | fi |
| 2006 | done |
| 2007 | fi |
| 2008 | eval ac_res=\$$3 |
| 2009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2010 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2011 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2012 | |
| 2013 | } # ac_fn_c_find_uintX_t |
| 2014 | |
| 2015 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 2016 | # ----------------------------------- |
| 2017 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 2018 | # accordingly. |
| 2019 | ac_fn_c_find_intX_t () |
| 2020 | { |
| 2021 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 2023 | $as_echo_n "checking for int$2_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2024 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2025 | $as_echo_n "(cached) " >&6 |
| 2026 | else |
| 2027 | eval "$3=no" |
| 2028 | # Order is important - never check a type that is potentially smaller |
| 2029 | # than half of the expected target width. |
| 2030 | for ac_type in int$2_t 'int' 'long int' \ |
| 2031 | 'long long int' 'short int' 'signed char'; do |
| 2032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2033 | /* end confdefs.h. */ |
| 2034 | $ac_includes_default |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2035 | enum { N = $2 / 2 - 1 }; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2036 | int |
| 2037 | main () |
| 2038 | { |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2039 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2040 | test_array [0] = 0; |
| 2041 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2042 | |
| 2043 | ; |
| 2044 | return 0; |
| 2045 | } |
| 2046 | _ACEOF |
| 2047 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2049 | /* end confdefs.h. */ |
| 2050 | $ac_includes_default |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2051 | enum { N = $2 / 2 - 1 }; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2052 | int |
| 2053 | main () |
| 2054 | { |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 2055 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2056 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2057 | test_array [0] = 0; |
| 2058 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2059 | |
| 2060 | ; |
| 2061 | return 0; |
| 2062 | } |
| 2063 | _ACEOF |
| 2064 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2065 | |
| 2066 | else |
| 2067 | case $ac_type in #( |
| 2068 | int$2_t) : |
| 2069 | eval "$3=yes" ;; #( |
| 2070 | *) : |
| 2071 | eval "$3=\$ac_type" ;; |
| 2072 | esac |
| 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 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2077 | if eval test \"x\$"$3"\" = x"no"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2078 | |
| 2079 | else |
| 2080 | break |
| 2081 | fi |
| 2082 | done |
| 2083 | fi |
| 2084 | eval ac_res=\$$3 |
| 2085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2086 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2087 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2088 | |
| 2089 | } # ac_fn_c_find_intX_t |
| 2090 | |
| 2091 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2092 | # -------------------------------------------- |
| 2093 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2094 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2095 | # computed |
| 2096 | ac_fn_c_compute_int () |
| 2097 | { |
| 2098 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2099 | if test "$cross_compiling" = yes; then |
| 2100 | # Depending upon the size, compute the lo and hi bounds. |
| 2101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2102 | /* end confdefs.h. */ |
| 2103 | $4 |
| 2104 | int |
| 2105 | main () |
| 2106 | { |
| 2107 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2108 | test_array [0] = 0; |
| 2109 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2110 | |
| 2111 | ; |
| 2112 | return 0; |
| 2113 | } |
| 2114 | _ACEOF |
| 2115 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2116 | ac_lo=0 ac_mid=0 |
| 2117 | while :; do |
| 2118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2119 | /* end confdefs.h. */ |
| 2120 | $4 |
| 2121 | int |
| 2122 | main () |
| 2123 | { |
| 2124 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2125 | test_array [0] = 0; |
| 2126 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2127 | |
| 2128 | ; |
| 2129 | return 0; |
| 2130 | } |
| 2131 | _ACEOF |
| 2132 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2133 | ac_hi=$ac_mid; break |
| 2134 | else |
| 2135 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2136 | if test $ac_lo -le $ac_mid; then |
| 2137 | ac_lo= ac_hi= |
| 2138 | break |
| 2139 | fi |
| 2140 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2141 | fi |
| 2142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2143 | done |
| 2144 | else |
| 2145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2146 | /* end confdefs.h. */ |
| 2147 | $4 |
| 2148 | int |
| 2149 | main () |
| 2150 | { |
| 2151 | static int test_array [1 - 2 * !(($2) < 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2152 | test_array [0] = 0; |
| 2153 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2154 | |
| 2155 | ; |
| 2156 | return 0; |
| 2157 | } |
| 2158 | _ACEOF |
| 2159 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2160 | ac_hi=-1 ac_mid=-1 |
| 2161 | while :; do |
| 2162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2163 | /* end confdefs.h. */ |
| 2164 | $4 |
| 2165 | int |
| 2166 | main () |
| 2167 | { |
| 2168 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2169 | test_array [0] = 0; |
| 2170 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2171 | |
| 2172 | ; |
| 2173 | return 0; |
| 2174 | } |
| 2175 | _ACEOF |
| 2176 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2177 | ac_lo=$ac_mid; break |
| 2178 | else |
| 2179 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2180 | if test $ac_mid -le $ac_hi; then |
| 2181 | ac_lo= ac_hi= |
| 2182 | break |
| 2183 | fi |
| 2184 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2185 | fi |
| 2186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2187 | done |
| 2188 | else |
| 2189 | ac_lo= ac_hi= |
| 2190 | fi |
| 2191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2192 | fi |
| 2193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2194 | # Binary search between lo and hi bounds. |
| 2195 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2196 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2198 | /* end confdefs.h. */ |
| 2199 | $4 |
| 2200 | int |
| 2201 | main () |
| 2202 | { |
| 2203 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2204 | test_array [0] = 0; |
| 2205 | return test_array [0]; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2206 | |
| 2207 | ; |
| 2208 | return 0; |
| 2209 | } |
| 2210 | _ACEOF |
| 2211 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2212 | ac_hi=$ac_mid |
| 2213 | else |
| 2214 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2215 | fi |
| 2216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2217 | done |
| 2218 | case $ac_lo in #(( |
| 2219 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2220 | '') ac_retval=1 ;; |
| 2221 | esac |
| 2222 | else |
| 2223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2224 | /* end confdefs.h. */ |
| 2225 | $4 |
| 2226 | static long int longval () { return $2; } |
| 2227 | static unsigned long int ulongval () { return $2; } |
| 2228 | #include <stdio.h> |
| 2229 | #include <stdlib.h> |
| 2230 | int |
| 2231 | main () |
| 2232 | { |
| 2233 | |
| 2234 | FILE *f = fopen ("conftest.val", "w"); |
| 2235 | if (! f) |
| 2236 | return 1; |
| 2237 | if (($2) < 0) |
| 2238 | { |
| 2239 | long int i = longval (); |
| 2240 | if (i != ($2)) |
| 2241 | return 1; |
| 2242 | fprintf (f, "%ld", i); |
| 2243 | } |
| 2244 | else |
| 2245 | { |
| 2246 | unsigned long int i = ulongval (); |
| 2247 | if (i != ($2)) |
| 2248 | return 1; |
| 2249 | fprintf (f, "%lu", i); |
| 2250 | } |
| 2251 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2252 | on some platforms. */ |
| 2253 | return ferror (f) || fclose (f) != 0; |
| 2254 | |
| 2255 | ; |
| 2256 | return 0; |
| 2257 | } |
| 2258 | _ACEOF |
| 2259 | if ac_fn_c_try_run "$LINENO"; then : |
| 2260 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2261 | else |
| 2262 | ac_retval=1 |
| 2263 | fi |
| 2264 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2265 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2266 | rm -f conftest.val |
| 2267 | |
| 2268 | fi |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2269 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2270 | as_fn_set_status $ac_retval |
| 2271 | |
| 2272 | } # ac_fn_c_compute_int |
| 2273 | |
| 2274 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2275 | # ---------------------------------- |
| 2276 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2277 | ac_fn_c_check_func () |
| 2278 | { |
| 2279 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2281 | $as_echo_n "checking for $2... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2282 | if eval \${$3+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2283 | $as_echo_n "(cached) " >&6 |
| 2284 | else |
| 2285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2286 | /* end confdefs.h. */ |
| 2287 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2288 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2289 | #define $2 innocuous_$2 |
| 2290 | |
| 2291 | /* System header to define __stub macros and hopefully few prototypes, |
| 2292 | which can conflict with char $2 (); below. |
| 2293 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2294 | <limits.h> exists even on freestanding compilers. */ |
| 2295 | |
| 2296 | #ifdef __STDC__ |
| 2297 | # include <limits.h> |
| 2298 | #else |
| 2299 | # include <assert.h> |
| 2300 | #endif |
| 2301 | |
| 2302 | #undef $2 |
| 2303 | |
| 2304 | /* Override any GCC internal prototype to avoid an error. |
| 2305 | Use char because int might match the return type of a GCC |
| 2306 | builtin and then its argument prototype would still apply. */ |
| 2307 | #ifdef __cplusplus |
| 2308 | extern "C" |
| 2309 | #endif |
| 2310 | char $2 (); |
| 2311 | /* The GNU C library defines this for functions which it implements |
| 2312 | to always fail with ENOSYS. Some functions are actually named |
| 2313 | something starting with __ and the normal name is an alias. */ |
| 2314 | #if defined __stub_$2 || defined __stub___$2 |
| 2315 | choke me |
| 2316 | #endif |
| 2317 | |
| 2318 | int |
| 2319 | main () |
| 2320 | { |
| 2321 | return $2 (); |
| 2322 | ; |
| 2323 | return 0; |
| 2324 | } |
| 2325 | _ACEOF |
| 2326 | if ac_fn_c_try_link "$LINENO"; then : |
| 2327 | eval "$3=yes" |
| 2328 | else |
| 2329 | eval "$3=no" |
| 2330 | fi |
| 2331 | rm -f core conftest.err conftest.$ac_objext \ |
| 2332 | conftest$ac_exeext conftest.$ac_ext |
| 2333 | fi |
| 2334 | eval ac_res=\$$3 |
| 2335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2336 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2337 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2338 | |
| 2339 | } # ac_fn_c_check_func |
| 2340 | |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2341 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2342 | # --------------------------------------------- |
| 2343 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2344 | # accordingly. |
| 2345 | ac_fn_c_check_decl () |
| 2346 | { |
| 2347 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2348 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2349 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2351 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2352 | if eval \${$3+:} false; then : |
| 2353 | $as_echo_n "(cached) " >&6 |
| 2354 | else |
| 2355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2356 | /* end confdefs.h. */ |
| 2357 | $4 |
| 2358 | int |
| 2359 | main () |
| 2360 | { |
| 2361 | #ifndef $as_decl_name |
| 2362 | #ifdef __cplusplus |
| 2363 | (void) $as_decl_use; |
| 2364 | #else |
| 2365 | (void) $as_decl_name; |
| 2366 | #endif |
| 2367 | #endif |
| 2368 | |
| 2369 | ; |
| 2370 | return 0; |
| 2371 | } |
| 2372 | _ACEOF |
| 2373 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2374 | eval "$3=yes" |
| 2375 | else |
| 2376 | eval "$3=no" |
| 2377 | fi |
| 2378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2379 | fi |
| 2380 | eval ac_res=\$$3 |
| 2381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2382 | $as_echo "$ac_res" >&6; } |
| 2383 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2384 | |
| 2385 | } # ac_fn_c_check_decl |
| 2386 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2387 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2388 | # ---------------------------------------------------- |
| 2389 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2390 | # INCLUDES, setting cache variable VAR accordingly. |
| 2391 | ac_fn_c_check_member () |
| 2392 | { |
| 2393 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2395 | $as_echo_n "checking for $2.$3... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2396 | if eval \${$4+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2397 | $as_echo_n "(cached) " >&6 |
| 2398 | else |
| 2399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2400 | /* end confdefs.h. */ |
| 2401 | $5 |
| 2402 | int |
| 2403 | main () |
| 2404 | { |
| 2405 | static $2 ac_aggr; |
| 2406 | if (ac_aggr.$3) |
| 2407 | return 0; |
| 2408 | ; |
| 2409 | return 0; |
| 2410 | } |
| 2411 | _ACEOF |
| 2412 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2413 | eval "$4=yes" |
| 2414 | else |
| 2415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2416 | /* end confdefs.h. */ |
| 2417 | $5 |
| 2418 | int |
| 2419 | main () |
| 2420 | { |
| 2421 | static $2 ac_aggr; |
| 2422 | if (sizeof ac_aggr.$3) |
| 2423 | return 0; |
| 2424 | ; |
| 2425 | return 0; |
| 2426 | } |
| 2427 | _ACEOF |
| 2428 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2429 | eval "$4=yes" |
| 2430 | else |
| 2431 | eval "$4=no" |
| 2432 | fi |
| 2433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2434 | fi |
| 2435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2436 | fi |
| 2437 | eval ac_res=\$$4 |
| 2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2439 | $as_echo "$ac_res" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2440 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2441 | |
| 2442 | } # ac_fn_c_check_member |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2443 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2444 | This file contains any messages produced by compilers while |
| 2445 | running configure, to aid debugging if configure makes a mistake. |
| 2446 | |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 2447 | It was created by python $as_me 3.5, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2448 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2449 | |
| 2450 | $ $0 $@ |
| 2451 | |
| 2452 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2453 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2454 | { |
| 2455 | cat <<_ASUNAME |
| 2456 | ## --------- ## |
| 2457 | ## Platform. ## |
| 2458 | ## --------- ## |
| 2459 | |
| 2460 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2461 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2462 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2463 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2464 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2465 | |
| 2466 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2467 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2468 | |
| 2469 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2470 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2471 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2472 | /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] | 2473 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2474 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2475 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2476 | |
| 2477 | _ASUNAME |
| 2478 | |
| 2479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2480 | for as_dir in $PATH |
| 2481 | do |
| 2482 | IFS=$as_save_IFS |
| 2483 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2484 | $as_echo "PATH: $as_dir" |
| 2485 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2486 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2487 | |
| 2488 | } >&5 |
| 2489 | |
| 2490 | cat >&5 <<_ACEOF |
| 2491 | |
| 2492 | |
| 2493 | ## ----------- ## |
| 2494 | ## Core tests. ## |
| 2495 | ## ----------- ## |
| 2496 | |
| 2497 | _ACEOF |
| 2498 | |
| 2499 | |
| 2500 | # Keep a trace of the command line. |
| 2501 | # 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] | 2502 | # 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] | 2503 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2504 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2505 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2506 | ac_configure_args0= |
| 2507 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2508 | ac_must_keep_next=false |
| 2509 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2510 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2511 | for ac_arg |
| 2512 | do |
| 2513 | case $ac_arg in |
| 2514 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2515 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2516 | | -silent | --silent | --silen | --sile | --sil) |
| 2517 | continue ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2518 | *\'*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2519 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2520 | esac |
| 2521 | case $ac_pass in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2522 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2523 | 2) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2524 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2525 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2526 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2527 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2528 | case $ac_arg in |
| 2529 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2530 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2531 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2532 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2533 | case "$ac_configure_args0 " in |
| 2534 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2535 | esac |
| 2536 | ;; |
| 2537 | -* ) ac_must_keep_next=true ;; |
| 2538 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2539 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2540 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2541 | ;; |
| 2542 | esac |
| 2543 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2544 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2545 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2546 | { ac_configure_args1=; unset ac_configure_args1;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2547 | |
| 2548 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2549 | # config.log. We remove comments because anyway the quotes in there |
| 2550 | # would cause problems or look ugly. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2551 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2552 | # 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] | 2553 | trap 'exit_status=$? |
| 2554 | # Save into config.log some information that might help in debugging. |
| 2555 | { |
| 2556 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2557 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2558 | $as_echo "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2559 | ## Cache variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2560 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2561 | echo |
| 2562 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2563 | ( |
| 2564 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2565 | eval ac_val=\$$ac_var |
| 2566 | case $ac_val in #( |
| 2567 | *${as_nl}*) |
| 2568 | case $ac_var in #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2569 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2570 | $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] | 2571 | esac |
| 2572 | case $ac_var in #( |
| 2573 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2574 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2575 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2576 | esac ;; |
| 2577 | esac |
| 2578 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2579 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2580 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2581 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2582 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2583 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2584 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2585 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2586 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2587 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2588 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2589 | esac | |
| 2590 | sort |
| 2591 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2592 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2593 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2594 | $as_echo "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2595 | ## Output variables. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2596 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2597 | echo |
| 2598 | for ac_var in $ac_subst_vars |
| 2599 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2600 | eval ac_val=\$$ac_var |
| 2601 | case $ac_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2602 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2603 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2604 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2605 | done | sort |
| 2606 | echo |
| 2607 | |
| 2608 | if test -n "$ac_subst_files"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2609 | $as_echo "## ------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2610 | ## File substitutions. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2611 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2612 | echo |
| 2613 | for ac_var in $ac_subst_files |
| 2614 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2615 | eval ac_val=\$$ac_var |
| 2616 | case $ac_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2617 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2618 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2619 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2620 | done | sort |
| 2621 | echo |
| 2622 | fi |
| 2623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | if test -s confdefs.h; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2625 | $as_echo "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2626 | ## confdefs.h. ## |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2627 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2628 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2629 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2630 | echo |
| 2631 | fi |
| 2632 | test "$ac_signal" != 0 && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2633 | $as_echo "$as_me: caught signal $ac_signal" |
| 2634 | $as_echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2635 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2636 | rm -f core *.core core.conftest.* && |
| 2637 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2638 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2639 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2640 | for ac_signal in 1 2 13 15; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2641 | 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] | 2642 | done |
| 2643 | ac_signal=0 |
| 2644 | |
| 2645 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2646 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2647 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2648 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2650 | # Predefined preprocessor variables. |
| 2651 | |
| 2652 | cat >>confdefs.h <<_ACEOF |
| 2653 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2654 | _ACEOF |
| 2655 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2656 | cat >>confdefs.h <<_ACEOF |
| 2657 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2658 | _ACEOF |
| 2659 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2660 | cat >>confdefs.h <<_ACEOF |
| 2661 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2662 | _ACEOF |
| 2663 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2664 | cat >>confdefs.h <<_ACEOF |
| 2665 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2666 | _ACEOF |
| 2667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2668 | cat >>confdefs.h <<_ACEOF |
| 2669 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2670 | _ACEOF |
| 2671 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2672 | cat >>confdefs.h <<_ACEOF |
| 2673 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2674 | _ACEOF |
| 2675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2676 | |
| 2677 | # 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] | 2678 | # Prefer an explicitly selected file to automatically selected ones. |
| 2679 | ac_site_file1=NONE |
| 2680 | ac_site_file2=NONE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2681 | if test -n "$CONFIG_SITE"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2682 | # We do not want a PATH search for config.site. |
| 2683 | case $CONFIG_SITE in #(( |
| 2684 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2685 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2686 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2687 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2688 | elif test "x$prefix" != xNONE; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2689 | ac_site_file1=$prefix/share/config.site |
| 2690 | ac_site_file2=$prefix/etc/config.site |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2691 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2692 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2693 | ac_site_file2=$ac_default_prefix/etc/config.site |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2694 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2695 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2696 | do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2697 | test "x$ac_site_file" = xNONE && continue |
| 2698 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2700 | $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] | 2701 | sed 's/^/| /' "$ac_site_file" >&5 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2702 | . "$ac_site_file" \ |
| 2703 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2704 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2705 | as_fn_error $? "failed to load site script $ac_site_file |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2706 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2707 | fi |
| 2708 | done |
| 2709 | |
| 2710 | if test -r "$cache_file"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2711 | # Some versions of bash will fail to source /dev/null (special files |
| 2712 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2713 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2715 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2716 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2717 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2718 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2719 | esac |
| 2720 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2721 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2723 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2724 | >$cache_file |
| 2725 | fi |
| 2726 | |
| 2727 | # Check that the precious variables saved in the cache have kept the same |
| 2728 | # value. |
| 2729 | ac_cache_corrupted=false |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2730 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2731 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2732 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2733 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2734 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2735 | case $ac_old_set,$ac_new_set in |
| 2736 | set,) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2738 | $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] | 2739 | ac_cache_corrupted=: ;; |
| 2740 | ,set) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2742 | $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] | 2743 | ac_cache_corrupted=: ;; |
| 2744 | ,);; |
| 2745 | *) |
| 2746 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2747 | # differences in whitespace do not lead to failure. |
| 2748 | ac_old_val_w=`echo x $ac_old_val` |
| 2749 | ac_new_val_w=`echo x $ac_new_val` |
| 2750 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2752 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2753 | ac_cache_corrupted=: |
| 2754 | else |
| 2755 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2756 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2757 | eval $ac_var=\$ac_old_val |
| 2758 | fi |
| 2759 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2760 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2761 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2762 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2763 | fi;; |
| 2764 | esac |
| 2765 | # Pass precious variables to config.status. |
| 2766 | if test "$ac_new_set" = set; then |
| 2767 | case $ac_new_val in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2768 | *\'*) 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] | 2769 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2770 | esac |
| 2771 | case " $ac_configure_args " in |
| 2772 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2773 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2774 | esac |
| 2775 | fi |
| 2776 | done |
| 2777 | if $ac_cache_corrupted; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2779 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2781 | $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] | 2782 | 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] | 2783 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2784 | ## -------------------- ## |
| 2785 | ## Main body of script. ## |
| 2786 | ## -------------------- ## |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2787 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2788 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2789 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2790 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2791 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2792 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2793 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2794 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2795 | |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2796 | |
Trent Nelson | 5595ab5 | 2012-10-17 04:47:31 -0400 | [diff] [blame] | 2797 | if test "$abs_srcdir" != "$abs_builddir"; then |
Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2798 | # If we're building out-of-tree, we need to make sure the following |
| 2799 | # resources get picked up before their $srcdir counterparts. |
| 2800 | # Objects/ -> typeslots.inc |
| 2801 | # Include/ -> Python-ast.h, graminit.h |
| 2802 | # Python/ -> importlib.h |
| 2803 | # (A side effect of this is that these resources will automatically be |
| 2804 | # regenerated when building out-of-tree, regardless of whether or not |
| 2805 | # the $srcdir counterpart is up-to-date. This is an acceptable trade |
| 2806 | # off.) |
| 2807 | BASECPPFLAGS="-IObjects -IInclude -IPython" |
| 2808 | else |
| 2809 | BASECPPFLAGS="" |
| 2810 | fi |
| 2811 | |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2812 | |
| 2813 | |
| 2814 | |
| 2815 | |
Antoine Pitrou | d3b2aef | 2011-07-27 01:22:41 +0200 | [diff] [blame] | 2816 | if test -e $srcdir/.hg/dirstate |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2817 | then |
| 2818 | # Extract the first word of "hg", so it can be a program name with args. |
| 2819 | set dummy hg; ac_word=$2 |
| 2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2821 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2822 | if ${ac_cv_prog_HAS_HG+:} false; then : |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2823 | $as_echo_n "(cached) " >&6 |
| 2824 | else |
| 2825 | if test -n "$HAS_HG"; then |
| 2826 | ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. |
| 2827 | else |
| 2828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2829 | for as_dir in $PATH |
| 2830 | do |
| 2831 | IFS=$as_save_IFS |
| 2832 | test -z "$as_dir" && as_dir=. |
| 2833 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 2834 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2835 | ac_cv_prog_HAS_HG="found" |
| 2836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2837 | break 2 |
| 2838 | fi |
| 2839 | done |
| 2840 | done |
| 2841 | IFS=$as_save_IFS |
| 2842 | |
| 2843 | test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" |
| 2844 | fi |
| 2845 | fi |
| 2846 | HAS_HG=$ac_cv_prog_HAS_HG |
| 2847 | if test -n "$HAS_HG"; then |
| 2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 |
| 2849 | $as_echo "$HAS_HG" >&6; } |
| 2850 | else |
| 2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2852 | $as_echo "no" >&6; } |
| 2853 | fi |
| 2854 | |
| 2855 | |
| 2856 | else |
| 2857 | HAS_HG=no-repository |
| 2858 | fi |
| 2859 | if test $HAS_HG = found |
| 2860 | then |
| 2861 | HGVERSION="hg id -i \$(srcdir)" |
| 2862 | HGTAG="hg id -t \$(srcdir)" |
| 2863 | HGBRANCH="hg id -b \$(srcdir)" |
| 2864 | else |
| 2865 | HGVERSION="" |
| 2866 | HGTAG="" |
| 2867 | HGBRANCH="" |
| 2868 | fi |
| 2869 | |
| 2870 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2871 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2872 | |
| 2873 | |
Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2874 | ac_aux_dir= |
| 2875 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2876 | if test -f "$ac_dir/install-sh"; then |
| 2877 | ac_aux_dir=$ac_dir |
| 2878 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2879 | break |
| 2880 | elif test -f "$ac_dir/install.sh"; then |
| 2881 | ac_aux_dir=$ac_dir |
| 2882 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2883 | break |
| 2884 | elif test -f "$ac_dir/shtool"; then |
| 2885 | ac_aux_dir=$ac_dir |
| 2886 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2887 | break |
| 2888 | fi |
| 2889 | done |
| 2890 | if test -z "$ac_aux_dir"; then |
| 2891 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2892 | fi |
| 2893 | |
| 2894 | # These three variables are undocumented and unsupported, |
| 2895 | # and are intended to be withdrawn in a future Autoconf release. |
| 2896 | # They can cause serious problems if a builder's source tree is in a directory |
| 2897 | # whose full name contains unusual characters. |
| 2898 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2899 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2900 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2901 | |
| 2902 | |
| 2903 | # Make sure we can run config.sub. |
| 2904 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2905 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 2906 | |
| 2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2908 | $as_echo_n "checking build system type... " >&6; } |
| 2909 | if ${ac_cv_build+:} false; then : |
| 2910 | $as_echo_n "(cached) " >&6 |
| 2911 | else |
| 2912 | ac_build_alias=$build_alias |
| 2913 | test "x$ac_build_alias" = x && |
| 2914 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2915 | test "x$ac_build_alias" = x && |
| 2916 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 2917 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2918 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 2919 | |
| 2920 | fi |
| 2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2922 | $as_echo "$ac_cv_build" >&6; } |
| 2923 | case $ac_cv_build in |
| 2924 | *-*-*) ;; |
| 2925 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 2926 | esac |
| 2927 | build=$ac_cv_build |
| 2928 | ac_save_IFS=$IFS; IFS='-' |
| 2929 | set x $ac_cv_build |
| 2930 | shift |
| 2931 | build_cpu=$1 |
| 2932 | build_vendor=$2 |
| 2933 | shift; shift |
| 2934 | # Remember, the first character of IFS is used to create $*, |
| 2935 | # except with old shells: |
| 2936 | build_os=$* |
| 2937 | IFS=$ac_save_IFS |
| 2938 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2939 | |
| 2940 | |
| 2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2942 | $as_echo_n "checking host system type... " >&6; } |
| 2943 | if ${ac_cv_host+:} false; then : |
| 2944 | $as_echo_n "(cached) " >&6 |
| 2945 | else |
| 2946 | if test "x$host_alias" = x; then |
| 2947 | ac_cv_host=$ac_cv_build |
| 2948 | else |
| 2949 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2950 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 2951 | fi |
| 2952 | |
| 2953 | fi |
| 2954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2955 | $as_echo "$ac_cv_host" >&6; } |
| 2956 | case $ac_cv_host in |
| 2957 | *-*-*) ;; |
| 2958 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 2959 | esac |
| 2960 | host=$ac_cv_host |
| 2961 | ac_save_IFS=$IFS; IFS='-' |
| 2962 | set x $ac_cv_host |
| 2963 | shift |
| 2964 | host_cpu=$1 |
| 2965 | host_vendor=$2 |
| 2966 | shift; shift |
| 2967 | # Remember, the first character of IFS is used to create $*, |
| 2968 | # except with old shells: |
| 2969 | host_os=$* |
| 2970 | IFS=$ac_save_IFS |
| 2971 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2972 | |
| 2973 | |
| 2974 | |
doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 2975 | |
| 2976 | |
Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 2977 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile |
| 2978 | rm -f pybuilddir.txt |
| 2979 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2980 | if test "$cross_compiling" = yes; then |
| 2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 |
| 2982 | $as_echo_n "checking for python interpreter for cross build... " >&6; } |
| 2983 | if test -z "$PYTHON_FOR_BUILD"; then |
| 2984 | for interp in python$PACKAGE_VERSION python3 python; do |
| 2985 | which $interp >/dev/null 2>&1 || continue |
| 2986 | if $interp -c 'import sys;sys.exit(not sys.version_info[:2] >= (3,3))'; then |
| 2987 | break |
| 2988 | fi |
| 2989 | interp= |
| 2990 | done |
| 2991 | if test x$interp = x; then |
| 2992 | as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 |
| 2993 | fi |
| 2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 |
| 2995 | $as_echo "$interp" >&6; } |
doko@python.org | 244b687 | 2013-01-26 12:08:25 +0100 | [diff] [blame] | 2996 | PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '$interp |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2997 | fi |
Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 2998 | elif test "$cross_compiling" = maybe; then |
| 2999 | 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] | 3000 | else |
| 3001 | PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' |
| 3002 | fi |
| 3003 | |
| 3004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3005 | |
Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 3006 | if test "$prefix" != "/"; then |
| 3007 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 3008 | fi |
| 3009 | |
| 3010 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3011 | |
| 3012 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 3013 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 3014 | # with other autoconf-based packages that include Python.h |
| 3015 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 3016 | rm confdefs.h |
| 3017 | mv confdefs.h.new confdefs.h |
| 3018 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 3019 | |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 3020 | VERSION=3.5 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 3021 | |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 3022 | # Version number of Python's own shared library file. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3023 | |
| 3024 | SOVERSION=1.0 |
| 3025 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3026 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 3027 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 3028 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3029 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3030 | |
| 3031 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3032 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 3033 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 3034 | # them. |
| 3035 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3036 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 3037 | |
| 3038 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3039 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 3040 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 3041 | # them. |
| 3042 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3043 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 3044 | |
| 3045 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3046 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 3047 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 3048 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3049 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 3050 | |
| 3051 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3052 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 3053 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 3054 | # them. |
| 3055 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3056 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3057 | |
| 3058 | |
| 3059 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3060 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 3061 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 3062 | # Arguments passed to configure. |
| 3063 | |
| 3064 | CONFIG_ARGS="$ac_configure_args" |
| 3065 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
| 3067 | $as_echo_n "checking for --enable-universalsdk... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3068 | # Check whether --enable-universalsdk was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3069 | if test "${enable_universalsdk+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3070 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3071 | case $enableval in |
| 3072 | yes) |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3073 | # Locate the best usable SDK, see Mac/README.txt for more |
| 3074 | # information |
| 3075 | enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3076 | if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3077 | then |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3078 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 3079 | if test ! -d "${enableval}" |
| 3080 | then |
| 3081 | enableval=/ |
| 3082 | fi |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3083 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3084 | ;; |
| 3085 | esac |
| 3086 | case $enableval in |
| 3087 | no) |
| 3088 | UNIVERSALSDK= |
| 3089 | enable_universalsdk= |
| 3090 | ;; |
| 3091 | *) |
| 3092 | UNIVERSALSDK=$enableval |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3093 | if test ! -d "${UNIVERSALSDK}" |
| 3094 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3095 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3096 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3097 | ;; |
| 3098 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3099 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3100 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3101 | else |
| 3102 | |
| 3103 | UNIVERSALSDK= |
| 3104 | enable_universalsdk= |
| 3105 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3106 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3107 | |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3108 | if test -n "${UNIVERSALSDK}" |
| 3109 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
| 3111 | $as_echo "${UNIVERSALSDK}" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3112 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3114 | $as_echo "no" >&6; } |
Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3115 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3116 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3117 | |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3118 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3119 | ARCH_RUN_32BIT="" |
Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3120 | |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3121 | # For backward compatibility reasons we prefer to select '32-bit' if available, |
| 3122 | # otherwise use 'intel' |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3123 | UNIVERSAL_ARCHS="32-bit" |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3124 | if test "`uname -s`" = "Darwin" |
| 3125 | then |
| 3126 | if test -n "${UNIVERSALSDK}" |
| 3127 | then |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3128 | 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] | 3129 | then |
| 3130 | UNIVERSAL_ARCHS="intel" |
| 3131 | fi |
| 3132 | fi |
| 3133 | fi |
| 3134 | |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3135 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
| 3137 | $as_echo_n "checking for --with-universal-archs... " >&6; } |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3138 | |
| 3139 | # Check whether --with-universal-archs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3140 | if test "${with_universal_archs+set}" = set; then : |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3141 | withval=$with_universal_archs; |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3142 | UNIVERSAL_ARCHS="$withval" |
| 3143 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3144 | fi |
| 3145 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3146 | if test -n "${UNIVERSALSDK}" |
| 3147 | then |
| 3148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 |
| 3149 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } |
| 3150 | else |
| 3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3152 | $as_echo "no" >&6; } |
| 3153 | fi |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3154 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3155 | |
| 3156 | # Check whether --with-framework-name was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3157 | if test "${with_framework_name+set}" = set; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3158 | withval=$with_framework_name; |
| 3159 | PYTHONFRAMEWORK=${withval} |
| 3160 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 3161 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 3162 | |
| 3163 | else |
| 3164 | |
| 3165 | PYTHONFRAMEWORK=Python |
| 3166 | PYTHONFRAMEWORKDIR=Python.framework |
| 3167 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 3168 | |
| 3169 | fi |
| 3170 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3171 | # Check whether --enable-framework was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3172 | if test "${enable_framework+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3173 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3174 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3175 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3176 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3177 | esac |
| 3178 | case $enableval in |
| 3179 | no) |
| 3180 | PYTHONFRAMEWORK= |
| 3181 | PYTHONFRAMEWORKDIR=no-framework |
| 3182 | PYTHONFRAMEWORKPREFIX= |
| 3183 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3184 | FRAMEWORKINSTALLFIRST= |
| 3185 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3186 | FRAMEWORKALTINSTALLFIRST= |
| 3187 | FRAMEWORKALTINSTALLLAST= |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3188 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3189 | if test "x${prefix}" = "xNONE"; then |
| 3190 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 3191 | else |
| 3192 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3193 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3194 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3195 | ;; |
| 3196 | *) |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3197 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3198 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3199 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3200 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3201 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 3202 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3203 | FRAMEWORKPYTHONW="frameworkpythonw" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3204 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3205 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3206 | if test "x${prefix}" = "xNONE" ; then |
| 3207 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3208 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3209 | else |
| 3210 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3211 | fi |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3212 | |
| 3213 | case "${enableval}" in |
| 3214 | /System*) |
| 3215 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3216 | if test "${prefix}" = "NONE" ; then |
| 3217 | # See below |
| 3218 | FRAMEWORKUNIXTOOLSPREFIX="/usr" |
| 3219 | fi |
| 3220 | ;; |
| 3221 | |
| 3222 | /Library*) |
| 3223 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3224 | ;; |
| 3225 | |
| 3226 | */Library/Frameworks) |
| 3227 | MDIR="`dirname "${enableval}"`" |
| 3228 | MDIR="`dirname "${MDIR}"`" |
| 3229 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" |
| 3230 | |
| 3231 | if test "${prefix}" = "NONE"; then |
| 3232 | # User hasn't specified the |
| 3233 | # --prefix option, but wants to install |
| 3234 | # the framework in a non-default location, |
| 3235 | # ensure that the compatibility links get |
| 3236 | # installed relative to that prefix as well |
| 3237 | # instead of in /usr/local. |
| 3238 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" |
| 3239 | fi |
| 3240 | ;; |
| 3241 | |
| 3242 | *) |
| 3243 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 3244 | ;; |
| 3245 | esac |
| 3246 | |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3247 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3248 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3249 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3250 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3251 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3252 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3253 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3254 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3255 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 3256 | |
| 3257 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 3258 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3259 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3260 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3261 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3262 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3263 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3264 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3265 | PYTHONFRAMEWORKPREFIX= |
| 3266 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3267 | FRAMEWORKINSTALLFIRST= |
| 3268 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3269 | FRAMEWORKALTINSTALLFIRST= |
| 3270 | FRAMEWORKALTINSTALLLAST= |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3271 | FRAMEWORKPYTHONW= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3272 | if test "x${prefix}" = "xNONE" ; then |
| 3273 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 3274 | else |
| 3275 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 3276 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3277 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3278 | |
Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3279 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3280 | fi |
| 3281 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3282 | |
| 3283 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3284 | |
| 3285 | |
| 3286 | |
| 3287 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3288 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3289 | |
| 3290 | |
| 3291 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3292 | |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3293 | |
Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3294 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3295 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3296 | ## AS_HELP_STRING([--with-dyld], |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3297 | ## [Use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3298 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3299 | # Set name for machine-dependent library files |
| 3300 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
| 3302 | $as_echo_n "checking MACHDEP... " >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3303 | if test -z "$MACHDEP" |
| 3304 | then |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3305 | # avoid using uname for cross builds |
| 3306 | if test "$cross_compiling" = yes; then |
doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3307 | # ac_sys_system and ac_sys_release are used for setting |
| 3308 | # a lot of different things including 'define_xopen_source' |
| 3309 | # in the case statement below. |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3310 | case "$host" in |
| 3311 | *-*-linux*) |
| 3312 | ac_sys_system=Linux |
| 3313 | ;; |
| 3314 | *-*-cygwin*) |
| 3315 | ac_sys_system=Cygwin |
| 3316 | ;; |
| 3317 | *) |
| 3318 | # for now, limit cross builds to known configurations |
| 3319 | MACHDEP="unknown" |
| 3320 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 |
| 3321 | esac |
| 3322 | ac_sys_release= |
| 3323 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3324 | ac_sys_system=`uname -s` |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3325 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3326 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3327 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3328 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3329 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3330 | fi |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3331 | fi |
| 3332 | ac_md_system=`echo $ac_sys_system | |
| 3333 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 3334 | ac_md_release=`echo $ac_sys_release | |
| 3335 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
| 3336 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3337 | |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3338 | case $MACHDEP in |
Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3339 | linux*) MACHDEP="linux";; |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3340 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3341 | darwin*) MACHDEP="darwin";; |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 3342 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3343 | '') MACHDEP="unknown";; |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3344 | esac |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3345 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3346 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3347 | |
| 3348 | if test "$cross_compiling" = yes; then |
| 3349 | case "$host" in |
| 3350 | *-*-linux*) |
| 3351 | case "$host_cpu" in |
| 3352 | arm*) |
| 3353 | _host_cpu=arm |
| 3354 | ;; |
| 3355 | *) |
| 3356 | _host_cpu=$host_cpu |
| 3357 | esac |
| 3358 | ;; |
| 3359 | *-*-cygwin*) |
| 3360 | _host_cpu= |
| 3361 | ;; |
| 3362 | *) |
| 3363 | # for now, limit cross builds to known configurations |
| 3364 | MACHDEP="unknown" |
| 3365 | as_fn_error $? "cross build not supported for $host" "$LINENO" 5 |
| 3366 | esac |
| 3367 | _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" |
| 3368 | fi |
| 3369 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3370 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 3371 | # disable features if it is defined, without any means to access these |
| 3372 | # features as extensions. For these systems, we skip the definition of |
| 3373 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 3374 | # some feature, make sure there is no alternative way to access this |
| 3375 | # feature. Also, when using wildcards, make sure you have verified the |
| 3376 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 3377 | # wildcard, and that the wildcard does not include future systems |
| 3378 | # (which may remove their limitations). |
| 3379 | case $ac_sys_system/$ac_sys_release in |
| 3380 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 3381 | # 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] | 3382 | # 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] | 3383 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
| 3384 | # OpenBSD 4.6, but is fixed in 4.7. |
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3385 | OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3386 | define_xopen_source=no |
| 3387 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3388 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3389 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3390 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3391 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3392 | |
| 3393 | ;; |
Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3394 | OpenBSD/*) |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3395 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3396 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3397 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3398 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3399 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3400 | |
| 3401 | ;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3402 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 3403 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 3404 | # Marc Recht |
Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3405 | 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] | 3406 | define_xopen_source=no;; |
Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3407 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a |
| 3408 | # request to enable features supported by the standard as a request |
| 3409 | # to disable features not supported by the standard. The best way |
| 3410 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out |
| 3411 | # entirely and define __EXTENSIONS__ instead. |
| 3412 | SunOS/*) |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3413 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3414 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 3415 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3416 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3417 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3418 | define_xopen_source=no;; |
| 3419 | # 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] | 3420 | # 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] | 3421 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3422 | define_xopen_source=no;; |
Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3423 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 3424 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 3425 | FreeBSD/4.*) |
| 3426 | define_xopen_source=no;; |
| 3427 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 3428 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 3429 | # identifies itself as Darwin/7.* |
| 3430 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3431 | # disables platform specific features beyond repair. |
| 3432 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3433 | # has no effect, don't bother defining them |
| 3434 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3435 | define_xopen_source=no;; |
Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3436 | Darwin/1[0-9].*) |
Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3437 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3438 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 3439 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 3440 | # 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] | 3441 | AIX/4) |
| 3442 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3443 | AIX/5) |
| 3444 | if test `uname -r` -eq 1; then |
| 3445 | define_xopen_source=no |
| 3446 | fi |
| 3447 | ;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3448 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 3449 | # defining NI_NUMERICHOST. |
| 3450 | QNX/6.3.2) |
| 3451 | define_xopen_source=no |
| 3452 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3453 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3454 | esac |
| 3455 | |
| 3456 | if test $define_xopen_source = yes |
| 3457 | then |
Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3458 | # X/Open 7, incorporating POSIX.1-2008 |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3459 | |
Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3460 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3461 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3462 | |
| 3463 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 3464 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 3465 | # several APIs are not declared. Since this is also needed in some |
| 3466 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3467 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3468 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3469 | |
| 3470 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3471 | |
Victor Stinner | d169fdc | 2011-09-08 00:56:17 +0200 | [diff] [blame] | 3472 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3473 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3474 | fi |
| 3475 | |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3476 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE |
| 3477 | case $ac_sys_system in |
Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3478 | hp*|HP*) |
| 3479 | define_stdc_a1=yes;; |
| 3480 | *) |
| 3481 | define_stdc_a1=no;; |
| 3482 | esac |
| 3483 | |
| 3484 | if test $define_stdc_a1 = yes |
| 3485 | then |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3486 | |
| 3487 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h |
| 3488 | |
Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3489 | fi |
Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3490 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3491 | # |
| 3492 | # SGI compilers allow the specification of the both the ABI and the |
| 3493 | # ISA on the command line. Depending on the values of these switches, |
| 3494 | # different and often incompatable code will be generated. |
| 3495 | # |
| 3496 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 3497 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 3498 | # variable is also adjusted. |
| 3499 | # |
| 3500 | |
| 3501 | if test ! -z "$SGI_ABI" |
| 3502 | then |
| 3503 | CC="cc $SGI_ABI" |
| 3504 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 3505 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 3506 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 |
| 3508 | $as_echo "$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3509 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3510 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 3511 | # it may influence the way we can build extensions, so distutils |
| 3512 | # needs to check it |
| 3513 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3514 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3515 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3516 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3517 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3518 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3519 | |
| 3520 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 3521 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 3522 | # just to get things to compile and link. Users are free to override OPT |
| 3523 | # when running configure or make. The build should not break if they do. |
| 3524 | # BASECFLAGS should generally not be messed with, however. |
| 3525 | |
| 3526 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 3527 | # on that fiddles with OPT and BASECFLAGS? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 |
| 3529 | $as_echo_n "checking for --without-gcc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3530 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3531 | # Check whether --with-gcc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3532 | if test "${with_gcc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3533 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3534 | case $withval in |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3535 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3536 | without_gcc=yes;; |
| 3537 | yes) CC=gcc |
| 3538 | without_gcc=no;; |
| 3539 | *) CC=$withval |
| 3540 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3541 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3542 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3543 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3544 | case $ac_sys_system in |
Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3545 | AIX*) CC=${CC:-xlc_r} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3546 | without_gcc=;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3547 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3548 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3549 | fi |
| 3550 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 |
| 3552 | $as_echo "$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3553 | |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 |
| 3555 | $as_echo_n "checking for --with-icc... " >&6; } |
| 3556 | |
| 3557 | # Check whether --with-icc was given. |
| 3558 | if test "${with_icc+set}" = set; then : |
| 3559 | withval=$with_icc; |
| 3560 | case $withval in |
| 3561 | no) CC=${CC:-cc} |
| 3562 | with_icc=no;; |
| 3563 | yes) CC=icc |
| 3564 | CXX=icpc |
| 3565 | with_icc=yes;; |
| 3566 | *) CC=$withval |
| 3567 | with_icc=$withval;; |
| 3568 | esac |
| 3569 | else |
| 3570 | |
| 3571 | with_icc=no |
| 3572 | fi |
| 3573 | |
| 3574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 |
| 3575 | $as_echo "$with_icc" >&6; } |
| 3576 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3577 | # If the user switches compilers, we can't believe the cache |
| 3578 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 3579 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3580 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3581 | (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] | 3582 | fi |
| 3583 | |
Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3584 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 |
| 3585 | # when the compiler supports them, but we don't always want -O2, and |
| 3586 | # we set -g later. |
| 3587 | if test -z "$CFLAGS"; then |
| 3588 | CFLAGS= |
| 3589 | fi |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3590 | |
| 3591 | if test "$ac_sys_system" = "Darwin" |
| 3592 | then |
| 3593 | # Compiler selection on MacOSX is more complicated than |
| 3594 | # AC_PROG_CC can handle, see Mac/README.txt for more |
| 3595 | # information |
| 3596 | if test -z "${CC}" |
| 3597 | then |
| 3598 | found_gcc= |
| 3599 | found_clang= |
| 3600 | as_save_IFS=$IFS; IFS=: |
| 3601 | for as_dir in $PATH |
| 3602 | do |
| 3603 | IFS=$as_save_IFS |
| 3604 | if test -x $as_dir/gcc; then |
| 3605 | if test -z "${found_gcc}"; then |
| 3606 | found_gcc=$as_dir/gcc |
| 3607 | fi |
| 3608 | fi |
| 3609 | if test -x $as_dir/clang; then |
| 3610 | if test -z "${found_clang}"; then |
| 3611 | found_clang=$as_dir/clang |
| 3612 | fi |
| 3613 | fi |
| 3614 | done |
| 3615 | IFS=$as_save_IFS |
| 3616 | |
| 3617 | if test -n "$found_gcc" -a -n "$found_clang" |
| 3618 | then |
| 3619 | if test -n "`"$found_gcc" --version | grep llvm-gcc`" |
| 3620 | then |
| 3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 |
| 3622 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} |
| 3623 | CC="$found_clang" |
| 3624 | CXX="$found_clang++" |
| 3625 | fi |
| 3626 | |
| 3627 | |
| 3628 | elif test -z "$found_gcc" -a -n "$found_clang" |
| 3629 | then |
| 3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 |
| 3631 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} |
| 3632 | CC="$found_clang" |
| 3633 | CXX="$found_clang++" |
| 3634 | |
| 3635 | elif test -z "$found_gcc" -a -z "$found_clang" |
| 3636 | then |
| 3637 | found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` |
| 3638 | if test -n "${found_clang}" |
| 3639 | then |
| 3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 |
| 3641 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} |
| 3642 | CC="${found_clang}" |
| 3643 | CXX="`/usr/bin/xcrun -find clang++`" |
| 3644 | |
| 3645 | # else: use default behaviour |
| 3646 | fi |
| 3647 | fi |
| 3648 | fi |
| 3649 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3650 | ac_ext=c |
| 3651 | ac_cpp='$CPP $CPPFLAGS' |
| 3652 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3653 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3655 | if test -n "$ac_tool_prefix"; then |
| 3656 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3657 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3659 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3660 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3661 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3662 | else |
| 3663 | if test -n "$CC"; then |
| 3664 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3665 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3667 | for as_dir in $PATH |
| 3668 | do |
| 3669 | IFS=$as_save_IFS |
| 3670 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3671 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3672 | 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] | 3673 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3674 | $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] | 3675 | break 2 |
| 3676 | fi |
| 3677 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3678 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3679 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3680 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3681 | fi |
| 3682 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3683 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3684 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3686 | $as_echo "$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3687 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3689 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3690 | fi |
| 3691 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3693 | fi |
| 3694 | if test -z "$ac_cv_prog_CC"; then |
| 3695 | ac_ct_CC=$CC |
| 3696 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3697 | set dummy gcc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3699 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3700 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3701 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3702 | else |
| 3703 | if test -n "$ac_ct_CC"; then |
| 3704 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3705 | else |
| 3706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3707 | for as_dir in $PATH |
| 3708 | do |
| 3709 | IFS=$as_save_IFS |
| 3710 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3711 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3712 | 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] | 3713 | ac_cv_prog_ac_ct_CC="gcc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3714 | $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] | 3715 | break 2 |
| 3716 | fi |
| 3717 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3718 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3719 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3720 | |
| 3721 | fi |
| 3722 | fi |
| 3723 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3724 | if test -n "$ac_ct_CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3726 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3727 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3729 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3730 | fi |
| 3731 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3732 | if test "x$ac_ct_CC" = x; then |
| 3733 | CC="" |
| 3734 | else |
| 3735 | case $cross_compiling:$ac_tool_warned in |
| 3736 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3737 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3738 | $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] | 3739 | ac_tool_warned=yes ;; |
| 3740 | esac |
| 3741 | CC=$ac_ct_CC |
| 3742 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3743 | else |
| 3744 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3745 | fi |
| 3746 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3747 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3748 | if test -n "$ac_tool_prefix"; then |
| 3749 | # 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] | 3750 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3752 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3753 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3754 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3755 | else |
| 3756 | if test -n "$CC"; then |
| 3757 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3758 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3760 | for as_dir in $PATH |
| 3761 | do |
| 3762 | IFS=$as_save_IFS |
| 3763 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3764 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3765 | 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] | 3766 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3767 | $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] | 3768 | break 2 |
| 3769 | fi |
| 3770 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3771 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3772 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3773 | |
| 3774 | fi |
| 3775 | fi |
| 3776 | CC=$ac_cv_prog_CC |
| 3777 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3779 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3780 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3782 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3783 | fi |
| 3784 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3785 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3786 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3787 | fi |
| 3788 | if test -z "$CC"; then |
| 3789 | # Extract the first word of "cc", so it can be a program name with args. |
| 3790 | set dummy cc; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3792 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3793 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3794 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3795 | else |
| 3796 | if test -n "$CC"; then |
| 3797 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3798 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3799 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3801 | for as_dir in $PATH |
| 3802 | do |
| 3803 | IFS=$as_save_IFS |
| 3804 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3805 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3806 | 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] | 3807 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3808 | ac_prog_rejected=yes |
| 3809 | continue |
| 3810 | fi |
| 3811 | ac_cv_prog_CC="cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3812 | $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] | 3813 | break 2 |
| 3814 | fi |
| 3815 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3816 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3817 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3818 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3819 | if test $ac_prog_rejected = yes; then |
| 3820 | # We found a bogon in the path, so make sure we never use it. |
| 3821 | set dummy $ac_cv_prog_CC |
| 3822 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3823 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3824 | # We chose a different compiler from the bogus one. |
| 3825 | # However, it has the same basename, so the bogon will be chosen |
| 3826 | # first if we set CC to just the basename; use the full file name. |
| 3827 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3828 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3829 | fi |
| 3830 | fi |
| 3831 | fi |
| 3832 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3833 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3834 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3836 | $as_echo "$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3837 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3839 | $as_echo "no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3840 | fi |
| 3841 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3843 | fi |
| 3844 | if test -z "$CC"; then |
| 3845 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3846 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3847 | do |
| 3848 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3849 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3851 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3852 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3853 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3854 | else |
| 3855 | if test -n "$CC"; then |
| 3856 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3857 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3859 | for as_dir in $PATH |
| 3860 | do |
| 3861 | IFS=$as_save_IFS |
| 3862 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3863 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3864 | 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] | 3865 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3866 | $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] | 3867 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3868 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3869 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3870 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3871 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3872 | |
| 3873 | fi |
| 3874 | fi |
| 3875 | CC=$ac_cv_prog_CC |
| 3876 | if test -n "$CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3878 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3879 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3881 | $as_echo "no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3882 | fi |
| 3883 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3885 | test -n "$CC" && break |
| 3886 | done |
| 3887 | fi |
| 3888 | if test -z "$CC"; then |
| 3889 | ac_ct_CC=$CC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3890 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3891 | do |
| 3892 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3893 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3895 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3896 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3897 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3898 | else |
| 3899 | if test -n "$ac_ct_CC"; then |
| 3900 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3901 | else |
| 3902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3903 | for as_dir in $PATH |
| 3904 | do |
| 3905 | IFS=$as_save_IFS |
| 3906 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3907 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3908 | 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] | 3909 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3910 | $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] | 3911 | break 2 |
| 3912 | fi |
| 3913 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3914 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3915 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3917 | fi |
| 3918 | fi |
| 3919 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3920 | if test -n "$ac_ct_CC"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3922 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3923 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3925 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3926 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3927 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3929 | test -n "$ac_ct_CC" && break |
| 3930 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3931 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3932 | if test "x$ac_ct_CC" = x; then |
| 3933 | CC="" |
| 3934 | else |
| 3935 | case $cross_compiling:$ac_tool_warned in |
| 3936 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3938 | $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] | 3939 | ac_tool_warned=yes ;; |
| 3940 | esac |
| 3941 | CC=$ac_ct_CC |
| 3942 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3943 | fi |
| 3944 | |
| 3945 | fi |
| 3946 | |
| 3947 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3948 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3949 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3950 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3951 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3952 | |
| 3953 | # Provide some information about the compiler. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3954 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3955 | set X $ac_compile |
| 3956 | ac_compiler=$2 |
| 3957 | for ac_option in --version -v -V -qversion; do |
| 3958 | { { ac_try="$ac_compiler $ac_option >&5" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3959 | case "(($ac_try" in |
| 3960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3961 | *) ac_try_echo=$ac_try;; |
| 3962 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3963 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3964 | $as_echo "$ac_try_echo"; } >&5 |
| 3965 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3966 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3967 | if test -s conftest.err; then |
| 3968 | sed '10a\ |
| 3969 | ... rest of stderr output deleted ... |
| 3970 | 10q' conftest.err >conftest.er1 |
| 3971 | cat conftest.er1 >&5 |
| 3972 | fi |
| 3973 | rm -f conftest.er1 conftest.err |
| 3974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3975 | test $ac_status = 0; } |
| 3976 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3977 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3979 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3981 | int |
| 3982 | main () |
| 3983 | { |
| 3984 | |
| 3985 | ; |
| 3986 | return 0; |
| 3987 | } |
| 3988 | _ACEOF |
| 3989 | ac_clean_files_save=$ac_clean_files |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3990 | 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] | 3991 | # Try to create an executable without -o first, disregard a.out. |
| 3992 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3993 | # of exeext. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3995 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3996 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3997 | |
| 3998 | # The possible output files: |
| 3999 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4000 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4001 | ac_rmfiles= |
| 4002 | for ac_file in $ac_files |
| 4003 | do |
| 4004 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4005 | *.$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] | 4006 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4007 | esac |
| 4008 | done |
| 4009 | rm -f $ac_rmfiles |
| 4010 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4011 | if { { ac_try="$ac_link_default" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4012 | case "(($ac_try" in |
| 4013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4014 | *) ac_try_echo=$ac_try;; |
| 4015 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4016 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4017 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4018 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4019 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4020 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4021 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4022 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4023 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4024 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4025 | # so that the user can short-circuit this test for compilers unknown to |
| 4026 | # Autoconf. |
| 4027 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4028 | do |
| 4029 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4030 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4031 | *.$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] | 4032 | ;; |
| 4033 | [ab].out ) |
| 4034 | # We found the default executable, but exeext='' is most |
| 4035 | # certainly right. |
| 4036 | break;; |
| 4037 | *.* ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4038 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4039 | then :; else |
| 4040 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4041 | fi |
| 4042 | # We set ac_cv_exeext here because the later test for it is not |
| 4043 | # safe: cross compilers may not add the suffix if given an `-o' |
| 4044 | # argument, so we may need to know it at that point already. |
| 4045 | # Even if this section looks crufty: it has the advantage of |
| 4046 | # actually working. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4047 | break;; |
| 4048 | * ) |
| 4049 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4050 | esac |
| 4051 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4052 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4053 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4054 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4055 | ac_file='' |
| 4056 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4057 | if test -z "$ac_file"; then : |
| 4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4059 | $as_echo "no" >&6; } |
| 4060 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4062 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4063 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4064 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4065 | as_fn_error 77 "C compiler cannot create executables |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4066 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4067 | else |
| 4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4069 | $as_echo "yes" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4070 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4072 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4074 | $as_echo "$ac_file" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4075 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4076 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4077 | 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] | 4078 | ac_clean_files=$ac_clean_files_save |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4080 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 4081 | if { { ac_try="$ac_link" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4082 | case "(($ac_try" in |
| 4083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4084 | *) ac_try_echo=$ac_try;; |
| 4085 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4086 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4087 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4088 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4089 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4090 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4091 | test $ac_status = 0; }; then : |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4092 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4093 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4094 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4095 | # `rm'. |
| 4096 | for ac_file in conftest.exe conftest conftest.*; do |
| 4097 | test -f "$ac_file" || continue |
| 4098 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4099 | *.$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] | 4100 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4101 | break;; |
| 4102 | * ) break;; |
| 4103 | esac |
| 4104 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4105 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4106 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4107 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4108 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4109 | See \`config.log' for more details" "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4110 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4111 | rm -f conftest conftest$ac_cv_exeext |
| 4112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4113 | $as_echo "$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4114 | |
| 4115 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4116 | EXEEXT=$ac_cv_exeext |
| 4117 | ac_exeext=$EXEEXT |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4119 | /* end confdefs.h. */ |
| 4120 | #include <stdio.h> |
| 4121 | int |
| 4122 | main () |
| 4123 | { |
| 4124 | FILE *f = fopen ("conftest.out", "w"); |
| 4125 | return ferror (f) || fclose (f) != 0; |
| 4126 | |
| 4127 | ; |
| 4128 | return 0; |
| 4129 | } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4130 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4131 | ac_clean_files="$ac_clean_files conftest.out" |
| 4132 | # Check that the compiler produces executables we can run. If not, either |
| 4133 | # the compiler is broken, or we cross compile. |
| 4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4135 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 4136 | if test "$cross_compiling" != yes; then |
| 4137 | { { ac_try="$ac_link" |
| 4138 | case "(($ac_try" in |
| 4139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4140 | *) ac_try_echo=$ac_try;; |
| 4141 | esac |
| 4142 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4143 | $as_echo "$ac_try_echo"; } >&5 |
| 4144 | (eval "$ac_link") 2>&5 |
| 4145 | ac_status=$? |
| 4146 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4147 | test $ac_status = 0; } |
| 4148 | if { ac_try='./conftest$ac_cv_exeext' |
| 4149 | { { case "(($ac_try" in |
| 4150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4151 | *) ac_try_echo=$ac_try;; |
| 4152 | esac |
| 4153 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4154 | $as_echo "$ac_try_echo"; } >&5 |
| 4155 | (eval "$ac_try") 2>&5 |
| 4156 | ac_status=$? |
| 4157 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4158 | test $ac_status = 0; }; }; then |
| 4159 | cross_compiling=no |
| 4160 | else |
| 4161 | if test "$cross_compiling" = maybe; then |
| 4162 | cross_compiling=yes |
| 4163 | else |
| 4164 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4165 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4166 | as_fn_error $? "cannot run C compiled programs. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4167 | If you meant to cross compile, use \`--host'. |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4168 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4169 | fi |
| 4170 | fi |
| 4171 | fi |
| 4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4173 | $as_echo "$cross_compiling" >&6; } |
| 4174 | |
| 4175 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4176 | ac_clean_files=$ac_clean_files_save |
| 4177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4178 | $as_echo_n "checking for suffix of object files... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4179 | if ${ac_cv_objext+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4180 | $as_echo_n "(cached) " >&6 |
| 4181 | else |
| 4182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4183 | /* end confdefs.h. */ |
| 4184 | |
| 4185 | int |
| 4186 | main () |
| 4187 | { |
| 4188 | |
| 4189 | ; |
| 4190 | return 0; |
| 4191 | } |
| 4192 | _ACEOF |
| 4193 | rm -f conftest.o conftest.obj |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4194 | if { { ac_try="$ac_compile" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4195 | case "(($ac_try" in |
| 4196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4197 | *) ac_try_echo=$ac_try;; |
| 4198 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4199 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4200 | $as_echo "$ac_try_echo"; } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4201 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4202 | ac_status=$? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4204 | test $ac_status = 0; }; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4205 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4206 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4207 | case $ac_file in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4208 | *.$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] | 4209 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4210 | break;; |
| 4211 | esac |
| 4212 | done |
| 4213 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4214 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4216 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4217 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4218 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4219 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4220 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4221 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4222 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4223 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4225 | $as_echo "$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4226 | OBJEXT=$ac_cv_objext |
| 4227 | ac_objext=$OBJEXT |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4229 | $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] | 4230 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4231 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4232 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4234 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4236 | int |
| 4237 | main () |
| 4238 | { |
| 4239 | #ifndef __GNUC__ |
| 4240 | choke me |
| 4241 | #endif |
| 4242 | |
| 4243 | ; |
| 4244 | return 0; |
| 4245 | } |
| 4246 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4247 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4248 | ac_compiler_gnu=yes |
| 4249 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4250 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4251 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4253 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4254 | |
| 4255 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4257 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4258 | if test $ac_compiler_gnu = yes; then |
| 4259 | GCC=yes |
| 4260 | else |
| 4261 | GCC= |
| 4262 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4263 | ac_test_CFLAGS=${CFLAGS+set} |
| 4264 | ac_save_CFLAGS=$CFLAGS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4266 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4267 | if ${ac_cv_prog_cc_g+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4268 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4269 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4270 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4271 | ac_c_werror_flag=yes |
| 4272 | ac_cv_prog_cc_g=no |
| 4273 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4275 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4277 | int |
| 4278 | main () |
| 4279 | { |
| 4280 | |
| 4281 | ; |
| 4282 | return 0; |
| 4283 | } |
| 4284 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4285 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4286 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4287 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4288 | CFLAGS="" |
| 4289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4290 | /* end confdefs.h. */ |
| 4291 | |
| 4292 | int |
| 4293 | main () |
| 4294 | { |
| 4295 | |
| 4296 | ; |
| 4297 | return 0; |
| 4298 | } |
| 4299 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4300 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4301 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4302 | else |
| 4303 | ac_c_werror_flag=$ac_save_c_werror_flag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4304 | CFLAGS="-g" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4306 | /* end confdefs.h. */ |
| 4307 | |
| 4308 | int |
| 4309 | main () |
| 4310 | { |
| 4311 | |
| 4312 | ; |
| 4313 | return 0; |
| 4314 | } |
| 4315 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4316 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4317 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4318 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4320 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4322 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4324 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4325 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4327 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4328 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4329 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4330 | elif test $ac_cv_prog_cc_g = yes; then |
| 4331 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4332 | CFLAGS="-g -O2" |
| 4333 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4334 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4335 | fi |
| 4336 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4337 | if test "$GCC" = yes; then |
| 4338 | CFLAGS="-O2" |
| 4339 | else |
| 4340 | CFLAGS= |
| 4341 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4342 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4344 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4345 | if ${ac_cv_prog_cc_c89+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4346 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4347 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4348 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4349 | ac_save_CC=$CC |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4351 | /* end confdefs.h. */ |
| 4352 | #include <stdarg.h> |
| 4353 | #include <stdio.h> |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4354 | struct stat; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4355 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4356 | struct buf { int x; }; |
| 4357 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4358 | static char *e (p, i) |
| 4359 | char **p; |
| 4360 | int i; |
| 4361 | { |
| 4362 | return p[i]; |
| 4363 | } |
| 4364 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4365 | { |
| 4366 | char *s; |
| 4367 | va_list v; |
| 4368 | va_start (v,p); |
| 4369 | s = g (p, va_arg (v,int)); |
| 4370 | va_end (v); |
| 4371 | return s; |
| 4372 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4373 | |
| 4374 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4375 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4376 | These don't provoke an error unfortunately, instead are silently treated |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4377 | 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] | 4378 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4379 | 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] | 4380 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4381 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4382 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4383 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4384 | inside strings and character constants. */ |
| 4385 | #define FOO(x) 'x' |
| 4386 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4387 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4388 | int test (int i, double x); |
| 4389 | struct s1 {int (*f) (int a);}; |
| 4390 | struct s2 {int (*f) (double a);}; |
| 4391 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4392 | int argc; |
| 4393 | char **argv; |
| 4394 | int |
| 4395 | main () |
| 4396 | { |
| 4397 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4398 | ; |
| 4399 | return 0; |
| 4400 | } |
| 4401 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4402 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4403 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4404 | do |
| 4405 | CC="$ac_save_CC $ac_arg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4406 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4407 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4408 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4409 | rm -f core conftest.err conftest.$ac_objext |
| 4410 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4411 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4412 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4413 | CC=$ac_save_CC |
| 4414 | |
| 4415 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4416 | # AC_CACHE_VAL |
| 4417 | case "x$ac_cv_prog_cc_c89" in |
| 4418 | x) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4420 | $as_echo "none needed" >&6; } ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4421 | xno) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4423 | $as_echo "unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4424 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4425 | CC="$CC $ac_cv_prog_cc_c89" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4427 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4428 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4429 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4430 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4431 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4433 | ac_ext=c |
| 4434 | ac_cpp='$CPP $CPPFLAGS' |
| 4435 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4436 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4437 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4438 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4439 | ac_ext=c |
| 4440 | ac_cpp='$CPP $CPPFLAGS' |
| 4441 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4442 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4443 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4445 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 4446 | # On Suns, sometimes $CPP names a directory. |
| 4447 | if test -n "$CPP" && test -d "$CPP"; then |
| 4448 | CPP= |
| 4449 | fi |
| 4450 | if test -z "$CPP"; then |
| 4451 | if ${ac_cv_prog_CPP+:} false; then : |
| 4452 | $as_echo_n "(cached) " >&6 |
| 4453 | else |
| 4454 | # Double quotes because CPP needs to be expanded |
| 4455 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4456 | do |
| 4457 | ac_preproc_ok=false |
| 4458 | for ac_c_preproc_warn_flag in '' yes |
| 4459 | do |
| 4460 | # Use a header file that comes with gcc, so configuring glibc |
| 4461 | # with a fresh cross-compiler works. |
| 4462 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4463 | # <limits.h> exists even on freestanding compilers. |
| 4464 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4465 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4467 | /* end confdefs.h. */ |
| 4468 | #ifdef __STDC__ |
| 4469 | # include <limits.h> |
| 4470 | #else |
| 4471 | # include <assert.h> |
| 4472 | #endif |
| 4473 | Syntax error |
| 4474 | _ACEOF |
| 4475 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4476 | |
| 4477 | else |
| 4478 | # Broken: fails on valid input. |
| 4479 | continue |
| 4480 | fi |
| 4481 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4482 | |
| 4483 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4484 | # can be detected and how. |
| 4485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4486 | /* end confdefs.h. */ |
| 4487 | #include <ac_nonexistent.h> |
| 4488 | _ACEOF |
| 4489 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4490 | # Broken: success on invalid input. |
| 4491 | continue |
| 4492 | else |
| 4493 | # Passes both tests. |
| 4494 | ac_preproc_ok=: |
| 4495 | break |
| 4496 | fi |
| 4497 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4498 | |
| 4499 | done |
| 4500 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4501 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4502 | if $ac_preproc_ok; then : |
| 4503 | break |
| 4504 | fi |
| 4505 | |
| 4506 | done |
| 4507 | ac_cv_prog_CPP=$CPP |
| 4508 | |
| 4509 | fi |
| 4510 | CPP=$ac_cv_prog_CPP |
| 4511 | else |
| 4512 | ac_cv_prog_CPP=$CPP |
| 4513 | fi |
| 4514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4515 | $as_echo "$CPP" >&6; } |
| 4516 | ac_preproc_ok=false |
| 4517 | for ac_c_preproc_warn_flag in '' yes |
| 4518 | do |
| 4519 | # Use a header file that comes with gcc, so configuring glibc |
| 4520 | # with a fresh cross-compiler works. |
| 4521 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4522 | # <limits.h> exists even on freestanding compilers. |
| 4523 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4524 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4526 | /* end confdefs.h. */ |
| 4527 | #ifdef __STDC__ |
| 4528 | # include <limits.h> |
| 4529 | #else |
| 4530 | # include <assert.h> |
| 4531 | #endif |
| 4532 | Syntax error |
| 4533 | _ACEOF |
| 4534 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4535 | |
| 4536 | else |
| 4537 | # Broken: fails on valid input. |
| 4538 | continue |
| 4539 | fi |
| 4540 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4541 | |
| 4542 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4543 | # can be detected and how. |
| 4544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4545 | /* end confdefs.h. */ |
| 4546 | #include <ac_nonexistent.h> |
| 4547 | _ACEOF |
| 4548 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4549 | # Broken: success on invalid input. |
| 4550 | continue |
| 4551 | else |
| 4552 | # Passes both tests. |
| 4553 | ac_preproc_ok=: |
| 4554 | break |
| 4555 | fi |
| 4556 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4557 | |
| 4558 | done |
| 4559 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4560 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4561 | if $ac_preproc_ok; then : |
| 4562 | |
| 4563 | else |
| 4564 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4565 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4566 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4567 | See \`config.log' for more details" "$LINENO" 5; } |
| 4568 | fi |
| 4569 | |
| 4570 | ac_ext=c |
| 4571 | ac_cpp='$CPP $CPPFLAGS' |
| 4572 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4573 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4574 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4575 | |
| 4576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4577 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4578 | if ${ac_cv_path_GREP+:} false; then : |
| 4579 | $as_echo_n "(cached) " >&6 |
| 4580 | else |
| 4581 | if test -z "$GREP"; then |
| 4582 | ac_path_GREP_found=false |
| 4583 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4585 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4586 | do |
| 4587 | IFS=$as_save_IFS |
| 4588 | test -z "$as_dir" && as_dir=. |
| 4589 | for ac_prog in grep ggrep; do |
| 4590 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4591 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4592 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4593 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4594 | # Check for GNU $ac_path_GREP |
| 4595 | case `"$ac_path_GREP" --version 2>&1` in |
| 4596 | *GNU*) |
| 4597 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4598 | *) |
| 4599 | ac_count=0 |
| 4600 | $as_echo_n 0123456789 >"conftest.in" |
| 4601 | while : |
| 4602 | do |
| 4603 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4604 | mv "conftest.tmp" "conftest.in" |
| 4605 | cp "conftest.in" "conftest.nl" |
| 4606 | $as_echo 'GREP' >> "conftest.nl" |
| 4607 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4608 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4609 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4610 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4611 | # Best one so far, save it but keep looking for a better one |
| 4612 | ac_cv_path_GREP="$ac_path_GREP" |
| 4613 | ac_path_GREP_max=$ac_count |
| 4614 | fi |
| 4615 | # 10*(2^10) chars as input seems more than enough |
| 4616 | test $ac_count -gt 10 && break |
| 4617 | done |
| 4618 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4619 | esac |
| 4620 | |
| 4621 | $ac_path_GREP_found && break 3 |
| 4622 | done |
| 4623 | done |
| 4624 | done |
| 4625 | IFS=$as_save_IFS |
| 4626 | if test -z "$ac_cv_path_GREP"; then |
| 4627 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4628 | fi |
| 4629 | else |
| 4630 | ac_cv_path_GREP=$GREP |
| 4631 | fi |
| 4632 | |
| 4633 | fi |
| 4634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4635 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4636 | GREP="$ac_cv_path_GREP" |
| 4637 | |
| 4638 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4639 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4640 | |
| 4641 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
| 4643 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4644 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4645 | # Check whether --with-cxx_main was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4646 | if test "${with_cxx_main+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4647 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4648 | |
| 4649 | case $withval in |
| 4650 | no) with_cxx_main=no |
| 4651 | MAINCC='$(CC)';; |
| 4652 | yes) with_cxx_main=yes |
| 4653 | MAINCC='$(CXX)';; |
| 4654 | *) with_cxx_main=yes |
| 4655 | MAINCC=$withval |
| 4656 | if test -z "$CXX" |
| 4657 | then |
| 4658 | CXX=$withval |
| 4659 | fi;; |
| 4660 | esac |
| 4661 | else |
| 4662 | |
| 4663 | with_cxx_main=no |
| 4664 | MAINCC='$(CC)' |
| 4665 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4666 | fi |
| 4667 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
| 4669 | $as_echo "$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4670 | |
| 4671 | preset_cxx="$CXX" |
| 4672 | if test -z "$CXX" |
| 4673 | then |
| 4674 | case "$CC" in |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4675 | gcc) if test -n "$ac_tool_prefix"; then |
| 4676 | # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. |
| 4677 | set dummy ${ac_tool_prefix}g++; ac_word=$2 |
| 4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4679 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4680 | if ${ac_cv_path_CXX+:} false; then : |
| 4681 | $as_echo_n "(cached) " >&6 |
| 4682 | else |
| 4683 | case $CXX in |
| 4684 | [\\/]* | ?:[\\/]*) |
| 4685 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4686 | ;; |
| 4687 | *) |
| 4688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4689 | for as_dir in notfound |
| 4690 | do |
| 4691 | IFS=$as_save_IFS |
| 4692 | test -z "$as_dir" && as_dir=. |
| 4693 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4694 | 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] | 4695 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4697 | break 2 |
| 4698 | fi |
| 4699 | done |
| 4700 | done |
| 4701 | IFS=$as_save_IFS |
| 4702 | |
| 4703 | ;; |
| 4704 | esac |
| 4705 | fi |
| 4706 | CXX=$ac_cv_path_CXX |
| 4707 | if test -n "$CXX"; then |
| 4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4709 | $as_echo "$CXX" >&6; } |
| 4710 | else |
| 4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4712 | $as_echo "no" >&6; } |
| 4713 | fi |
| 4714 | |
| 4715 | |
| 4716 | fi |
| 4717 | if test -z "$ac_cv_path_CXX"; then |
| 4718 | ac_pt_CXX=$CXX |
| 4719 | # 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] | 4720 | set dummy g++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4722 | $as_echo_n "checking for $ac_word... " >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4723 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
| 4724 | $as_echo_n "(cached) " >&6 |
| 4725 | else |
| 4726 | case $ac_pt_CXX in |
| 4727 | [\\/]* | ?:[\\/]*) |
| 4728 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
| 4729 | ;; |
| 4730 | *) |
| 4731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4732 | for as_dir in notfound |
| 4733 | do |
| 4734 | IFS=$as_save_IFS |
| 4735 | test -z "$as_dir" && as_dir=. |
| 4736 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4737 | 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] | 4738 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4740 | break 2 |
| 4741 | fi |
| 4742 | done |
| 4743 | done |
| 4744 | IFS=$as_save_IFS |
| 4745 | |
| 4746 | ;; |
| 4747 | esac |
| 4748 | fi |
| 4749 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 4750 | if test -n "$ac_pt_CXX"; then |
| 4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 4752 | $as_echo "$ac_pt_CXX" >&6; } |
| 4753 | else |
| 4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4755 | $as_echo "no" >&6; } |
| 4756 | fi |
| 4757 | |
| 4758 | if test "x$ac_pt_CXX" = x; then |
| 4759 | CXX="g++" |
| 4760 | else |
| 4761 | case $cross_compiling:$ac_tool_warned in |
| 4762 | yes:) |
| 4763 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4764 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4765 | ac_tool_warned=yes ;; |
| 4766 | esac |
| 4767 | CXX=$ac_pt_CXX |
| 4768 | fi |
| 4769 | else |
| 4770 | CXX="$ac_cv_path_CXX" |
| 4771 | fi |
| 4772 | ;; |
| 4773 | cc) if test -n "$ac_tool_prefix"; then |
| 4774 | # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. |
| 4775 | set dummy ${ac_tool_prefix}c++; ac_word=$2 |
| 4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4777 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4778 | if ${ac_cv_path_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4779 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4780 | else |
| 4781 | case $CXX in |
| 4782 | [\\/]* | ?:[\\/]*) |
| 4783 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4784 | ;; |
| 4785 | *) |
| 4786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4787 | for as_dir in notfound |
| 4788 | do |
| 4789 | IFS=$as_save_IFS |
| 4790 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4791 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4792 | 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] | 4793 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4794 | $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] | 4795 | break 2 |
| 4796 | fi |
| 4797 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4798 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4799 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4800 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4801 | ;; |
| 4802 | esac |
| 4803 | fi |
| 4804 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4805 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4807 | $as_echo "$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4808 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4810 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4811 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4812 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4813 | |
| 4814 | fi |
| 4815 | if test -z "$ac_cv_path_CXX"; then |
| 4816 | ac_pt_CXX=$CXX |
| 4817 | # 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] | 4818 | set dummy c++; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4820 | $as_echo_n "checking for $ac_word... " >&6; } |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4821 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4822 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4823 | else |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4824 | case $ac_pt_CXX in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4825 | [\\/]* | ?:[\\/]*) |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4826 | 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] | 4827 | ;; |
| 4828 | *) |
| 4829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4830 | for as_dir in notfound |
| 4831 | do |
| 4832 | IFS=$as_save_IFS |
| 4833 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4834 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4835 | 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] | 4836 | 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] | 4837 | $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] | 4838 | break 2 |
| 4839 | fi |
| 4840 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4841 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4842 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4843 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4844 | ;; |
| 4845 | esac |
| 4846 | fi |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4847 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 4848 | if test -n "$ac_pt_CXX"; then |
| 4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 4850 | $as_echo "$ac_pt_CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4851 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4853 | $as_echo "no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4854 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4855 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4856 | if test "x$ac_pt_CXX" = x; then |
| 4857 | CXX="c++" |
| 4858 | else |
| 4859 | case $cross_compiling:$ac_tool_warned in |
| 4860 | yes:) |
| 4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4862 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4863 | ac_tool_warned=yes ;; |
| 4864 | esac |
| 4865 | CXX=$ac_pt_CXX |
| 4866 | fi |
| 4867 | else |
| 4868 | CXX="$ac_cv_path_CXX" |
| 4869 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4870 | ;; |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4871 | clang|*/clang) if test -n "$ac_tool_prefix"; then |
| 4872 | # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. |
| 4873 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4875 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4876 | if ${ac_cv_path_CXX+:} false; then : |
| 4877 | $as_echo_n "(cached) " >&6 |
| 4878 | else |
| 4879 | case $CXX in |
| 4880 | [\\/]* | ?:[\\/]*) |
| 4881 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4882 | ;; |
| 4883 | *) |
| 4884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4885 | for as_dir in notfound |
| 4886 | do |
| 4887 | IFS=$as_save_IFS |
| 4888 | test -z "$as_dir" && as_dir=. |
| 4889 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4890 | 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] | 4891 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4893 | break 2 |
| 4894 | fi |
| 4895 | done |
| 4896 | done |
| 4897 | IFS=$as_save_IFS |
| 4898 | |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4899 | ;; |
| 4900 | esac |
| 4901 | fi |
| 4902 | CXX=$ac_cv_path_CXX |
| 4903 | if test -n "$CXX"; then |
| 4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4905 | $as_echo "$CXX" >&6; } |
| 4906 | else |
| 4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4908 | $as_echo "no" >&6; } |
| 4909 | fi |
| 4910 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4911 | |
| 4912 | fi |
| 4913 | if test -z "$ac_cv_path_CXX"; then |
| 4914 | ac_pt_CXX=$CXX |
| 4915 | # Extract the first word of "clang++", so it can be a program name with args. |
| 4916 | set dummy clang++; ac_word=$2 |
| 4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4918 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4919 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
| 4920 | $as_echo_n "(cached) " >&6 |
| 4921 | else |
| 4922 | case $ac_pt_CXX in |
| 4923 | [\\/]* | ?:[\\/]*) |
| 4924 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
| 4925 | ;; |
| 4926 | *) |
| 4927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4928 | for as_dir in notfound |
| 4929 | do |
| 4930 | IFS=$as_save_IFS |
| 4931 | test -z "$as_dir" && as_dir=. |
| 4932 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4933 | 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] | 4934 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4936 | break 2 |
| 4937 | fi |
| 4938 | done |
| 4939 | done |
| 4940 | IFS=$as_save_IFS |
| 4941 | |
| 4942 | ;; |
| 4943 | esac |
| 4944 | fi |
| 4945 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 4946 | if test -n "$ac_pt_CXX"; then |
| 4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 4948 | $as_echo "$ac_pt_CXX" >&6; } |
| 4949 | else |
| 4950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4951 | $as_echo "no" >&6; } |
| 4952 | fi |
| 4953 | |
| 4954 | if test "x$ac_pt_CXX" = x; then |
| 4955 | CXX="clang++" |
| 4956 | else |
| 4957 | case $cross_compiling:$ac_tool_warned in |
| 4958 | yes:) |
| 4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4960 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4961 | ac_tool_warned=yes ;; |
| 4962 | esac |
| 4963 | CXX=$ac_pt_CXX |
| 4964 | fi |
| 4965 | else |
| 4966 | CXX="$ac_cv_path_CXX" |
| 4967 | fi |
Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4968 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 4969 | icc|*/icc) if test -n "$ac_tool_prefix"; then |
| 4970 | # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. |
| 4971 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 |
| 4972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4973 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4974 | if ${ac_cv_path_CXX+:} false; then : |
| 4975 | $as_echo_n "(cached) " >&6 |
| 4976 | else |
| 4977 | case $CXX in |
| 4978 | [\\/]* | ?:[\\/]*) |
| 4979 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4980 | ;; |
| 4981 | *) |
| 4982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4983 | for as_dir in notfound |
| 4984 | do |
| 4985 | IFS=$as_save_IFS |
| 4986 | test -z "$as_dir" && as_dir=. |
| 4987 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4989 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 4990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4991 | break 2 |
| 4992 | fi |
| 4993 | done |
| 4994 | done |
| 4995 | IFS=$as_save_IFS |
| 4996 | |
| 4997 | ;; |
| 4998 | esac |
| 4999 | fi |
| 5000 | CXX=$ac_cv_path_CXX |
| 5001 | if test -n "$CXX"; then |
| 5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5003 | $as_echo "$CXX" >&6; } |
| 5004 | else |
| 5005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5006 | $as_echo "no" >&6; } |
| 5007 | fi |
| 5008 | |
| 5009 | |
| 5010 | fi |
| 5011 | if test -z "$ac_cv_path_CXX"; then |
| 5012 | ac_pt_CXX=$CXX |
| 5013 | # Extract the first word of "icpc", so it can be a program name with args. |
| 5014 | set dummy icpc; ac_word=$2 |
| 5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5016 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5017 | if ${ac_cv_path_ac_pt_CXX+:} false; then : |
| 5018 | $as_echo_n "(cached) " >&6 |
| 5019 | else |
| 5020 | case $ac_pt_CXX in |
| 5021 | [\\/]* | ?:[\\/]*) |
| 5022 | ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. |
| 5023 | ;; |
| 5024 | *) |
| 5025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5026 | for as_dir in notfound |
| 5027 | do |
| 5028 | IFS=$as_save_IFS |
| 5029 | test -z "$as_dir" && as_dir=. |
| 5030 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5031 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5032 | ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 5033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5034 | break 2 |
| 5035 | fi |
| 5036 | done |
| 5037 | done |
| 5038 | IFS=$as_save_IFS |
| 5039 | |
| 5040 | ;; |
| 5041 | esac |
| 5042 | fi |
| 5043 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX |
| 5044 | if test -n "$ac_pt_CXX"; then |
| 5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 |
| 5046 | $as_echo "$ac_pt_CXX" >&6; } |
| 5047 | else |
| 5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5049 | $as_echo "no" >&6; } |
| 5050 | fi |
| 5051 | |
| 5052 | if test "x$ac_pt_CXX" = x; then |
| 5053 | CXX="icpc" |
| 5054 | else |
| 5055 | case $cross_compiling:$ac_tool_warned in |
| 5056 | yes:) |
| 5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5058 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5059 | ac_tool_warned=yes ;; |
| 5060 | esac |
| 5061 | CXX=$ac_pt_CXX |
| 5062 | fi |
| 5063 | else |
| 5064 | CXX="$ac_cv_path_CXX" |
| 5065 | fi |
| 5066 | ;; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5067 | esac |
| 5068 | if test "$CXX" = "notfound" |
| 5069 | then |
| 5070 | CXX="" |
| 5071 | fi |
| 5072 | fi |
| 5073 | if test -z "$CXX" |
| 5074 | then |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5075 | if test -n "$ac_tool_prefix"; then |
| 5076 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 5077 | do |
| 5078 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5079 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5081 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5082 | if ${ac_cv_prog_CXX+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5083 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5084 | else |
| 5085 | if test -n "$CXX"; then |
| 5086 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5087 | else |
| 5088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5089 | for as_dir in $PATH |
| 5090 | do |
| 5091 | IFS=$as_save_IFS |
| 5092 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5093 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5094 | 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] | 5095 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5096 | $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] | 5097 | break 2 |
| 5098 | fi |
| 5099 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5100 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5101 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5102 | |
| 5103 | fi |
| 5104 | fi |
| 5105 | CXX=$ac_cv_prog_CXX |
| 5106 | if test -n "$CXX"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5108 | $as_echo "$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5109 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5111 | $as_echo "no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5112 | fi |
| 5113 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5114 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5115 | test -n "$CXX" && break |
| 5116 | done |
| 5117 | fi |
| 5118 | if test -z "$CXX"; then |
| 5119 | ac_ct_CXX=$CXX |
| 5120 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 5121 | do |
| 5122 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5123 | set dummy $ac_prog; ac_word=$2 |
| 5124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5125 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5126 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 5127 | $as_echo_n "(cached) " >&6 |
| 5128 | else |
| 5129 | if test -n "$ac_ct_CXX"; then |
| 5130 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5131 | else |
| 5132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5133 | for as_dir in $PATH |
| 5134 | do |
| 5135 | IFS=$as_save_IFS |
| 5136 | test -z "$as_dir" && as_dir=. |
| 5137 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5138 | 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] | 5139 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5141 | break 2 |
| 5142 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5143 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5144 | done |
| 5145 | IFS=$as_save_IFS |
| 5146 | |
| 5147 | fi |
| 5148 | fi |
| 5149 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5150 | if test -n "$ac_ct_CXX"; then |
| 5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 5152 | $as_echo "$ac_ct_CXX" >&6; } |
| 5153 | else |
| 5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5155 | $as_echo "no" >&6; } |
| 5156 | fi |
| 5157 | |
| 5158 | |
| 5159 | test -n "$ac_ct_CXX" && break |
| 5160 | done |
| 5161 | |
| 5162 | if test "x$ac_ct_CXX" = x; then |
| 5163 | CXX="notfound" |
| 5164 | else |
| 5165 | case $cross_compiling:$ac_tool_warned in |
| 5166 | yes:) |
| 5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5168 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5169 | ac_tool_warned=yes ;; |
| 5170 | esac |
| 5171 | CXX=$ac_ct_CXX |
| 5172 | fi |
| 5173 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5174 | |
| 5175 | if test "$CXX" = "notfound" |
| 5176 | then |
| 5177 | CXX="" |
| 5178 | fi |
| 5179 | fi |
| 5180 | if test "$preset_cxx" != "$CXX" |
| 5181 | then |
Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5183 | |
| 5184 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 5185 | If this is not intended, then set CXX on the configure command line. |
| 5186 | " >&5 |
Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5187 | $as_echo "$as_me: |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5188 | |
| 5189 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 5190 | 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] | 5191 | " >&6;} |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5192 | fi |
| 5193 | |
| 5194 | |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5195 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) |
| 5196 | |
| 5197 | |
| 5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 |
| 5199 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } |
| 5200 | cat >> conftest.c <<EOF |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5201 | #undef bfin |
| 5202 | #undef cris |
| 5203 | #undef fr30 |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5204 | #undef linux |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5205 | #undef hppa |
| 5206 | #undef hpux |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5207 | #undef i386 |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5208 | #undef mips |
doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5209 | #undef powerpc |
doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5210 | #undef sparc |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5211 | #undef unix |
| 5212 | #if defined(__linux__) |
| 5213 | # if defined(__x86_64__) && defined(__LP64__) |
| 5214 | x86_64-linux-gnu |
| 5215 | # elif defined(__x86_64__) && defined(__ILP32__) |
| 5216 | x86_64-linux-gnux32 |
| 5217 | # elif defined(__i386__) |
| 5218 | i386-linux-gnu |
| 5219 | # elif defined(__aarch64__) && defined(__AARCH64EL__) |
| 5220 | # if defined(__ILP32__) |
| 5221 | aarch64_ilp32-linux-gnu |
| 5222 | # else |
| 5223 | aarch64-linux-gnu |
| 5224 | # endif |
| 5225 | # elif defined(__aarch64__) && defined(__AARCH64EB__) |
| 5226 | # if defined(__ILP32__) |
| 5227 | aarch64_be_ilp32-linux-gnu |
| 5228 | # else |
| 5229 | aarch64_be-linux-gnu |
| 5230 | # endif |
| 5231 | # elif defined(__alpha__) |
| 5232 | alpha-linux-gnu |
| 5233 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) |
| 5234 | # if defined(__ARMEL__) |
| 5235 | arm-linux-gnueabihf |
| 5236 | # else |
| 5237 | armeb-linux-gnueabihf |
| 5238 | # endif |
| 5239 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) |
| 5240 | # if defined(__ARMEL__) |
| 5241 | arm-linux-gnueabi |
| 5242 | # else |
| 5243 | armeb-linux-gnueabi |
| 5244 | # endif |
| 5245 | # elif defined(__hppa__) |
| 5246 | hppa-linux-gnu |
| 5247 | # elif defined(__ia64__) |
| 5248 | ia64-linux-gnu |
| 5249 | # elif defined(__m68k__) && !defined(__mcoldfire__) |
| 5250 | m68k-linux-gnu |
| 5251 | # elif defined(__mips_hard_float) && defined(_MIPSEL) |
| 5252 | # if _MIPS_SIM == _ABIO32 |
| 5253 | mipsel-linux-gnu |
| 5254 | # elif _MIPS_SIM == _ABIN32 |
| 5255 | mips64el-linux-gnuabin32 |
| 5256 | # elif _MIPS_SIM == _ABI64 |
| 5257 | mips64el-linux-gnuabi64 |
| 5258 | # else |
| 5259 | # error unknown platform triplet |
| 5260 | # endif |
| 5261 | # elif defined(__mips_hard_float) |
| 5262 | # if _MIPS_SIM == _ABIO32 |
| 5263 | mips-linux-gnu |
| 5264 | # elif _MIPS_SIM == _ABIN32 |
| 5265 | mips64-linux-gnuabin32 |
| 5266 | # elif _MIPS_SIM == _ABI64 |
| 5267 | mips64-linux-gnuabi64 |
| 5268 | # else |
| 5269 | # error unknown platform triplet |
| 5270 | # endif |
| 5271 | # elif defined(__or1k__) |
| 5272 | or1k-linux-gnu |
| 5273 | # elif defined(__powerpc__) && defined(__SPE__) |
| 5274 | powerpc-linux-gnuspe |
| 5275 | # elif defined(__powerpc64__) |
| 5276 | # if defined(__LITTLE_ENDIAN__) |
| 5277 | powerpc64le-linux-gnu |
| 5278 | # else |
| 5279 | powerpc64-linux-gnu |
| 5280 | # endif |
| 5281 | # elif defined(__powerpc__) |
| 5282 | powerpc-linux-gnu |
| 5283 | # elif defined(__s390x__) |
| 5284 | s390x-linux-gnu |
| 5285 | # elif defined(__s390__) |
| 5286 | s390-linux-gnu |
| 5287 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) |
| 5288 | sh4-linux-gnu |
| 5289 | # elif defined(__sparc__) && defined(__arch64__) |
| 5290 | sparc64-linux-gnu |
| 5291 | # elif defined(__sparc__) |
| 5292 | sparc-linux-gnu |
| 5293 | # else |
| 5294 | # error unknown platform triplet |
| 5295 | # endif |
| 5296 | #elif defined(__FreeBSD_kernel__) |
| 5297 | # if defined(__LP64__) |
| 5298 | x86_64-kfreebsd-gnu |
| 5299 | # elif defined(__i386__) |
| 5300 | i386-kfreebsd-gnu |
| 5301 | # else |
| 5302 | # error unknown platform triplet |
| 5303 | # endif |
| 5304 | #elif defined(__gnu_hurd__) |
| 5305 | i386-gnu |
Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5306 | #elif defined(__APPLE__) |
| 5307 | darwin |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5308 | #else |
| 5309 | # error unknown platform triplet |
| 5310 | #endif |
| 5311 | |
| 5312 | EOF |
| 5313 | |
| 5314 | if $CPP conftest.c >conftest.out 2>/dev/null; then |
| 5315 | PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` |
| 5316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 |
| 5317 | $as_echo "$PLATFORM_TRIPLET" >&6; } |
| 5318 | else |
| 5319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5320 | $as_echo "none" >&6; } |
| 5321 | fi |
| 5322 | rm -f conftest.c conftest.out |
| 5323 | |
| 5324 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then |
| 5325 | if test x$PLATFORM_TRIPLET != x$MULTIARCH; then |
| 5326 | as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 |
| 5327 | fi |
| 5328 | fi |
| 5329 | PLATDIR=plat-$MACHDEP |
| 5330 | |
| 5331 | |
| 5332 | |
| 5333 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 |
| 5335 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } |
| 5336 | save_LDFLAGS="$LDFLAGS" |
| 5337 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5338 | |
Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5340 | /* end confdefs.h. */ |
| 5341 | |
| 5342 | int |
| 5343 | main () |
| 5344 | { |
| 5345 | |
| 5346 | ; |
| 5347 | return 0; |
| 5348 | } |
| 5349 | _ACEOF |
| 5350 | if ac_fn_c_try_link "$LINENO"; then : |
| 5351 | NO_AS_NEEDED="-Wl,--no-as-needed" |
| 5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5353 | $as_echo "yes" >&6; } |
| 5354 | else |
| 5355 | NO_AS_NEEDED="" |
| 5356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5357 | $as_echo "no" >&6; } |
| 5358 | fi |
| 5359 | rm -f core conftest.err conftest.$ac_objext \ |
| 5360 | conftest$ac_exeext conftest.$ac_ext |
| 5361 | LDFLAGS="$save_LDFLAGS" |
| 5362 | |
| 5363 | |
| 5364 | |
| 5365 | # checks for UNIX variants that set C preprocessor variables |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5366 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5368 | $as_echo_n "checking for egrep... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5369 | if ${ac_cv_path_EGREP+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5370 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5371 | else |
| 5372 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5373 | then ac_cv_path_EGREP="$GREP -E" |
| 5374 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5375 | if test -z "$EGREP"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5376 | ac_path_EGREP_found=false |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5377 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5379 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5380 | do |
| 5381 | IFS=$as_save_IFS |
| 5382 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5383 | for ac_prog in egrep; do |
| 5384 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5385 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5386 | as_fn_executable_p "$ac_path_EGREP" || continue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5387 | # 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] | 5388 | # Check for GNU $ac_path_EGREP |
| 5389 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5390 | *GNU*) |
| 5391 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5392 | *) |
| 5393 | ac_count=0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5394 | $as_echo_n 0123456789 >"conftest.in" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5395 | while : |
| 5396 | do |
| 5397 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5398 | mv "conftest.tmp" "conftest.in" |
| 5399 | cp "conftest.in" "conftest.nl" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5400 | $as_echo 'EGREP' >> "conftest.nl" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5401 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5402 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5403 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5404 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5405 | # Best one so far, save it but keep looking for a better one |
| 5406 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5407 | ac_path_EGREP_max=$ac_count |
| 5408 | fi |
| 5409 | # 10*(2^10) chars as input seems more than enough |
| 5410 | test $ac_count -gt 10 && break |
| 5411 | done |
| 5412 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5413 | esac |
| 5414 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5415 | $ac_path_EGREP_found && break 3 |
| 5416 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5417 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5418 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5419 | IFS=$as_save_IFS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5420 | if test -z "$ac_cv_path_EGREP"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5421 | 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] | 5422 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5423 | else |
| 5424 | ac_cv_path_EGREP=$EGREP |
| 5425 | fi |
| 5426 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5427 | fi |
| 5428 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5430 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5431 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5432 | |
| 5433 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 5435 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5436 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5437 | $as_echo_n "(cached) " >&6 |
| 5438 | else |
| 5439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5440 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5441 | #include <stdlib.h> |
| 5442 | #include <stdarg.h> |
| 5443 | #include <string.h> |
| 5444 | #include <float.h> |
| 5445 | |
| 5446 | int |
| 5447 | main () |
| 5448 | { |
| 5449 | |
| 5450 | ; |
| 5451 | return 0; |
| 5452 | } |
| 5453 | _ACEOF |
| 5454 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5455 | ac_cv_header_stdc=yes |
| 5456 | else |
| 5457 | ac_cv_header_stdc=no |
| 5458 | fi |
| 5459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5460 | |
| 5461 | if test $ac_cv_header_stdc = yes; then |
| 5462 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5464 | /* end confdefs.h. */ |
| 5465 | #include <string.h> |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5466 | |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5467 | _ACEOF |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5468 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5469 | $EGREP "memchr" >/dev/null 2>&1; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5470 | |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5471 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5472 | ac_cv_header_stdc=no |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5473 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5474 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5475 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5476 | fi |
| 5477 | |
| 5478 | if test $ac_cv_header_stdc = yes; then |
| 5479 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5481 | /* end confdefs.h. */ |
| 5482 | #include <stdlib.h> |
| 5483 | |
| 5484 | _ACEOF |
| 5485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5486 | $EGREP "free" >/dev/null 2>&1; then : |
| 5487 | |
| 5488 | else |
| 5489 | ac_cv_header_stdc=no |
| 5490 | fi |
| 5491 | rm -f conftest* |
| 5492 | |
| 5493 | fi |
| 5494 | |
| 5495 | if test $ac_cv_header_stdc = yes; then |
| 5496 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5497 | if test "$cross_compiling" = yes; then : |
| 5498 | : |
| 5499 | else |
| 5500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5501 | /* end confdefs.h. */ |
| 5502 | #include <ctype.h> |
| 5503 | #include <stdlib.h> |
| 5504 | #if ((' ' & 0x0FF) == 0x020) |
| 5505 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5506 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5507 | #else |
| 5508 | # define ISLOWER(c) \ |
| 5509 | (('a' <= (c) && (c) <= 'i') \ |
| 5510 | || ('j' <= (c) && (c) <= 'r') \ |
| 5511 | || ('s' <= (c) && (c) <= 'z')) |
| 5512 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5513 | #endif |
| 5514 | |
| 5515 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5516 | int |
| 5517 | main () |
| 5518 | { |
| 5519 | int i; |
| 5520 | for (i = 0; i < 256; i++) |
| 5521 | if (XOR (islower (i), ISLOWER (i)) |
| 5522 | || toupper (i) != TOUPPER (i)) |
| 5523 | return 2; |
| 5524 | return 0; |
| 5525 | } |
| 5526 | _ACEOF |
| 5527 | if ac_fn_c_try_run "$LINENO"; then : |
| 5528 | |
| 5529 | else |
| 5530 | ac_cv_header_stdc=no |
| 5531 | fi |
| 5532 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5533 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5534 | fi |
| 5535 | |
| 5536 | fi |
| 5537 | fi |
| 5538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 5539 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 5540 | if test $ac_cv_header_stdc = yes; then |
| 5541 | |
| 5542 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 5543 | |
| 5544 | fi |
| 5545 | |
| 5546 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5547 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5548 | inttypes.h stdint.h unistd.h |
| 5549 | do : |
| 5550 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5551 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5552 | " |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5553 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5554 | cat >>confdefs.h <<_ACEOF |
| 5555 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5556 | _ACEOF |
| 5557 | |
| 5558 | fi |
| 5559 | |
| 5560 | done |
| 5561 | |
| 5562 | |
| 5563 | |
| 5564 | 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] | 5565 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5566 | MINIX=yes |
| 5567 | else |
| 5568 | MINIX= |
| 5569 | fi |
| 5570 | |
| 5571 | |
| 5572 | if test "$MINIX" = yes; then |
| 5573 | |
| 5574 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5575 | |
| 5576 | |
| 5577 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5578 | |
| 5579 | |
| 5580 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 5581 | |
| 5582 | fi |
| 5583 | |
| 5584 | |
| 5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5586 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5587 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5588 | $as_echo_n "(cached) " >&6 |
| 5589 | else |
| 5590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5591 | /* end confdefs.h. */ |
| 5592 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5593 | # define __EXTENSIONS__ 1 |
| 5594 | $ac_includes_default |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5595 | int |
| 5596 | main () |
| 5597 | { |
| 5598 | |
| 5599 | ; |
| 5600 | return 0; |
| 5601 | } |
| 5602 | _ACEOF |
| 5603 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5604 | ac_cv_safe_to_define___extensions__=yes |
| 5605 | else |
| 5606 | ac_cv_safe_to_define___extensions__=no |
| 5607 | fi |
| 5608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5609 | fi |
| 5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5611 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5612 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 5613 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5614 | |
| 5615 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 5616 | |
| 5617 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 5618 | |
| 5619 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5620 | |
| 5621 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5622 | |
| 5623 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5624 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5625 | # Check for unsupported systems |
| 5626 | case $ac_sys_system/$ac_sys_release in |
| 5627 | atheos*|Linux*/1*) |
| 5628 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 5629 | echo See README for details. |
| 5630 | exit 1;; |
| 5631 | esac |
| 5632 | |
| 5633 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
| 5635 | $as_echo_n "checking for --with-suffix... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5636 | |
| 5637 | # Check whether --with-suffix was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5638 | if test "${with_suffix+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5639 | withval=$with_suffix; |
| 5640 | case $withval in |
| 5641 | no) EXEEXT=;; |
| 5642 | yes) EXEEXT=.exe;; |
| 5643 | *) EXEEXT=$withval;; |
| 5644 | esac |
| 5645 | fi |
| 5646 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
| 5648 | $as_echo "$EXEEXT" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5649 | |
| 5650 | # Test whether we're running on a non-case-sensitive system, in which |
| 5651 | # case we give a warning if no ext is given |
| 5652 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
| 5654 | $as_echo_n "checking for case-insensitive build directory... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5655 | if test ! -d CaseSensitiveTestDir; then |
| 5656 | mkdir CaseSensitiveTestDir |
| 5657 | fi |
| 5658 | |
| 5659 | if test -d casesensitivetestdir |
| 5660 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5662 | $as_echo "yes" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5663 | BUILDEXEEXT=.exe |
| 5664 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5666 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5667 | BUILDEXEEXT=$EXEEXT |
| 5668 | fi |
| 5669 | rmdir CaseSensitiveTestDir |
| 5670 | |
| 5671 | case $MACHDEP in |
| 5672 | bsdos*) |
| 5673 | case $CC in |
| 5674 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 5675 | esac;; |
| 5676 | esac |
| 5677 | |
| 5678 | case $ac_sys_system in |
| 5679 | hp*|HP*) |
| 5680 | case $CC in |
| 5681 | cc|*/cc) CC="$CC -Ae";; |
| 5682 | esac;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5683 | esac |
| 5684 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5685 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
| 5687 | $as_echo_n "checking LIBRARY... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5688 | if test -z "$LIBRARY" |
| 5689 | then |
Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5690 | LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5691 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
| 5693 | $as_echo "$LIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5694 | |
| 5695 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 5696 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 5697 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 5698 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 5699 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 5700 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 5701 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 5702 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 5703 | # |
| 5704 | # RUNSHARED is used to run shared python without installed libraries |
| 5705 | # |
| 5706 | # INSTSONAME is the name of the shared library that will be use to install |
| 5707 | # on the system - some systems like version suffix, others don't |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5708 | # |
| 5709 | # LDVERSION is the shared library version number, normally the Python version |
| 5710 | # with the ABI build flags appended. |
| 5711 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5712 | |
| 5713 | |
| 5714 | |
| 5715 | |
| 5716 | |
| 5717 | |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5718 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5719 | LDLIBRARY="$LIBRARY" |
| 5720 | BLDLIBRARY='$(LDLIBRARY)' |
| 5721 | INSTSONAME='$(LDLIBRARY)' |
| 5722 | DLLLIBRARY='' |
| 5723 | LDLIBRARYDIR='' |
| 5724 | RUNSHARED='' |
Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5725 | LDVERSION="$VERSION" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5726 | |
| 5727 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 5728 | # If CXX is set, and if it is needed to link a main function that was |
| 5729 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 5730 | # python might then depend on the C++ runtime |
| 5731 | # This is altered for AIX in order to build the export list before |
| 5732 | # linking. |
| 5733 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
| 5735 | $as_echo_n "checking LINKCC... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5736 | if test -z "$LINKCC" |
| 5737 | then |
| 5738 | LINKCC='$(PURIFY) $(MAINCC)' |
| 5739 | case $ac_sys_system in |
| 5740 | AIX*) |
| 5741 | exp_extra="\"\"" |
| 5742 | if test $ac_sys_release -ge 5 -o \ |
| 5743 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 5744 | exp_extra="." |
| 5745 | fi |
| 5746 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5747 | QNX*) |
| 5748 | # qcc must be used because the other compilers do not |
| 5749 | # support -N. |
| 5750 | LINKCC=qcc;; |
| 5751 | esac |
| 5752 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
| 5754 | $as_echo "$LINKCC" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5755 | |
| 5756 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 5757 | # make sure we default having it set to "no": this is used by |
| 5758 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 5759 | # to linker command lines, and failing to detect GNU ld simply results |
| 5760 | # in the same bahaviour as before. |
| 5761 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 5763 | $as_echo_n "checking for GNU ld... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5764 | ac_prog=ld |
| 5765 | if test "$GCC" = yes; then |
| 5766 | ac_prog=`$CC -print-prog-name=ld` |
| 5767 | fi |
| 5768 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 5769 | *GNU*) |
| 5770 | GNULD=yes;; |
| 5771 | *) |
| 5772 | GNULD=no;; |
| 5773 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
| 5775 | $as_echo "$GNULD" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5776 | |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 5778 | $as_echo_n "checking for inline... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5779 | if ${ac_cv_c_inline+:} false; then : |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5780 | $as_echo_n "(cached) " >&6 |
| 5781 | else |
| 5782 | ac_cv_c_inline=no |
| 5783 | for ac_kw in inline __inline__ __inline; do |
| 5784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5785 | /* end confdefs.h. */ |
| 5786 | #ifndef __cplusplus |
| 5787 | typedef int foo_t; |
| 5788 | static $ac_kw foo_t static_foo () {return 0; } |
| 5789 | $ac_kw foo_t foo () {return 0; } |
| 5790 | #endif |
| 5791 | |
| 5792 | _ACEOF |
| 5793 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5794 | ac_cv_c_inline=$ac_kw |
| 5795 | fi |
| 5796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5797 | test "$ac_cv_c_inline" != no && break |
| 5798 | done |
| 5799 | |
| 5800 | fi |
| 5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 5802 | $as_echo "$ac_cv_c_inline" >&6; } |
| 5803 | |
| 5804 | case $ac_cv_c_inline in |
| 5805 | inline | yes) ;; |
| 5806 | *) |
| 5807 | case $ac_cv_c_inline in |
| 5808 | no) ac_val=;; |
| 5809 | *) ac_val=$ac_cv_c_inline;; |
| 5810 | esac |
| 5811 | cat >>confdefs.h <<_ACEOF |
| 5812 | #ifndef __cplusplus |
| 5813 | #define inline $ac_val |
| 5814 | #endif |
| 5815 | _ACEOF |
| 5816 | ;; |
| 5817 | esac |
| 5818 | |
| 5819 | if test "$ac_cv_c_inline" != no ; then |
Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 5820 | |
| 5821 | $as_echo "#define USE_INLINE 1" >>confdefs.h |
Daniel Stutzbach | a606faa | 2010-08-31 19:51:07 +0000 | [diff] [blame] | 5822 | |
| 5823 | |
| 5824 | fi |
| 5825 | |
| 5826 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
| 5828 | $as_echo_n "checking for --enable-shared... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5829 | # Check whether --enable-shared was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5830 | if test "${enable_shared+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5831 | enableval=$enable_shared; |
| 5832 | fi |
| 5833 | |
| 5834 | |
| 5835 | if test -z "$enable_shared" |
| 5836 | then |
| 5837 | case $ac_sys_system in |
Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5838 | CYGWIN*) |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5839 | enable_shared="yes";; |
| 5840 | *) |
| 5841 | enable_shared="no";; |
| 5842 | esac |
| 5843 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 5845 | $as_echo "$enable_shared" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5846 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
| 5848 | $as_echo_n "checking for --enable-profiling... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5849 | # Check whether --enable-profiling was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5850 | if test "${enable_profiling+set}" = set; then : |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5851 | enableval=$enable_profiling; |
| 5852 | fi |
| 5853 | |
| 5854 | if test "x$enable_profiling" = xyes; then |
| 5855 | ac_save_cc="$CC" |
Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5856 | CC="$CC -pg" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5858 | /* end confdefs.h. */ |
| 5859 | int main() { return 0; } |
| 5860 | _ACEOF |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5861 | if ac_fn_c_try_link "$LINENO"; then : |
| 5862 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5863 | else |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5864 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5865 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5866 | rm -f core conftest.err conftest.$ac_objext \ |
| 5867 | conftest$ac_exeext conftest.$ac_ext |
| 5868 | CC="$ac_save_cc" |
| 5869 | else |
| 5870 | enable_profiling=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5871 | fi |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 |
| 5873 | $as_echo "$enable_profiling" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5874 | |
doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5875 | if test "x$enable_profiling" = xyes; then |
| 5876 | BASECFLAGS="-pg $BASECFLAGS" |
| 5877 | LDFLAGS="-pg $LDFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5878 | fi |
| 5879 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
| 5881 | $as_echo_n "checking LDLIBRARY... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5882 | |
| 5883 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 5884 | # library that we build, but we do not want to link against it (we |
| 5885 | # will find it with a -framework option). For this reason there is an |
| 5886 | # extra variable BLDLIBRARY against which Python and the extension |
| 5887 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 5888 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 5889 | if test "$enable_framework" |
| 5890 | then |
| 5891 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5892 | RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5893 | BLDLIBRARY='' |
| 5894 | else |
| 5895 | BLDLIBRARY='$(LDLIBRARY)' |
| 5896 | fi |
| 5897 | |
| 5898 | # Other platforms follow |
| 5899 | if test $enable_shared = "yes"; then |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5900 | PY_ENABLE_SHARED=1 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5901 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5902 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5903 | |
| 5904 | case $ac_sys_system in |
| 5905 | CYGWIN*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5906 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
| 5907 | DLLLIBRARY='libpython$(LDVERSION).dll' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5908 | ;; |
| 5909 | SunOS*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5910 | LDLIBRARY='libpython$(LDVERSION).so' |
| 5911 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5912 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5913 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5914 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5915 | then |
| 5916 | PY3LIBRARY=libpython3.so |
| 5917 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5918 | ;; |
Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 5919 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5920 | LDLIBRARY='libpython$(LDVERSION).so' |
| 5921 | BLDLIBRARY='-L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5922 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5923 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5924 | if test "$with_pydebug" != yes |
Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5925 | then |
| 5926 | PY3LIBRARY=libpython3.so |
| 5927 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5928 | ;; |
| 5929 | hp*|HP*) |
| 5930 | case `uname -m` in |
| 5931 | ia64) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5932 | LDLIBRARY='libpython$(LDVERSION).so' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5933 | ;; |
| 5934 | *) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5935 | LDLIBRARY='libpython$(LDVERSION).sl' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5936 | ;; |
| 5937 | esac |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5938 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5939 | RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5940 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5941 | Darwin*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5942 | LDLIBRARY='libpython$(LDVERSION).dylib' |
| 5943 | BLDLIBRARY='-L. -lpython$(LDVERSION)' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5944 | RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5945 | ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5946 | AIX*) |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5947 | LDLIBRARY='libpython$(LDVERSION).so' |
doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5948 | RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5949 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5950 | |
| 5951 | esac |
| 5952 | else # shared is disabled |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5953 | PY_ENABLE_SHARED=0 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5954 | case $ac_sys_system in |
| 5955 | CYGWIN*) |
| 5956 | BLDLIBRARY='$(LIBRARY)' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5957 | LDLIBRARY='libpython$(LDVERSION).dll.a' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5958 | ;; |
| 5959 | esac |
| 5960 | fi |
| 5961 | |
doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 5962 | if test "$cross_compiling" = yes; then |
| 5963 | RUNSHARED= |
| 5964 | fi |
| 5965 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
| 5967 | $as_echo "$LDLIBRARY" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5968 | |
| 5969 | if test -n "$ac_tool_prefix"; then |
| 5970 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5971 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5973 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5974 | if ${ac_cv_prog_RANLIB+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5975 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5976 | else |
| 5977 | if test -n "$RANLIB"; then |
| 5978 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5979 | else |
| 5980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5981 | for as_dir in $PATH |
| 5982 | do |
| 5983 | IFS=$as_save_IFS |
| 5984 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5985 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5986 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5987 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5988 | $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] | 5989 | break 2 |
| 5990 | fi |
| 5991 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5992 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5993 | IFS=$as_save_IFS |
| 5994 | |
| 5995 | fi |
| 5996 | fi |
| 5997 | RANLIB=$ac_cv_prog_RANLIB |
| 5998 | if test -n "$RANLIB"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 6000 | $as_echo "$RANLIB" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6001 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6003 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6004 | fi |
| 6005 | |
| 6006 | |
| 6007 | fi |
| 6008 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6009 | ac_ct_RANLIB=$RANLIB |
| 6010 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6011 | set dummy ranlib; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6013 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6014 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6015 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6016 | else |
| 6017 | if test -n "$ac_ct_RANLIB"; then |
| 6018 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6019 | else |
| 6020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6021 | for as_dir in $PATH |
| 6022 | do |
| 6023 | IFS=$as_save_IFS |
| 6024 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6025 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6026 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6027 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6028 | $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] | 6029 | break 2 |
| 6030 | fi |
| 6031 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6032 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6033 | IFS=$as_save_IFS |
| 6034 | |
| 6035 | fi |
| 6036 | fi |
| 6037 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6038 | if test -n "$ac_ct_RANLIB"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6040 | $as_echo "$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6041 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6043 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6044 | fi |
| 6045 | |
| 6046 | if test "x$ac_ct_RANLIB" = x; then |
| 6047 | RANLIB=":" |
| 6048 | else |
| 6049 | case $cross_compiling:$ac_tool_warned in |
| 6050 | yes:) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6051 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6052 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6053 | ac_tool_warned=yes ;; |
| 6054 | esac |
| 6055 | RANLIB=$ac_ct_RANLIB |
| 6056 | fi |
| 6057 | else |
| 6058 | RANLIB="$ac_cv_prog_RANLIB" |
| 6059 | fi |
| 6060 | |
| 6061 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6062 | if test -n "$ac_tool_prefix"; then |
| 6063 | for ac_prog in ar aal |
| 6064 | do |
| 6065 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6066 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6068 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6069 | if ${ac_cv_prog_AR+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6070 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6071 | else |
| 6072 | if test -n "$AR"; then |
| 6073 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6074 | else |
| 6075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6076 | for as_dir in $PATH |
| 6077 | do |
| 6078 | IFS=$as_save_IFS |
| 6079 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6080 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6081 | 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] | 6082 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6083 | $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] | 6084 | break 2 |
| 6085 | fi |
| 6086 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6087 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6088 | IFS=$as_save_IFS |
| 6089 | |
| 6090 | fi |
| 6091 | fi |
| 6092 | AR=$ac_cv_prog_AR |
| 6093 | if test -n "$AR"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 6095 | $as_echo "$AR" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6096 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6098 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6099 | fi |
| 6100 | |
| 6101 | |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6102 | test -n "$AR" && break |
| 6103 | done |
| 6104 | fi |
| 6105 | if test -z "$AR"; then |
| 6106 | ac_ct_AR=$AR |
| 6107 | for ac_prog in ar aal |
| 6108 | do |
| 6109 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6110 | set dummy $ac_prog; ac_word=$2 |
| 6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6112 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6113 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 6114 | $as_echo_n "(cached) " >&6 |
| 6115 | else |
| 6116 | if test -n "$ac_ct_AR"; then |
| 6117 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6118 | else |
| 6119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6120 | for as_dir in $PATH |
| 6121 | do |
| 6122 | IFS=$as_save_IFS |
| 6123 | test -z "$as_dir" && as_dir=. |
| 6124 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 6125 | 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] | 6126 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 6127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6128 | break 2 |
| 6129 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6130 | done |
doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6131 | done |
| 6132 | IFS=$as_save_IFS |
| 6133 | |
| 6134 | fi |
| 6135 | fi |
| 6136 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6137 | if test -n "$ac_ct_AR"; then |
| 6138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6139 | $as_echo "$ac_ct_AR" >&6; } |
| 6140 | else |
| 6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6142 | $as_echo "no" >&6; } |
| 6143 | fi |
| 6144 | |
| 6145 | |
| 6146 | test -n "$ac_ct_AR" && break |
| 6147 | done |
| 6148 | |
| 6149 | if test "x$ac_ct_AR" = x; then |
| 6150 | AR="ar" |
| 6151 | else |
| 6152 | case $cross_compiling:$ac_tool_warned in |
| 6153 | yes:) |
| 6154 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6155 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6156 | ac_tool_warned=yes ;; |
| 6157 | esac |
| 6158 | AR=$ac_ct_AR |
| 6159 | fi |
| 6160 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6161 | |
| 6162 | |
| 6163 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 6164 | |
| 6165 | if test -z "$ARFLAGS" |
| 6166 | then |
| 6167 | ARFLAGS="rc" |
| 6168 | fi |
| 6169 | |
doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6170 | if test -n "$ac_tool_prefix"; then |
| 6171 | for ac_prog in readelf |
| 6172 | do |
| 6173 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6174 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6176 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6177 | if ${ac_cv_prog_READELF+:} false; then : |
| 6178 | $as_echo_n "(cached) " >&6 |
| 6179 | else |
| 6180 | if test -n "$READELF"; then |
| 6181 | ac_cv_prog_READELF="$READELF" # Let the user override the test. |
| 6182 | else |
| 6183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6184 | for as_dir in $PATH |
| 6185 | do |
| 6186 | IFS=$as_save_IFS |
| 6187 | test -z "$as_dir" && as_dir=. |
| 6188 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6189 | 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] | 6190 | ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" |
| 6191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6192 | break 2 |
| 6193 | fi |
| 6194 | done |
| 6195 | done |
| 6196 | IFS=$as_save_IFS |
| 6197 | |
| 6198 | fi |
| 6199 | fi |
| 6200 | READELF=$ac_cv_prog_READELF |
| 6201 | if test -n "$READELF"; then |
| 6202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 |
| 6203 | $as_echo "$READELF" >&6; } |
| 6204 | else |
| 6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6206 | $as_echo "no" >&6; } |
| 6207 | fi |
| 6208 | |
| 6209 | |
| 6210 | test -n "$READELF" && break |
| 6211 | done |
| 6212 | fi |
| 6213 | if test -z "$READELF"; then |
| 6214 | ac_ct_READELF=$READELF |
| 6215 | for ac_prog in readelf |
| 6216 | do |
| 6217 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6218 | set dummy $ac_prog; ac_word=$2 |
| 6219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6220 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6221 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : |
| 6222 | $as_echo_n "(cached) " >&6 |
| 6223 | else |
| 6224 | if test -n "$ac_ct_READELF"; then |
| 6225 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. |
| 6226 | else |
| 6227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6228 | for as_dir in $PATH |
| 6229 | do |
| 6230 | IFS=$as_save_IFS |
| 6231 | test -z "$as_dir" && as_dir=. |
| 6232 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6233 | 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] | 6234 | ac_cv_prog_ac_ct_READELF="$ac_prog" |
| 6235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6236 | break 2 |
| 6237 | fi |
| 6238 | done |
| 6239 | done |
| 6240 | IFS=$as_save_IFS |
| 6241 | |
| 6242 | fi |
| 6243 | fi |
| 6244 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF |
| 6245 | if test -n "$ac_ct_READELF"; then |
| 6246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 |
| 6247 | $as_echo "$ac_ct_READELF" >&6; } |
| 6248 | else |
| 6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6250 | $as_echo "no" >&6; } |
| 6251 | fi |
| 6252 | |
| 6253 | |
| 6254 | test -n "$ac_ct_READELF" && break |
| 6255 | done |
| 6256 | |
| 6257 | if test "x$ac_ct_READELF" = x; then |
| 6258 | READELF=":" |
| 6259 | else |
| 6260 | case $cross_compiling:$ac_tool_warned in |
| 6261 | yes:) |
| 6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6263 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6264 | ac_tool_warned=yes ;; |
| 6265 | esac |
| 6266 | READELF=$ac_ct_READELF |
| 6267 | fi |
| 6268 | fi |
| 6269 | |
| 6270 | if test "$cross_compiling" = yes; then |
| 6271 | case "$READELF" in |
| 6272 | readelf|:) |
| 6273 | as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 |
| 6274 | ;; |
| 6275 | esac |
| 6276 | fi |
| 6277 | |
| 6278 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6279 | |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6280 | for ac_prog in python$PACKAGE_VERSION python3 python |
| 6281 | do |
| 6282 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6283 | set dummy $ac_prog; ac_word=$2 |
Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6285 | $as_echo_n "checking for $ac_word... " >&6; } |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6286 | if ${ac_cv_prog_PYTHON+:} false; then : |
Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6287 | $as_echo_n "(cached) " >&6 |
| 6288 | else |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6289 | if test -n "$PYTHON"; then |
| 6290 | ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. |
Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6291 | else |
| 6292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6293 | for as_dir in $PATH |
| 6294 | do |
| 6295 | IFS=$as_save_IFS |
| 6296 | test -z "$as_dir" && as_dir=. |
| 6297 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6298 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6299 | ac_cv_prog_PYTHON="$ac_prog" |
Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6301 | break 2 |
| 6302 | fi |
| 6303 | done |
| 6304 | done |
| 6305 | IFS=$as_save_IFS |
| 6306 | |
Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6307 | fi |
| 6308 | fi |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6309 | PYTHON=$ac_cv_prog_PYTHON |
| 6310 | if test -n "$PYTHON"; then |
| 6311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
| 6312 | $as_echo "$PYTHON" >&6; } |
Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6313 | else |
| 6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6315 | $as_echo "no" >&6; } |
| 6316 | fi |
| 6317 | |
| 6318 | |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6319 | test -n "$PYTHON" && break |
| 6320 | done |
| 6321 | test -n "$PYTHON" || PYTHON="not-found" |
| 6322 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6323 | if test "$PYTHON" = not-found; then |
Matthias Klose | c4c4842 | 2012-10-21 23:05:35 +0200 | [diff] [blame] | 6324 | ASDLGEN="@echo python: $PYTHON! cannot run \$(srcdir)/Parser/asdl_c.py #" |
| 6325 | else |
| 6326 | ASDLGEN="$PYTHON" |
Benjamin Peterson | 87cdb81 | 2011-05-31 18:26:08 -0500 | [diff] [blame] | 6327 | fi |
| 6328 | |
| 6329 | |
Kushal Das | 02d23a2 | 2014-04-15 23:50:06 +0530 | [diff] [blame] | 6330 | for ac_prog in python$PACKAGE_VERSION python3 python |
| 6331 | do |
| 6332 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6333 | set dummy $ac_prog; ac_word=$2 |
| 6334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6335 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6336 | if ${ac_cv_prog_PYTHON+:} false; then : |
| 6337 | $as_echo_n "(cached) " >&6 |
| 6338 | else |
| 6339 | if test -n "$PYTHON"; then |
| 6340 | ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. |
| 6341 | else |
| 6342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6343 | for as_dir in $PATH |
| 6344 | do |
| 6345 | IFS=$as_save_IFS |
| 6346 | test -z "$as_dir" && as_dir=. |
| 6347 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6348 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6349 | ac_cv_prog_PYTHON="$ac_prog" |
| 6350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6351 | break 2 |
| 6352 | fi |
| 6353 | done |
| 6354 | done |
| 6355 | IFS=$as_save_IFS |
| 6356 | |
| 6357 | fi |
| 6358 | fi |
| 6359 | PYTHON=$ac_cv_prog_PYTHON |
| 6360 | if test -n "$PYTHON"; then |
| 6361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
| 6362 | $as_echo "$PYTHON" >&6; } |
| 6363 | else |
| 6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6365 | $as_echo "no" >&6; } |
| 6366 | fi |
| 6367 | |
| 6368 | |
| 6369 | test -n "$PYTHON" && break |
| 6370 | done |
| 6371 | test -n "$PYTHON" || PYTHON="not-found" |
| 6372 | |
| 6373 | if test "$PYTHON" = not-found; then |
| 6374 | OPCODEHGEN="@echo python: $PYTHON! cannot run Tools/scripts/generate_opcode_h.py" |
| 6375 | else |
| 6376 | OPCODEHGEN="$PYTHON" |
| 6377 | fi |
| 6378 | |
| 6379 | |
| 6380 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6381 | case $MACHDEP in |
| 6382 | bsdos*|hp*|HP*) |
| 6383 | # install -d does not work on BSDI or HP-UX |
| 6384 | if test -z "$INSTALL" |
| 6385 | then |
| 6386 | INSTALL="${srcdir}/install-sh -c" |
| 6387 | fi |
| 6388 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6389 | # Find a good install program. We prefer a C program (faster), |
| 6390 | # so one script is as good as another. But avoid the broken or |
| 6391 | # incompatible versions: |
| 6392 | # SysV /etc/install, /usr/sbin/install |
| 6393 | # SunOS /usr/etc/install |
| 6394 | # IRIX /sbin/install |
| 6395 | # AIX /bin/install |
| 6396 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6397 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6398 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6399 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 6400 | # OS/2's system install, which has a completely different semantic |
| 6401 | # ./install, which can be erroneously created by make from ./install.sh. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6402 | # Reject install programs that cannot install multiple files. |
| 6403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 6404 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6405 | if test -z "$INSTALL"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6406 | if ${ac_cv_path_install+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6407 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6408 | else |
| 6409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6410 | for as_dir in $PATH |
| 6411 | do |
| 6412 | IFS=$as_save_IFS |
| 6413 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6414 | # Account for people who put trailing slashes in PATH elements. |
| 6415 | case $as_dir/ in #(( |
| 6416 | ./ | .// | /[cC]/* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6417 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6418 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6419 | /usr/ucb/* ) ;; |
| 6420 | *) |
| 6421 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6422 | # Don't use installbsd from OSF since it installs stuff as root |
| 6423 | # by default. |
| 6424 | for ac_prog in ginstall scoinst install; do |
| 6425 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6426 | 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] | 6427 | if test $ac_prog = install && |
| 6428 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6429 | # AIX install. It has an incompatible calling convention. |
| 6430 | : |
| 6431 | elif test $ac_prog = install && |
| 6432 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6433 | # program-specific install script used by HP pwplus--don't use. |
| 6434 | : |
| 6435 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6436 | rm -rf conftest.one conftest.two conftest.dir |
| 6437 | echo one > conftest.one |
| 6438 | echo two > conftest.two |
| 6439 | mkdir conftest.dir |
| 6440 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 6441 | test -s conftest.one && test -s conftest.two && |
| 6442 | test -s conftest.dir/conftest.one && |
| 6443 | test -s conftest.dir/conftest.two |
| 6444 | then |
| 6445 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6446 | break 3 |
| 6447 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6448 | fi |
| 6449 | fi |
| 6450 | done |
| 6451 | done |
| 6452 | ;; |
| 6453 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6454 | |
| 6455 | done |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6456 | IFS=$as_save_IFS |
| 6457 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6458 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6459 | |
| 6460 | fi |
| 6461 | if test "${ac_cv_path_install+set}" = set; then |
| 6462 | INSTALL=$ac_cv_path_install |
| 6463 | else |
| 6464 | # As a last resort, use the slow shell script. Don't cache a |
| 6465 | # value for INSTALL within a source directory, because that will |
| 6466 | # break other packages using the cache if that directory is |
| 6467 | # removed, or if the value is a relative name. |
| 6468 | INSTALL=$ac_install_sh |
| 6469 | fi |
| 6470 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 6472 | $as_echo "$INSTALL" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6473 | |
| 6474 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6475 | # It thinks the first close brace ends the variable substitution. |
| 6476 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6477 | |
| 6478 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 6479 | |
| 6480 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6481 | |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 6483 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 6484 | if test -z "$MKDIR_P"; then |
| 6485 | if ${ac_cv_path_mkdir+:} false; then : |
| 6486 | $as_echo_n "(cached) " >&6 |
| 6487 | else |
| 6488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6489 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 6490 | do |
| 6491 | IFS=$as_save_IFS |
| 6492 | test -z "$as_dir" && as_dir=. |
| 6493 | for ac_prog in mkdir gmkdir; do |
| 6494 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6495 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6496 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 6497 | 'mkdir (GNU coreutils) '* | \ |
| 6498 | 'mkdir (coreutils) '* | \ |
| 6499 | 'mkdir (fileutils) '4.1*) |
| 6500 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 6501 | break 3;; |
| 6502 | esac |
| 6503 | done |
| 6504 | done |
| 6505 | done |
| 6506 | IFS=$as_save_IFS |
| 6507 | |
| 6508 | fi |
| 6509 | |
| 6510 | test -d ./--version && rmdir ./--version |
| 6511 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 6512 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 6513 | else |
| 6514 | # As a last resort, use the slow shell script. Don't cache a |
| 6515 | # value for MKDIR_P within a source directory, because that will |
| 6516 | # break other packages using the cache if that directory is |
| 6517 | # removed, or if the value is a relative name. |
| 6518 | MKDIR_P="$ac_install_sh -d" |
| 6519 | fi |
| 6520 | fi |
| 6521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 6522 | $as_echo "$MKDIR_P" >&6; } |
| 6523 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6524 | |
| 6525 | # Not every filesystem supports hard links |
| 6526 | |
| 6527 | if test -z "$LN" ; then |
| 6528 | case $ac_sys_system in |
| 6529 | CYGWIN*) LN="ln -s";; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6530 | *) LN=ln;; |
| 6531 | esac |
| 6532 | fi |
| 6533 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6534 | # For calculating the .so ABI tag. |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6535 | |
| 6536 | ABIFLAGS="" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6537 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6538 | # Check for --with-pydebug |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
| 6540 | $as_echo_n "checking for --with-pydebug... " >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6541 | |
| 6542 | # Check whether --with-pydebug was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6543 | if test "${with_pydebug+set}" = set; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6544 | withval=$with_pydebug; |
| 6545 | if test "$withval" != no |
| 6546 | then |
| 6547 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6548 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6549 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6551 | $as_echo "yes" >&6; }; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6552 | Py_DEBUG='true' |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6553 | ABIFLAGS="${ABIFLAGS}d" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6554 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6555 | $as_echo "no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6556 | fi |
| 6557 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6559 | $as_echo "no" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6560 | fi |
| 6561 | |
| 6562 | |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6563 | # Enable PGO flags. |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6564 | |
| 6565 | |
| 6566 | |
| 6567 | |
| 6568 | |
| 6569 | |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6570 | # Extract the first word of "llvm-profdata", so it can be a program name with args. |
| 6571 | set dummy llvm-profdata; ac_word=$2 |
| 6572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6573 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6574 | if ${ac_cv_prog_LLVM_PROF_FOUND+:} false; then : |
| 6575 | $as_echo_n "(cached) " >&6 |
| 6576 | else |
| 6577 | if test -n "$LLVM_PROF_FOUND"; then |
| 6578 | ac_cv_prog_LLVM_PROF_FOUND="$LLVM_PROF_FOUND" # Let the user override the test. |
| 6579 | else |
| 6580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6581 | for as_dir in $PATH |
| 6582 | do |
| 6583 | IFS=$as_save_IFS |
| 6584 | test -z "$as_dir" && as_dir=. |
| 6585 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6586 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6587 | ac_cv_prog_LLVM_PROF_FOUND="found" |
| 6588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6589 | break 2 |
| 6590 | fi |
| 6591 | done |
| 6592 | done |
| 6593 | IFS=$as_save_IFS |
| 6594 | |
| 6595 | test -z "$ac_cv_prog_LLVM_PROF_FOUND" && ac_cv_prog_LLVM_PROF_FOUND="not-found" |
| 6596 | fi |
| 6597 | fi |
| 6598 | LLVM_PROF_FOUND=$ac_cv_prog_LLVM_PROF_FOUND |
| 6599 | if test -n "$LLVM_PROF_FOUND"; then |
| 6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROF_FOUND" >&5 |
| 6601 | $as_echo "$LLVM_PROF_FOUND" >&6; } |
| 6602 | else |
| 6603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6604 | $as_echo "no" >&6; } |
| 6605 | fi |
| 6606 | |
| 6607 | |
| 6608 | LLVM_PROF_ERR=no |
| 6609 | case $CC in |
| 6610 | *clang*) |
| 6611 | # Any changes made here should be reflected in the GCC+Darwin case below |
| 6612 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" |
| 6613 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" |
| 6614 | LLVM_PROF_MERGER="llvm-profdata merge -output=code.profclangd *.profclangr" |
| 6615 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
| 6616 | if test $LLVM_PROF_FOUND = not-found |
| 6617 | then |
| 6618 | LLVM_PROF_ERR=yes |
| 6619 | fi |
| 6620 | ;; |
| 6621 | *gcc*) |
| 6622 | case $ac_sys_system in |
| 6623 | Darwin*) |
| 6624 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" |
| 6625 | PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" |
| 6626 | LLVM_PROF_MERGER="llvm-profdata merge -output=code.profclangd *.profclangr" |
| 6627 | LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" |
| 6628 | if test $LLVM_PROF_FOUND = not-found |
| 6629 | then |
| 6630 | LLVM_PROF_ERR=yes |
| 6631 | fi |
| 6632 | ;; |
| 6633 | *) |
| 6634 | PGO_PROF_GEN_FLAG="-fprofile-generate" |
| 6635 | PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" |
| 6636 | LLVM_PROF_MERGER="true" |
| 6637 | LLVM_PROF_FILE="" |
| 6638 | ;; |
| 6639 | esac |
| 6640 | ;; |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6641 | *icc*) |
| 6642 | PGO_PROF_GEN_FLAG="-prof-gen" |
| 6643 | PGO_PROF_USE_FLAG="-prof-use" |
| 6644 | LLVM_PROF_MERGER="true" |
| 6645 | LLVM_PROF_FILE="" |
| 6646 | ;; |
Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6647 | esac |
| 6648 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6649 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 6650 | # merged with this chunk of code? |
| 6651 | |
| 6652 | # Optimizer/debugger flags |
| 6653 | # ------------------------ |
| 6654 | # (The following bit of code is complicated enough - please keep things |
| 6655 | # indented properly. Just pretend you're editing Python code. ;-) |
| 6656 | |
| 6657 | # There are two parallel sets of case statements below, one that checks to |
| 6658 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 6659 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 6660 | # user set OPT. |
| 6661 | |
| 6662 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 6663 | # it on the command line |
| 6664 | |
Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6665 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6666 | then |
| 6667 | case $GCC in |
| 6668 | yes) |
| 6669 | if test "$CC" != 'g++' ; then |
| 6670 | STRICT_PROTO="-Wstrict-prototypes" |
| 6671 | fi |
| 6672 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 6673 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 6674 | WRAP="-fwrapv" |
| 6675 | fi |
Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6676 | |
| 6677 | # Clang also needs -fwrapv |
Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6678 | case $CC in |
| 6679 | *clang*) WRAP="-fwrapv" |
| 6680 | ;; |
| 6681 | esac |
Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6682 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6683 | case $ac_cv_prog_cc_g in |
| 6684 | yes) |
| 6685 | if test "$Py_DEBUG" = 'true' ; then |
| 6686 | # Optimization messes up debuggers, so turn it off for |
| 6687 | # debug builds. |
Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6688 | if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then |
| 6689 | OPT="-g -Og -Wall $STRICT_PROTO" |
| 6690 | else |
| 6691 | OPT="-g -O0 -Wall $STRICT_PROTO" |
| 6692 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6693 | else |
| 6694 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 6695 | fi |
| 6696 | ;; |
| 6697 | *) |
| 6698 | OPT="-O3 -Wall $STRICT_PROTO" |
| 6699 | ;; |
| 6700 | esac |
| 6701 | case $ac_sys_system in |
| 6702 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 6703 | ;; |
| 6704 | esac |
| 6705 | ;; |
| 6706 | |
| 6707 | *) |
| 6708 | OPT="-O" |
| 6709 | ;; |
| 6710 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6711 | fi |
| 6712 | |
| 6713 | |
| 6714 | |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6715 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6716 | # The -arch flags for universal builds on OSX |
| 6717 | UNIVERSAL_ARCH_FLAGS= |
| 6718 | |
| 6719 | |
| 6720 | # tweak BASECFLAGS based on compiler and platform |
| 6721 | case $GCC in |
| 6722 | yes) |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6723 | # Python doesn't violate C99 aliasing rules, but older versions of |
| 6724 | # GCC produce warnings for legal Python code. Enable |
| 6725 | # -fno-strict-aliasing on versions of GCC that support but produce |
| 6726 | # warnings. See Issue3326 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 |
| 6728 | $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] | 6729 | ac_save_cc="$CC" |
| 6730 | CC="$CC -fno-strict-aliasing" |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6731 | save_CFLAGS="$CFLAGS" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6732 | if ${ac_cv_no_strict_aliasing+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6733 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6734 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6736 | /* end confdefs.h. */ |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6737 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6738 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6739 | int |
| 6740 | main () |
| 6741 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6742 | |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6743 | ; |
| 6744 | return 0; |
| 6745 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6746 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6747 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6748 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6749 | |
| 6750 | CC="$ac_save_cc -fstrict-aliasing" |
| 6751 | CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" |
| 6752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6753 | /* end confdefs.h. */ |
| 6754 | |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6755 | void f(int **x) {} |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6756 | int |
| 6757 | main () |
| 6758 | { |
Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6759 | double *x; f((int **) &x); |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6760 | ; |
| 6761 | return 0; |
| 6762 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6763 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6764 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6765 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6766 | |
| 6767 | ac_cv_no_strict_aliasing=no |
| 6768 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6769 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6770 | |
| 6771 | ac_cv_no_strict_aliasing=yes |
| 6772 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6773 | fi |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6775 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6776 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6777 | |
| 6778 | ac_cv_no_strict_aliasing=no |
| 6779 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6780 | fi |
Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6782 | fi |
| 6783 | |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6784 | CFLAGS="$save_CFLAGS" |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6785 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 |
| 6787 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } |
Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6788 | if test $ac_cv_no_strict_aliasing = yes |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6789 | then |
| 6790 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 6791 | fi |
| 6792 | |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6793 | # ICC doesn't recognize the option, but only emits a warning |
| 6794 | ## XXX does it emit an unused result warning and can it be disabled? |
| 6795 | case "$CC" in |
| 6796 | *icc*) |
| 6797 | ac_cv_disable_unused_result_warning=no |
| 6798 | ;; |
| 6799 | *) |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 |
| 6801 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } |
| 6802 | ac_save_cc="$CC" |
| 6803 | CC="$CC -Wunused-result -Werror" |
| 6804 | save_CFLAGS="$CFLAGS" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6805 | if ${ac_cv_disable_unused_result_warning+:} false; then : |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6806 | $as_echo_n "(cached) " >&6 |
| 6807 | else |
| 6808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6809 | /* end confdefs.h. */ |
| 6810 | |
| 6811 | |
| 6812 | int |
| 6813 | main () |
| 6814 | { |
| 6815 | |
| 6816 | ; |
| 6817 | return 0; |
| 6818 | } |
| 6819 | |
| 6820 | _ACEOF |
| 6821 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6822 | |
| 6823 | ac_cv_disable_unused_result_warning=yes |
| 6824 | |
| 6825 | else |
| 6826 | |
| 6827 | ac_cv_disable_unused_result_warning=no |
| 6828 | |
| 6829 | fi |
| 6830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6831 | fi |
| 6832 | |
| 6833 | CFLAGS="$save_CFLAGS" |
| 6834 | CC="$ac_save_cc" |
| 6835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 |
| 6836 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6837 | ;; |
| 6838 | esac |
Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6839 | |
| 6840 | if test $ac_cv_disable_unused_result_warning = yes |
| 6841 | then |
| 6842 | BASECFLAGS="$BASECFLAGS -Wno-unused-result" |
| 6843 | fi |
| 6844 | |
Benjamin Peterson | cc00e01 | 2013-05-20 08:22:04 -0700 | [diff] [blame] | 6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror=declaration-after-statement" >&5 |
| 6846 | $as_echo_n "checking for -Werror=declaration-after-statement... " >&6; } |
| 6847 | ac_save_cc="$CC" |
| 6848 | CC="$CC -Werror=declaration-after-statement" |
| 6849 | save_CFLAGS="$CFLAGS" |
| 6850 | if ${ac_cv_declaration_after_statement_warning+:} false; then : |
| 6851 | $as_echo_n "(cached) " >&6 |
| 6852 | else |
| 6853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6854 | /* end confdefs.h. */ |
| 6855 | |
| 6856 | |
| 6857 | int |
| 6858 | main () |
| 6859 | { |
| 6860 | |
| 6861 | ; |
| 6862 | return 0; |
| 6863 | } |
| 6864 | |
| 6865 | _ACEOF |
| 6866 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6867 | |
| 6868 | ac_cv_declaration_after_statement_warning=yes |
| 6869 | |
| 6870 | else |
| 6871 | |
| 6872 | ac_cv_declaration_after_statement_warning=no |
| 6873 | |
| 6874 | fi |
| 6875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6876 | fi |
| 6877 | |
| 6878 | CFLAGS="$save_CFLAGS" |
| 6879 | CC="$ac_save_cc" |
| 6880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declaration_after_statement_warning" >&5 |
| 6881 | $as_echo "$ac_cv_declaration_after_statement_warning" >&6; } |
| 6882 | |
| 6883 | if test $ac_cv_declaration_after_statement_warning = yes |
| 6884 | then |
Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6885 | CFLAGS_NODIST="$CFLAGS_NODIST -Werror=declaration-after-statement" |
Benjamin Peterson | cc00e01 | 2013-05-20 08:22:04 -0700 | [diff] [blame] | 6886 | fi |
| 6887 | |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 6888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 |
| 6889 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } |
| 6890 | ac_save_cc="$CC" |
| 6891 | CC="$CC -Wsign-compare" |
| 6892 | save_CFLAGS="$CFLAGS" |
| 6893 | if ${ac_cv_enable_sign_compare_warning+:} false; then : |
| 6894 | $as_echo_n "(cached) " >&6 |
| 6895 | else |
| 6896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6897 | /* end confdefs.h. */ |
| 6898 | |
| 6899 | |
| 6900 | int |
| 6901 | main () |
| 6902 | { |
| 6903 | |
| 6904 | ; |
| 6905 | return 0; |
| 6906 | } |
| 6907 | |
| 6908 | _ACEOF |
| 6909 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6910 | |
| 6911 | ac_cv_enable_sign_compare_warning=yes |
| 6912 | |
| 6913 | else |
| 6914 | |
| 6915 | ac_cv_enable_sign_compare_warning=no |
| 6916 | |
| 6917 | fi |
| 6918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6919 | fi |
| 6920 | |
| 6921 | CFLAGS="$save_CFLAGS" |
| 6922 | CC="$ac_save_cc" |
| 6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 |
| 6924 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } |
| 6925 | |
| 6926 | if test $ac_cv_enable_sign_compare_warning = yes |
| 6927 | then |
| 6928 | BASECFLAGS="$BASECFLAGS -Wsign-compare" |
| 6929 | fi |
| 6930 | |
| 6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 |
| 6932 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } |
| 6933 | ac_save_cc="$CC" |
| 6934 | CC="$CC -Wunreachable-code" |
| 6935 | save_CFLAGS="$CFLAGS" |
| 6936 | if ${ac_cv_enable_unreachable_code_warning+:} false; then : |
| 6937 | $as_echo_n "(cached) " >&6 |
| 6938 | else |
| 6939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6940 | /* end confdefs.h. */ |
| 6941 | |
| 6942 | |
| 6943 | int |
| 6944 | main () |
| 6945 | { |
| 6946 | |
| 6947 | ; |
| 6948 | return 0; |
| 6949 | } |
| 6950 | |
| 6951 | _ACEOF |
| 6952 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6953 | |
| 6954 | ac_cv_enable_unreachable_code_warning=yes |
| 6955 | |
| 6956 | else |
| 6957 | |
| 6958 | ac_cv_enable_unreachable_code_warning=no |
| 6959 | |
| 6960 | fi |
| 6961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6962 | fi |
| 6963 | |
| 6964 | CFLAGS="$save_CFLAGS" |
| 6965 | CC="$ac_save_cc" |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 6966 | |
| 6967 | # Don't enable unreachable code warning in debug mode, since it usually |
| 6968 | # results in non-standard code paths. |
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 6969 | # Issue #24324: Unfortunately, the unreachable code warning does not work |
| 6970 | # correctly on gcc and has been silently removed from the compiler. |
| 6971 | # It is supported on clang but on OS X systems gcc may be an alias |
| 6972 | # for clang. Try to determine if the compiler is not really gcc and, |
| 6973 | # if so, only then enable the warning. |
| 6974 | if test $ac_cv_enable_unreachable_code_warning = yes && \ |
| 6975 | test "$Py_DEBUG" != "true" && \ |
| 6976 | 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] | 6977 | then |
| 6978 | BASECFLAGS="$BASECFLAGS -Wunreachable-code" |
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 6979 | else |
| 6980 | ac_cv_enable_unreachable_code_warning=no |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 6981 | fi |
Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 |
| 6983 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } |
Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 6984 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6985 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 6986 | # support. Without this, treatment of subnormals doesn't follow |
| 6987 | # the standard. |
Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 6988 | case $host in |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6989 | alpha*) |
| 6990 | BASECFLAGS="$BASECFLAGS -mieee" |
| 6991 | ;; |
| 6992 | esac |
| 6993 | |
| 6994 | case $ac_sys_system in |
| 6995 | SCO_SV*) |
| 6996 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 6997 | ;; |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 6998 | |
| 6999 | # is there any other compiler on Darwin besides gcc? |
| 7000 | Darwin*) |
| 7001 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 7002 | # used to be here, but non-Apple gcc doesn't accept them. |
| 7003 | if test "${CC}" = gcc |
| 7004 | then |
| 7005 | { $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] | 7006 | $as_echo_n "checking which compiler should be used... " >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7007 | case "${UNIVERSALSDK}" in |
| 7008 | */MacOSX10.4u.sdk) |
| 7009 | # Build using 10.4 SDK, force usage of gcc when the |
| 7010 | # compiler is gcc, otherwise the user will get very |
| 7011 | # confusing error messages when building on OSX 10.6 |
| 7012 | CC=gcc-4.0 |
| 7013 | CPP=cpp-4.0 |
| 7014 | ;; |
| 7015 | esac |
| 7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7017 | $as_echo "$CC" >&6; } |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7018 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7019 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7020 | if test "${enable_universalsdk}" |
| 7021 | then |
| 7022 | case "$UNIVERSAL_ARCHS" in |
| 7023 | 32-bit) |
| 7024 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 7025 | LIPO_32BIT_FLAGS="" |
| 7026 | ARCH_RUN_32BIT="" |
| 7027 | ;; |
| 7028 | 64-bit) |
| 7029 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 7030 | LIPO_32BIT_FLAGS="" |
| 7031 | ARCH_RUN_32BIT="true" |
| 7032 | ;; |
| 7033 | all) |
| 7034 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 7035 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 7036 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
| 7037 | ;; |
| 7038 | intel) |
| 7039 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 7040 | LIPO_32BIT_FLAGS="-extract i386" |
| 7041 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
| 7042 | ;; |
| 7043 | intel-32) |
| 7044 | UNIVERSAL_ARCH_FLAGS="-arch i386" |
| 7045 | LIPO_32BIT_FLAGS="" |
| 7046 | ARCH_RUN_32BIT="" |
| 7047 | ;; |
| 7048 | 3-way) |
| 7049 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 7050 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 7051 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
| 7052 | ;; |
| 7053 | *) |
| 7054 | as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 |
| 7055 | ;; |
| 7056 | esac |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7057 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7058 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 7059 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 7060 | if test "${UNIVERSALSDK}" != "/" |
| 7061 | then |
| 7062 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
| 7063 | fi |
| 7064 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7065 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7066 | # Calculate an appropriate deployment target for this build: |
| 7067 | # The deployment target value is used explicitly to enable certain |
| 7068 | # features are enabled (such as builtin libedit support for readline) |
| 7069 | # through the use of Apple's Availabiliy Macros and is used as a |
| 7070 | # component of the string returned by distutils.get_platform(). |
| 7071 | # |
| 7072 | # Use the value from: |
| 7073 | # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified |
| 7074 | # 2. the operating system version of the build machine if >= 10.6 |
| 7075 | # 3. If running on OS X 10.3 through 10.5, use the legacy tests |
| 7076 | # below to pick either 10.3, 10.4, or 10.5 as the target. |
| 7077 | # 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] | 7078 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 |
| 7080 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7081 | cur_target_major=`sw_vers -productVersion | \ |
| 7082 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` |
| 7083 | cur_target_minor=`sw_vers -productVersion | \ |
| 7084 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` |
| 7085 | cur_target="${cur_target_major}.${cur_target_minor}" |
| 7086 | if test ${cur_target_major} -eq 10 && \ |
| 7087 | test ${cur_target_minor} -ge 3 && \ |
| 7088 | test ${cur_target_minor} -le 5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7089 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7090 | # OS X 10.3 through 10.5 |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7091 | cur_target=10.3 |
| 7092 | if test ${enable_universalsdk} |
| 7093 | then |
| 7094 | case "$UNIVERSAL_ARCHS" in |
| 7095 | all|3-way|intel|64-bit) |
| 7096 | # These configurations were first supported in 10.5 |
| 7097 | cur_target='10.5' |
| 7098 | ;; |
| 7099 | esac |
| 7100 | else |
| 7101 | if test `/usr/bin/arch` = "i386" |
| 7102 | then |
| 7103 | # 10.4 was the first release to support Intel archs |
| 7104 | cur_target="10.4" |
| 7105 | fi |
| 7106 | fi |
| 7107 | fi |
| 7108 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7109 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7110 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 7111 | # environment with a value that is the same as what we'll use |
| 7112 | # in the Makefile to ensure that we'll get the same compiler |
| 7113 | # environment during configure and build time. |
| 7114 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 7115 | export MACOSX_DEPLOYMENT_TARGET |
| 7116 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 7117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 |
| 7118 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7119 | |
Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7120 | # end of Darwin* tests |
| 7121 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7122 | esac |
| 7123 | ;; |
| 7124 | |
| 7125 | *) |
| 7126 | case $ac_sys_system in |
| 7127 | OpenUNIX*|UnixWare*) |
| 7128 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 7129 | ;; |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7130 | SCO_SV*) |
| 7131 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 7132 | ;; |
| 7133 | esac |
| 7134 | ;; |
| 7135 | esac |
| 7136 | |
Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7137 | # ICC needs -fp-model strict or floats behave badly |
| 7138 | case "$CC" in |
| 7139 | *icc*) |
| 7140 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" |
| 7141 | ;; |
| 7142 | esac |
| 7143 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7144 | if test "$Py_DEBUG" = 'true'; then |
| 7145 | : |
| 7146 | else |
| 7147 | OPT="-DNDEBUG $OPT" |
| 7148 | fi |
| 7149 | |
| 7150 | if test "$ac_arch_flags" |
| 7151 | then |
| 7152 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 7153 | fi |
| 7154 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7155 | # On some compilers, pthreads are available without further options |
| 7156 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 7157 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 7158 | # So we have to see first whether pthreads are available without |
| 7159 | # options before we can check whether -Kpthread improves anything. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
| 7161 | $as_echo_n "checking whether pthreads are available without options... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7162 | if ${ac_cv_pthread_is_default+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7163 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7164 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7165 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7166 | ac_cv_pthread_is_default=no |
| 7167 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7169 | /* end confdefs.h. */ |
| 7170 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7171 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7172 | #include <pthread.h> |
| 7173 | |
| 7174 | void* routine(void* p){return NULL;} |
| 7175 | |
| 7176 | int main(){ |
| 7177 | pthread_t p; |
| 7178 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7179 | return 1; |
| 7180 | (void)pthread_detach(p); |
| 7181 | return 0; |
| 7182 | } |
| 7183 | |
| 7184 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7185 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7186 | |
| 7187 | ac_cv_pthread_is_default=yes |
| 7188 | ac_cv_kthread=no |
| 7189 | ac_cv_pthread=no |
| 7190 | |
| 7191 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7192 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7193 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7194 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7195 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7196 | fi |
| 7197 | |
| 7198 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7199 | fi |
| 7200 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
| 7202 | $as_echo "$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7203 | |
| 7204 | |
| 7205 | if test $ac_cv_pthread_is_default = yes |
| 7206 | then |
| 7207 | ac_cv_kpthread=no |
| 7208 | else |
| 7209 | # -Kpthread, if available, provides the right #defines |
| 7210 | # and linker options to make pthread_create available |
| 7211 | # Some compilers won't report that they do not support -Kpthread, |
| 7212 | # so we need to run a program to see whether it really made the |
| 7213 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
| 7215 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7216 | if ${ac_cv_kpthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7217 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7218 | else |
| 7219 | ac_save_cc="$CC" |
| 7220 | CC="$CC -Kpthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7221 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7222 | ac_cv_kpthread=no |
| 7223 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7225 | /* end confdefs.h. */ |
| 7226 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7227 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7228 | #include <pthread.h> |
| 7229 | |
| 7230 | void* routine(void* p){return NULL;} |
| 7231 | |
| 7232 | int main(){ |
| 7233 | pthread_t p; |
| 7234 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7235 | return 1; |
| 7236 | (void)pthread_detach(p); |
| 7237 | return 0; |
| 7238 | } |
| 7239 | |
| 7240 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7241 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7242 | ac_cv_kpthread=yes |
| 7243 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7244 | ac_cv_kpthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7245 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7246 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7247 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7248 | fi |
| 7249 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7250 | CC="$ac_save_cc" |
| 7251 | fi |
| 7252 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
| 7254 | $as_echo "$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7255 | fi |
| 7256 | |
| 7257 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 7258 | then |
| 7259 | # -Kthread, if available, provides the right #defines |
| 7260 | # and linker options to make pthread_create available |
| 7261 | # Some compilers won't report that they do not support -Kthread, |
| 7262 | # so we need to run a program to see whether it really made the |
| 7263 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
| 7265 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7266 | if ${ac_cv_kthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7267 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7268 | else |
| 7269 | ac_save_cc="$CC" |
| 7270 | CC="$CC -Kthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7271 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7272 | ac_cv_kthread=no |
| 7273 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7275 | /* end confdefs.h. */ |
| 7276 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7277 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7278 | #include <pthread.h> |
| 7279 | |
| 7280 | void* routine(void* p){return NULL;} |
| 7281 | |
| 7282 | int main(){ |
| 7283 | pthread_t p; |
| 7284 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7285 | return 1; |
| 7286 | (void)pthread_detach(p); |
| 7287 | return 0; |
| 7288 | } |
| 7289 | |
| 7290 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7291 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7292 | ac_cv_kthread=yes |
| 7293 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7294 | ac_cv_kthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7295 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7296 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7297 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7298 | fi |
| 7299 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7300 | CC="$ac_save_cc" |
| 7301 | fi |
| 7302 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
| 7304 | $as_echo "$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7305 | fi |
| 7306 | |
| 7307 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 7308 | then |
| 7309 | # -pthread, if available, provides the right #defines |
| 7310 | # and linker options to make pthread_create available |
| 7311 | # Some compilers won't report that they do not support -pthread, |
| 7312 | # so we need to run a program to see whether it really made the |
| 7313 | # function available. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
| 7315 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } |
doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 7316 | if ${ac_cv_pthread+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7317 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7318 | else |
| 7319 | ac_save_cc="$CC" |
| 7320 | CC="$CC -pthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7321 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7322 | ac_cv_pthread=no |
| 7323 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7325 | /* end confdefs.h. */ |
| 7326 | |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7327 | #include <stdio.h> |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7328 | #include <pthread.h> |
| 7329 | |
| 7330 | void* routine(void* p){return NULL;} |
| 7331 | |
| 7332 | int main(){ |
| 7333 | pthread_t p; |
| 7334 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 7335 | return 1; |
| 7336 | (void)pthread_detach(p); |
| 7337 | return 0; |
| 7338 | } |
| 7339 | |
| 7340 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7341 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7342 | ac_cv_pthread=yes |
| 7343 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7344 | ac_cv_pthread=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7345 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7346 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7347 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7348 | fi |
| 7349 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7350 | CC="$ac_save_cc" |
| 7351 | fi |
| 7352 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
| 7354 | $as_echo "$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7355 | fi |
| 7356 | |
| 7357 | # If we have set a CC compiler flag for thread support then |
| 7358 | # check if it works for CXX, too. |
| 7359 | ac_cv_cxx_thread=no |
| 7360 | if test ! -z "$CXX" |
| 7361 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
| 7363 | $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] | 7364 | ac_save_cxx="$CXX" |
| 7365 | |
| 7366 | if test "$ac_cv_kpthread" = "yes" |
| 7367 | then |
| 7368 | CXX="$CXX -Kpthread" |
| 7369 | ac_cv_cxx_thread=yes |
| 7370 | elif test "$ac_cv_kthread" = "yes" |
| 7371 | then |
| 7372 | CXX="$CXX -Kthread" |
| 7373 | ac_cv_cxx_thread=yes |
| 7374 | elif test "$ac_cv_pthread" = "yes" |
| 7375 | then |
| 7376 | CXX="$CXX -pthread" |
| 7377 | ac_cv_cxx_thread=yes |
| 7378 | fi |
| 7379 | |
| 7380 | if test $ac_cv_cxx_thread = yes |
| 7381 | then |
| 7382 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 7383 | $CXX -c conftest.$ac_ext 2>&5 |
| 7384 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 7385 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 7386 | then |
| 7387 | ac_cv_cxx_thread=yes |
| 7388 | else |
| 7389 | ac_cv_cxx_thread=no |
| 7390 | fi |
| 7391 | rm -fr conftest* |
| 7392 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
| 7394 | $as_echo "$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7395 | fi |
| 7396 | CXX="$ac_save_cxx" |
| 7397 | |
| 7398 | |
| 7399 | # checks for header files |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7401 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7402 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7403 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7404 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7406 | /* end confdefs.h. */ |
| 7407 | #include <stdlib.h> |
| 7408 | #include <stdarg.h> |
| 7409 | #include <string.h> |
| 7410 | #include <float.h> |
| 7411 | |
| 7412 | int |
| 7413 | main () |
| 7414 | { |
| 7415 | |
| 7416 | ; |
| 7417 | return 0; |
| 7418 | } |
| 7419 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7420 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7421 | ac_cv_header_stdc=yes |
| 7422 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7423 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7424 | fi |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7426 | |
| 7427 | if test $ac_cv_header_stdc = yes; then |
| 7428 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7430 | /* end confdefs.h. */ |
| 7431 | #include <string.h> |
| 7432 | |
| 7433 | _ACEOF |
| 7434 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7435 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7436 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7437 | else |
| 7438 | ac_cv_header_stdc=no |
| 7439 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7440 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7441 | |
| 7442 | fi |
| 7443 | |
| 7444 | if test $ac_cv_header_stdc = yes; then |
| 7445 | # 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] | 7446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7447 | /* end confdefs.h. */ |
| 7448 | #include <stdlib.h> |
| 7449 | |
| 7450 | _ACEOF |
| 7451 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7452 | $EGREP "free" >/dev/null 2>&1; then : |
| 7453 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7454 | else |
| 7455 | ac_cv_header_stdc=no |
| 7456 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7457 | rm -f conftest* |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7458 | |
| 7459 | fi |
| 7460 | |
| 7461 | if test $ac_cv_header_stdc = yes; then |
| 7462 | # /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] | 7463 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7464 | : |
| 7465 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7467 | /* end confdefs.h. */ |
| 7468 | #include <ctype.h> |
| 7469 | #include <stdlib.h> |
| 7470 | #if ((' ' & 0x0FF) == 0x020) |
| 7471 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7472 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7473 | #else |
| 7474 | # define ISLOWER(c) \ |
| 7475 | (('a' <= (c) && (c) <= 'i') \ |
| 7476 | || ('j' <= (c) && (c) <= 'r') \ |
| 7477 | || ('s' <= (c) && (c) <= 'z')) |
| 7478 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7479 | #endif |
| 7480 | |
| 7481 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7482 | int |
| 7483 | main () |
| 7484 | { |
| 7485 | int i; |
| 7486 | for (i = 0; i < 256; i++) |
| 7487 | if (XOR (islower (i), ISLOWER (i)) |
| 7488 | || toupper (i) != TOUPPER (i)) |
| 7489 | return 2; |
| 7490 | return 0; |
| 7491 | } |
| 7492 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7493 | if ac_fn_c_try_run "$LINENO"; then : |
| 7494 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7495 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7496 | ac_cv_header_stdc=no |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7497 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7498 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7499 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7500 | fi |
| 7501 | |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7502 | fi |
| 7503 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 7505 | $as_echo "$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7506 | if test $ac_cv_header_stdc = yes; then |
| 7507 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7508 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7509 | |
| 7510 | fi |
| 7511 | |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7512 | 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] | 7513 | fcntl.h grp.h \ |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7514 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ |
Benjamin Peterson | 94b580d | 2011-08-02 17:30:04 -0500 | [diff] [blame] | 7515 | sched.h shadow.h signal.h stdint.h stropts.h termios.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 7516 | unistd.h utime.h \ |
Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7517 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ |
Antoine Pitrou | bcf2b59 | 2012-02-08 23:28:36 +0100 | [diff] [blame] | 7518 | 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] | 7519 | sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ |
Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7520 | sys/param.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ |
Martin v. Löwis | 9d6c669 | 2012-02-03 17:44:58 +0100 | [diff] [blame] | 7521 | 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] | 7522 | 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] | 7523 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 7524 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h endian.h \ |
| 7525 | sys/endian.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7526 | do : |
| 7527 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7528 | 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] | 7529 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7530 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7531 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7532 | _ACEOF |
| 7533 | |
| 7534 | fi |
| 7535 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7536 | done |
| 7537 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7538 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7539 | 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] | 7540 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 7541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 7542 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7543 | if eval \${$as_ac_Header+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7544 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7545 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7547 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7548 | #include <sys/types.h> |
| 7549 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7551 | int |
| 7552 | main () |
| 7553 | { |
| 7554 | if ((DIR *) 0) |
| 7555 | return 0; |
| 7556 | ; |
| 7557 | return 0; |
| 7558 | } |
| 7559 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7560 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7561 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7562 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7563 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7564 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7566 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7567 | eval ac_res=\$$as_ac_Header |
| 7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7569 | $as_echo "$ac_res" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7570 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7571 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7572 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7573 | _ACEOF |
| 7574 | |
| 7575 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7576 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7577 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7578 | done |
| 7579 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 7580 | if test $ac_header_dirent = dirent.h; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 7582 | $as_echo_n "checking for library containing opendir... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7583 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7584 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7585 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7586 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7588 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7589 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7590 | /* Override any GCC internal prototype to avoid an error. |
| 7591 | Use char because int might match the return type of a GCC |
| 7592 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7593 | #ifdef __cplusplus |
| 7594 | extern "C" |
| 7595 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7596 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7597 | int |
| 7598 | main () |
| 7599 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7600 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7601 | ; |
| 7602 | return 0; |
| 7603 | } |
| 7604 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7605 | for ac_lib in '' dir; do |
| 7606 | if test -z "$ac_lib"; then |
| 7607 | ac_res="none required" |
| 7608 | else |
| 7609 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7610 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7611 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7612 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7613 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7614 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7615 | rm -f core conftest.err conftest.$ac_objext \ |
| 7616 | conftest$ac_exeext |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7617 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7618 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7619 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7620 | done |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7621 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7622 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7623 | else |
| 7624 | ac_cv_search_opendir=no |
| 7625 | fi |
| 7626 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7627 | LIBS=$ac_func_search_save_LIBS |
| 7628 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 7630 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7631 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7632 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7633 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7634 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7635 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7636 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7637 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 7639 | $as_echo_n "checking for library containing opendir... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7640 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7641 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7642 | else |
| 7643 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7645 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7646 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7647 | /* Override any GCC internal prototype to avoid an error. |
| 7648 | Use char because int might match the return type of a GCC |
| 7649 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7650 | #ifdef __cplusplus |
| 7651 | extern "C" |
| 7652 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7653 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7654 | int |
| 7655 | main () |
| 7656 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7657 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7658 | ; |
| 7659 | return 0; |
| 7660 | } |
| 7661 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7662 | for ac_lib in '' x; do |
| 7663 | if test -z "$ac_lib"; then |
| 7664 | ac_res="none required" |
| 7665 | else |
| 7666 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7667 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7668 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7669 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7670 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7671 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7672 | rm -f core conftest.err conftest.$ac_objext \ |
| 7673 | conftest$ac_exeext |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7674 | if ${ac_cv_search_opendir+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7675 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7676 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7677 | done |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7678 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7679 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7680 | else |
| 7681 | ac_cv_search_opendir=no |
| 7682 | fi |
| 7683 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7684 | LIBS=$ac_func_search_save_LIBS |
| 7685 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 7687 | $as_echo "$ac_cv_search_opendir" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7688 | ac_res=$ac_cv_search_opendir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7689 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7690 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7691 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7692 | fi |
| 7693 | |
| 7694 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7695 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
| 7697 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7698 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7699 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7700 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7702 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7703 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7704 | int |
| 7705 | main () |
| 7706 | { |
| 7707 | return makedev(0, 0); |
| 7708 | ; |
| 7709 | return 0; |
| 7710 | } |
| 7711 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7712 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7713 | ac_cv_header_sys_types_h_makedev=yes |
| 7714 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7715 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7716 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7717 | rm -f core conftest.err conftest.$ac_objext \ |
| 7718 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7719 | |
| 7720 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 7722 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7723 | |
| 7724 | if test $ac_cv_header_sys_types_h_makedev = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7725 | 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] | 7726 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7727 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7728 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7729 | |
| 7730 | fi |
| 7731 | |
| 7732 | |
| 7733 | |
| 7734 | if test $ac_cv_header_sys_mkdev_h = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7735 | 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] | 7736 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7737 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7738 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7739 | |
| 7740 | fi |
| 7741 | |
| 7742 | |
| 7743 | fi |
| 7744 | fi |
| 7745 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7746 | |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7747 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. |
| 7748 | for ac_header in net/if.h |
| 7749 | do : |
| 7750 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> |
| 7751 | #ifdef STDC_HEADERS |
| 7752 | # include <stdlib.h> |
| 7753 | # include <stddef.h> |
| 7754 | #else |
| 7755 | # ifdef HAVE_STDLIB_H |
| 7756 | # include <stdlib.h> |
| 7757 | # endif |
| 7758 | #endif |
| 7759 | #ifdef HAVE_SYS_SOCKET_H |
| 7760 | # include <sys/socket.h> |
| 7761 | #endif |
| 7762 | |
| 7763 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7764 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7765 | cat >>confdefs.h <<_ACEOF |
| 7766 | #define HAVE_NET_IF_H 1 |
| 7767 | _ACEOF |
| 7768 | |
| 7769 | fi |
| 7770 | |
| 7771 | done |
| 7772 | |
| 7773 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7774 | # On Linux, netlink.h requires asm/types.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7775 | for ac_header in linux/netlink.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7776 | do : |
| 7777 | 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] | 7778 | #ifdef HAVE_ASM_TYPES_H |
| 7779 | #include <asm/types.h> |
| 7780 | #endif |
| 7781 | #ifdef HAVE_SYS_SOCKET_H |
| 7782 | #include <sys/socket.h> |
| 7783 | #endif |
| 7784 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7785 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7786 | 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] | 7787 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7788 | #define HAVE_LINUX_NETLINK_H 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7789 | _ACEOF |
| 7790 | |
| 7791 | fi |
| 7792 | |
| 7793 | done |
| 7794 | |
| 7795 | |
Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 7796 | # 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] | 7797 | 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] | 7798 | do : |
| 7799 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7800 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
| 7801 | #ifdef HAVE_SYS_SOCKET_H |
| 7802 | #include <sys/socket.h> |
| 7803 | #endif |
| 7804 | |
| 7805 | " |
| 7806 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 7807 | cat >>confdefs.h <<_ACEOF |
| 7808 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7809 | _ACEOF |
| 7810 | |
| 7811 | fi |
| 7812 | |
| 7813 | done |
| 7814 | |
| 7815 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7816 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7817 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
| 7819 | $as_echo_n "checking for clock_t in time.h... " >&6; } |
| 7820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7821 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7822 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7823 | |
| 7824 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7825 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7826 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7827 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7829 | |
| 7830 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7831 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7832 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7833 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7834 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7835 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7836 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 7838 | $as_echo "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7839 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
| 7841 | $as_echo_n "checking for makedev... " >&6; } |
| 7842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7843 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7844 | |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 7845 | #if defined(MAJOR_IN_MKDEV) |
| 7846 | #include <sys/mkdev.h> |
| 7847 | #elif defined(MAJOR_IN_SYSMACROS) |
| 7848 | #include <sys/sysmacros.h> |
| 7849 | #else |
| 7850 | #include <sys/types.h> |
| 7851 | #endif |
| 7852 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7853 | int |
| 7854 | main () |
| 7855 | { |
Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 7856 | |
| 7857 | makedev(0, 0) |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7858 | ; |
| 7859 | return 0; |
| 7860 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 7861 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7862 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7863 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7864 | ac_cv_has_makedev=yes |
| 7865 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7866 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7867 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7868 | rm -f core conftest.err conftest.$ac_objext \ |
| 7869 | conftest$ac_exeext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
| 7871 | $as_echo "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7872 | if test "$ac_cv_has_makedev" = "yes"; then |
| 7873 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7874 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 7875 | |
| 7876 | fi |
| 7877 | |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 7878 | # byte swapping |
| 7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 |
| 7880 | $as_echo_n "checking for le64toh... " >&6; } |
| 7881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7882 | /* end confdefs.h. */ |
| 7883 | |
| 7884 | #ifdef HAVE_ENDIAN_H |
| 7885 | #include <endian.h> |
| 7886 | #elif defined(HAVE_SYS_ENDIAN_H) |
| 7887 | #include <sys/endian.h> |
| 7888 | #endif |
| 7889 | |
| 7890 | int |
| 7891 | main () |
| 7892 | { |
| 7893 | |
| 7894 | le64toh(1) |
| 7895 | ; |
| 7896 | return 0; |
| 7897 | } |
| 7898 | |
| 7899 | _ACEOF |
| 7900 | if ac_fn_c_try_link "$LINENO"; then : |
| 7901 | ac_cv_has_le64toh=yes |
| 7902 | else |
| 7903 | ac_cv_has_le64toh=no |
| 7904 | fi |
| 7905 | rm -f core conftest.err conftest.$ac_objext \ |
| 7906 | conftest$ac_exeext conftest.$ac_ext |
| 7907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 |
| 7908 | $as_echo "$ac_cv_has_le64toh" >&6; } |
| 7909 | if test "$ac_cv_has_le64toh" = "yes"; then |
| 7910 | |
| 7911 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h |
| 7912 | |
| 7913 | fi |
| 7914 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7915 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 7916 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 7917 | # defined, but the compiler does not support pragma redefine_extname, |
| 7918 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 7919 | # structures (such as rlimit64) without declaring them. As a |
| 7920 | # work-around, disable LFS on such configurations |
| 7921 | |
| 7922 | use_lfs=yes |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 |
| 7924 | $as_echo_n "checking Solaris LFS bug... " >&6; } |
| 7925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7926 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7927 | |
| 7928 | #define _LARGEFILE_SOURCE 1 |
| 7929 | #define _FILE_OFFSET_BITS 64 |
| 7930 | #include <sys/resource.h> |
| 7931 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7932 | int |
| 7933 | main () |
| 7934 | { |
| 7935 | struct rlimit foo; |
| 7936 | ; |
| 7937 | return 0; |
| 7938 | } |
| 7939 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7940 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7941 | sol_lfs_bug=no |
| 7942 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7943 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7944 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 |
| 7947 | $as_echo "$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7948 | if test "$sol_lfs_bug" = "yes"; then |
| 7949 | use_lfs=no |
| 7950 | fi |
| 7951 | |
| 7952 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7953 | # Two defines needed to enable largefile support on various platforms |
| 7954 | # These may affect some typedefs |
Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 7955 | case $ac_sys_system/$ac_sys_release in |
| 7956 | AIX*) |
| 7957 | |
| 7958 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h |
| 7959 | |
| 7960 | ;; |
| 7961 | esac |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7962 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7963 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7964 | |
| 7965 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7966 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 7967 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 7968 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7969 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 7970 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 7971 | cat >> confdefs.h <<\EOF |
| 7972 | #if defined(SCO_DS) |
| 7973 | #undef _OFF_T |
| 7974 | #endif |
| 7975 | EOF |
| 7976 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7977 | # Type availability checks |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7978 | 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] | 7979 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7980 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7981 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7982 | |
| 7983 | cat >>confdefs.h <<_ACEOF |
| 7984 | #define mode_t int |
| 7985 | _ACEOF |
| 7986 | |
| 7987 | fi |
| 7988 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7989 | 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] | 7990 | if test "x$ac_cv_type_off_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7991 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7993 | |
| 7994 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7995 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7996 | _ACEOF |
| 7997 | |
| 7998 | fi |
| 7999 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8000 | 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] | 8001 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8002 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8004 | |
| 8005 | cat >>confdefs.h <<_ACEOF |
| 8006 | #define pid_t int |
| 8007 | _ACEOF |
| 8008 | |
| 8009 | fi |
| 8010 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8012 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 8013 | #define RETSIGTYPE void |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8014 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8015 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8016 | 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] | 8017 | if test "x$ac_cv_type_size_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8018 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8019 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8020 | |
| 8021 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8022 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8023 | _ACEOF |
| 8024 | |
| 8025 | fi |
| 8026 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 8028 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8029 | if ${ac_cv_type_uid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8030 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8031 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8033 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8034 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8035 | |
| 8036 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8037 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8038 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8039 | ac_cv_type_uid_t=yes |
| 8040 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8041 | ac_cv_type_uid_t=no |
| 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 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8045 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 8047 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8048 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8049 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8050 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8051 | |
| 8052 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8053 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8054 | |
| 8055 | fi |
| 8056 | |
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8057 | |
| 8058 | # There are two separate checks for each of the exact-width integer types we |
| 8059 | # need. First we check whether the type is available using the usual |
| 8060 | # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> |
| 8061 | # and <stdint.h> where available). We then also use the special type checks of |
| 8062 | # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available |
| 8063 | # directly, #define's uint32_t to be a suitable type. |
| 8064 | |
| 8065 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
| 8066 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
| 8067 | |
| 8068 | $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h |
| 8069 | |
| 8070 | fi |
| 8071 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8072 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 8073 | case $ac_cv_c_uint32_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8074 | no|yes) ;; #( |
| 8075 | *) |
| 8076 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8077 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8078 | |
| 8079 | |
| 8080 | cat >>confdefs.h <<_ACEOF |
| 8081 | #define uint32_t $ac_cv_c_uint32_t |
| 8082 | _ACEOF |
| 8083 | ;; |
| 8084 | esac |
| 8085 | |
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8086 | |
| 8087 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
| 8088 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
| 8089 | |
| 8090 | $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h |
| 8091 | |
| 8092 | fi |
| 8093 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8094 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 8095 | case $ac_cv_c_uint64_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8096 | no|yes) ;; #( |
| 8097 | *) |
| 8098 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8099 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8100 | |
| 8101 | |
| 8102 | cat >>confdefs.h <<_ACEOF |
| 8103 | #define uint64_t $ac_cv_c_uint64_t |
| 8104 | _ACEOF |
| 8105 | ;; |
| 8106 | esac |
| 8107 | |
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8108 | |
| 8109 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" |
| 8110 | if test "x$ac_cv_type_int32_t" = xyes; then : |
| 8111 | |
| 8112 | $as_echo "#define HAVE_INT32_T 1" >>confdefs.h |
| 8113 | |
| 8114 | fi |
| 8115 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8116 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 8117 | case $ac_cv_c_int32_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8118 | no|yes) ;; #( |
| 8119 | *) |
| 8120 | |
| 8121 | cat >>confdefs.h <<_ACEOF |
| 8122 | #define int32_t $ac_cv_c_int32_t |
| 8123 | _ACEOF |
| 8124 | ;; |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8125 | esac |
| 8126 | |
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8127 | |
| 8128 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" |
| 8129 | if test "x$ac_cv_type_int64_t" = xyes; then : |
| 8130 | |
| 8131 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h |
| 8132 | |
| 8133 | fi |
| 8134 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8135 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 8136 | case $ac_cv_c_int64_t in #( |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 8137 | no|yes) ;; #( |
| 8138 | *) |
| 8139 | |
| 8140 | cat >>confdefs.h <<_ACEOF |
| 8141 | #define int64_t $ac_cv_c_int64_t |
| 8142 | _ACEOF |
| 8143 | ;; |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 8144 | esac |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8145 | |
Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8146 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8147 | 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] | 8148 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8149 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8150 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8151 | |
| 8152 | fi |
| 8153 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8154 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" |
| 8155 | if test "x$ac_cv_type___uint128_t" = xyes; then : |
| 8156 | |
| 8157 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h |
| 8158 | |
| 8159 | fi |
| 8160 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8161 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8162 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8163 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8164 | # The cast to long int works around a bug in the HP C Compiler |
| 8165 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8166 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8167 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 8169 | $as_echo_n "checking size of int... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8170 | if ${ac_cv_sizeof_int+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8171 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8172 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8173 | 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] | 8174 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8175 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8176 | if test "$ac_cv_type_int" = yes; then |
| 8177 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8178 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8179 | as_fn_error 77 "cannot compute sizeof (int) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8180 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8181 | else |
| 8182 | ac_cv_sizeof_int=0 |
| 8183 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8184 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8186 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 8188 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8189 | |
| 8190 | |
| 8191 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8192 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8193 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8194 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8195 | |
| 8196 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8197 | # The cast to long int works around a bug in the HP C Compiler |
| 8198 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8199 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8200 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 8202 | $as_echo_n "checking size of long... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8203 | if ${ac_cv_sizeof_long+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8204 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8205 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8206 | 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] | 8207 | |
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 | if test "$ac_cv_type_long" = yes; then |
| 8210 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8211 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8212 | as_fn_error 77 "cannot compute sizeof (long) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8213 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8214 | else |
| 8215 | ac_cv_sizeof_long=0 |
| 8216 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8217 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8218 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8219 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 8221 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8222 | |
| 8223 | |
| 8224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8225 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8226 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8227 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8228 | |
| 8229 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8230 | # The cast to long int works around a bug in the HP C Compiler |
| 8231 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8232 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8233 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 8235 | $as_echo_n "checking size of void *... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8236 | if ${ac_cv_sizeof_void_p+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8237 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8238 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8239 | 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] | 8240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8241 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8242 | if test "$ac_cv_type_void_p" = yes; then |
| 8243 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8244 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8245 | as_fn_error 77 "cannot compute sizeof (void *) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8246 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8247 | else |
| 8248 | ac_cv_sizeof_void_p=0 |
| 8249 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8250 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8252 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 8254 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8255 | |
| 8256 | |
| 8257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8258 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8259 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8260 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8261 | |
| 8262 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8263 | # The cast to long int works around a bug in the HP C Compiler |
| 8264 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8265 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8266 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 8268 | $as_echo_n "checking size of short... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8269 | if ${ac_cv_sizeof_short+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8270 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8271 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8272 | 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] | 8273 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8274 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8275 | if test "$ac_cv_type_short" = yes; then |
| 8276 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8277 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8278 | as_fn_error 77 "cannot compute sizeof (short) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8279 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8280 | else |
| 8281 | ac_cv_sizeof_short=0 |
| 8282 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8283 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8284 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8285 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 8287 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8288 | |
| 8289 | |
| 8290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8291 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8292 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8293 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8294 | |
| 8295 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8296 | # The cast to long int works around a bug in the HP C Compiler |
| 8297 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8298 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8299 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
| 8301 | $as_echo_n "checking size of float... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8302 | if ${ac_cv_sizeof_float+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8303 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8304 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8305 | 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] | 8306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8307 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8308 | if test "$ac_cv_type_float" = yes; then |
| 8309 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8310 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8311 | as_fn_error 77 "cannot compute sizeof (float) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8312 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8313 | else |
| 8314 | ac_cv_sizeof_float=0 |
| 8315 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8316 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8318 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
| 8320 | $as_echo "$ac_cv_sizeof_float" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8321 | |
| 8322 | |
| 8323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8324 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8325 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8326 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8327 | |
| 8328 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8329 | # The cast to long int works around a bug in the HP C Compiler |
| 8330 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8331 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8332 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
| 8334 | $as_echo_n "checking size of double... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8335 | if ${ac_cv_sizeof_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8336 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8337 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8338 | 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] | 8339 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8340 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8341 | if test "$ac_cv_type_double" = yes; then |
| 8342 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8343 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8344 | as_fn_error 77 "cannot compute sizeof (double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8345 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8346 | else |
| 8347 | ac_cv_sizeof_double=0 |
| 8348 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8349 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8351 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
| 8353 | $as_echo "$ac_cv_sizeof_double" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8354 | |
| 8355 | |
| 8356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8357 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8358 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8359 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8360 | |
| 8361 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8362 | # The cast to long int works around a bug in the HP C Compiler |
| 8363 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8364 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8365 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
| 8367 | $as_echo_n "checking size of fpos_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8368 | if ${ac_cv_sizeof_fpos_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8369 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8370 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8371 | 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] | 8372 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8373 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8374 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8375 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8376 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8377 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8378 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8379 | else |
| 8380 | ac_cv_sizeof_fpos_t=0 |
| 8381 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8382 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8383 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8384 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8386 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8387 | |
| 8388 | |
| 8389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8390 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8391 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8392 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8393 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8394 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8395 | # The cast to long int works around a bug in the HP C Compiler |
| 8396 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8397 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8398 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 8400 | $as_echo_n "checking size of size_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8401 | if ${ac_cv_sizeof_size_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8402 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8403 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8404 | 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] | 8405 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8406 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8407 | if test "$ac_cv_type_size_t" = yes; then |
| 8408 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8409 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8410 | as_fn_error 77 "cannot compute sizeof (size_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8411 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8412 | else |
| 8413 | ac_cv_sizeof_size_t=0 |
| 8414 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8415 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8416 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8417 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 8419 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8420 | |
| 8421 | |
| 8422 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8423 | cat >>confdefs.h <<_ACEOF |
| 8424 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 8425 | _ACEOF |
| 8426 | |
| 8427 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8428 | # The cast to long int works around a bug in the HP C Compiler |
| 8429 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8430 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8431 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
| 8433 | $as_echo_n "checking size of pid_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8434 | if ${ac_cv_sizeof_pid_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8435 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8436 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8437 | 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] | 8438 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8439 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8440 | if test "$ac_cv_type_pid_t" = yes; then |
| 8441 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8442 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8443 | as_fn_error 77 "cannot compute sizeof (pid_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8444 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8445 | else |
| 8446 | ac_cv_sizeof_pid_t=0 |
| 8447 | fi |
| 8448 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8449 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8450 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
| 8452 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8453 | |
| 8454 | |
| 8455 | |
| 8456 | cat >>confdefs.h <<_ACEOF |
| 8457 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 8458 | _ACEOF |
| 8459 | |
| 8460 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8461 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 |
| 8463 | $as_echo_n "checking for long long support... " >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8464 | have_long_long=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8466 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8468 | int |
| 8469 | main () |
| 8470 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8471 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8472 | ; |
| 8473 | return 0; |
| 8474 | } |
| 8475 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8476 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8477 | |
| 8478 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8479 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8480 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8481 | have_long_long=yes |
| 8482 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8483 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 |
| 8486 | $as_echo "$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8487 | if test "$have_long_long" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8488 | # The cast to long int works around a bug in the HP C Compiler |
| 8489 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8490 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8491 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 8493 | $as_echo_n "checking size of long long... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8494 | if ${ac_cv_sizeof_long_long+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8495 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8496 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8497 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8498 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8499 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8500 | if test "$ac_cv_type_long_long" = yes; then |
| 8501 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8502 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8503 | as_fn_error 77 "cannot compute sizeof (long long) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8504 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8505 | else |
| 8506 | ac_cv_sizeof_long_long=0 |
| 8507 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8508 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8510 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 8512 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8513 | |
| 8514 | |
| 8515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8516 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8517 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8518 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8519 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8520 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8521 | fi |
| 8522 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 |
| 8524 | $as_echo_n "checking for long double support... " >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8525 | have_long_double=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8527 | /* end confdefs.h. */ |
| 8528 | |
| 8529 | int |
| 8530 | main () |
| 8531 | { |
| 8532 | long double x; x = (long double)0; |
| 8533 | ; |
| 8534 | return 0; |
| 8535 | } |
| 8536 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8537 | if ac_fn_c_try_compile "$LINENO"; then : |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8538 | |
| 8539 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8540 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8541 | |
| 8542 | have_long_double=yes |
| 8543 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8544 | fi |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 |
| 8547 | $as_echo "$have_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8548 | if test "$have_long_double" = yes ; then |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +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 long double" >&5 |
| 8554 | $as_echo_n "checking size of long double... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8555 | if ${ac_cv_sizeof_long_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8556 | $as_echo_n "(cached) " >&6 |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +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 (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8559 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8560 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8561 | if test "$ac_cv_type_long_double" = 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 (long double) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8565 | See \`config.log' for more details" "$LINENO" 5; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8566 | else |
| 8567 | ac_cv_sizeof_long_double=0 |
| 8568 | fi |
| 8569 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8570 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +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_long_double" >&5 |
| 8573 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8574 | |
| 8575 | |
| 8576 | |
| 8577 | cat >>confdefs.h <<_ACEOF |
| 8578 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 8579 | _ACEOF |
| 8580 | |
| 8581 | |
| 8582 | fi |
| 8583 | |
| 8584 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 |
| 8586 | $as_echo_n "checking for _Bool support... " >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8587 | have_c99_bool=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8589 | /* end confdefs.h. */ |
| 8590 | |
| 8591 | int |
| 8592 | main () |
| 8593 | { |
| 8594 | _Bool x; x = (_Bool)0; |
| 8595 | ; |
| 8596 | return 0; |
| 8597 | } |
| 8598 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8599 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8600 | |
| 8601 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8602 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8603 | |
| 8604 | have_c99_bool=yes |
| 8605 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8606 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 |
| 8609 | $as_echo "$have_c99_bool" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8610 | if test "$have_c99_bool" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8611 | # The cast to long int works around a bug in the HP C Compiler |
| 8612 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8613 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8614 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
| 8616 | $as_echo_n "checking size of _Bool... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8617 | if ${ac_cv_sizeof__Bool+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8618 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8619 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8620 | 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] | 8621 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8622 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8623 | if test "$ac_cv_type__Bool" = yes; then |
| 8624 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8625 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8626 | as_fn_error 77 "cannot compute sizeof (_Bool) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8627 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8628 | else |
| 8629 | ac_cv_sizeof__Bool=0 |
| 8630 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8631 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8632 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8633 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
| 8635 | $as_echo "$ac_cv_sizeof__Bool" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8636 | |
| 8637 | |
| 8638 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8639 | cat >>confdefs.h <<_ACEOF |
| 8640 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 8641 | _ACEOF |
| 8642 | |
| 8643 | |
| 8644 | fi |
| 8645 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8646 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8647 | #include <stdint.h> |
| 8648 | #endif |
Antoine Pitrou | 1bf29b7 | 2010-10-10 08:10:16 +0000 | [diff] [blame] | 8649 | #ifdef HAVE_INTTYPES_H |
| 8650 | #include <inttypes.h> |
| 8651 | #endif |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8652 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8653 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8654 | |
| 8655 | cat >>confdefs.h <<_ACEOF |
| 8656 | #define HAVE_UINTPTR_T 1 |
| 8657 | _ACEOF |
| 8658 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8659 | # The cast to long int works around a bug in the HP C Compiler |
| 8660 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8661 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8662 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
| 8664 | $as_echo_n "checking size of uintptr_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8665 | if ${ac_cv_sizeof_uintptr_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8666 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8668 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8669 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8670 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8671 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8672 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8673 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8674 | as_fn_error 77 "cannot compute sizeof (uintptr_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8675 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8676 | else |
| 8677 | ac_cv_sizeof_uintptr_t=0 |
| 8678 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8679 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8681 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8683 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8684 | |
| 8685 | |
| 8686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8687 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8688 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8690 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8691 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8692 | fi |
| 8693 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8694 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8695 | # The cast to long int works around a bug in the HP C Compiler |
| 8696 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8697 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8698 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 8700 | $as_echo_n "checking size of off_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8701 | if ${ac_cv_sizeof_off_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8702 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8703 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8704 | 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] | 8705 | #ifdef HAVE_SYS_TYPES_H |
| 8706 | #include <sys/types.h> |
| 8707 | #endif |
| 8708 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8709 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8710 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8711 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8712 | if test "$ac_cv_type_off_t" = yes; then |
| 8713 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8714 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8715 | as_fn_error 77 "cannot compute sizeof (off_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8716 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8717 | else |
| 8718 | ac_cv_sizeof_off_t=0 |
| 8719 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8720 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8721 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8722 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 8724 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8725 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8726 | |
| 8727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8728 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8729 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8730 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8731 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8732 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8733 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
| 8735 | $as_echo_n "checking whether to enable large file support... " >&6; } |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8736 | if test "$have_long_long" = yes |
| 8737 | then |
| 8738 | 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] | 8739 | "$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] | 8740 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8741 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8742 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8744 | $as_echo "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8745 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8747 | $as_echo "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8748 | fi |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8749 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8751 | $as_echo "no" >&6; } |
Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8752 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8753 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8754 | # The cast to long int works around a bug in the HP C Compiler |
| 8755 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8756 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8757 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 8759 | $as_echo_n "checking size of time_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8760 | if ${ac_cv_sizeof_time_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8761 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8762 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8763 | 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] | 8764 | #ifdef HAVE_SYS_TYPES_H |
| 8765 | #include <sys/types.h> |
| 8766 | #endif |
| 8767 | #ifdef HAVE_TIME_H |
| 8768 | #include <time.h> |
| 8769 | #endif |
| 8770 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8771 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8772 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8773 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8774 | if test "$ac_cv_type_time_t" = yes; then |
| 8775 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8776 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8777 | as_fn_error 77 "cannot compute sizeof (time_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8778 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8779 | else |
| 8780 | ac_cv_sizeof_time_t=0 |
| 8781 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8782 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8783 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8784 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 8786 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8787 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8788 | |
| 8789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8790 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8791 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8792 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8793 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8794 | |
| 8795 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8796 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8797 | ac_save_cc="$CC" |
| 8798 | if test "$ac_cv_kpthread" = "yes" |
| 8799 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8800 | elif test "$ac_cv_kthread" = "yes" |
| 8801 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8802 | elif test "$ac_cv_pthread" = "yes" |
| 8803 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8804 | fi |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8805 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
| 8807 | $as_echo_n "checking for pthread_t... " >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8808 | have_pthread_t=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8810 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8811 | |
| 8812 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8813 | int |
| 8814 | main () |
| 8815 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8816 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8817 | ; |
| 8818 | return 0; |
| 8819 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8821 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8822 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8823 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8824 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
| 8827 | $as_echo "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8828 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8829 | # 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] | 8830 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8831 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8832 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
| 8834 | $as_echo_n "checking size of pthread_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8835 | if ${ac_cv_sizeof_pthread_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8836 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8837 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8838 | 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] | 8839 | #ifdef HAVE_PTHREAD_H |
| 8840 | #include <pthread.h> |
| 8841 | #endif |
| 8842 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8843 | "; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8844 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8845 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8846 | if test "$ac_cv_type_pthread_t" = yes; then |
| 8847 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8848 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8849 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8850 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8851 | else |
| 8852 | ac_cv_sizeof_pthread_t=0 |
| 8853 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8854 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8855 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8856 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
| 8858 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8859 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8860 | |
| 8861 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8862 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8863 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8864 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8865 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8866 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8867 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8868 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8869 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8870 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8871 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8872 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8873 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 8874 | ;; |
| 8875 | Darwin/*) |
| 8876 | OTHER_LIBTOOL_OPT="" |
| 8877 | ;; |
| 8878 | esac |
| 8879 | |
| 8880 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8881 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8882 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8883 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8884 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 8885 | if test "${enable_universalsdk}"; then |
| 8886 | : |
| 8887 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8888 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8889 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8890 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8891 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8892 | Darwin/*) |
Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 8893 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8894 | if test ${gcc_version} '<' 4.0 |
| 8895 | then |
| 8896 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 8897 | else |
| 8898 | LIBTOOL_CRUFT="" |
| 8899 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8900 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8901 | ac_osx_32bit=yes |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8902 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8904 | /* end confdefs.h. */ |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8905 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8906 | #include <unistd.h> |
| 8907 | int main(int argc, char*argv[]) |
| 8908 | { |
| 8909 | if (sizeof(long) == 4) { |
| 8910 | return 0; |
| 8911 | } else { |
| 8912 | return 1; |
| 8913 | } |
Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8914 | } |
| 8915 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8916 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8917 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8918 | ac_osx_32bit=yes |
| 8919 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8920 | ac_osx_32bit=no |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8921 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8922 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8923 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8924 | fi |
| 8925 | |
| 8926 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8927 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8928 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8929 | i386) |
| 8930 | MACOSX_DEFAULT_ARCH="i386" |
| 8931 | ;; |
| 8932 | ppc) |
| 8933 | MACOSX_DEFAULT_ARCH="ppc" |
| 8934 | ;; |
| 8935 | *) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8936 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8937 | ;; |
| 8938 | esac |
| 8939 | else |
Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8940 | case `/usr/bin/arch` in |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8941 | i386) |
| 8942 | MACOSX_DEFAULT_ARCH="x86_64" |
| 8943 | ;; |
| 8944 | ppc) |
| 8945 | MACOSX_DEFAULT_ARCH="ppc64" |
| 8946 | ;; |
| 8947 | *) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8948 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8949 | ;; |
| 8950 | esac |
| 8951 | |
Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8952 | fi |
| 8953 | |
| 8954 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8955 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8956 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8957 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
| 8959 | $as_echo_n "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8960 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8961 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 8962 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8963 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8964 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8965 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8966 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8967 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8969 | $as_echo "yes" >&6; } |
Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 8970 | if test $enable_shared = "yes" |
| 8971 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8972 | 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] | 8973 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8974 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8976 | $as_echo "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8977 | fi |
| 8978 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
| 8980 | $as_echo_n "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8981 | case $ac_sys_system/$ac_sys_release in |
| 8982 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8983 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8984 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8985 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
| 8987 | $as_echo "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8988 | ;; |
| 8989 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8991 | $as_echo "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8992 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8993 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8994 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8995 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8996 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8997 | |
| 8998 | |
| 8999 | |
| 9000 | |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9001 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9002 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9003 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) |
| 9004 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
| 9005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 |
| 9006 | $as_echo_n "checking the extension of shared libraries... " >&6; } |
| 9007 | if test -z "$SHLIB_SUFFIX"; then |
| 9008 | case $ac_sys_system in |
| 9009 | hp*|HP*) |
| 9010 | case `uname -m` in |
| 9011 | ia64) SHLIB_SUFFIX=.so;; |
| 9012 | *) SHLIB_SUFFIX=.sl;; |
| 9013 | esac |
| 9014 | ;; |
| 9015 | CYGWIN*) SHLIB_SUFFIX=.dll;; |
| 9016 | *) SHLIB_SUFFIX=.so;; |
| 9017 | esac |
| 9018 | fi |
| 9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 |
| 9020 | $as_echo "$SHLIB_SUFFIX" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9021 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9022 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 9023 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9024 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9025 | # Python, as opposed to building Python itself as a shared library.) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
| 9027 | $as_echo_n "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9028 | if test -z "$LDSHARED" |
| 9029 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9030 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9031 | AIX*) |
Georg Brandl | 9a829be | 2011-02-15 15:44:51 +0000 | [diff] [blame] | 9032 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9033 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9034 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9035 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9036 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9037 | SunOS/5*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9038 | if test "$GCC" = "yes" ; then |
| 9039 | LDSHARED='$(CC) -shared' |
| 9040 | LDCXXSHARED='$(CXX) -shared' |
| 9041 | else |
| 9042 | LDSHARED='$(CC) -G' |
| 9043 | LDCXXSHARED='$(CXX) -G' |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9044 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9045 | hp*|HP*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9046 | if test "$GCC" = "yes" ; then |
| 9047 | LDSHARED='$(CC) -shared' |
| 9048 | LDCXXSHARED='$(CXX) -shared' |
| 9049 | else |
| 9050 | LDSHARED='ld -b' |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9051 | fi ;; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9052 | Darwin/1.3*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9053 | LDSHARED='$(CC) -bundle' |
| 9054 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9055 | if test "$enable_framework" ; then |
| 9056 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9057 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 9058 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9059 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9060 | else |
| 9061 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9062 | LDSHARED="$LDSHARED -undefined suppress" |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9063 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9064 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9065 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9066 | LDSHARED='$(CC) -bundle' |
| 9067 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9068 | if test "$enable_framework" ; then |
| 9069 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9070 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 9071 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9072 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9073 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9074 | # No framework, use the Python app as bundle-loader |
| 9075 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9076 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9077 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9078 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9079 | Darwin/*) |
| 9080 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 9081 | # This allows an extension to be used in any Python |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 9082 | |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9083 | dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
| 9084 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` |
| 9085 | dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ |
| 9086 | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` |
| 9087 | if test ${dep_target_major} -eq 10 && \ |
| 9088 | test ${dep_target_minor} -le 2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9089 | then |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9090 | # building for OS X 10.0 through 10.2 |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9091 | LDSHARED='$(CC) -bundle' |
| 9092 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9093 | if test "$enable_framework" ; then |
| 9094 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9095 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 9096 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9097 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9098 | else |
| 9099 | # No framework, use the Python app as bundle-loader |
| 9100 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 9101 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9102 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9103 | fi |
Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9104 | else |
| 9105 | # building for OS X 10.3 and later |
| 9106 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' |
| 9107 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' |
| 9108 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9109 | fi |
| 9110 | ;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9111 | Linux*|GNU*|QNX*) |
| 9112 | LDSHARED='$(CC) -shared' |
| 9113 | LDCXXSHARED='$(CXX) -shared';; |
| 9114 | BSD/OS*/4*) |
| 9115 | LDSHARED="gcc -shared" |
| 9116 | LDCXXSHARED="g++ -shared";; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9117 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9118 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9119 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9120 | LDSHARED='$(CC) -shared' |
| 9121 | LDCXXSHARED='$(CXX) -shared' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9122 | else |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9123 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9124 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9125 | OpenBSD*) |
| 9126 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9127 | then |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9128 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 9129 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9130 | else |
| 9131 | case `uname -r` in |
| 9132 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 9133 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9134 | ;; |
| 9135 | *) |
Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9136 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 9137 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9138 | ;; |
| 9139 | esac |
| 9140 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9141 | NetBSD*|DragonFly*) |
Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 9142 | LDSHARED='$(CC) -shared' |
| 9143 | LDCXXSHARED='$(CXX) -shared';; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9144 | OpenUNIX*|UnixWare*) |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9145 | if test "$GCC" = "yes" ; then |
| 9146 | LDSHARED='$(CC) -shared' |
| 9147 | LDCXXSHARED='$(CXX) -shared' |
| 9148 | else |
| 9149 | LDSHARED='$(CC) -G' |
| 9150 | LDCXXSHARED='$(CXX) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9151 | fi;; |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9152 | SCO_SV*) |
| 9153 | LDSHARED='$(CC) -Wl,-G,-Bexport' |
| 9154 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; |
| 9155 | CYGWIN*) |
| 9156 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" |
| 9157 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9158 | *) LDSHARED="ld";; |
| 9159 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9160 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
| 9162 | $as_echo "$LDSHARED" >&6; } |
Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9163 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9164 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9165 | # 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] | 9166 | # library (module) -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
| 9168 | $as_echo_n "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9169 | if test -z "$CCSHARED" |
| 9170 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9171 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9172 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9173 | then CCSHARED="-fPIC"; |
| 9174 | elif test `uname -p` = sparc; |
| 9175 | then CCSHARED="-xcode=pic32"; |
| 9176 | else CCSHARED="-Kpic"; |
| 9177 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9178 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9179 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9180 | else CCSHARED="+z"; |
| 9181 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9182 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9183 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9184 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9185 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9186 | if test "$GCC" = "yes" |
| 9187 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9188 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9189 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9190 | SCO_SV*) |
| 9191 | if test "$GCC" = "yes" |
| 9192 | then CCSHARED="-fPIC" |
| 9193 | else CCSHARED="-Kpic -belf" |
| 9194 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9195 | IRIX*/6*) case $CC in |
| 9196 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9197 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9198 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9199 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9200 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
| 9202 | $as_echo "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9203 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9204 | # the python executable -- this is only needed for a few systems |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
| 9206 | $as_echo_n "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9207 | if test -z "$LINKFORSHARED" |
| 9208 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9209 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9210 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9211 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9212 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9213 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9214 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9215 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9216 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9217 | Darwin/*) |
Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9218 | LINKFORSHARED="$extra_undefs -framework CoreFoundation" |
Łukasz Langa | 335ab5b | 2013-05-30 20:58:53 +0200 | [diff] [blame] | 9219 | |
| 9220 | # Issue #18075: the default maximum stack size (8MBytes) is too |
| 9221 | # small for the default recursion limit. Increase the stack size |
| 9222 | # to ensure that tests don't crash |
| 9223 | LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" |
| 9224 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9225 | if test "$enable_framework" |
| 9226 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9227 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9228 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9229 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9230 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9231 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9232 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9233 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9234 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9235 | then |
| 9236 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9237 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9238 | SunOS/5*) case $CC in |
| 9239 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9240 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9241 | then |
| 9242 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9243 | fi;; |
| 9244 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9245 | CYGWIN*) |
| 9246 | if test $enable_shared = "no" |
| 9247 | then |
| 9248 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 9249 | fi;; |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9250 | QNX*) |
| 9251 | # -Wl,-E causes the symbols to be added to the dynamic |
| 9252 | # symbol table so that they can be found when a module |
| 9253 | # is loaded. -N 2048K causes the stack size to be set |
| 9254 | # to 2048 kilobytes so that the stack doesn't overflow |
| 9255 | # when running test_compile.py. |
| 9256 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9257 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9258 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
| 9260 | $as_echo "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9261 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9262 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9263 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
| 9265 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9266 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9267 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9268 | case $ac_sys_system in |
| 9269 | CYGWIN*) |
| 9270 | # Cygwin needs CCSHARED when building extension DLLs |
| 9271 | # but not when building the interpreter DLL. |
| 9272 | CFLAGSFORSHARED='';; |
| 9273 | *) |
| 9274 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9275 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9276 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
| 9278 | $as_echo "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9279 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9280 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9281 | # library (with --enable-shared). |
| 9282 | # 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] | 9283 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9284 | # if it is not required, since it creates a dependency of the shared library |
| 9285 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9286 | # don't need to link LIBS explicitly. The default should be only changed |
| 9287 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9288 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
| 9290 | $as_echo_n "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9291 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9292 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9293 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9294 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
| 9296 | $as_echo "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9297 | |
| 9298 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9299 | # checks for libraries |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 |
| 9301 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9302 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9303 | $as_echo_n "(cached) " >&6 |
| 9304 | else |
| 9305 | ac_check_lib_save_LIBS=$LIBS |
| 9306 | LIBS="-lsendfile $LIBS" |
| 9307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9308 | /* end confdefs.h. */ |
| 9309 | |
| 9310 | /* Override any GCC internal prototype to avoid an error. |
| 9311 | Use char because int might match the return type of a GCC |
| 9312 | builtin and then its argument prototype would still apply. */ |
| 9313 | #ifdef __cplusplus |
| 9314 | extern "C" |
| 9315 | #endif |
| 9316 | char sendfile (); |
| 9317 | int |
| 9318 | main () |
| 9319 | { |
| 9320 | return sendfile (); |
| 9321 | ; |
| 9322 | return 0; |
| 9323 | } |
| 9324 | _ACEOF |
| 9325 | if ac_fn_c_try_link "$LINENO"; then : |
| 9326 | ac_cv_lib_sendfile_sendfile=yes |
| 9327 | else |
| 9328 | ac_cv_lib_sendfile_sendfile=no |
| 9329 | fi |
| 9330 | rm -f core conftest.err conftest.$ac_objext \ |
| 9331 | conftest$ac_exeext conftest.$ac_ext |
| 9332 | LIBS=$ac_check_lib_save_LIBS |
| 9333 | fi |
| 9334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 |
| 9335 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9336 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9337 | cat >>confdefs.h <<_ACEOF |
| 9338 | #define HAVE_LIBSENDFILE 1 |
| 9339 | _ACEOF |
| 9340 | |
| 9341 | LIBS="-lsendfile $LIBS" |
| 9342 | |
| 9343 | fi |
| 9344 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 9346 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9347 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9348 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9350 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9351 | LIBS="-ldl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9353 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9354 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9355 | /* Override any GCC internal prototype to avoid an error. |
| 9356 | Use char because int might match the return type of a GCC |
| 9357 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9358 | #ifdef __cplusplus |
| 9359 | extern "C" |
| 9360 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9361 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9362 | int |
| 9363 | main () |
| 9364 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9365 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9366 | ; |
| 9367 | return 0; |
| 9368 | } |
| 9369 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9370 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9371 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9372 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9373 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9374 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9375 | rm -f core conftest.err conftest.$ac_objext \ |
| 9376 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9377 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9378 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9380 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9381 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9382 | cat >>confdefs.h <<_ACEOF |
| 9383 | #define HAVE_LIBDL 1 |
| 9384 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9385 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9386 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9387 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9388 | fi |
| 9389 | # Dynamic linking for SunOS/Solaris and SYSV |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 9391 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9392 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9393 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9394 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9395 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9396 | LIBS="-ldld $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9398 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9399 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9400 | /* Override any GCC internal prototype to avoid an error. |
| 9401 | Use char because int might match the return type of a GCC |
| 9402 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9403 | #ifdef __cplusplus |
| 9404 | extern "C" |
| 9405 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9406 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9407 | int |
| 9408 | main () |
| 9409 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9410 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9411 | ; |
| 9412 | return 0; |
| 9413 | } |
| 9414 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9415 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9416 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9417 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9418 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9419 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9420 | rm -f core conftest.err conftest.$ac_objext \ |
| 9421 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9422 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9423 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9425 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9426 | 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] | 9427 | cat >>confdefs.h <<_ACEOF |
| 9428 | #define HAVE_LIBDLD 1 |
| 9429 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9430 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9431 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9432 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9433 | fi |
| 9434 | # Dynamic linking for HP-UX |
Victor Stinner | beeb512 | 2014-11-28 13:28:25 +0100 | [diff] [blame] | 9435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_egd in -lcrypto" >&5 |
| 9436 | $as_echo_n "checking for RAND_egd in -lcrypto... " >&6; } |
| 9437 | if ${ac_cv_lib_crypto_RAND_egd+:} false; then : |
| 9438 | $as_echo_n "(cached) " >&6 |
| 9439 | else |
| 9440 | ac_check_lib_save_LIBS=$LIBS |
| 9441 | LIBS="-lcrypto $LIBS" |
| 9442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9443 | /* end confdefs.h. */ |
| 9444 | |
| 9445 | /* Override any GCC internal prototype to avoid an error. |
| 9446 | Use char because int might match the return type of a GCC |
| 9447 | builtin and then its argument prototype would still apply. */ |
| 9448 | #ifdef __cplusplus |
| 9449 | extern "C" |
| 9450 | #endif |
| 9451 | char RAND_egd (); |
| 9452 | int |
| 9453 | main () |
| 9454 | { |
| 9455 | return RAND_egd (); |
| 9456 | ; |
| 9457 | return 0; |
| 9458 | } |
| 9459 | _ACEOF |
| 9460 | if ac_fn_c_try_link "$LINENO"; then : |
| 9461 | ac_cv_lib_crypto_RAND_egd=yes |
| 9462 | else |
| 9463 | ac_cv_lib_crypto_RAND_egd=no |
| 9464 | fi |
| 9465 | rm -f core conftest.err conftest.$ac_objext \ |
| 9466 | conftest$ac_exeext conftest.$ac_ext |
| 9467 | LIBS=$ac_check_lib_save_LIBS |
| 9468 | fi |
| 9469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_egd" >&5 |
| 9470 | $as_echo "$ac_cv_lib_crypto_RAND_egd" >&6; } |
| 9471 | if test "x$ac_cv_lib_crypto_RAND_egd" = xyes; then : |
| 9472 | |
| 9473 | $as_echo "#define HAVE_RAND_EGD 1" >>confdefs.h |
| 9474 | |
| 9475 | fi |
| 9476 | |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9477 | |
Georg Brandl | b1441c7 | 2009-01-03 22:33:39 +0000 | [diff] [blame] | 9478 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9479 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
| 9481 | $as_echo_n "checking for library containing sem_init... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9482 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9483 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9484 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9485 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9487 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9488 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9489 | /* Override any GCC internal prototype to avoid an error. |
| 9490 | Use char because int might match the return type of a GCC |
| 9491 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9492 | #ifdef __cplusplus |
| 9493 | extern "C" |
| 9494 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9496 | int |
| 9497 | main () |
| 9498 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9499 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9500 | ; |
| 9501 | return 0; |
| 9502 | } |
| 9503 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9504 | for ac_lib in '' pthread rt posix4; do |
| 9505 | if test -z "$ac_lib"; then |
| 9506 | ac_res="none required" |
| 9507 | else |
| 9508 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9509 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9510 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9511 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9512 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9513 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9514 | rm -f core conftest.err conftest.$ac_objext \ |
| 9515 | conftest$ac_exeext |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9516 | if ${ac_cv_search_sem_init+:} false; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9517 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9518 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9519 | done |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9520 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9521 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9522 | else |
| 9523 | ac_cv_search_sem_init=no |
| 9524 | fi |
| 9525 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9526 | LIBS=$ac_func_search_save_LIBS |
| 9527 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
| 9529 | $as_echo "$ac_cv_search_sem_init" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9530 | ac_res=$ac_cv_search_sem_init |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9531 | if test "$ac_res" != no; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9532 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9533 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9534 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9535 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9536 | # posix4 on Solaris 2.6 |
| 9537 | # pthread (first!) on Linux |
| 9538 | fi |
| 9539 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9540 | # check if we need libintl for locale functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
| 9542 | $as_echo_n "checking for textdomain in -lintl... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9543 | if ${ac_cv_lib_intl_textdomain+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9544 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9545 | else |
| 9546 | ac_check_lib_save_LIBS=$LIBS |
| 9547 | LIBS="-lintl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9549 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9550 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9551 | /* Override any GCC internal prototype to avoid an error. |
| 9552 | Use char because int might match the return type of a GCC |
| 9553 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9554 | #ifdef __cplusplus |
| 9555 | extern "C" |
| 9556 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9557 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9558 | int |
| 9559 | main () |
| 9560 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9561 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9562 | ; |
| 9563 | return 0; |
| 9564 | } |
| 9565 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9566 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9567 | ac_cv_lib_intl_textdomain=yes |
| 9568 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9569 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9570 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9571 | rm -f core conftest.err conftest.$ac_objext \ |
| 9572 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9573 | LIBS=$ac_check_lib_save_LIBS |
| 9574 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
| 9576 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9577 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9578 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9579 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9580 | |
Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 9581 | LIBS="-lintl $LIBS" |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9582 | fi |
| 9583 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9584 | |
| 9585 | # checks for system dependent C++ extensions support |
| 9586 | case "$ac_sys_system" in |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9587 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
| 9588 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } |
| 9589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9590 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9591 | |
Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 9592 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 | int |
| 9594 | main () |
| 9595 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9596 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9597 | ; |
| 9598 | return 0; |
| 9599 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9601 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9602 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9603 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9604 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9605 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9606 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9608 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9609 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9610 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9611 | |
| 9612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9613 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9614 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9615 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9616 | rm -f core conftest.err conftest.$ac_objext \ |
| 9617 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9618 | *) ;; |
| 9619 | esac |
| 9620 | |
Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9621 | # check for systems that require aligned memory access |
| 9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 |
| 9623 | $as_echo_n "checking aligned memory access is required... " >&6; } |
| 9624 | if test "$cross_compiling" = yes; then : |
| 9625 | aligned_required=yes |
| 9626 | else |
| 9627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9628 | /* end confdefs.h. */ |
| 9629 | |
| 9630 | int main() |
| 9631 | { |
| 9632 | char s[16]; |
| 9633 | int i, *p1, *p2; |
| 9634 | for (i=0; i < 16; i++) |
| 9635 | s[i] = i; |
| 9636 | p1 = (int*)(s+1); |
| 9637 | p2 = (int*)(s+2); |
| 9638 | if (*p1 == *p2) |
| 9639 | return 1; |
| 9640 | return 0; |
| 9641 | } |
| 9642 | |
| 9643 | _ACEOF |
| 9644 | if ac_fn_c_try_run "$LINENO"; then : |
| 9645 | aligned_required=no |
| 9646 | else |
| 9647 | aligned_required=yes |
| 9648 | fi |
| 9649 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9650 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9651 | fi |
| 9652 | |
| 9653 | |
| 9654 | if test "$aligned_required" = yes ; then |
| 9655 | |
| 9656 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h |
| 9657 | |
| 9658 | fi |
| 9659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aligned_required" >&5 |
| 9660 | $as_echo "$aligned_required" >&6; } |
| 9661 | |
| 9662 | |
| 9663 | # str, bytes and memoryview hash algorithm |
| 9664 | |
| 9665 | |
| 9666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 |
| 9667 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } |
| 9668 | |
| 9669 | # Check whether --with-hash_algorithm was given. |
| 9670 | if test "${with_hash_algorithm+set}" = set; then : |
| 9671 | withval=$with_hash_algorithm; |
| 9672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 9673 | $as_echo "$withval" >&6; } |
| 9674 | case "$withval" in |
| 9675 | siphash24) |
| 9676 | $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h |
| 9677 | |
| 9678 | ;; |
| 9679 | fnv) |
| 9680 | $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h |
| 9681 | |
| 9682 | ;; |
| 9683 | *) |
| 9684 | as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 |
| 9685 | ;; |
| 9686 | esac |
| 9687 | |
| 9688 | else |
| 9689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 |
| 9690 | $as_echo "default" >&6; } |
| 9691 | fi |
| 9692 | |
| 9693 | |
Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 9694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 |
| 9695 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } |
| 9696 | |
| 9697 | # Check whether --with-address_sanitizer was given. |
| 9698 | if test "${with_address_sanitizer+set}" = set; then : |
| 9699 | withval=$with_address_sanitizer; |
| 9700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 9701 | $as_echo "$withval" >&6; } |
| 9702 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" |
| 9703 | LDFLAGS="-fsanitize=address $LDFLAGS" |
| 9704 | |
| 9705 | else |
| 9706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9707 | $as_echo "no" >&6; } |
| 9708 | fi |
| 9709 | |
| 9710 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9711 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
| 9713 | $as_echo_n "checking for t_open in -lnsl... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9714 | if ${ac_cv_lib_nsl_t_open+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9715 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9716 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9717 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9718 | LIBS="-lnsl $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9720 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9721 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9722 | /* Override any GCC internal prototype to avoid an error. |
| 9723 | Use char because int might match the return type of a GCC |
| 9724 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9725 | #ifdef __cplusplus |
| 9726 | extern "C" |
| 9727 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9728 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9729 | int |
| 9730 | main () |
| 9731 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9732 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9733 | ; |
| 9734 | return 0; |
| 9735 | } |
| 9736 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9737 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9738 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9739 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9740 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9741 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9742 | rm -f core conftest.err conftest.$ac_objext \ |
| 9743 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9744 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9745 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9747 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9748 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9749 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9750 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9751 | # SVR4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 9753 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9754 | if ${ac_cv_lib_socket_socket+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9755 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9756 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9757 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9758 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9760 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9761 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9762 | /* Override any GCC internal prototype to avoid an error. |
| 9763 | Use char because int might match the return type of a GCC |
| 9764 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9765 | #ifdef __cplusplus |
| 9766 | extern "C" |
| 9767 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9768 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9769 | int |
| 9770 | main () |
| 9771 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9772 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9773 | ; |
| 9774 | return 0; |
| 9775 | } |
| 9776 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9777 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9778 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9779 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9780 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9781 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9782 | rm -f core conftest.err conftest.$ac_objext \ |
| 9783 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9784 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9785 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 9787 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9788 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9789 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9790 | fi |
| 9791 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 9792 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
| 9794 | $as_echo_n "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9795 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9796 | # Check whether --with-libs was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9797 | if test "${with_libs+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9798 | withval=$with_libs; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 9800 | $as_echo "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9801 | LIBS="$withval $LIBS" |
| 9802 | |
| 9803 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9805 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9806 | fi |
| 9807 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9808 | |
Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 9809 | |
| 9810 | |
| 9811 | |
| 9812 | |
| 9813 | |
| 9814 | |
| 9815 | |
| 9816 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 9817 | if test -n "$ac_tool_prefix"; then |
| 9818 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 9819 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 9820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9821 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9822 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 9823 | $as_echo_n "(cached) " >&6 |
| 9824 | else |
| 9825 | case $PKG_CONFIG in |
| 9826 | [\\/]* | ?:[\\/]*) |
| 9827 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 9828 | ;; |
| 9829 | *) |
| 9830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9831 | for as_dir in $PATH |
| 9832 | do |
| 9833 | IFS=$as_save_IFS |
| 9834 | test -z "$as_dir" && as_dir=. |
| 9835 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9836 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9837 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 9838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9839 | break 2 |
| 9840 | fi |
| 9841 | done |
| 9842 | done |
| 9843 | IFS=$as_save_IFS |
| 9844 | |
| 9845 | ;; |
| 9846 | esac |
| 9847 | fi |
| 9848 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 9849 | if test -n "$PKG_CONFIG"; then |
| 9850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 9851 | $as_echo "$PKG_CONFIG" >&6; } |
| 9852 | else |
| 9853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9854 | $as_echo "no" >&6; } |
| 9855 | fi |
| 9856 | |
| 9857 | |
| 9858 | fi |
| 9859 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 9860 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 9861 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 9862 | set dummy pkg-config; ac_word=$2 |
| 9863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9864 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9865 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 9866 | $as_echo_n "(cached) " >&6 |
| 9867 | else |
| 9868 | case $ac_pt_PKG_CONFIG in |
| 9869 | [\\/]* | ?:[\\/]*) |
| 9870 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 9871 | ;; |
| 9872 | *) |
| 9873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9874 | for as_dir in $PATH |
| 9875 | do |
| 9876 | IFS=$as_save_IFS |
| 9877 | test -z "$as_dir" && as_dir=. |
| 9878 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9879 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9880 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 9881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9882 | break 2 |
| 9883 | fi |
| 9884 | done |
| 9885 | done |
| 9886 | IFS=$as_save_IFS |
| 9887 | |
| 9888 | ;; |
| 9889 | esac |
| 9890 | fi |
| 9891 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 9892 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 9893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 9894 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 9895 | else |
| 9896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9897 | $as_echo "no" >&6; } |
| 9898 | fi |
| 9899 | |
| 9900 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 9901 | PKG_CONFIG="" |
| 9902 | else |
| 9903 | case $cross_compiling:$ac_tool_warned in |
| 9904 | yes:) |
| 9905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9906 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9907 | ac_tool_warned=yes ;; |
| 9908 | esac |
| 9909 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 9910 | fi |
| 9911 | else |
| 9912 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 9913 | fi |
| 9914 | |
| 9915 | fi |
| 9916 | if test -n "$PKG_CONFIG"; then |
| 9917 | _pkg_min_version=0.9.0 |
| 9918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 9919 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 9920 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 9921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9922 | $as_echo "yes" >&6; } |
| 9923 | else |
| 9924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9925 | $as_echo "no" >&6; } |
| 9926 | PKG_CONFIG="" |
| 9927 | fi |
| 9928 | fi |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9929 | |
| 9930 | # Check for use of the system expat library |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
| 9932 | $as_echo_n "checking for --with-system-expat... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9933 | |
| 9934 | # Check whether --with-system_expat was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9935 | if test "${with_system_expat+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9936 | withval=$with_system_expat; |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 9937 | else |
| 9938 | with_system_expat="no" |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9939 | fi |
| 9940 | |
| 9941 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
| 9943 | $as_echo "$with_system_expat" >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9944 | |
| 9945 | # Check for use of the system libffi library |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
| 9947 | $as_echo_n "checking for --with-system-ffi... " >&6; } |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9948 | |
| 9949 | # Check whether --with-system_ffi was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9950 | if test "${with_system_ffi+set}" = set; then : |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9951 | withval=$with_system_ffi; |
Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 9952 | else |
| 9953 | with_system_ffi="no" |
Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9954 | fi |
| 9955 | |
| 9956 | |
| 9957 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 9958 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 9959 | else |
| 9960 | LIBFFI_INCLUDEDIR="" |
| 9961 | fi |
| 9962 | |
| 9963 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
| 9965 | $as_echo "$with_system_ffi" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9966 | |
Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 9967 | # Check for use of the system libmpdec library |
| 9968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 |
| 9969 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } |
| 9970 | |
| 9971 | # Check whether --with-system_libmpdec was given. |
| 9972 | if test "${with_system_libmpdec+set}" = set; then : |
| 9973 | withval=$with_system_libmpdec; |
| 9974 | else |
| 9975 | with_system_libmpdec="no" |
| 9976 | fi |
| 9977 | |
| 9978 | |
| 9979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 |
| 9980 | $as_echo "$with_system_libmpdec" >&6; } |
| 9981 | |
Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 9982 | # Check for support for loadable sqlite extensions |
| 9983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 |
| 9984 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } |
| 9985 | # Check whether --enable-loadable-sqlite-extensions was given. |
| 9986 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : |
| 9987 | enableval=$enable_loadable_sqlite_extensions; |
| 9988 | else |
| 9989 | enable_loadable_sqlite_extensions="no" |
| 9990 | fi |
| 9991 | |
| 9992 | |
| 9993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 |
| 9994 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } |
| 9995 | |
Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 9996 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path |
| 9997 | |
| 9998 | |
| 9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 |
| 10000 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } |
| 10001 | |
| 10002 | # Check whether --with-tcltk-includes was given. |
| 10003 | if test "${with_tcltk_includes+set}" = set; then : |
| 10004 | withval=$with_tcltk_includes; |
| 10005 | else |
| 10006 | with_tcltk_includes="default" |
| 10007 | fi |
| 10008 | |
| 10009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 |
| 10010 | $as_echo "$with_tcltk_includes" >&6; } |
| 10011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 |
| 10012 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } |
| 10013 | |
| 10014 | # Check whether --with-tcltk-libs was given. |
| 10015 | if test "${with_tcltk_libs+set}" = set; then : |
| 10016 | withval=$with_tcltk_libs; |
| 10017 | else |
| 10018 | with_tcltk_libs="default" |
| 10019 | fi |
| 10020 | |
| 10021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 |
| 10022 | $as_echo "$with_tcltk_libs" >&6; } |
| 10023 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault |
| 10024 | then |
| 10025 | if test "x$with_tcltk_includes" != "x$with_tcltk_libs" |
| 10026 | then |
| 10027 | as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 |
| 10028 | fi |
| 10029 | TCLTK_INCLUDES="" |
| 10030 | TCLTK_LIBS="" |
| 10031 | else |
| 10032 | TCLTK_INCLUDES="$with_tcltk_includes" |
| 10033 | TCLTK_LIBS="$with_tcltk_libs" |
| 10034 | fi |
| 10035 | |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10036 | # Check for --with-dbmliborder |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
| 10038 | $as_echo_n "checking for --with-dbmliborder... " >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10039 | |
| 10040 | # Check whether --with-dbmliborder was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10041 | if test "${with_dbmliborder+set}" = set; then : |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10042 | withval=$with_dbmliborder; |
| 10043 | if test x$with_dbmliborder = xyes |
| 10044 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10045 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10046 | else |
| 10047 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 10048 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 10049 | then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10050 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10051 | fi |
| 10052 | done |
| 10053 | fi |
| 10054 | fi |
| 10055 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
| 10057 | $as_echo "$with_dbmliborder" >&6; } |
Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10058 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10059 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10060 | |
| 10061 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 |
| 10063 | $as_echo_n "checking for --with-signal-module... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10064 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10065 | # Check whether --with-signal-module was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10066 | if test "${with_signal_module+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10067 | withval=$with_signal_module; |
| 10068 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10069 | |
| 10070 | |
| 10071 | if test -z "$with_signal_module" |
| 10072 | then with_signal_module="yes" |
| 10073 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 |
| 10075 | $as_echo "$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10076 | |
| 10077 | if test "${with_signal_module}" = "yes"; then |
| 10078 | USE_SIGNAL_MODULE="" |
| 10079 | SIGNAL_OBJS="" |
| 10080 | else |
| 10081 | USE_SIGNAL_MODULE="#" |
| 10082 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 10083 | fi |
| 10084 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10085 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10086 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10087 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10088 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10090 | |
| 10091 | # Templates for things AC_DEFINEd more than once. |
| 10092 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10093 | |
| 10094 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10095 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 |
| 10097 | $as_echo_n "checking for --with-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10098 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10099 | # Check whether --with-threads was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10100 | if test "${with_threads+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10101 | withval=$with_threads; |
| 10102 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10103 | |
| 10104 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10105 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10106 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10107 | # Check whether --with-thread was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10108 | if test "${with_thread+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10109 | withval=$with_thread; with_threads=$with_thread |
| 10110 | fi |
| 10111 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10112 | |
| 10113 | if test -z "$with_threads" |
| 10114 | then with_threads="yes" |
| 10115 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 |
| 10117 | $as_echo "$with_threads" >&6; } |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10118 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10119 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10120 | if test "$with_threads" = "no" |
| 10121 | then |
| 10122 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10123 | elif test "$ac_cv_pthread_is_default" = yes |
| 10124 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10125 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10126 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10127 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10128 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10129 | |
| 10130 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10131 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10132 | elif test "$ac_cv_kpthread" = "yes" |
| 10133 | then |
| 10134 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10135 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10136 | CXX="$CXX -Kpthread" |
| 10137 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10138 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10139 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10140 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10141 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10142 | elif test "$ac_cv_kthread" = "yes" |
| 10143 | then |
| 10144 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10145 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10146 | CXX="$CXX -Kthread" |
| 10147 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10148 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10149 | |
| 10150 | posix_threads=yes |
| 10151 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10152 | elif test "$ac_cv_pthread" = "yes" |
| 10153 | then |
| 10154 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10155 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10156 | CXX="$CXX -pthread" |
| 10157 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10158 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10159 | |
| 10160 | posix_threads=yes |
| 10161 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10162 | else |
| 10163 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10164 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10165 | fi |
| 10166 | if test ! -z "$withval" -a -d "$withval" |
| 10167 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10168 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10169 | |
| 10170 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 10171 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 10172 | # (e.g. gnu pth with pthread emulation) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10174 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } |
| 10175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10176 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10177 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10178 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10179 | #ifdef _POSIX_THREADS |
| 10180 | yes |
| 10181 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10182 | |
| 10183 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10185 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10186 | unistd_defines_pthreads=yes |
| 10187 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10188 | unistd_defines_pthreads=no |
| 10189 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10190 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10191 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
| 10193 | $as_echo "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10194 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10195 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10196 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10197 | # Just looking for pthread_create in libpthread is not enough: |
| 10198 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10199 | # So we really have to include pthread.h, and then link. |
| 10200 | _libs=$LIBS |
| 10201 | LIBS="$LIBS -lpthread" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 10203 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
| 10204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10205 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10206 | |
| 10207 | #include <stdio.h> |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10208 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10209 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10210 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10211 | int |
| 10212 | main () |
| 10213 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10214 | |
| 10215 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10216 | ; |
| 10217 | return 0; |
| 10218 | } |
| 10219 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10220 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10221 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10223 | $as_echo "yes" >&6; } |
| 10224 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10225 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10226 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10227 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10228 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10229 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10230 | LIBS=$_libs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10231 | 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] | 10232 | if test "x$ac_cv_func_pthread_detach" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10233 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10234 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10235 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10236 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10237 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10238 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
| 10240 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10241 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10242 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10244 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10245 | LIBS="-lpthreads $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10247 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10248 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10249 | /* Override any GCC internal prototype to avoid an error. |
| 10250 | Use char because int might match the return type of a GCC |
| 10251 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10252 | #ifdef __cplusplus |
| 10253 | extern "C" |
| 10254 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10255 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10256 | int |
| 10257 | main () |
| 10258 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10259 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10260 | ; |
| 10261 | return 0; |
| 10262 | } |
| 10263 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10264 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10265 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10266 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10267 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10268 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10269 | rm -f core conftest.err conftest.$ac_objext \ |
| 10270 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10271 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10272 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10274 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10275 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10276 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10277 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10278 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10279 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10280 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10281 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10282 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
| 10284 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10285 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10286 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10287 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10288 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10289 | LIBS="-lc_r $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10291 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10292 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10293 | /* Override any GCC internal prototype to avoid an error. |
| 10294 | Use char because int might match the return type of a GCC |
| 10295 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | #ifdef __cplusplus |
| 10297 | extern "C" |
| 10298 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10299 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10300 | int |
| 10301 | main () |
| 10302 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10303 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10304 | ; |
| 10305 | return 0; |
| 10306 | } |
| 10307 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10308 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10309 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10310 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10311 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10312 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10313 | rm -f core conftest.err conftest.$ac_objext \ |
| 10314 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10315 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10316 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10318 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10319 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10320 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10321 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10322 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10323 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10324 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10325 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10326 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
| 10328 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10329 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10330 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10332 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10333 | LIBS="-lpthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10335 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10336 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10337 | /* Override any GCC internal prototype to avoid an error. |
| 10338 | Use char because int might match the return type of a GCC |
| 10339 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10340 | #ifdef __cplusplus |
| 10341 | extern "C" |
| 10342 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10343 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10344 | int |
| 10345 | main () |
| 10346 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10347 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10348 | ; |
| 10349 | return 0; |
| 10350 | } |
| 10351 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10352 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10353 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10354 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10355 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10356 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10357 | rm -f core conftest.err conftest.$ac_objext \ |
| 10358 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10359 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10360 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10362 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10363 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10364 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
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" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10368 | THREADOBJ="Python/thread.o" |
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 : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10408 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10409 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10410 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10411 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10412 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10413 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10414 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10415 | USE_THREAD_MODULE="#" |
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 : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10468 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10469 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10470 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10471 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10472 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10473 | fi |
| 10474 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10475 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 10476 | if test "$posix_threads" != "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 |
| 10478 | $as_echo_n "checking for thr_create in -lthread... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10479 | if ${ac_cv_lib_thread_thr_create+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10480 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10482 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10483 | LIBS="-lthread $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10485 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10486 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10487 | /* Override any GCC internal prototype to avoid an error. |
| 10488 | Use char because int might match the return type of a GCC |
| 10489 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10490 | #ifdef __cplusplus |
| 10491 | extern "C" |
| 10492 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10493 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10494 | int |
| 10495 | main () |
| 10496 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10497 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10498 | ; |
| 10499 | return 0; |
| 10500 | } |
| 10501 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10502 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10503 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10504 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10505 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10506 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10507 | rm -f core conftest.err conftest.$ac_objext \ |
| 10508 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10509 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10510 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 |
| 10512 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10513 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10514 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10515 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10516 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10517 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10518 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10519 | fi |
| 10520 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10521 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10522 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10523 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10524 | if test "$posix_threads" = "yes"; then |
| 10525 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10526 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10527 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10528 | |
| 10529 | fi |
| 10530 | |
| 10531 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 10532 | case $ac_sys_system/$ac_sys_release in |
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10533 | SunOS/5.6) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10534 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10535 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10536 | ;; |
| 10537 | SunOS/5.8) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10538 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10539 | |
| 10540 | ;; |
Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10541 | AIX/*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10542 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 10543 | |
| 10544 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10545 | esac |
| 10546 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 10548 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10549 | if ${ac_cv_pthread_system_supported+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10550 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10551 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10552 | if test "$cross_compiling" = yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10553 | ac_cv_pthread_system_supported=no |
| 10554 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10556 | /* end confdefs.h. */ |
Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10557 | |
| 10558 | #include <stdio.h> |
| 10559 | #include <pthread.h> |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10560 | void *foo(void *parm) { |
| 10561 | return NULL; |
| 10562 | } |
| 10563 | main() { |
| 10564 | pthread_attr_t attr; |
| 10565 | pthread_t id; |
| 10566 | if (pthread_attr_init(&attr)) exit(-1); |
| 10567 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 10568 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 10569 | exit(0); |
| 10570 | } |
| 10571 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10572 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10573 | ac_cv_pthread_system_supported=yes |
| 10574 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10575 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10576 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10577 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10578 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10579 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10580 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10581 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10582 | fi |
| 10583 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
| 10585 | $as_echo "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10586 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 10587 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10588 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10589 | |
| 10590 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10591 | for ac_func in pthread_sigmask |
| 10592 | do : |
| 10593 | 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] | 10594 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10595 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10596 | #define HAVE_PTHREAD_SIGMASK 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10597 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10598 | case $ac_sys_system in |
| 10599 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10600 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10601 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10602 | |
| 10603 | ;; |
| 10604 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10605 | fi |
| 10606 | done |
| 10607 | |
Christian Heimes | f77b4b2 | 2013-08-21 13:26:05 +0200 | [diff] [blame] | 10608 | for ac_func in pthread_atfork |
| 10609 | do : |
| 10610 | ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" |
| 10611 | if test "x$ac_cv_func_pthread_atfork" = xyes; then : |
| 10612 | cat >>confdefs.h <<_ACEOF |
| 10613 | #define HAVE_PTHREAD_ATFORK 1 |
| 10614 | _ACEOF |
| 10615 | |
| 10616 | fi |
| 10617 | done |
| 10618 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10619 | fi |
| 10620 | |
| 10621 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10622 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10623 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
| 10625 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10626 | # Check whether --enable-ipv6 was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10627 | if test "${enable_ipv6+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10628 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10629 | no) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10631 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10632 | ipv6=no |
| 10633 | ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10634 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10635 | $as_echo "yes" >&6; } |
| 10636 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10637 | |
| 10638 | ipv6=yes |
| 10639 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10640 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10641 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10642 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10644 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10645 | /* AF_INET6 available check */ |
| 10646 | #include <sys/types.h> |
| 10647 | #include <sys/socket.h> |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10648 | int |
| 10649 | main () |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10650 | { |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10651 | int domain = AF_INET6; |
| 10652 | ; |
| 10653 | return 0; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10654 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10655 | _ACEOF |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10656 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10657 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10659 | $as_echo "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10660 | ipv6=yes |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10661 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10662 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10663 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10665 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10666 | ipv6=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10667 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10668 | fi |
Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10670 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10671 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
| 10673 | $as_echo_n "checking if RFC2553 API is available... " >&6; } |
| 10674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10675 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10676 | |
| 10677 | #include <sys/types.h> |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10678 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10679 | int |
| 10680 | main () |
| 10681 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10682 | struct sockaddr_in6 x; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10683 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10684 | ; |
| 10685 | return 0; |
| 10686 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10688 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10689 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10690 | |
| 10691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10692 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10693 | ipv6=yes |
| 10694 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10695 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10696 | |
| 10697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10698 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10699 | ipv6=no |
| 10700 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10701 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10702 | 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] | 10703 | fi |
| 10704 | |
| 10705 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10706 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10707 | |
| 10708 | fi |
| 10709 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10710 | fi |
| 10711 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10712 | |
| 10713 | ipv6type=unknown |
| 10714 | ipv6lib=none |
| 10715 | ipv6trylibc=no |
| 10716 | |
| 10717 | if test "$ipv6" = "yes"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
| 10719 | $as_echo_n "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10720 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 10721 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10722 | case $i in |
| 10723 | inria) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10725 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10726 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10727 | #include <netinet/in.h> |
| 10728 | #ifdef IPV6_INRIA_VERSION |
| 10729 | yes |
| 10730 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10731 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10732 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10733 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10734 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10735 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10736 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10737 | |
| 10738 | ;; |
| 10739 | kame) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10741 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10742 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10743 | #include <netinet/in.h> |
| 10744 | #ifdef __KAME__ |
| 10745 | yes |
| 10746 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10747 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10748 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10749 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10750 | ipv6type=$i; |
| 10751 | ipv6lib=inet6 |
| 10752 | ipv6libdir=/usr/local/v6/lib |
| 10753 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10754 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10755 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10756 | |
| 10757 | ;; |
| 10758 | linux-glibc) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10760 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10761 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10762 | #include <features.h> |
| 10763 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 10764 | yes |
| 10765 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10766 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10767 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10768 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10769 | ipv6type=$i; |
| 10770 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10771 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10772 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10773 | |
| 10774 | ;; |
| 10775 | linux-inet6) |
| 10776 | if test -d /usr/inet6; then |
| 10777 | ipv6type=$i |
| 10778 | ipv6lib=inet6 |
| 10779 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10780 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10781 | fi |
| 10782 | ;; |
| 10783 | solaris) |
| 10784 | if test -f /etc/netconfig; then |
Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 10785 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10786 | ipv6type=$i |
| 10787 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10788 | fi |
| 10789 | fi |
| 10790 | ;; |
| 10791 | toshiba) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10793 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10794 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10795 | #include <sys/param.h> |
| 10796 | #ifdef _TOSHIBA_INET6 |
| 10797 | yes |
| 10798 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10799 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10800 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10801 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10802 | ipv6type=$i; |
| 10803 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10804 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10805 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10806 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10807 | |
| 10808 | ;; |
| 10809 | v6d) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10811 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10812 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10813 | #include </usr/local/v6/include/sys/v6config.h> |
| 10814 | #ifdef __V6D__ |
| 10815 | yes |
| 10816 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10817 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10818 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10819 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10820 | ipv6type=$i; |
| 10821 | ipv6lib=v6; |
| 10822 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10823 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10824 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10825 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10826 | |
| 10827 | ;; |
| 10828 | zeta) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10830 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10831 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10832 | #include <sys/param.h> |
| 10833 | #ifdef _ZETA_MINAMI_INET6 |
| 10834 | yes |
| 10835 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10836 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10837 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10838 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10839 | ipv6type=$i; |
| 10840 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10841 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10842 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10843 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10844 | |
| 10845 | ;; |
| 10846 | esac |
| 10847 | if test "$ipv6type" != "unknown"; then |
| 10848 | break |
| 10849 | fi |
| 10850 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
| 10852 | $as_echo "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10853 | fi |
| 10854 | |
| 10855 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 10856 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 10857 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 10858 | echo "using lib$ipv6lib" |
| 10859 | else |
| 10860 | if test $ipv6trylibc = "yes"; then |
| 10861 | echo "using libc" |
| 10862 | else |
| 10863 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 10864 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 10865 | echo 'ipv6 kit and compile beforehand.' |
| 10866 | exit 1 |
| 10867 | fi |
| 10868 | fi |
| 10869 | fi |
| 10870 | |
Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 10871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 |
| 10872 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } |
| 10873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10874 | /* end confdefs.h. */ |
| 10875 | /* CAN_RAW_FD_FRAMES available check */ |
| 10876 | #include <linux/can/raw.h> |
| 10877 | int |
| 10878 | main () |
| 10879 | { |
| 10880 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; |
| 10881 | ; |
| 10882 | return 0; |
| 10883 | } |
| 10884 | _ACEOF |
| 10885 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10886 | |
| 10887 | |
| 10888 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h |
| 10889 | |
| 10890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10891 | $as_echo "yes" >&6; } |
| 10892 | |
| 10893 | else |
| 10894 | |
| 10895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10896 | $as_echo "no" >&6; } |
| 10897 | |
| 10898 | fi |
| 10899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10900 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 |
| 10902 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } |
| 10903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10904 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10905 | |
| 10906 | #include <Carbon/Carbon.h> |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10907 | int |
| 10908 | main () |
| 10909 | { |
| 10910 | FSIORefNum fRef = 0 |
| 10911 | ; |
| 10912 | return 0; |
| 10913 | } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10914 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10915 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10916 | if ac_fn_c_try_compile "$LINENO"; then : |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10917 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10918 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10919 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10920 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10922 | $as_echo "yes" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10923 | |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10924 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10925 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10927 | $as_echo "no" >&6; } |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10928 | |
| 10929 | fi |
Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 10930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10931 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10932 | # Check for --with-doc-strings |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
| 10934 | $as_echo_n "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10935 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10936 | # Check whether --with-doc-strings was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10937 | if test "${with_doc_strings+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10938 | withval=$with_doc_strings; |
| 10939 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10940 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10941 | |
| 10942 | if test -z "$with_doc_strings" |
| 10943 | then with_doc_strings="yes" |
| 10944 | fi |
| 10945 | if test "$with_doc_strings" != "no" |
| 10946 | then |
| 10947 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10948 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10949 | |
| 10950 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
| 10952 | $as_echo "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10953 | |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 10954 | # Check if eval loop should use timestamp counter profiling |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 |
| 10956 | $as_echo_n "checking for --with-tsc... " >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10957 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10958 | # Check whether --with-tsc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10959 | if test "${with_tsc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10960 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10961 | if test "$withval" != no |
| 10962 | then |
| 10963 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10964 | $as_echo "#define WITH_TSC 1" >>confdefs.h |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10965 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10967 | $as_echo "yes" >&6; } |
| 10968 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10969 | $as_echo "no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10970 | fi |
| 10971 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10973 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10974 | fi |
| 10975 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10976 | |
| 10977 | # Check for Python-specific malloc support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
| 10979 | $as_echo_n "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10980 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10981 | # Check whether --with-pymalloc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10982 | if test "${with_pymalloc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10983 | withval=$with_pymalloc; |
| 10984 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10985 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10986 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10987 | if test -z "$with_pymalloc" |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 10988 | then |
| 10989 | with_pymalloc="yes" |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10990 | fi |
| 10991 | if test "$with_pymalloc" != "no" |
| 10992 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10993 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10994 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10995 | |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 10996 | ABIFLAGS="${ABIFLAGS}m" |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10997 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
| 10999 | $as_echo "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11000 | |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11001 | # Check for Valgrind support |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
| 11003 | $as_echo_n "checking for --with-valgrind... " >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11004 | |
| 11005 | # Check whether --with-valgrind was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11006 | if test "${with_valgrind+set}" = set; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11007 | withval=$with_valgrind; |
| 11008 | else |
| 11009 | with_valgrind=no |
| 11010 | fi |
| 11011 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
| 11013 | $as_echo "$with_valgrind" >&6; } |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11014 | if test "$with_valgrind" != no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11015 | 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] | 11016 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11017 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11018 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11019 | |
| 11020 | else |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11021 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11022 | |
| 11023 | fi |
| 11024 | |
| 11025 | |
Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 11026 | OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" |
Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 11027 | fi |
| 11028 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11029 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11030 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11031 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11032 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11033 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11034 | # 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] | 11035 | for ac_func in dlopen |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11036 | do : |
| 11037 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11038 | if test "x$ac_cv_func_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11039 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11040 | #define HAVE_DLOPEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11041 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11042 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11043 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11044 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11045 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11046 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11047 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11048 | # loading of modules. |
| 11049 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
| 11051 | $as_echo_n "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11052 | if test -z "$DYNLOADFILE" |
| 11053 | then |
| 11054 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 11055 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 11056 | if test "$ac_cv_func_dlopen" = yes |
| 11057 | then DYNLOADFILE="dynload_shlib.o" |
| 11058 | else DYNLOADFILE="dynload_aix.o" |
| 11059 | fi |
| 11060 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11061 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 11062 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 11063 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11064 | *) |
| 11065 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11066 | # out any dynamic loading |
| 11067 | if test "$ac_cv_func_dlopen" = yes |
| 11068 | then DYNLOADFILE="dynload_shlib.o" |
| 11069 | else DYNLOADFILE="dynload_stub.o" |
| 11070 | fi |
| 11071 | ;; |
| 11072 | esac |
| 11073 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
| 11075 | $as_echo "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11076 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11077 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11078 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11079 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11080 | |
| 11081 | fi |
| 11082 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11083 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11084 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11085 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
| 11087 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11088 | if test -z "$MACHDEP_OBJS" |
| 11089 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11090 | MACHDEP_OBJS=$extra_machdep_objs |
| 11091 | else |
| 11092 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11093 | fi |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11094 | if test -z "$MACHDEP_OBJS"; then |
| 11095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 11096 | $as_echo "none" >&6; } |
| 11097 | else |
| 11098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 |
| 11099 | $as_echo "$MACHDEP_OBJS" >&6; } |
| 11100 | fi |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11101 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11102 | # checks for library functions |
Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 11103 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ |
Victor Stinner | daf4555 | 2013-08-28 00:53:59 +0200 | [diff] [blame] | 11104 | clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11105 | fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ |
Victor Stinner | 4d6a3d6 | 2014-12-21 01:16:38 +0100 | [diff] [blame] | 11106 | futimens futimes gai_strerror getentropy \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11107 | getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 11108 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
Gregory P. Smith | 5ed2e77 | 2011-05-15 00:26:45 -0700 | [diff] [blame] | 11109 | if_nameindex \ |
Antoine Pitrou | f0effe6 | 2011-11-26 01:11:02 +0100 | [diff] [blame] | 11110 | initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \ |
| 11111 | memrchr mbrtowc mkdirat mkfifo \ |
Charles-François Natali | daafdd5 | 2011-05-29 20:07:40 +0200 | [diff] [blame] | 11112 | mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11113 | posix_fallocate posix_fadvise pread \ |
Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 11114 | pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ |
Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 11115 | select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ |
Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 11116 | setgid sethostname \ |
Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 11117 | 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] | 11118 | sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ |
| 11119 | sched_rr_get_interval \ |
Ross Lagerwall | bc80822 | 2011-06-25 12:13:40 +0200 | [diff] [blame] | 11120 | sigaction sigaltstack siginterrupt sigpending sigrelse \ |
| 11121 | sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11122 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11123 | truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ |
Victor Stinner | cd777ea | 2013-04-08 22:43:44 +0200 | [diff] [blame] | 11124 | wcscoll wcsftime wcsxfrm wmemcmp writev _getpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11125 | do : |
| 11126 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11127 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11128 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11129 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11130 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11131 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11132 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11133 | fi |
| 11134 | done |
| 11135 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11136 | |
Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11137 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> |
| 11138 | #include <dirent.h> |
| 11139 | " |
| 11140 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : |
| 11141 | |
| 11142 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h |
| 11143 | |
| 11144 | fi |
| 11145 | |
| 11146 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11147 | # For some functions, having a definition is not sufficient, since |
| 11148 | # we want to take their address. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
| 11150 | $as_echo_n "checking for chroot... " >&6; } |
| 11151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11152 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11153 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11154 | int |
| 11155 | main () |
| 11156 | { |
| 11157 | void *x=chroot |
| 11158 | ; |
| 11159 | return 0; |
| 11160 | } |
| 11161 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11162 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11163 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11164 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11165 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11167 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11168 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11170 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11171 | |
| 11172 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
| 11175 | $as_echo_n "checking for link... " >&6; } |
| 11176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11177 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11178 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11179 | int |
| 11180 | main () |
| 11181 | { |
| 11182 | void *x=link |
| 11183 | ; |
| 11184 | return 0; |
| 11185 | } |
| 11186 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11187 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11188 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11189 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11190 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11192 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11193 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11195 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11196 | |
| 11197 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
| 11200 | $as_echo_n "checking for symlink... " >&6; } |
| 11201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11202 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11203 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11204 | int |
| 11205 | main () |
| 11206 | { |
| 11207 | void *x=symlink |
| 11208 | ; |
| 11209 | return 0; |
| 11210 | } |
| 11211 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11212 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11213 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11214 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11215 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11217 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11218 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11220 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11221 | |
| 11222 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
| 11225 | $as_echo_n "checking for fchdir... " >&6; } |
| 11226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11227 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11228 | #include <unistd.h> |
| 11229 | int |
| 11230 | main () |
| 11231 | { |
| 11232 | void *x=fchdir |
| 11233 | ; |
| 11234 | return 0; |
| 11235 | } |
| 11236 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11237 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11238 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11239 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11240 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11242 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11243 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11245 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11246 | |
| 11247 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
| 11250 | $as_echo_n "checking for fsync... " >&6; } |
| 11251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11252 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11253 | #include <unistd.h> |
| 11254 | int |
| 11255 | main () |
| 11256 | { |
| 11257 | void *x=fsync |
| 11258 | ; |
| 11259 | return 0; |
| 11260 | } |
| 11261 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11262 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11263 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11264 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11265 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11267 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11268 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11270 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11271 | |
| 11272 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
| 11275 | $as_echo_n "checking for fdatasync... " >&6; } |
| 11276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11277 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11278 | #include <unistd.h> |
| 11279 | int |
| 11280 | main () |
| 11281 | { |
| 11282 | void *x=fdatasync |
| 11283 | ; |
| 11284 | return 0; |
| 11285 | } |
| 11286 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11287 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11288 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11289 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11290 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11292 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11293 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11295 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11296 | |
| 11297 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
| 11300 | $as_echo_n "checking for epoll... " >&6; } |
| 11301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11302 | /* end confdefs.h. */ |
| 11303 | #include <sys/epoll.h> |
| 11304 | int |
| 11305 | main () |
| 11306 | { |
| 11307 | void *x=epoll_create |
| 11308 | ; |
| 11309 | return 0; |
| 11310 | } |
| 11311 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11312 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11313 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11314 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11315 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11317 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11318 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11320 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11321 | |
| 11322 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 11324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 |
| 11325 | $as_echo_n "checking for epoll_create1... " >&6; } |
| 11326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11327 | /* end confdefs.h. */ |
| 11328 | #include <sys/epoll.h> |
| 11329 | int |
| 11330 | main () |
| 11331 | { |
| 11332 | void *x=epoll_create1 |
| 11333 | ; |
| 11334 | return 0; |
| 11335 | } |
| 11336 | _ACEOF |
| 11337 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11338 | |
| 11339 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h |
| 11340 | |
| 11341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11342 | $as_echo "yes" >&6; } |
| 11343 | else |
| 11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11345 | $as_echo "no" >&6; } |
| 11346 | |
| 11347 | fi |
| 11348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
| 11350 | $as_echo_n "checking for kqueue... " >&6; } |
| 11351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11352 | /* end confdefs.h. */ |
| 11353 | |
| 11354 | #include <sys/types.h> |
| 11355 | #include <sys/event.h> |
| 11356 | |
| 11357 | int |
| 11358 | main () |
| 11359 | { |
| 11360 | int x=kqueue() |
| 11361 | ; |
| 11362 | return 0; |
| 11363 | } |
| 11364 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11365 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11366 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11367 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11368 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11370 | $as_echo "yes" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11371 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11373 | $as_echo "no" >&6; } |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11374 | |
| 11375 | fi |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 11377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 |
| 11378 | $as_echo_n "checking for prlimit... " >&6; } |
| 11379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11380 | /* end confdefs.h. */ |
| 11381 | |
| 11382 | #include <sys/time.h> |
| 11383 | #include <sys/resource.h> |
| 11384 | |
| 11385 | int |
| 11386 | main () |
| 11387 | { |
| 11388 | void *x=prlimit |
| 11389 | ; |
| 11390 | return 0; |
| 11391 | } |
| 11392 | _ACEOF |
| 11393 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11394 | |
| 11395 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h |
| 11396 | |
| 11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11398 | $as_echo "yes" >&6; } |
| 11399 | else |
| 11400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11401 | $as_echo "no" >&6; } |
| 11402 | |
| 11403 | fi |
| 11404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11405 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11406 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 11407 | # functions ctermid_r, setgroups in the library, but no prototype |
| 11408 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 11409 | # address to avoid compiler warnings and potential miscompilations |
| 11410 | # because of the missing prototypes. |
| 11411 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
| 11413 | $as_echo_n "checking for ctermid_r... " >&6; } |
| 11414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11415 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11416 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11417 | #include <stdio.h> |
| 11418 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11419 | int |
| 11420 | main () |
| 11421 | { |
| 11422 | void* p = ctermid_r |
| 11423 | ; |
| 11424 | return 0; |
| 11425 | } |
| 11426 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11427 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11428 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11429 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11430 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11432 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11433 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11435 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11436 | |
| 11437 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11439 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
| 11441 | $as_echo_n "checking for flock declaration... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11442 | if ${ac_cv_flock_decl+:} false; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11443 | $as_echo_n "(cached) " >&6 |
| 11444 | else |
| 11445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11446 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11447 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11448 | int |
| 11449 | main () |
| 11450 | { |
| 11451 | void* p = flock |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11452 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11453 | ; |
| 11454 | return 0; |
| 11455 | } |
| 11456 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11457 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11458 | ac_cv_flock_decl=yes |
| 11459 | else |
| 11460 | ac_cv_flock_decl=no |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11461 | |
| 11462 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11464 | |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11465 | fi |
| 11466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 |
| 11467 | $as_echo "$ac_cv_flock_decl" >&6; } |
| 11468 | if test "x${ac_cv_flock_decl}" = xyes; then |
| 11469 | for ac_func in flock |
| 11470 | do : |
| 11471 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11472 | if test "x$ac_cv_func_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11473 | cat >>confdefs.h <<_ACEOF |
| 11474 | #define HAVE_FLOCK 1 |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11475 | _ACEOF |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11476 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11477 | else |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11478 | { $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] | 11479 | $as_echo_n "checking for flock in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11480 | if ${ac_cv_lib_bsd_flock+:} false; then : |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11481 | $as_echo_n "(cached) " >&6 |
| 11482 | else |
| 11483 | ac_check_lib_save_LIBS=$LIBS |
| 11484 | LIBS="-lbsd $LIBS" |
| 11485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11486 | /* end confdefs.h. */ |
| 11487 | |
| 11488 | /* Override any GCC internal prototype to avoid an error. |
| 11489 | Use char because int might match the return type of a GCC |
| 11490 | builtin and then its argument prototype would still apply. */ |
| 11491 | #ifdef __cplusplus |
| 11492 | extern "C" |
| 11493 | #endif |
| 11494 | char flock (); |
| 11495 | int |
| 11496 | main () |
| 11497 | { |
| 11498 | return flock (); |
| 11499 | ; |
| 11500 | return 0; |
| 11501 | } |
| 11502 | _ACEOF |
| 11503 | if ac_fn_c_try_link "$LINENO"; then : |
| 11504 | ac_cv_lib_bsd_flock=yes |
| 11505 | else |
| 11506 | ac_cv_lib_bsd_flock=no |
| 11507 | fi |
| 11508 | rm -f core conftest.err conftest.$ac_objext \ |
| 11509 | conftest$ac_exeext conftest.$ac_ext |
| 11510 | LIBS=$ac_check_lib_save_LIBS |
| 11511 | fi |
| 11512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 |
| 11513 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11514 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11515 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11516 | |
| 11517 | |
| 11518 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h |
| 11519 | |
| 11520 | |
| 11521 | fi |
| 11522 | |
| 11523 | |
| 11524 | fi |
Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11525 | done |
| 11526 | |
Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11527 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11528 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
| 11530 | $as_echo_n "checking for getpagesize... " >&6; } |
| 11531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11532 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11533 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11534 | #include <unistd.h> |
| 11535 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11536 | int |
| 11537 | main () |
| 11538 | { |
| 11539 | void* p = getpagesize |
| 11540 | ; |
| 11541 | return 0; |
| 11542 | } |
| 11543 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11544 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11545 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11546 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11547 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11549 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11550 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11552 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11553 | |
| 11554 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11555 | 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] | 11556 | |
Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 11557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 |
| 11558 | $as_echo_n "checking for broken unsetenv... " >&6; } |
| 11559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11560 | /* end confdefs.h. */ |
| 11561 | |
| 11562 | #include <stdlib.h> |
| 11563 | |
| 11564 | int |
| 11565 | main () |
| 11566 | { |
| 11567 | int res = unsetenv("DUMMY") |
| 11568 | ; |
| 11569 | return 0; |
| 11570 | } |
| 11571 | _ACEOF |
| 11572 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11574 | $as_echo "no" >&6; } |
| 11575 | else |
| 11576 | |
| 11577 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h |
| 11578 | |
| 11579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11580 | $as_echo "yes" >&6; } |
| 11581 | |
| 11582 | fi |
| 11583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11584 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11585 | for ac_prog in true |
| 11586 | do |
| 11587 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11588 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11590 | $as_echo_n "checking for $ac_word... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11591 | if ${ac_cv_prog_TRUE+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11592 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11593 | else |
| 11594 | if test -n "$TRUE"; then |
| 11595 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 11596 | else |
| 11597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11598 | for as_dir in $PATH |
| 11599 | do |
| 11600 | IFS=$as_save_IFS |
| 11601 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11602 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11603 | 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] | 11604 | ac_cv_prog_TRUE="$ac_prog" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11605 | $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] | 11606 | break 2 |
| 11607 | fi |
| 11608 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11609 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11610 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11611 | |
| 11612 | fi |
| 11613 | fi |
| 11614 | TRUE=$ac_cv_prog_TRUE |
| 11615 | if test -n "$TRUE"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
| 11617 | $as_echo "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11618 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11620 | $as_echo "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11621 | fi |
| 11622 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11623 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11624 | test -n "$TRUE" && break |
| 11625 | done |
| 11626 | test -n "$TRUE" || TRUE="/bin/true" |
| 11627 | |
| 11628 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
| 11630 | $as_echo_n "checking for inet_aton in -lc... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11631 | if ${ac_cv_lib_c_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11632 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11633 | else |
| 11634 | ac_check_lib_save_LIBS=$LIBS |
| 11635 | LIBS="-lc $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11637 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11638 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11639 | /* Override any GCC internal prototype to avoid an error. |
| 11640 | Use char because int might match the return type of a GCC |
| 11641 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11642 | #ifdef __cplusplus |
| 11643 | extern "C" |
| 11644 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11645 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11646 | int |
| 11647 | main () |
| 11648 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11649 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11650 | ; |
| 11651 | return 0; |
| 11652 | } |
| 11653 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11654 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11655 | ac_cv_lib_c_inet_aton=yes |
| 11656 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11657 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11658 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11659 | rm -f core conftest.err conftest.$ac_objext \ |
| 11660 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11661 | LIBS=$ac_check_lib_save_LIBS |
| 11662 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
| 11664 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11665 | 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] | 11666 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11667 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
| 11669 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11670 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11671 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11672 | else |
| 11673 | ac_check_lib_save_LIBS=$LIBS |
| 11674 | LIBS="-lresolv $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11676 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11677 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11678 | /* Override any GCC internal prototype to avoid an error. |
| 11679 | Use char because int might match the return type of a GCC |
| 11680 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11681 | #ifdef __cplusplus |
| 11682 | extern "C" |
| 11683 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11684 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11685 | int |
| 11686 | main () |
| 11687 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11688 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11689 | ; |
| 11690 | return 0; |
| 11691 | } |
| 11692 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11693 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11694 | ac_cv_lib_resolv_inet_aton=yes |
| 11695 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11696 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11697 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11698 | rm -f core conftest.err conftest.$ac_objext \ |
| 11699 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11700 | LIBS=$ac_check_lib_save_LIBS |
| 11701 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 11703 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11704 | 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] | 11705 | cat >>confdefs.h <<_ACEOF |
| 11706 | #define HAVE_LIBRESOLV 1 |
| 11707 | _ACEOF |
| 11708 | |
| 11709 | LIBS="-lresolv $LIBS" |
| 11710 | |
| 11711 | fi |
| 11712 | |
| 11713 | |
| 11714 | fi |
| 11715 | |
| 11716 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11717 | # On Tru64, chflags seems to be present, but calling it will |
| 11718 | # exit Python |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
| 11720 | $as_echo_n "checking for chflags... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11721 | if ${ac_cv_have_chflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11722 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11723 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11724 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11725 | ac_cv_have_chflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11726 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11728 | /* end confdefs.h. */ |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11729 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11730 | #include <sys/stat.h> |
| 11731 | #include <unistd.h> |
| 11732 | int main(int argc, char*argv[]) |
| 11733 | { |
| 11734 | if(chflags(argv[0], 0) != 0) |
| 11735 | return 1; |
| 11736 | return 0; |
| 11737 | } |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11738 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11739 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11740 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11741 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11742 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11743 | ac_cv_have_chflags=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11744 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11745 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11746 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 11747 | fi |
| 11748 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11749 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11750 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
| 11752 | $as_echo "$ac_cv_have_chflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11753 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11754 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11755 | if test "x$ac_cv_func_chflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11756 | ac_cv_have_chflags="yes" |
| 11757 | else |
| 11758 | ac_cv_have_chflags="no" |
| 11759 | fi |
| 11760 | |
| 11761 | fi |
| 11762 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11763 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11764 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11765 | |
| 11766 | fi |
| 11767 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
| 11769 | $as_echo_n "checking for lchflags... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11770 | if ${ac_cv_have_lchflags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11771 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11772 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11773 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11774 | ac_cv_have_lchflags=cross |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11775 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11777 | /* end confdefs.h. */ |
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 | #include <sys/stat.h> |
| 11780 | #include <unistd.h> |
| 11781 | int main(int argc, char*argv[]) |
| 11782 | { |
| 11783 | if(lchflags(argv[0], 0) != 0) |
| 11784 | return 1; |
| 11785 | return 0; |
| 11786 | } |
Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11787 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11788 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11789 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11790 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11791 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11792 | ac_cv_have_lchflags=no |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11793 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11794 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11795 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11796 | fi |
| 11797 | |
| 11798 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11799 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
| 11801 | $as_echo "$ac_cv_have_lchflags" >&6; } |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11802 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11803 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11804 | if test "x$ac_cv_func_lchflags" = xyes; then : |
Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11805 | ac_cv_have_lchflags="yes" |
| 11806 | else |
| 11807 | ac_cv_have_lchflags="no" |
| 11808 | fi |
| 11809 | |
| 11810 | fi |
| 11811 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11812 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11813 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11814 | |
| 11815 | fi |
| 11816 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11817 | case $ac_sys_system/$ac_sys_release in |
| 11818 | Darwin/*) |
| 11819 | _CUR_CFLAGS="${CFLAGS}" |
| 11820 | _CUR_LDFLAGS="${LDFLAGS}" |
| 11821 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 11822 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 11823 | ;; |
| 11824 | esac |
| 11825 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
| 11827 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11828 | if ${ac_cv_lib_z_inflateCopy+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11829 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11830 | else |
| 11831 | ac_check_lib_save_LIBS=$LIBS |
| 11832 | LIBS="-lz $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11834 | /* end confdefs.h. */ |
| 11835 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11836 | /* Override any GCC internal prototype to avoid an error. |
| 11837 | Use char because int might match the return type of a GCC |
| 11838 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11839 | #ifdef __cplusplus |
| 11840 | extern "C" |
| 11841 | #endif |
| 11842 | char inflateCopy (); |
| 11843 | int |
| 11844 | main () |
| 11845 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11846 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11847 | ; |
| 11848 | return 0; |
| 11849 | } |
| 11850 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11851 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11852 | ac_cv_lib_z_inflateCopy=yes |
| 11853 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11854 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11855 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11856 | rm -f core conftest.err conftest.$ac_objext \ |
| 11857 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11858 | LIBS=$ac_check_lib_save_LIBS |
| 11859 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 11861 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11862 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11863 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11864 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11865 | |
| 11866 | fi |
| 11867 | |
| 11868 | |
| 11869 | case $ac_sys_system/$ac_sys_release in |
| 11870 | Darwin/*) |
| 11871 | CFLAGS="${_CUR_CFLAGS}" |
| 11872 | LDFLAGS="${_CUR_LDFLAGS}" |
| 11873 | ;; |
| 11874 | esac |
| 11875 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
| 11877 | $as_echo_n "checking for hstrerror... " >&6; } |
| 11878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11879 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11880 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11881 | #include <netdb.h> |
| 11882 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11883 | int |
| 11884 | main () |
| 11885 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11886 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +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 : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11892 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11893 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11894 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11896 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11897 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11899 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11900 | |
| 11901 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11902 | rm -f core conftest.err conftest.$ac_objext \ |
| 11903 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11904 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
| 11906 | $as_echo_n "checking for inet_aton... " >&6; } |
| 11907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11908 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11909 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11910 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11911 | #include <sys/socket.h> |
| 11912 | #include <netinet/in.h> |
| 11913 | #include <arpa/inet.h> |
| 11914 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11915 | int |
| 11916 | main () |
| 11917 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11918 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11919 | ; |
| 11920 | return 0; |
| 11921 | } |
| 11922 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11923 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11924 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11925 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11926 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11928 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11929 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11931 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11932 | |
| 11933 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11934 | rm -f core conftest.err conftest.$ac_objext \ |
| 11935 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11936 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
| 11938 | $as_echo_n "checking for inet_pton... " >&6; } |
| 11939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11940 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11941 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11942 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11943 | #include <sys/socket.h> |
| 11944 | #include <netinet/in.h> |
| 11945 | #include <arpa/inet.h> |
| 11946 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11947 | int |
| 11948 | main () |
| 11949 | { |
| 11950 | void* p = inet_pton |
| 11951 | ; |
| 11952 | return 0; |
| 11953 | } |
| 11954 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11955 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11956 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11957 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11958 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11960 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11961 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11963 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11964 | |
| 11965 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11966 | 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] | 11967 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11968 | # 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] | 11969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
| 11970 | $as_echo_n "checking for setgroups... " >&6; } |
| 11971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11972 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11973 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11974 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 11975 | #ifdef HAVE_GRP_H |
| 11976 | #include <grp.h> |
| 11977 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11978 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11979 | int |
| 11980 | main () |
| 11981 | { |
| 11982 | void* p = setgroups |
| 11983 | ; |
| 11984 | return 0; |
| 11985 | } |
| 11986 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11987 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11988 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11989 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11990 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11992 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11993 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11995 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11996 | |
| 11997 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11998 | 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] | 11999 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12000 | # check for openpty and forkpty |
| 12001 | |
| 12002 | for ac_func in openpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12003 | do : |
| 12004 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12005 | if test "x$ac_cv_func_openpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12006 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12007 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12008 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12009 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12010 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
| 12012 | $as_echo_n "checking for openpty in -lutil... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12013 | if ${ac_cv_lib_util_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12014 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12015 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12016 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12017 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12019 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12020 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12021 | /* Override any GCC internal prototype to avoid an error. |
| 12022 | Use char because int might match the return type of a GCC |
| 12023 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12024 | #ifdef __cplusplus |
| 12025 | extern "C" |
| 12026 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12027 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12028 | int |
| 12029 | main () |
| 12030 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12031 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12032 | ; |
| 12033 | return 0; |
| 12034 | } |
| 12035 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12036 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12037 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12038 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12039 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12040 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12041 | rm -f core conftest.err conftest.$ac_objext \ |
| 12042 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12043 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12044 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
| 12046 | $as_echo "$ac_cv_lib_util_openpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12047 | if test "x$ac_cv_lib_util_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12048 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12049 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +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 -lbsd" >&5 |
| 12052 | $as_echo_n "checking for openpty in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12053 | if ${ac_cv_lib_bsd_openpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12054 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12055 | else |
| 12056 | ac_check_lib_save_LIBS=$LIBS |
| 12057 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12059 | /* end confdefs.h. */ |
| 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 | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12064 | #ifdef __cplusplus |
| 12065 | extern "C" |
| 12066 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12067 | char openpty (); |
| 12068 | int |
| 12069 | main () |
| 12070 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12071 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +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 | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12077 | ac_cv_lib_bsd_openpty=yes |
| 12078 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12079 | ac_cv_lib_bsd_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 | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12083 | LIBS=$ac_check_lib_save_LIBS |
| 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_bsd_openpty" >&5 |
| 12086 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12087 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12088 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12089 | LIBS="$LIBS -lbsd" |
| 12090 | fi |
| 12091 | |
| 12092 | |
| 12093 | fi |
| 12094 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12095 | |
| 12096 | fi |
| 12097 | done |
| 12098 | |
| 12099 | for ac_func in forkpty |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12100 | do : |
| 12101 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12102 | if test "x$ac_cv_func_forkpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12103 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12104 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12105 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12106 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12107 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
| 12109 | $as_echo_n "checking for forkpty in -lutil... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12110 | if ${ac_cv_lib_util_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12111 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12112 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12113 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12114 | LIBS="-lutil $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12116 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12117 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12118 | /* Override any GCC internal prototype to avoid an error. |
| 12119 | Use char because int might match the return type of a GCC |
| 12120 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12121 | #ifdef __cplusplus |
| 12122 | extern "C" |
| 12123 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12124 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12125 | int |
| 12126 | main () |
| 12127 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12128 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12129 | ; |
| 12130 | return 0; |
| 12131 | } |
| 12132 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12133 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12134 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12135 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12136 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12137 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12138 | rm -f core conftest.err conftest.$ac_objext \ |
| 12139 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12140 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12141 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
| 12143 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12144 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12145 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12146 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +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 -lbsd" >&5 |
| 12149 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12150 | if ${ac_cv_lib_bsd_forkpty+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12151 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12152 | else |
| 12153 | ac_check_lib_save_LIBS=$LIBS |
| 12154 | LIBS="-lbsd $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12156 | /* end confdefs.h. */ |
| 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 | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12161 | #ifdef __cplusplus |
| 12162 | extern "C" |
| 12163 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12164 | char forkpty (); |
| 12165 | int |
| 12166 | main () |
| 12167 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12168 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +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 | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12174 | ac_cv_lib_bsd_forkpty=yes |
| 12175 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12176 | ac_cv_lib_bsd_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 | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12180 | LIBS=$ac_check_lib_save_LIBS |
| 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_bsd_forkpty" >&5 |
| 12183 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12184 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12185 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12186 | LIBS="$LIBS -lbsd" |
| 12187 | fi |
| 12188 | |
| 12189 | |
| 12190 | fi |
| 12191 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12192 | |
| 12193 | fi |
| 12194 | done |
| 12195 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12196 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12197 | # Stuff for expat. |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12198 | for ac_func in memmove |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12199 | do : |
| 12200 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12201 | if test "x$ac_cv_func_memmove" = xyes; then : |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12202 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12203 | #define HAVE_MEMMOVE 1 |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 12204 | _ACEOF |
| 12205 | |
| 12206 | fi |
| 12207 | done |
| 12208 | |
| 12209 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12210 | # check for long file support functions |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12211 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12212 | do : |
| 12213 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12214 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12215 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12216 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12217 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12218 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12219 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12220 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12221 | done |
| 12222 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12223 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12224 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12225 | if test "x$ac_cv_func_dup2" = xyes; then : |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12226 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12227 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12228 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12229 | case " $LIBOBJS " in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12230 | *" dup2.$ac_objext "* ) ;; |
| 12231 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12232 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12233 | esac |
| 12234 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12235 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12236 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12237 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12238 | if test "x$ac_cv_func_strdup" = xyes; then : |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12239 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h |
| 12240 | |
| 12241 | else |
| 12242 | case " $LIBOBJS " in |
| 12243 | *" strdup.$ac_objext "* ) ;; |
| 12244 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" |
| 12245 | ;; |
| 12246 | esac |
| 12247 | |
| 12248 | fi |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12249 | |
| 12250 | |
| 12251 | for ac_func in getpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12252 | do : |
| 12253 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12254 | if test "x$ac_cv_func_getpgrp" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12255 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12256 | #define HAVE_GETPGRP 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12257 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12259 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12260 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12261 | int |
| 12262 | main () |
| 12263 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12264 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12265 | ; |
| 12266 | return 0; |
| 12267 | } |
| 12268 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12269 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12270 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12271 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12272 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12273 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12274 | 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] | 12275 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12276 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12277 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12278 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12279 | for ac_func in setpgrp |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12280 | do : |
| 12281 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12282 | if test "x$ac_cv_func_setpgrp" = xyes; then : |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12283 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12284 | #define HAVE_SETPGRP 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12285 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12287 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12288 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12289 | int |
| 12290 | main () |
| 12291 | { |
| 12292 | setpgrp(0,0); |
| 12293 | ; |
| 12294 | return 0; |
| 12295 | } |
| 12296 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12297 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12298 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12299 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12300 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12301 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12303 | |
| 12304 | fi |
| 12305 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12306 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12307 | for ac_func in gettimeofday |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12308 | do : |
| 12309 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12310 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12311 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12312 | #define HAVE_GETTIMEOFDAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12313 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12315 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12316 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12317 | int |
| 12318 | main () |
| 12319 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12320 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12321 | ; |
| 12322 | return 0; |
| 12323 | } |
| 12324 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12325 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12326 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12327 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12328 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12329 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12331 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12332 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12333 | 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] | 12334 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12335 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12336 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12337 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12338 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12339 | for ac_func in clock_gettime |
| 12340 | do : |
| 12341 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
| 12342 | if test "x$ac_cv_func_clock_gettime" = xyes; then : |
| 12343 | cat >>confdefs.h <<_ACEOF |
| 12344 | #define HAVE_CLOCK_GETTIME 1 |
| 12345 | _ACEOF |
| 12346 | |
| 12347 | else |
| 12348 | |
| 12349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
| 12350 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } |
| 12351 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
| 12352 | $as_echo_n "(cached) " >&6 |
| 12353 | else |
| 12354 | ac_check_lib_save_LIBS=$LIBS |
| 12355 | LIBS="-lrt $LIBS" |
| 12356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12357 | /* end confdefs.h. */ |
| 12358 | |
| 12359 | /* Override any GCC internal prototype to avoid an error. |
| 12360 | Use char because int might match the return type of a GCC |
| 12361 | builtin and then its argument prototype would still apply. */ |
| 12362 | #ifdef __cplusplus |
| 12363 | extern "C" |
| 12364 | #endif |
| 12365 | char clock_gettime (); |
| 12366 | int |
| 12367 | main () |
| 12368 | { |
| 12369 | return clock_gettime (); |
| 12370 | ; |
| 12371 | return 0; |
| 12372 | } |
| 12373 | _ACEOF |
| 12374 | if ac_fn_c_try_link "$LINENO"; then : |
| 12375 | ac_cv_lib_rt_clock_gettime=yes |
| 12376 | else |
| 12377 | ac_cv_lib_rt_clock_gettime=no |
| 12378 | fi |
| 12379 | rm -f core conftest.err conftest.$ac_objext \ |
| 12380 | conftest$ac_exeext conftest.$ac_ext |
| 12381 | LIBS=$ac_check_lib_save_LIBS |
| 12382 | fi |
| 12383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
| 12384 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } |
| 12385 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
| 12386 | |
Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 12387 | LIBS="$LIBS -lrt" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12388 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| 12389 | |
| 12390 | |
| 12391 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h |
| 12392 | |
| 12393 | |
| 12394 | fi |
| 12395 | |
| 12396 | |
| 12397 | fi |
| 12398 | done |
| 12399 | |
| 12400 | |
| 12401 | for ac_func in clock_getres |
| 12402 | do : |
| 12403 | ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" |
| 12404 | if test "x$ac_cv_func_clock_getres" = xyes; then : |
| 12405 | cat >>confdefs.h <<_ACEOF |
| 12406 | #define HAVE_CLOCK_GETRES 1 |
| 12407 | _ACEOF |
| 12408 | |
| 12409 | else |
| 12410 | |
| 12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 |
| 12412 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } |
| 12413 | if ${ac_cv_lib_rt_clock_getres+:} false; then : |
| 12414 | $as_echo_n "(cached) " >&6 |
| 12415 | else |
| 12416 | ac_check_lib_save_LIBS=$LIBS |
| 12417 | LIBS="-lrt $LIBS" |
| 12418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12419 | /* end confdefs.h. */ |
| 12420 | |
| 12421 | /* Override any GCC internal prototype to avoid an error. |
| 12422 | Use char because int might match the return type of a GCC |
| 12423 | builtin and then its argument prototype would still apply. */ |
| 12424 | #ifdef __cplusplus |
| 12425 | extern "C" |
| 12426 | #endif |
| 12427 | char clock_getres (); |
| 12428 | int |
| 12429 | main () |
| 12430 | { |
| 12431 | return clock_getres (); |
| 12432 | ; |
| 12433 | return 0; |
| 12434 | } |
| 12435 | _ACEOF |
| 12436 | if ac_fn_c_try_link "$LINENO"; then : |
| 12437 | ac_cv_lib_rt_clock_getres=yes |
| 12438 | else |
| 12439 | ac_cv_lib_rt_clock_getres=no |
| 12440 | fi |
| 12441 | rm -f core conftest.err conftest.$ac_objext \ |
| 12442 | conftest$ac_exeext conftest.$ac_ext |
| 12443 | LIBS=$ac_check_lib_save_LIBS |
| 12444 | fi |
| 12445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 |
| 12446 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } |
| 12447 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : |
| 12448 | |
| 12449 | $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h |
| 12450 | |
| 12451 | |
| 12452 | fi |
| 12453 | |
| 12454 | |
| 12455 | fi |
| 12456 | done |
| 12457 | |
| 12458 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
| 12460 | $as_echo_n "checking for major... " >&6; } |
| 12461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12462 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12463 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12464 | #if defined(MAJOR_IN_MKDEV) |
| 12465 | #include <sys/mkdev.h> |
| 12466 | #elif defined(MAJOR_IN_SYSMACROS) |
| 12467 | #include <sys/sysmacros.h> |
| 12468 | #else |
| 12469 | #include <sys/types.h> |
| 12470 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12471 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12472 | int |
| 12473 | main () |
| 12474 | { |
| 12475 | |
| 12476 | makedev(major(0),minor(0)); |
| 12477 | |
| 12478 | ; |
| 12479 | return 0; |
| 12480 | } |
| 12481 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12482 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12483 | |
| 12484 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12485 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12486 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12488 | $as_echo "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12489 | |
| 12490 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12491 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12493 | $as_echo "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12494 | |
| 12495 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12496 | rm -f core conftest.err conftest.$ac_objext \ |
| 12497 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12498 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12499 | # 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] | 12500 | # for [no]getaddrinfo in netdb.h. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
| 12502 | $as_echo_n "checking for getaddrinfo... " >&6; } |
| 12503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12504 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12505 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12506 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12507 | #include <sys/socket.h> |
| 12508 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12509 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12510 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12511 | int |
| 12512 | main () |
| 12513 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12514 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12515 | ; |
| 12516 | return 0; |
| 12517 | } |
| 12518 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12519 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12520 | have_getaddrinfo=yes |
| 12521 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12522 | have_getaddrinfo=no |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12523 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12524 | rm -f core conftest.err conftest.$ac_objext \ |
| 12525 | conftest$ac_exeext conftest.$ac_ext |
| 12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 |
| 12527 | $as_echo "$have_getaddrinfo" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12528 | if test $have_getaddrinfo = yes |
| 12529 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
| 12531 | $as_echo_n "checking getaddrinfo bug... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12532 | if ${ac_cv_buggy_getaddrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12533 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12534 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12535 | if test "$cross_compiling" = yes; then : |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12536 | |
| 12537 | if test "${enable_ipv6+set}" = set; then |
| 12538 | ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" |
| 12539 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12540 | ac_cv_buggy_getaddrinfo=yes |
Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12541 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12542 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12544 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12545 | |
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 12546 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12547 | #include <sys/types.h> |
| 12548 | #include <netdb.h> |
| 12549 | #include <string.h> |
| 12550 | #include <sys/socket.h> |
| 12551 | #include <netinet/in.h> |
| 12552 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12553 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12554 | { |
| 12555 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 12556 | struct addrinfo hints, *ai, *aitop; |
| 12557 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 12558 | |
| 12559 | for (passive = 0; passive <= 1; passive++) { |
| 12560 | memset(&hints, 0, sizeof(hints)); |
| 12561 | hints.ai_family = AF_UNSPEC; |
| 12562 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 12563 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 12564 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12565 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 12566 | (void)gai_strerror(gaierr); |
| 12567 | goto bad; |
| 12568 | } |
| 12569 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 12570 | if (ai->ai_addr == NULL || |
| 12571 | ai->ai_addrlen == 0 || |
| 12572 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 12573 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 12574 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 12575 | goto bad; |
| 12576 | } |
| 12577 | switch (ai->ai_family) { |
| 12578 | case AF_INET: |
| 12579 | if (strcmp(strport, "54321") != 0) { |
| 12580 | goto bad; |
| 12581 | } |
| 12582 | if (passive) { |
| 12583 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 12584 | goto bad; |
| 12585 | } |
| 12586 | } else { |
| 12587 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 12588 | goto bad; |
| 12589 | } |
| 12590 | } |
| 12591 | inet4++; |
| 12592 | break; |
| 12593 | case AF_INET6: |
| 12594 | if (strcmp(strport, "54321") != 0) { |
| 12595 | goto bad; |
| 12596 | } |
| 12597 | if (passive) { |
| 12598 | if (strcmp(straddr, "::") != 0) { |
| 12599 | goto bad; |
| 12600 | } |
| 12601 | } else { |
| 12602 | if (strcmp(straddr, "::1") != 0) { |
| 12603 | goto bad; |
| 12604 | } |
| 12605 | } |
| 12606 | inet6++; |
| 12607 | break; |
| 12608 | case AF_UNSPEC: |
| 12609 | goto bad; |
| 12610 | break; |
| 12611 | default: |
| 12612 | /* another family support? */ |
| 12613 | break; |
| 12614 | } |
| 12615 | } |
| 12616 | } |
| 12617 | |
| 12618 | if (!(inet4 == 0 || inet4 == 2)) |
| 12619 | goto bad; |
| 12620 | if (!(inet6 == 0 || inet6 == 2)) |
| 12621 | goto bad; |
| 12622 | |
| 12623 | if (aitop) |
| 12624 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12625 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12626 | |
| 12627 | bad: |
| 12628 | if (aitop) |
| 12629 | freeaddrinfo(aitop); |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12630 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12631 | } |
| 12632 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12633 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12634 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12635 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12636 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12637 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12638 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12639 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12640 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12641 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12642 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12643 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12644 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12645 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12646 | |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
| 12648 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } |
| 12649 | |
doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12650 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12651 | then |
| 12652 | if test $ipv6 = yes |
| 12653 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12654 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 12655 | echo ' or you can specify "--disable-ipv6"'. |
| 12656 | exit 1 |
| 12657 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12658 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12659 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12660 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12661 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12662 | fi |
Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12663 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12664 | for ac_func in getnameinfo |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12665 | do : |
| 12666 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12667 | if test "x$ac_cv_func_getnameinfo" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12668 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12669 | #define HAVE_GETNAMEINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12670 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12671 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12672 | fi |
| 12673 | done |
| 12674 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12675 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12676 | # checks for structures |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 12678 | $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] | 12679 | if ${ac_cv_header_time+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12680 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12681 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12683 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12684 | #include <sys/types.h> |
| 12685 | #include <sys/time.h> |
| 12686 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12688 | int |
| 12689 | main () |
| 12690 | { |
| 12691 | if ((struct tm *) 0) |
| 12692 | return 0; |
| 12693 | ; |
| 12694 | return 0; |
| 12695 | } |
| 12696 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12697 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12698 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12699 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12700 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12701 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12703 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 12705 | $as_echo "$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12706 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12707 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12708 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12709 | |
| 12710 | fi |
| 12711 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 12713 | $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] | 12714 | if ${ac_cv_struct_tm+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12715 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12716 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12718 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12719 | #include <sys/types.h> |
| 12720 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12722 | int |
| 12723 | main () |
| 12724 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12725 | struct tm tm; |
| 12726 | int *p = &tm.tm_sec; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12727 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12728 | ; |
| 12729 | return 0; |
| 12730 | } |
| 12731 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12732 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12733 | ac_cv_struct_tm=time.h |
| 12734 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12735 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12736 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12738 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 12740 | $as_echo "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12741 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12742 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12743 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12744 | |
| 12745 | fi |
| 12746 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12747 | 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] | 12748 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12749 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12750 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12751 | 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] | 12752 | |
| 12753 | cat >>confdefs.h <<_ACEOF |
| 12754 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 12755 | _ACEOF |
| 12756 | |
| 12757 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12758 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12759 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12760 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 12761 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12762 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12763 | |
| 12764 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12765 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 12766 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12767 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12768 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12769 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12770 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12771 | fi |
| 12772 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12773 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12774 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12775 | _ACEOF |
| 12776 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 12778 | $as_echo_n "checking for tzname... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12779 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12780 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12781 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12783 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12784 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12785 | #if !HAVE_DECL_TZNAME |
| 12786 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12787 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12788 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12789 | int |
| 12790 | main () |
| 12791 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12792 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12793 | ; |
| 12794 | return 0; |
| 12795 | } |
| 12796 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12797 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12798 | ac_cv_var_tzname=yes |
| 12799 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12800 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12801 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12802 | rm -f core conftest.err conftest.$ac_objext \ |
| 12803 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12804 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 12806 | $as_echo "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12807 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12808 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12809 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12810 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12811 | fi |
| 12812 | fi |
| 12813 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12814 | 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] | 12815 | 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] | 12816 | |
| 12817 | cat >>confdefs.h <<_ACEOF |
| 12818 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 12819 | _ACEOF |
| 12820 | |
| 12821 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12822 | fi |
| 12823 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12824 | 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] | 12825 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12827 | cat >>confdefs.h <<_ACEOF |
| 12828 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 12829 | _ACEOF |
| 12830 | |
| 12831 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12832 | fi |
| 12833 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12834 | 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] | 12835 | 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] | 12836 | |
| 12837 | cat >>confdefs.h <<_ACEOF |
| 12838 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 12839 | _ACEOF |
| 12840 | |
| 12841 | |
| 12842 | fi |
| 12843 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12844 | 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] | 12845 | 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] | 12846 | |
| 12847 | cat >>confdefs.h <<_ACEOF |
| 12848 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 12849 | _ACEOF |
| 12850 | |
| 12851 | |
| 12852 | fi |
| 12853 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12854 | 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] | 12855 | 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] | 12856 | |
| 12857 | cat >>confdefs.h <<_ACEOF |
| 12858 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 12859 | _ACEOF |
| 12860 | |
| 12861 | |
| 12862 | fi |
| 12863 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12864 | 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] | 12865 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12867 | cat >>confdefs.h <<_ACEOF |
| 12868 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 12869 | _ACEOF |
| 12870 | |
| 12871 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12872 | fi |
| 12873 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12874 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
| 12876 | $as_echo_n "checking for time.h that defines altzone... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12877 | if ${ac_cv_header_time_altzone+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12878 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12879 | else |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12880 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12882 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12883 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12884 | int |
| 12885 | main () |
| 12886 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12887 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12888 | ; |
| 12889 | return 0; |
| 12890 | } |
| 12891 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12892 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12893 | ac_cv_header_time_altzone=yes |
| 12894 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12895 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12896 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12898 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12899 | fi |
| 12900 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
| 12902 | $as_echo "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12903 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12904 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12905 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12906 | |
| 12907 | fi |
| 12908 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12909 | was_it_defined=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 12911 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
| 12912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12913 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12914 | |
| 12915 | #include <sys/types.h> |
| 12916 | #include <sys/select.h> |
| 12917 | #include <sys/time.h> |
| 12918 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12919 | int |
| 12920 | main () |
| 12921 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12922 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12923 | ; |
| 12924 | return 0; |
| 12925 | } |
| 12926 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12927 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12928 | |
| 12929 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12930 | $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] | 12931 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12932 | was_it_defined=yes |
| 12933 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12934 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 12937 | $as_echo "$was_it_defined" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12938 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
| 12940 | $as_echo_n "checking for addrinfo... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12941 | if ${ac_cv_struct_addrinfo+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12942 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12943 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12945 | /* end confdefs.h. */ |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12946 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12947 | int |
| 12948 | main () |
| 12949 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12950 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12951 | ; |
| 12952 | return 0; |
| 12953 | } |
| 12954 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12955 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12956 | ac_cv_struct_addrinfo=yes |
| 12957 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12958 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12959 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12961 | fi |
| 12962 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
| 12964 | $as_echo "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12965 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12966 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12967 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12968 | |
| 12969 | fi |
| 12970 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
| 12972 | $as_echo_n "checking for sockaddr_storage... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12973 | if ${ac_cv_struct_sockaddr_storage+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12974 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12975 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12977 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12978 | |
| 12979 | # include <sys/types.h> |
| 12980 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12981 | int |
| 12982 | main () |
| 12983 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12984 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12985 | ; |
| 12986 | return 0; |
| 12987 | } |
| 12988 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12989 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12990 | ac_cv_struct_sockaddr_storage=yes |
| 12991 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12992 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12993 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12995 | fi |
| 12996 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 12998 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12999 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13000 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13001 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13002 | |
| 13003 | fi |
| 13004 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13005 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13006 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| 13008 | $as_echo_n "checking whether char is unsigned... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13009 | if ${ac_cv_c_char_unsigned+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13010 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13011 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13013 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13014 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13015 | int |
| 13016 | main () |
| 13017 | { |
| 13018 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13019 | test_array [0] = 0; |
| 13020 | return test_array [0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13021 | |
| 13022 | ; |
| 13023 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13024 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13025 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13026 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13027 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13028 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13029 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13030 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13032 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| 13034 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13035 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13036 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13037 | |
| 13038 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13039 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 13041 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13042 | if ${ac_cv_c_const+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13043 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13044 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13046 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13048 | int |
| 13049 | main () |
| 13050 | { |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13051 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13052 | #ifndef __cplusplus |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13053 | /* Ultrix mips cc rejects this sort of thing. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13054 | typedef int charset[2]; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13055 | const charset cs = { 0, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13056 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13057 | char const *const *pcpcc; |
| 13058 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13059 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13060 | struct point {int x, y;}; |
| 13061 | static struct point const zero = {0,0}; |
| 13062 | /* AIX XL C 1.02.0.0 rejects this. |
| 13063 | It does not let you subtract one const X* pointer from another in |
| 13064 | an arm of an if-expression whose if-part is not a constant |
| 13065 | expression */ |
| 13066 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13067 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13068 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13069 | ++pcpcc; |
| 13070 | ppc = (char**) pcpcc; |
| 13071 | pcpcc = (char const *const *) ppc; |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13072 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 13073 | char tx; |
| 13074 | char *t = &tx; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13075 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13077 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13078 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13079 | } |
| 13080 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13081 | int x[] = {25, 17}; |
| 13082 | const int *foo = &x[0]; |
| 13083 | ++foo; |
| 13084 | } |
| 13085 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13086 | typedef const int *iptr; |
| 13087 | iptr p = 0; |
| 13088 | ++p; |
| 13089 | } |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13090 | { /* 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] | 13091 | "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] | 13092 | struct s { int j; const int *ap[3]; } bx; |
| 13093 | struct s *b = &bx; b->j = 5; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13094 | } |
| 13095 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13096 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13097 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13098 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13099 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13100 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13102 | ; |
| 13103 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13104 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13106 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13107 | ac_cv_c_const=yes |
| 13108 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13109 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13110 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13112 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 13114 | $as_echo "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13115 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13116 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13117 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13118 | |
| 13119 | fi |
| 13120 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13121 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13122 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| 13124 | $as_echo_n "checking for working volatile... " >&6; } |
| 13125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13126 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13128 | int |
| 13129 | main () |
| 13130 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13131 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13132 | ; |
| 13133 | return 0; |
| 13134 | } |
| 13135 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13136 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13137 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13138 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13139 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13140 | $as_echo "#define volatile /**/" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13141 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13142 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13143 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 13146 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13147 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13148 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
| 13150 | $as_echo_n "checking for working signed char... " >&6; } |
| 13151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13152 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13154 | int |
| 13155 | main () |
| 13156 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13157 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13158 | ; |
| 13159 | return 0; |
| 13160 | } |
| 13161 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13162 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13163 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13164 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13165 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13166 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13167 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13168 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13169 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 13172 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13173 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13174 | have_prototypes=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
| 13176 | $as_echo_n "checking for prototypes... " >&6; } |
| 13177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13178 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13179 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13180 | int |
| 13181 | main () |
| 13182 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13183 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13184 | ; |
| 13185 | return 0; |
| 13186 | } |
| 13187 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13188 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13189 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13190 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13191 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13192 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13193 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
| 13196 | $as_echo "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13197 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13198 | works=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
| 13200 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } |
| 13201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13202 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13203 | |
| 13204 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13205 | int foo(int x, ...) { |
| 13206 | va_list va; |
| 13207 | va_start(va, x); |
| 13208 | va_arg(va, int); |
| 13209 | va_arg(va, char *); |
| 13210 | va_arg(va, double); |
| 13211 | return 0; |
| 13212 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13213 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13214 | int |
| 13215 | main () |
| 13216 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13217 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13218 | ; |
| 13219 | return 0; |
| 13220 | } |
| 13221 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13222 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13223 | |
| 13224 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13225 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13226 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13227 | works=yes |
| 13228 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13229 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 13232 | $as_echo "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13233 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13234 | # check for socketpair |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
| 13236 | $as_echo_n "checking for socketpair... " >&6; } |
| 13237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13238 | /* end confdefs.h. */ |
| 13239 | |
| 13240 | #include <sys/types.h> |
| 13241 | #include <sys/socket.h> |
| 13242 | |
| 13243 | int |
| 13244 | main () |
| 13245 | { |
| 13246 | void *x=socketpair |
| 13247 | ; |
| 13248 | return 0; |
| 13249 | } |
| 13250 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13251 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13252 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13253 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13254 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13256 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13257 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13259 | $as_echo "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13260 | |
| 13261 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13262 | 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] | 13263 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13264 | # check if sockaddr has sa_len member |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
| 13266 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } |
| 13267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13268 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13269 | #include <sys/types.h> |
| 13270 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13271 | int |
| 13272 | main () |
| 13273 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13274 | struct sockaddr x; |
| 13275 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13276 | ; |
| 13277 | return 0; |
| 13278 | } |
| 13279 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13280 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13282 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13283 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13284 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13285 | |
| 13286 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13288 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13289 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13290 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13291 | 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] | 13292 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13293 | va_list_is_array=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 |
| 13295 | $as_echo_n "checking whether va_list is an array... " >&6; } |
| 13296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13297 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13298 | |
| 13299 | #ifdef HAVE_STDARG_PROTOTYPES |
| 13300 | #include <stdarg.h> |
| 13301 | #else |
| 13302 | #include <varargs.h> |
| 13303 | #endif |
| 13304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13305 | int |
| 13306 | main () |
| 13307 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13308 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13309 | ; |
| 13310 | return 0; |
| 13311 | } |
| 13312 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13313 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13314 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13315 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13317 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13318 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13319 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13320 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13321 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13322 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 |
| 13325 | $as_echo "$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13326 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13327 | # 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] | 13328 | |
| 13329 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13330 | 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] | 13331 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13332 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13333 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13334 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
| 13336 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13337 | OLD_CFLAGS=$CFLAGS |
| 13338 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13340 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13341 | |
| 13342 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13344 | int |
| 13345 | main () |
| 13346 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13347 | |
| 13348 | char *name; |
| 13349 | struct hostent *he, *res; |
| 13350 | char buffer[2048]; |
| 13351 | int buflen = 2048; |
| 13352 | int h_errnop; |
| 13353 | |
| 13354 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13355 | |
| 13356 | ; |
| 13357 | return 0; |
| 13358 | } |
| 13359 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13360 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13361 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13362 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13364 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13365 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13366 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13368 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13369 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13370 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13371 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13373 | $as_echo "no" >&6; } |
| 13374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 |
| 13375 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } |
| 13376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13377 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13378 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13379 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13381 | int |
| 13382 | main () |
| 13383 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13384 | |
| 13385 | char *name; |
| 13386 | struct hostent *he; |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13387 | char buffer[2048]; |
| 13388 | int buflen = 2048; |
| 13389 | int h_errnop; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13390 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13391 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13392 | |
| 13393 | ; |
| 13394 | return 0; |
| 13395 | } |
| 13396 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13397 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13398 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13399 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13400 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13401 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13402 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13403 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13405 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13406 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13407 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13408 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13410 | $as_echo "no" >&6; } |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
| 13412 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } |
| 13413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13414 | /* end confdefs.h. */ |
| 13415 | |
| 13416 | # include <netdb.h> |
| 13417 | |
| 13418 | int |
| 13419 | main () |
| 13420 | { |
| 13421 | |
| 13422 | char *name; |
| 13423 | struct hostent *he; |
| 13424 | struct hostent_data data; |
| 13425 | |
| 13426 | (void) gethostbyname_r(name, he, &data); |
| 13427 | |
| 13428 | ; |
| 13429 | return 0; |
| 13430 | } |
| 13431 | _ACEOF |
| 13432 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13433 | |
| 13434 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
| 13435 | |
| 13436 | |
| 13437 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h |
| 13438 | |
| 13439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13440 | $as_echo "yes" >&6; } |
| 13441 | |
| 13442 | else |
| 13443 | |
| 13444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13445 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13446 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13447 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13449 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13450 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13451 | 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] | 13452 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13453 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13455 | CFLAGS=$OLD_CFLAGS |
| 13456 | |
| 13457 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13458 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13459 | for ac_func in gethostbyname |
| 13460 | do : |
| 13461 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13462 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13463 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13464 | #define HAVE_GETHOSTBYNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13465 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13466 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13467 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13468 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13469 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13470 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13471 | fi |
| 13472 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13473 | |
| 13474 | |
| 13475 | |
| 13476 | |
| 13477 | |
| 13478 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13479 | # checks for system services |
| 13480 | # (none yet) |
| 13481 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13482 | # Linux requires this for correct f.p. operations |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13483 | 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] | 13484 | if test "x$ac_cv_func___fpu_control" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13485 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13486 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
| 13488 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13489 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13490 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13492 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13493 | LIBS="-lieee $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13495 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13496 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13497 | /* Override any GCC internal prototype to avoid an error. |
| 13498 | Use char because int might match the return type of a GCC |
| 13499 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13500 | #ifdef __cplusplus |
| 13501 | extern "C" |
| 13502 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13503 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13504 | int |
| 13505 | main () |
| 13506 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13507 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13508 | ; |
| 13509 | return 0; |
| 13510 | } |
| 13511 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13512 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13513 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13514 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13515 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13516 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13517 | rm -f core conftest.err conftest.$ac_objext \ |
| 13518 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13519 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13520 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 13522 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13523 | 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] | 13524 | cat >>confdefs.h <<_ACEOF |
| 13525 | #define HAVE_LIBIEEE 1 |
| 13526 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13527 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13528 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13529 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13530 | fi |
| 13531 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13532 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13533 | fi |
| 13534 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13535 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13536 | # Check for --with-fpectl |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 |
| 13538 | $as_echo_n "checking for --with-fpectl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13539 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13540 | # Check whether --with-fpectl was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13541 | if test "${with_fpectl+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13542 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13543 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13544 | then |
| 13545 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13546 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13547 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13549 | $as_echo "yes" >&6; } |
| 13550 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13551 | $as_echo "no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13552 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13553 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13555 | $as_echo "no" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13556 | fi |
| 13557 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13558 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13559 | # check for --with-libm=... |
| 13560 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13561 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 13562 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13563 | *) LIBM=-lm |
| 13564 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
| 13566 | $as_echo_n "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13567 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13568 | # Check whether --with-libm was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13569 | if test "${with_libm+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13570 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13571 | if test "$withval" = no |
| 13572 | then LIBM= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
| 13574 | $as_echo "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13575 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13576 | then LIBM=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
| 13578 | $as_echo "set LIBM=\"$withval\"" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13579 | 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] | 13580 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13581 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
| 13583 | $as_echo "default LIBM=\"$LIBM\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13584 | fi |
| 13585 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13586 | |
| 13587 | # check for --with-libc=... |
| 13588 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
| 13590 | $as_echo_n "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13591 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13592 | # Check whether --with-libc was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13593 | if test "${with_libc+set}" = set; then : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13594 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13595 | if test "$withval" = no |
| 13596 | then LIBC= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
| 13598 | $as_echo "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13599 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13600 | then LIBC=$withval |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
| 13602 | $as_echo "set LIBC=\"$withval\"" >&6; } |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13603 | 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] | 13604 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13605 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
| 13607 | $as_echo "default LIBC=\"$LIBC\"" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13608 | fi |
| 13609 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13610 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13611 | # ************************************** |
| 13612 | # * Check for gcc x64 inline assembler * |
| 13613 | # ************************************** |
| 13614 | |
| 13615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 |
| 13616 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } |
| 13617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13618 | /* end confdefs.h. */ |
| 13619 | |
| 13620 | int |
| 13621 | main () |
| 13622 | { |
| 13623 | |
| 13624 | __asm__ __volatile__ ("movq %rcx, %rax"); |
| 13625 | |
| 13626 | ; |
| 13627 | return 0; |
| 13628 | } |
| 13629 | _ACEOF |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13630 | if ac_fn_c_try_link "$LINENO"; then : |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13631 | have_gcc_asm_for_x64=yes |
| 13632 | else |
| 13633 | have_gcc_asm_for_x64=no |
| 13634 | fi |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13635 | rm -f core conftest.err conftest.$ac_objext \ |
| 13636 | conftest$ac_exeext conftest.$ac_ext |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 |
| 13638 | $as_echo "$have_gcc_asm_for_x64" >&6; } |
| 13639 | if test "$have_gcc_asm_for_x64" = yes |
| 13640 | then |
| 13641 | |
| 13642 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h |
| 13643 | |
| 13644 | fi |
| 13645 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13646 | # ************************************************** |
| 13647 | # * Check for various properties of floating point * |
| 13648 | # ************************************************** |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13649 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 13651 | $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] | 13652 | if ${ac_cv_little_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13653 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13654 | else |
| 13655 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13656 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13657 | ac_cv_little_endian_double=no |
| 13658 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13660 | /* end confdefs.h. */ |
| 13661 | |
| 13662 | #include <string.h> |
| 13663 | int main() { |
| 13664 | double x = 9006104071832581.0; |
| 13665 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 13666 | return 0; |
| 13667 | else |
| 13668 | return 1; |
| 13669 | } |
| 13670 | |
| 13671 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13672 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13673 | ac_cv_little_endian_double=yes |
| 13674 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13675 | ac_cv_little_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13676 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13677 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13678 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13679 | fi |
| 13680 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13681 | fi |
| 13682 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 |
| 13684 | $as_echo "$ac_cv_little_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13685 | if test "$ac_cv_little_endian_double" = yes |
| 13686 | then |
| 13687 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13688 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13689 | |
| 13690 | fi |
| 13691 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 13693 | $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] | 13694 | if ${ac_cv_big_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13695 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13696 | else |
| 13697 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13698 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13699 | ac_cv_big_endian_double=no |
| 13700 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13702 | /* end confdefs.h. */ |
| 13703 | |
| 13704 | #include <string.h> |
| 13705 | int main() { |
| 13706 | double x = 9006104071832581.0; |
| 13707 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 13708 | return 0; |
| 13709 | else |
| 13710 | return 1; |
| 13711 | } |
| 13712 | |
| 13713 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13714 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13715 | ac_cv_big_endian_double=yes |
| 13716 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13717 | ac_cv_big_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13718 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13719 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13720 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13721 | fi |
| 13722 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13723 | fi |
| 13724 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 |
| 13726 | $as_echo "$ac_cv_big_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13727 | if test "$ac_cv_big_endian_double" = yes |
| 13728 | then |
| 13729 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13730 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13731 | |
| 13732 | fi |
| 13733 | |
| 13734 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 13735 | # While Python doesn't currently have full support for these platforms |
| 13736 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 13737 | # conversions work. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 13739 | $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] | 13740 | if ${ac_cv_mixed_endian_double+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13741 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13742 | else |
| 13743 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13744 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13745 | ac_cv_mixed_endian_double=no |
| 13746 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13748 | /* end confdefs.h. */ |
| 13749 | |
| 13750 | #include <string.h> |
| 13751 | int main() { |
| 13752 | double x = 9006104071832581.0; |
| 13753 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 13754 | return 0; |
| 13755 | else |
| 13756 | return 1; |
| 13757 | } |
| 13758 | |
| 13759 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13760 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13761 | ac_cv_mixed_endian_double=yes |
| 13762 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13763 | ac_cv_mixed_endian_double=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13764 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13765 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13766 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13767 | fi |
| 13768 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13769 | fi |
| 13770 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 |
| 13772 | $as_echo "$ac_cv_mixed_endian_double" >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13773 | if test "$ac_cv_mixed_endian_double" = yes |
| 13774 | then |
| 13775 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13776 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13777 | |
| 13778 | fi |
| 13779 | |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13780 | # The short float repr introduced in Python 3.1 requires the |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13781 | # correctly-rounded string <-> double conversion functions from |
Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13782 | # 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] | 13783 | # 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] | 13784 | # 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] | 13785 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13786 | |
| 13787 | # This inline assembler syntax may also work for suncc and icc, |
| 13788 | # so we try it on all platforms. |
| 13789 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
| 13791 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } |
| 13792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13793 | /* end confdefs.h. */ |
| 13794 | |
| 13795 | int |
| 13796 | main () |
| 13797 | { |
| 13798 | |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13799 | unsigned short cw; |
| 13800 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 13801 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13802 | |
| 13803 | ; |
| 13804 | return 0; |
| 13805 | } |
| 13806 | _ACEOF |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13807 | if ac_fn_c_try_link "$LINENO"; then : |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13808 | have_gcc_asm_for_x87=yes |
| 13809 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13810 | have_gcc_asm_for_x87=no |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13811 | fi |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13812 | rm -f core conftest.err conftest.$ac_objext \ |
| 13813 | conftest$ac_exeext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
| 13815 | $as_echo "$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13816 | if test "$have_gcc_asm_for_x87" = yes |
| 13817 | then |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13818 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13819 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13820 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13821 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13822 | |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 |
| 13824 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } |
| 13825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13826 | /* end confdefs.h. */ |
| 13827 | |
| 13828 | int |
| 13829 | main () |
| 13830 | { |
| 13831 | |
| 13832 | unsigned int fpcr; |
| 13833 | __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); |
| 13834 | __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); |
| 13835 | |
| 13836 | ; |
| 13837 | return 0; |
| 13838 | } |
| 13839 | _ACEOF |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13840 | if ac_fn_c_try_link "$LINENO"; then : |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13841 | have_gcc_asm_for_mc68881=yes |
| 13842 | else |
| 13843 | have_gcc_asm_for_mc68881=no |
| 13844 | fi |
Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13845 | rm -f core conftest.err conftest.$ac_objext \ |
| 13846 | conftest$ac_exeext conftest.$ac_ext |
Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 13847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 |
| 13848 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } |
| 13849 | if test "$have_gcc_asm_for_mc68881" = yes |
| 13850 | then |
| 13851 | |
| 13852 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h |
| 13853 | |
| 13854 | fi |
| 13855 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13856 | # Detect whether system arithmetic is subject to x87-style double |
| 13857 | # rounding issues. The result of this test has little meaning on non |
| 13858 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 13859 | # mode is round-to-nearest and double rounding issues are present, and |
| 13860 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
| 13862 | $as_echo_n "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13863 | # $BASECFLAGS may affect the result |
| 13864 | ac_save_cc="$CC" |
| 13865 | CC="$CC $BASECFLAGS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13866 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13867 | ac_cv_x87_double_rounding=no |
| 13868 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13870 | /* end confdefs.h. */ |
| 13871 | |
| 13872 | #include <stdlib.h> |
| 13873 | #include <math.h> |
| 13874 | int main() { |
| 13875 | volatile double x, y, z; |
| 13876 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 13877 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 13878 | y = 1./x; |
| 13879 | if (y != 1.) |
| 13880 | exit(0); |
| 13881 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 13882 | x = 1e16; |
| 13883 | y = 2.99999; |
| 13884 | z = x + y; |
| 13885 | if (z != 1e16+4.) |
| 13886 | exit(0); |
| 13887 | /* both tests show evidence of double rounding */ |
| 13888 | exit(1); |
| 13889 | } |
| 13890 | |
| 13891 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13892 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13893 | ac_cv_x87_double_rounding=no |
| 13894 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13895 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13896 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13897 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13898 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13899 | fi |
| 13900 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13901 | CC="$ac_save_cc" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
| 13903 | $as_echo "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13904 | if test "$ac_cv_x87_double_rounding" = yes |
| 13905 | then |
| 13906 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13907 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 13908 | |
| 13909 | fi |
| 13910 | |
Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13911 | # ************************************ |
| 13912 | # * Check for mathematical functions * |
| 13913 | # ************************************ |
| 13914 | |
| 13915 | LIBS_SAVE=$LIBS |
| 13916 | LIBS="$LIBS $LIBM" |
| 13917 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13918 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 13919 | do : |
| 13920 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13921 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13922 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13923 | cat >>confdefs.h <<_ACEOF |
| 13924 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13925 | _ACEOF |
| 13926 | |
| 13927 | fi |
| 13928 | done |
| 13929 | |
Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 13930 | for ac_func in hypot lgamma log1p log2 round tgamma |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13931 | do : |
| 13932 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13933 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13934 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13935 | cat >>confdefs.h <<_ACEOF |
| 13936 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13937 | _ACEOF |
| 13938 | |
| 13939 | fi |
| 13940 | done |
| 13941 | |
| 13942 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> |
| 13943 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13944 | if test "x$ac_cv_have_decl_isinf" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13945 | ac_have_decl=1 |
| 13946 | else |
| 13947 | ac_have_decl=0 |
| 13948 | fi |
| 13949 | |
| 13950 | cat >>confdefs.h <<_ACEOF |
| 13951 | #define HAVE_DECL_ISINF $ac_have_decl |
| 13952 | _ACEOF |
| 13953 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> |
| 13954 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13955 | if test "x$ac_cv_have_decl_isnan" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13956 | ac_have_decl=1 |
| 13957 | else |
| 13958 | ac_have_decl=0 |
| 13959 | fi |
| 13960 | |
| 13961 | cat >>confdefs.h <<_ACEOF |
| 13962 | #define HAVE_DECL_ISNAN $ac_have_decl |
| 13963 | _ACEOF |
| 13964 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> |
| 13965 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13966 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 13967 | ac_have_decl=1 |
| 13968 | else |
| 13969 | ac_have_decl=0 |
| 13970 | fi |
| 13971 | |
| 13972 | cat >>confdefs.h <<_ACEOF |
| 13973 | #define HAVE_DECL_ISFINITE $ac_have_decl |
| 13974 | _ACEOF |
| 13975 | |
| 13976 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13977 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 13978 | # -0. on some architectures. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 |
| 13980 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13981 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13982 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13983 | else |
| 13984 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13985 | if test "$cross_compiling" = yes; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13986 | ac_cv_tanh_preserves_zero_sign=no |
| 13987 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13989 | /* end confdefs.h. */ |
| 13990 | |
| 13991 | #include <math.h> |
| 13992 | #include <stdlib.h> |
| 13993 | int main() { |
| 13994 | /* return 0 if either negative zeros don't exist |
| 13995 | on this platform or if negative zeros exist |
| 13996 | and tanh(-0.) == -0. */ |
| 13997 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 13998 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 13999 | else exit(1); |
| 14000 | } |
| 14001 | |
| 14002 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14003 | if ac_fn_c_try_run "$LINENO"; then : |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14004 | ac_cv_tanh_preserves_zero_sign=yes |
| 14005 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14006 | ac_cv_tanh_preserves_zero_sign=no |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14007 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14008 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14009 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14010 | fi |
| 14011 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14012 | fi |
| 14013 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 14015 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14016 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 14017 | then |
| 14018 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14019 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14020 | |
| 14021 | fi |
| 14022 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14023 | if test "$ac_cv_func_log1p" = yes |
| 14024 | then |
| 14025 | # On some versions of AIX, log1p(-0.) returns 0. instead of |
| 14026 | # -0. See issue #9920. |
| 14027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 |
| 14028 | $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] | 14029 | if ${ac_cv_log1p_drops_zero_sign+:} false; then : |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14030 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14031 | else |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14032 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14033 | if test "$cross_compiling" = yes; then : |
| 14034 | ac_cv_log1p_drops_zero_sign=no |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14035 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14037 | /* end confdefs.h. */ |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14038 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14039 | #include <math.h> |
| 14040 | #include <stdlib.h> |
| 14041 | int main() { |
| 14042 | /* Fail if the signs of log1p(-0.) and -0. can be |
| 14043 | distinguished. */ |
| 14044 | if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) |
| 14045 | return 0; |
| 14046 | else |
| 14047 | return 1; |
| 14048 | } |
| 14049 | |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14050 | _ACEOF |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14051 | if ac_fn_c_try_run "$LINENO"; then : |
| 14052 | ac_cv_log1p_drops_zero_sign=no |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14053 | else |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14054 | ac_cv_log1p_drops_zero_sign=yes |
| 14055 | fi |
| 14056 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14057 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14058 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14059 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14060 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14061 | |
Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 |
| 14063 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } |
| 14064 | fi |
| 14065 | if test "$ac_cv_log1p_drops_zero_sign" = yes |
| 14066 | then |
| 14067 | |
| 14068 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h |
| 14069 | |
| 14070 | fi |
Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14071 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14072 | LIBS=$LIBS_SAVE |
| 14073 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14074 | # For multiprocessing module, check that sem_open |
| 14075 | # actually works. For FreeBSD versions <= 7.2, |
| 14076 | # the kernel module that provides POSIX semaphores |
| 14077 | # isn't loaded by default, so an attempt to call |
| 14078 | # sem_open results in a 'Signal 12' error. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
| 14080 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14081 | if ${ac_cv_posix_semaphores_enabled+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14082 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14083 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14084 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14085 | ac_cv_posix_semaphores_enabled=yes |
| 14086 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14088 | /* end confdefs.h. */ |
| 14089 | |
| 14090 | #include <unistd.h> |
| 14091 | #include <fcntl.h> |
| 14092 | #include <stdio.h> |
| 14093 | #include <semaphore.h> |
| 14094 | #include <sys/stat.h> |
| 14095 | |
| 14096 | int main(void) { |
| 14097 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 14098 | if (a == SEM_FAILED) { |
| 14099 | perror("sem_open"); |
| 14100 | return 1; |
| 14101 | } |
| 14102 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14103 | sem_unlink("/autoconf"); |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14104 | return 0; |
| 14105 | } |
| 14106 | |
| 14107 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14108 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14109 | ac_cv_posix_semaphores_enabled=yes |
| 14110 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14111 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14112 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14113 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14114 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14115 | fi |
| 14116 | |
| 14117 | |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14118 | fi |
| 14119 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 14121 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14122 | if test $ac_cv_posix_semaphores_enabled = no |
| 14123 | then |
| 14124 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14125 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14126 | |
| 14127 | fi |
| 14128 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14129 | # Multiprocessing check for broken sem_getvalue |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
| 14131 | $as_echo_n "checking for broken sem_getvalue... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14132 | if ${ac_cv_broken_sem_getvalue+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14133 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14134 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14135 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14136 | ac_cv_broken_sem_getvalue=yes |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14137 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14139 | /* end confdefs.h. */ |
| 14140 | |
| 14141 | #include <unistd.h> |
| 14142 | #include <fcntl.h> |
| 14143 | #include <stdio.h> |
| 14144 | #include <semaphore.h> |
| 14145 | #include <sys/stat.h> |
| 14146 | |
| 14147 | int main(void){ |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14148 | 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] | 14149 | int count; |
| 14150 | int res; |
| 14151 | if(a==SEM_FAILED){ |
| 14152 | perror("sem_open"); |
| 14153 | return 1; |
| 14154 | |
| 14155 | } |
| 14156 | res = sem_getvalue(a, &count); |
| 14157 | sem_close(a); |
Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14158 | sem_unlink("/autocftw"); |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14159 | return res==-1 ? 1 : 0; |
| 14160 | } |
| 14161 | |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14162 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14163 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14164 | ac_cv_broken_sem_getvalue=no |
Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14165 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14166 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14167 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14168 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14169 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14170 | fi |
| 14171 | |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14172 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14173 | fi |
| 14174 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
| 14176 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14177 | if test $ac_cv_broken_sem_getvalue = yes |
| 14178 | then |
| 14179 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14180 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14181 | |
| 14182 | fi |
| 14183 | |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14184 | # determine what size digit to use for Python's longs |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
| 14186 | $as_echo_n "checking digit size for Python's longs... " >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14187 | # Check whether --enable-big-digits was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14188 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14189 | enableval=$enable_big_digits; case $enable_big_digits in |
| 14190 | yes) |
| 14191 | enable_big_digits=30 ;; |
| 14192 | no) |
| 14193 | enable_big_digits=15 ;; |
| 14194 | 15|30) |
| 14195 | ;; |
| 14196 | *) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14197 | 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] | 14198 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
| 14200 | $as_echo "$enable_big_digits" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14201 | |
| 14202 | cat >>confdefs.h <<_ACEOF |
| 14203 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 14204 | _ACEOF |
| 14205 | |
| 14206 | |
| 14207 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 14209 | $as_echo "no value specified" >&6; } |
Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14210 | fi |
| 14211 | |
| 14212 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14213 | # check for wchar.h |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14214 | 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] | 14215 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14216 | |
| 14217 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14218 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14219 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14220 | wchar_h="yes" |
| 14221 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14222 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14223 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14224 | |
| 14225 | fi |
| 14226 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14228 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14229 | # determine wchar_t size |
| 14230 | if test "$wchar_h" = yes |
| 14231 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14232 | # 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] | 14233 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14234 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14235 | # This bug is HP SR number 8606223364. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
| 14237 | $as_echo_n "checking size of wchar_t... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14238 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14239 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14240 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14241 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
| 14242 | "; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14244 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14245 | if test "$ac_cv_type_wchar_t" = yes; then |
| 14246 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14247 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14248 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14249 | See \`config.log' for more details" "$LINENO" 5; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14250 | else |
| 14251 | ac_cv_sizeof_wchar_t=0 |
| 14252 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14253 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14254 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14255 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
| 14257 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14258 | |
| 14259 | |
| 14260 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14261 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14262 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14263 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14264 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14265 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14266 | fi |
| 14267 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
| 14269 | $as_echo_n "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14270 | have_ucs4_tcl=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14272 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14273 | |
| 14274 | #include <tcl.h> |
| 14275 | #if TCL_UTF_MAX != 6 |
| 14276 | # error "NOT UCS4_TCL" |
| 14277 | #endif |
| 14278 | int |
| 14279 | main () |
| 14280 | { |
| 14281 | |
| 14282 | ; |
| 14283 | return 0; |
| 14284 | } |
| 14285 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14286 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14287 | |
| 14288 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14289 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14290 | |
| 14291 | have_ucs4_tcl=yes |
| 14292 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14293 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
| 14296 | $as_echo "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14297 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14298 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14299 | if test "$wchar_h" = yes |
| 14300 | then |
| 14301 | # check whether wchar_t is signed or not |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
| 14303 | $as_echo_n "checking whether wchar_t is signed... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14304 | if ${ac_cv_wchar_t_signed+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14305 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14306 | else |
| 14307 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14308 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14309 | ac_cv_wchar_t_signed=yes |
| 14310 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14312 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14313 | |
| 14314 | #include <wchar.h> |
| 14315 | int main() |
| 14316 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14317 | /* Success: exit code 0 */ |
| 14318 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14319 | } |
| 14320 | |
| 14321 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14322 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14323 | ac_cv_wchar_t_signed=yes |
| 14324 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14325 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14326 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14327 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14328 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14329 | fi |
| 14330 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14331 | fi |
| 14332 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
| 14334 | $as_echo "$ac_cv_wchar_t_signed" >&6; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14335 | fi |
| 14336 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14337 | # 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] | 14338 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 14339 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14340 | then |
Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14341 | HAVE_USABLE_WCHAR_T="yes" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14342 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14343 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14344 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14345 | else |
Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14346 | HAVE_USABLE_WCHAR_T="no usable wchar_t found" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14347 | fi |
Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 |
| 14349 | $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14350 | |
| 14351 | # check for endianness |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 14353 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14354 | if ${ac_cv_c_bigendian+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14355 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14356 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14357 | ac_cv_c_bigendian=unknown |
| 14358 | # See if we're dealing with a universal compiler. |
| 14359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14360 | /* end confdefs.h. */ |
| 14361 | #ifndef __APPLE_CC__ |
| 14362 | not a universal capable compiler |
| 14363 | #endif |
| 14364 | typedef int dummy; |
| 14365 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14366 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14367 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14368 | |
| 14369 | # Check for potential -arch flags. It is not universal unless |
| 14370 | # there are at least two -arch flags with different values. |
| 14371 | ac_arch= |
| 14372 | ac_prev= |
| 14373 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 14374 | if test -n "$ac_prev"; then |
| 14375 | case $ac_word in |
| 14376 | i?86 | x86_64 | ppc | ppc64) |
| 14377 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 14378 | ac_arch=$ac_word |
| 14379 | else |
| 14380 | ac_cv_c_bigendian=universal |
| 14381 | break |
| 14382 | fi |
| 14383 | ;; |
| 14384 | esac |
| 14385 | ac_prev= |
| 14386 | elif test "x$ac_word" = "x-arch"; then |
| 14387 | ac_prev=arch |
| 14388 | fi |
| 14389 | done |
| 14390 | fi |
| 14391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14392 | if test $ac_cv_c_bigendian = unknown; then |
| 14393 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 14394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14395 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14396 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14397 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14398 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14399 | int |
| 14400 | main () |
| 14401 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14402 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 14403 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 14404 | && LITTLE_ENDIAN) |
| 14405 | bogus endian macros |
| 14406 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14407 | |
| 14408 | ; |
| 14409 | return 0; |
| 14410 | } |
| 14411 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14412 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14413 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14415 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14416 | #include <sys/types.h> |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14417 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14419 | int |
| 14420 | main () |
| 14421 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14422 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14423 | not big endian |
| 14424 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14425 | |
| 14426 | ; |
| 14427 | return 0; |
| 14428 | } |
| 14429 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14430 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14431 | ac_cv_c_bigendian=yes |
| 14432 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14433 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14434 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14436 | fi |
| 14437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14438 | fi |
| 14439 | if test $ac_cv_c_bigendian = unknown; then |
| 14440 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 14441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14442 | /* end confdefs.h. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14443 | #include <limits.h> |
| 14444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14445 | int |
| 14446 | main () |
| 14447 | { |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14448 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 14449 | bogus endian macros |
| 14450 | #endif |
| 14451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14452 | ; |
| 14453 | return 0; |
| 14454 | } |
| 14455 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14456 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14457 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 14458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14459 | /* end confdefs.h. */ |
| 14460 | #include <limits.h> |
| 14461 | |
| 14462 | int |
| 14463 | main () |
| 14464 | { |
| 14465 | #ifndef _BIG_ENDIAN |
| 14466 | not big endian |
| 14467 | #endif |
| 14468 | |
| 14469 | ; |
| 14470 | return 0; |
| 14471 | } |
| 14472 | _ACEOF |
| 14473 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14474 | ac_cv_c_bigendian=yes |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14475 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14476 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14477 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14479 | fi |
| 14480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14481 | fi |
| 14482 | if test $ac_cv_c_bigendian = unknown; then |
| 14483 | # Compile a test program. |
| 14484 | if test "$cross_compiling" = yes; then : |
| 14485 | # Try to guess by grepping values from an object file. |
| 14486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14487 | /* end confdefs.h. */ |
| 14488 | short int ascii_mm[] = |
| 14489 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 14490 | short int ascii_ii[] = |
| 14491 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 14492 | int use_ascii (int i) { |
| 14493 | return ascii_mm[i] + ascii_ii[i]; |
| 14494 | } |
| 14495 | short int ebcdic_ii[] = |
| 14496 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 14497 | short int ebcdic_mm[] = |
| 14498 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 14499 | int use_ebcdic (int i) { |
| 14500 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 14501 | } |
| 14502 | extern int foo; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14503 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14504 | int |
| 14505 | main () |
| 14506 | { |
| 14507 | return use_ascii (foo) == use_ebcdic (foo); |
| 14508 | ; |
| 14509 | return 0; |
| 14510 | } |
| 14511 | _ACEOF |
| 14512 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14513 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 14514 | ac_cv_c_bigendian=yes |
| 14515 | fi |
| 14516 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 14517 | if test "$ac_cv_c_bigendian" = unknown; then |
| 14518 | ac_cv_c_bigendian=no |
| 14519 | else |
| 14520 | # finding both strings is unlikely to happen, but who knows? |
| 14521 | ac_cv_c_bigendian=unknown |
| 14522 | fi |
| 14523 | fi |
| 14524 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14525 | 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] | 14526 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14528 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14529 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14530 | int |
| 14531 | main () |
| 14532 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14533 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14534 | /* Are we little or big endian? From Harbison&Steele. */ |
| 14535 | union |
| 14536 | { |
| 14537 | long int l; |
| 14538 | char c[sizeof (long int)]; |
| 14539 | } u; |
| 14540 | u.l = 1; |
| 14541 | return u.c[sizeof (long int) - 1] == 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14542 | |
| 14543 | ; |
| 14544 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14545 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14546 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14547 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14548 | ac_cv_c_bigendian=no |
| 14549 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14550 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14551 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14552 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14553 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14554 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14555 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14556 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14557 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 14559 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 14560 | case $ac_cv_c_bigendian in #( |
| 14561 | yes) |
| 14562 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 14563 | ;; #( |
| 14564 | no) |
| 14565 | ;; #( |
| 14566 | universal) |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14567 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14568 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14569 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14570 | ;; #( |
| 14571 | *) |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14572 | as_fn_error $? "unknown endianness |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14573 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14574 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14575 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14576 | |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14577 | # ABI version string for Python extension modules. This appears between the |
| 14578 | # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated |
| 14579 | # from the following attributes which affect the ABI of this Python build (in |
| 14580 | # this order): |
| 14581 | # |
| 14582 | # * The Python implementation (always 'cpython-' for us) |
| 14583 | # * The major and minor version numbers |
| 14584 | # * --with-pydebug (adds a 'd') |
| 14585 | # * --with-pymalloc (adds a 'm') |
| 14586 | # * --with-wide-unicode (adds a 'u') |
| 14587 | # |
| 14588 | # 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] | 14589 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared |
| 14590 | # libraries would be named 'foo.cpython-32dmu.so'. |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14591 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 |
| 14593 | $as_echo_n "checking ABIFLAGS... " >&6; } |
| 14594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 |
| 14595 | $as_echo "$ABIFLAGS" >&6; } |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 |
| 14597 | $as_echo_n "checking SOABI... " >&6; } |
doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 14598 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} |
Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 |
| 14600 | $as_echo "$SOABI" >&6; } |
| 14601 | |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14602 | |
| 14603 | case $ac_sys_system in |
Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 14604 | Linux*|GNU*|Darwin) |
doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14605 | EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; |
| 14606 | *) |
| 14607 | EXT_SUFFIX=${SHLIB_SUFFIX};; |
| 14608 | esac |
| 14609 | |
Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 |
| 14611 | $as_echo_n "checking LDVERSION... " >&6; } |
| 14612 | LDVERSION='$(VERSION)$(ABIFLAGS)' |
| 14613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 |
| 14614 | $as_echo "$LDVERSION" >&6; } |
| 14615 | |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14616 | |
doko@ubuntu.com | e8042e5 | 2015-05-06 01:13:02 +0200 | [diff] [blame] | 14617 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14618 | |
| 14619 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14620 | # Check whether right shifting a negative integer extends the sign bit |
| 14621 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
| 14623 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14624 | if ${ac_cv_rshift_extends_sign+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14625 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14626 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14627 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14628 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14629 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14630 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14632 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14633 | |
| 14634 | int main() |
| 14635 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14636 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14637 | } |
| 14638 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14639 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14640 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14641 | ac_cv_rshift_extends_sign=yes |
| 14642 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14643 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14644 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14645 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14646 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14647 | fi |
| 14648 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14649 | fi |
| 14650 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
| 14652 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14653 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14654 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14655 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14656 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14657 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14658 | fi |
| 14659 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14660 | # check for getc_unlocked and related locking functions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
| 14662 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14663 | if ${ac_cv_have_getc_unlocked+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14664 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14665 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14666 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14668 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14669 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14670 | int |
| 14671 | main () |
| 14672 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14673 | |
| 14674 | FILE *f = fopen("/dev/null", "r"); |
| 14675 | flockfile(f); |
| 14676 | getc_unlocked(f); |
| 14677 | funlockfile(f); |
| 14678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14679 | ; |
| 14680 | return 0; |
| 14681 | } |
| 14682 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14683 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14684 | ac_cv_have_getc_unlocked=yes |
| 14685 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14686 | ac_cv_have_getc_unlocked=no |
| 14687 | fi |
| 14688 | rm -f core conftest.err conftest.$ac_objext \ |
| 14689 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14690 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14691 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
| 14693 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14694 | if test "$ac_cv_have_getc_unlocked" = yes |
| 14695 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14696 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14697 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14698 | |
| 14699 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14700 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14701 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 14702 | # save the value of LIBS so we don't actually link Python with readline |
| 14703 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14704 | |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14705 | # On some systems we need to link readline to a termcap compatible |
| 14706 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 14707 | # with setup.py. |
| 14708 | py_cv_lib_readline=no |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
| 14710 | $as_echo_n "checking how to link readline libs... " >&6; } |
doko@ubuntu.com | f2967c7 | 2012-06-30 17:32:23 +0200 | [diff] [blame] | 14711 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14712 | if test -z "$py_libtermcap"; then |
| 14713 | READLINE_LIBS="-lreadline" |
| 14714 | else |
| 14715 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 14716 | fi |
| 14717 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14719 | /* end confdefs.h. */ |
| 14720 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14721 | /* Override any GCC internal prototype to avoid an error. |
| 14722 | Use char because int might match the return type of a GCC |
| 14723 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14724 | #ifdef __cplusplus |
| 14725 | extern "C" |
| 14726 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14727 | char readline (); |
| 14728 | int |
| 14729 | main () |
| 14730 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14731 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14732 | ; |
| 14733 | return 0; |
| 14734 | } |
| 14735 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14736 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14737 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14738 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14739 | rm -f core conftest.err conftest.$ac_objext \ |
| 14740 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14741 | if test $py_cv_lib_readline = yes; then |
| 14742 | break |
| 14743 | fi |
| 14744 | done |
| 14745 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 14746 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 14747 | if test $py_cv_lib_readline = no; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 14749 | $as_echo "none" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14750 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
| 14752 | $as_echo "$READLINE_LIBS" >&6; } |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14753 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14754 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14755 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14756 | fi |
| 14757 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14758 | # check for readline 2.1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 |
| 14760 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14761 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14762 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14763 | else |
| 14764 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14765 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14767 | /* end confdefs.h. */ |
| 14768 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14769 | /* Override any GCC internal prototype to avoid an error. |
| 14770 | Use char because int might match the return type of a GCC |
| 14771 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14772 | #ifdef __cplusplus |
| 14773 | extern "C" |
| 14774 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14775 | char rl_callback_handler_install (); |
| 14776 | int |
| 14777 | main () |
| 14778 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14779 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14780 | ; |
| 14781 | return 0; |
| 14782 | } |
| 14783 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14784 | if ac_fn_c_try_link "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14785 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 14786 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14787 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14788 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14789 | rm -f core conftest.err conftest.$ac_objext \ |
| 14790 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14791 | LIBS=$ac_check_lib_save_LIBS |
| 14792 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 14794 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14795 | if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14796 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14797 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14798 | |
| 14799 | fi |
| 14800 | |
| 14801 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14802 | # check for readline 2.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14804 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14805 | #include <readline/readline.h> |
| 14806 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14807 | if ac_fn_c_try_cpp "$LINENO"; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14808 | have_readline=yes |
| 14809 | else |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14810 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 14811 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14812 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14813 | rm -f conftest.err conftest.i conftest.$ac_ext |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14814 | if test $have_readline = yes |
| 14815 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14817 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14818 | #include <readline/readline.h> |
| 14819 | |
| 14820 | _ACEOF |
| 14821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14822 | $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] | 14823 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14824 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14825 | |
| 14826 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14827 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14828 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14830 | /* end confdefs.h. */ |
| 14831 | #include <readline/readline.h> |
| 14832 | |
| 14833 | _ACEOF |
| 14834 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14835 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14836 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14837 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14838 | |
| 14839 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 14840 | rm -f conftest* |
Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 14841 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 14842 | fi |
| 14843 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14844 | # check for readline 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 |
| 14846 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14847 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14848 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 14849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14850 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14851 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14853 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14854 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14855 | /* Override any GCC internal prototype to avoid an error. |
| 14856 | Use char because int might match the return type of a GCC |
| 14857 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14858 | #ifdef __cplusplus |
| 14859 | extern "C" |
| 14860 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14861 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14862 | int |
| 14863 | main () |
| 14864 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14865 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14866 | ; |
| 14867 | return 0; |
| 14868 | } |
| 14869 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14870 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14871 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14872 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14873 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14874 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14875 | rm -f core conftest.err conftest.$ac_objext \ |
| 14876 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14877 | LIBS=$ac_check_lib_save_LIBS |
| 14878 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 14880 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14881 | 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] | 14882 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14883 | $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] | 14884 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14885 | fi |
| 14886 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14887 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14888 | # also in 4.0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 14890 | $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] | 14891 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14892 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14893 | else |
| 14894 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14895 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14897 | /* end confdefs.h. */ |
| 14898 | |
| 14899 | /* Override any GCC internal prototype to avoid an error. |
| 14900 | Use char because int might match the return type of a GCC |
| 14901 | builtin and then its argument prototype would still apply. */ |
| 14902 | #ifdef __cplusplus |
| 14903 | extern "C" |
| 14904 | #endif |
| 14905 | char rl_completion_display_matches_hook (); |
| 14906 | int |
| 14907 | main () |
| 14908 | { |
| 14909 | return rl_completion_display_matches_hook (); |
| 14910 | ; |
| 14911 | return 0; |
| 14912 | } |
| 14913 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14914 | if ac_fn_c_try_link "$LINENO"; then : |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14915 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 14916 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14917 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14918 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14919 | rm -f core conftest.err conftest.$ac_objext \ |
| 14920 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14921 | LIBS=$ac_check_lib_save_LIBS |
| 14922 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 14924 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14925 | 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] | 14926 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14927 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 14928 | |
| 14929 | fi |
| 14930 | |
| 14931 | |
Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 14932 | # also in 4.0, but not in editline |
| 14933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 |
| 14934 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } |
| 14935 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : |
| 14936 | $as_echo_n "(cached) " >&6 |
| 14937 | else |
| 14938 | ac_check_lib_save_LIBS=$LIBS |
| 14939 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
| 14940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14941 | /* end confdefs.h. */ |
| 14942 | |
| 14943 | /* Override any GCC internal prototype to avoid an error. |
| 14944 | Use char because int might match the return type of a GCC |
| 14945 | builtin and then its argument prototype would still apply. */ |
| 14946 | #ifdef __cplusplus |
| 14947 | extern "C" |
| 14948 | #endif |
| 14949 | char rl_resize_terminal (); |
| 14950 | int |
| 14951 | main () |
| 14952 | { |
| 14953 | return rl_resize_terminal (); |
| 14954 | ; |
| 14955 | return 0; |
| 14956 | } |
| 14957 | _ACEOF |
| 14958 | if ac_fn_c_try_link "$LINENO"; then : |
| 14959 | ac_cv_lib_readline_rl_resize_terminal=yes |
| 14960 | else |
| 14961 | ac_cv_lib_readline_rl_resize_terminal=no |
| 14962 | fi |
| 14963 | rm -f core conftest.err conftest.$ac_objext \ |
| 14964 | conftest$ac_exeext conftest.$ac_ext |
| 14965 | LIBS=$ac_check_lib_save_LIBS |
| 14966 | fi |
| 14967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 |
| 14968 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } |
| 14969 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : |
| 14970 | |
| 14971 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h |
| 14972 | |
| 14973 | fi |
| 14974 | |
| 14975 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14976 | # check for readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 |
| 14978 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14979 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14980 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 14981 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14982 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14983 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14985 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14986 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14987 | /* Override any GCC internal prototype to avoid an error. |
| 14988 | Use char because int might match the return type of a GCC |
| 14989 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14990 | #ifdef __cplusplus |
| 14991 | extern "C" |
| 14992 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14993 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14994 | int |
| 14995 | main () |
| 14996 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14997 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14998 | ; |
| 14999 | return 0; |
| 15000 | } |
| 15001 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15002 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15003 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15004 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15005 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15006 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15007 | rm -f core conftest.err conftest.$ac_objext \ |
| 15008 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15009 | LIBS=$ac_check_lib_save_LIBS |
| 15010 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 15012 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15013 | 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] | 15014 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15015 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15016 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15017 | fi |
| 15018 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15019 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15020 | # also in readline 4.2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15022 | /* end confdefs.h. */ |
| 15023 | #include <readline/readline.h> |
| 15024 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15025 | if ac_fn_c_try_cpp "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15026 | have_readline=yes |
| 15027 | else |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15028 | have_readline=no |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15029 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15030 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15031 | rm -f conftest.err conftest.i conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15032 | if test $have_readline = yes |
| 15033 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15035 | /* end confdefs.h. */ |
| 15036 | #include <readline/readline.h> |
| 15037 | |
| 15038 | _ACEOF |
| 15039 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15040 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15041 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15042 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15043 | |
| 15044 | fi |
Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15045 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15046 | |
| 15047 | fi |
| 15048 | |
Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 |
| 15050 | $as_echo_n "checking for append_history in -lreadline... " >&6; } |
| 15051 | if ${ac_cv_lib_readline_append_history+:} false; then : |
| 15052 | $as_echo_n "(cached) " >&6 |
| 15053 | else |
| 15054 | ac_check_lib_save_LIBS=$LIBS |
| 15055 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
| 15056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15057 | /* end confdefs.h. */ |
| 15058 | |
| 15059 | /* Override any GCC internal prototype to avoid an error. |
| 15060 | Use char because int might match the return type of a GCC |
| 15061 | builtin and then its argument prototype would still apply. */ |
| 15062 | #ifdef __cplusplus |
| 15063 | extern "C" |
| 15064 | #endif |
| 15065 | char append_history (); |
| 15066 | int |
| 15067 | main () |
| 15068 | { |
| 15069 | return append_history (); |
| 15070 | ; |
| 15071 | return 0; |
| 15072 | } |
| 15073 | _ACEOF |
| 15074 | if ac_fn_c_try_link "$LINENO"; then : |
| 15075 | ac_cv_lib_readline_append_history=yes |
| 15076 | else |
| 15077 | ac_cv_lib_readline_append_history=no |
| 15078 | fi |
| 15079 | rm -f core conftest.err conftest.$ac_objext \ |
| 15080 | conftest$ac_exeext conftest.$ac_ext |
| 15081 | LIBS=$ac_check_lib_save_LIBS |
| 15082 | fi |
| 15083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 |
| 15084 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } |
| 15085 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : |
| 15086 | |
| 15087 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h |
| 15088 | |
| 15089 | fi |
| 15090 | |
| 15091 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15092 | # End of readline checks: restore LIBS |
| 15093 | LIBS=$LIBS_no_readline |
| 15094 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
| 15096 | $as_echo_n "checking for broken nice()... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15097 | if ${ac_cv_broken_nice+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15098 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15099 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15100 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15101 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15102 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15103 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15105 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15106 | |
| 15107 | int main() |
| 15108 | { |
| 15109 | int val1 = nice(1); |
| 15110 | if (val1 != -1 && val1 == nice(2)) |
| 15111 | exit(0); |
| 15112 | exit(1); |
| 15113 | } |
| 15114 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15115 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15116 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15117 | ac_cv_broken_nice=yes |
| 15118 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15119 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15120 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15121 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15122 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15123 | fi |
| 15124 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15125 | fi |
| 15126 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
| 15128 | $as_echo "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15129 | if test "$ac_cv_broken_nice" = yes |
| 15130 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15131 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15132 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15133 | |
| 15134 | fi |
| 15135 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
| 15137 | $as_echo_n "checking for broken poll()... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15138 | if ${ac_cv_broken_poll+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15139 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15140 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15141 | if test "$cross_compiling" = yes; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15142 | ac_cv_broken_poll=no |
| 15143 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15145 | /* end confdefs.h. */ |
| 15146 | |
| 15147 | #include <poll.h> |
| 15148 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15149 | int main() |
| 15150 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15151 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15152 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15153 | |
| 15154 | close (42); |
| 15155 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15156 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15157 | if (poll_test < 0) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15158 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15159 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15160 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15161 | else |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15162 | return 1; |
| 15163 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15164 | |
| 15165 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15166 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15167 | ac_cv_broken_poll=yes |
| 15168 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15169 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15170 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15171 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15172 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15173 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15174 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15175 | fi |
| 15176 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
| 15178 | $as_echo "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15179 | if test "$ac_cv_broken_poll" = yes |
| 15180 | then |
| 15181 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15182 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15183 | |
| 15184 | fi |
| 15185 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15186 | # 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] | 15187 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 15188 | # tzname[] |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15189 | 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] | 15190 | #include <$ac_cv_struct_tm> |
| 15191 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15192 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15193 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15194 | |
| 15195 | cat >>confdefs.h <<_ACEOF |
| 15196 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 15197 | _ACEOF |
| 15198 | |
| 15199 | |
| 15200 | fi |
| 15201 | |
| 15202 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 15203 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15204 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15205 | |
| 15206 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15207 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 15208 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15209 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15210 | ac_have_decl=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15211 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15212 | ac_have_decl=0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15213 | fi |
| 15214 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15215 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15216 | #define HAVE_DECL_TZNAME $ac_have_decl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15217 | _ACEOF |
| 15218 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 15220 | $as_echo_n "checking for tzname... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15221 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15222 | $as_echo_n "(cached) " >&6 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15223 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15225 | /* end confdefs.h. */ |
| 15226 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15227 | #if !HAVE_DECL_TZNAME |
| 15228 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15229 | #endif |
| 15230 | |
| 15231 | int |
| 15232 | main () |
| 15233 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15234 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15235 | ; |
| 15236 | return 0; |
| 15237 | } |
| 15238 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15239 | if ac_fn_c_try_link "$LINENO"; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15240 | ac_cv_var_tzname=yes |
| 15241 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15242 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15243 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15244 | rm -f core conftest.err conftest.$ac_objext \ |
| 15245 | conftest$ac_exeext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15246 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 15248 | $as_echo "$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15249 | if test $ac_cv_var_tzname = yes; then |
| 15250 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15251 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15252 | |
| 15253 | fi |
| 15254 | fi |
| 15255 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15256 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15257 | # check tzset(3) exists and works like we expect it to |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
| 15259 | $as_echo_n "checking for working tzset()... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15260 | if ${ac_cv_working_tzset+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15261 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15262 | else |
| 15263 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15264 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15265 | ac_cv_working_tzset=no |
| 15266 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15268 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15269 | |
| 15270 | #include <stdlib.h> |
| 15271 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15272 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15273 | |
| 15274 | #if HAVE_TZNAME |
| 15275 | extern char *tzname[]; |
| 15276 | #endif |
| 15277 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15278 | int main() |
| 15279 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15280 | /* Note that we need to ensure that not only does tzset(3) |
| 15281 | do 'something' with localtime, but it works as documented |
| 15282 | 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] | 15283 | This includes making sure that tzname is set properly if |
| 15284 | tm->tm_zone does not exist since it is the alternative way |
| 15285 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15286 | |
| 15287 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15288 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15289 | */ |
| 15290 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15291 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15292 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 15293 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15294 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15295 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15296 | if (localtime(&groundhogday)->tm_hour != 0) |
| 15297 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15298 | #if HAVE_TZNAME |
| 15299 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 15300 | if (strcmp(tzname[0], "UTC") || |
| 15301 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 15302 | exit(1); |
| 15303 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15304 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15305 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15306 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15307 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15308 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15309 | #if HAVE_TZNAME |
| 15310 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 15311 | exit(1); |
| 15312 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15313 | |
| 15314 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 15315 | tzset(); |
| 15316 | if (localtime(&groundhogday)->tm_hour != 11) |
| 15317 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15318 | #if HAVE_TZNAME |
| 15319 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 15320 | exit(1); |
| 15321 | #endif |
| 15322 | |
| 15323 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15324 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 15325 | exit(1); |
| 15326 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 15327 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15328 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15329 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15330 | exit(0); |
| 15331 | } |
| 15332 | |
| 15333 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15334 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15335 | ac_cv_working_tzset=yes |
| 15336 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15337 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15338 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15339 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15340 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15341 | fi |
| 15342 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15343 | fi |
| 15344 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
| 15346 | $as_echo "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15347 | if test "$ac_cv_working_tzset" = yes |
| 15348 | then |
| 15349 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15350 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15351 | |
| 15352 | fi |
| 15353 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15354 | # Look for subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
| 15356 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15357 | if ${ac_cv_stat_tv_nsec+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15358 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15359 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15361 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15362 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15363 | int |
| 15364 | main () |
| 15365 | { |
| 15366 | |
| 15367 | struct stat st; |
| 15368 | st.st_mtim.tv_nsec = 1; |
| 15369 | |
| 15370 | ; |
| 15371 | return 0; |
| 15372 | } |
| 15373 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15374 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 15375 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15376 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15377 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15378 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15380 | fi |
| 15381 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
| 15383 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15384 | if test "$ac_cv_stat_tv_nsec" = yes |
| 15385 | then |
| 15386 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15387 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15388 | |
| 15389 | fi |
| 15390 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15391 | # Look for BSD style subsecond timestamps in struct stat |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
| 15393 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15394 | if ${ac_cv_stat_tv_nsec2+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15395 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15396 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15398 | /* end confdefs.h. */ |
| 15399 | #include <sys/stat.h> |
| 15400 | int |
| 15401 | main () |
| 15402 | { |
| 15403 | |
| 15404 | struct stat st; |
| 15405 | st.st_mtimespec.tv_nsec = 1; |
| 15406 | |
| 15407 | ; |
| 15408 | return 0; |
| 15409 | } |
| 15410 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15411 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15412 | ac_cv_stat_tv_nsec2=yes |
| 15413 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15414 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15415 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15417 | fi |
| 15418 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
| 15420 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15421 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 15422 | then |
| 15423 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15424 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15425 | |
| 15426 | fi |
| 15427 | |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15428 | # first curses header check |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15429 | ac_save_cppflags="$CPPFLAGS" |
| 15430 | CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" |
doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15431 | |
| 15432 | for ac_header in curses.h ncurses.h |
| 15433 | do : |
| 15434 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15435 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 15436 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 15437 | cat >>confdefs.h <<_ACEOF |
| 15438 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15439 | _ACEOF |
| 15440 | |
| 15441 | fi |
| 15442 | |
| 15443 | done |
| 15444 | |
| 15445 | |
| 15446 | # On Solaris, term.h requires curses.h |
| 15447 | for ac_header in term.h |
| 15448 | do : |
| 15449 | ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " |
| 15450 | #ifdef HAVE_CURSES_H |
| 15451 | #include <curses.h> |
| 15452 | #endif |
| 15453 | |
| 15454 | " |
| 15455 | if test "x$ac_cv_header_term_h" = xyes; then : |
| 15456 | cat >>confdefs.h <<_ACEOF |
| 15457 | #define HAVE_TERM_H 1 |
| 15458 | _ACEOF |
| 15459 | |
| 15460 | fi |
| 15461 | |
| 15462 | done |
| 15463 | |
| 15464 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15465 | # 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] | 15466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
| 15467 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15468 | if ${ac_cv_mvwdelch_is_expression+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15469 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15470 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15472 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15473 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15474 | int |
| 15475 | main () |
| 15476 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15477 | |
| 15478 | int rtn; |
| 15479 | rtn = mvwdelch(0,0,0); |
| 15480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15481 | ; |
| 15482 | return 0; |
| 15483 | } |
| 15484 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15485 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15486 | ac_cv_mvwdelch_is_expression=yes |
| 15487 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15488 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15489 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15491 | fi |
| 15492 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 15494 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15495 | |
| 15496 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 15497 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15498 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15499 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15500 | |
| 15501 | fi |
| 15502 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
| 15504 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15505 | if ${ac_cv_window_has_flags+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15506 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15507 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15509 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15510 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15511 | int |
| 15512 | main () |
| 15513 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15514 | |
| 15515 | WINDOW *w; |
| 15516 | w->_flags = 0; |
| 15517 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15518 | ; |
| 15519 | return 0; |
| 15520 | } |
| 15521 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15522 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15523 | ac_cv_window_has_flags=yes |
| 15524 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15525 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15526 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15528 | fi |
| 15529 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
| 15531 | $as_echo "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15532 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15533 | |
| 15534 | if test "$ac_cv_window_has_flags" = yes |
| 15535 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15536 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15537 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15538 | |
| 15539 | fi |
| 15540 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
| 15542 | $as_echo_n "checking for is_term_resized... " >&6; } |
| 15543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15544 | /* end confdefs.h. */ |
| 15545 | #include <curses.h> |
| 15546 | int |
| 15547 | main () |
| 15548 | { |
| 15549 | void *x=is_term_resized |
| 15550 | ; |
| 15551 | return 0; |
| 15552 | } |
| 15553 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15554 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15555 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15556 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15557 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15559 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15560 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15562 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15563 | |
| 15564 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15566 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
| 15568 | $as_echo_n "checking for resize_term... " >&6; } |
| 15569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15570 | /* end confdefs.h. */ |
| 15571 | #include <curses.h> |
| 15572 | int |
| 15573 | main () |
| 15574 | { |
| 15575 | void *x=resize_term |
| 15576 | ; |
| 15577 | return 0; |
| 15578 | } |
| 15579 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15580 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15581 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15582 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15583 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15585 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15586 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15588 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15589 | |
| 15590 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15592 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
| 15594 | $as_echo_n "checking for resizeterm... " >&6; } |
| 15595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15596 | /* end confdefs.h. */ |
| 15597 | #include <curses.h> |
| 15598 | int |
| 15599 | main () |
| 15600 | { |
| 15601 | void *x=resizeterm |
| 15602 | ; |
| 15603 | return 0; |
| 15604 | } |
| 15605 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15606 | if ac_fn_c_try_compile "$LINENO"; then : |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15607 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15608 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15609 | |
Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15611 | $as_echo "yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15612 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15614 | $as_echo "no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15615 | |
| 15616 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15618 | # last curses configure check |
| 15619 | CPPFLAGS=$ac_save_cppflags |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15620 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 |
| 15622 | $as_echo "$as_me: checking for device files" >&6;} |
| 15623 | |
| 15624 | if test "x$cross_compiling" = xyes; then |
| 15625 | if test "${ac_cv_file__dev_ptmx+set}" != set; then |
| 15626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 15627 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
| 15628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 15629 | $as_echo "not set" >&6; } |
| 15630 | as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
| 15631 | fi |
| 15632 | if test "${ac_cv_file__dev_ptc+set}" != set; then |
| 15633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 15634 | $as_echo_n "checking for /dev/ptc... " >&6; } |
| 15635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
| 15636 | $as_echo "not set" >&6; } |
| 15637 | as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 |
| 15638 | fi |
| 15639 | fi |
| 15640 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 15642 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15643 | if ${ac_cv_file__dev_ptmx+:} false; then : |
| 15644 | $as_echo_n "(cached) " >&6 |
| 15645 | else |
| 15646 | test "$cross_compiling" = yes && |
| 15647 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 15648 | if test -r "/dev/ptmx"; then |
| 15649 | ac_cv_file__dev_ptmx=yes |
| 15650 | else |
| 15651 | ac_cv_file__dev_ptmx=no |
| 15652 | fi |
| 15653 | fi |
| 15654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 |
| 15655 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } |
| 15656 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15657 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15658 | fi |
| 15659 | |
| 15660 | if test "x$ac_cv_file__dev_ptmx" = xyes; then |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15661 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15662 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15663 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15664 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 15666 | $as_echo_n "checking for /dev/ptc... " >&6; } |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15667 | if ${ac_cv_file__dev_ptc+:} false; then : |
| 15668 | $as_echo_n "(cached) " >&6 |
| 15669 | else |
| 15670 | test "$cross_compiling" = yes && |
| 15671 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 15672 | if test -r "/dev/ptc"; then |
| 15673 | ac_cv_file__dev_ptc=yes |
| 15674 | else |
| 15675 | ac_cv_file__dev_ptc=no |
| 15676 | fi |
| 15677 | fi |
| 15678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 |
| 15679 | $as_echo "$ac_cv_file__dev_ptc" >&6; } |
| 15680 | if test "x$ac_cv_file__dev_ptc" = xyes; then : |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15681 | |
doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 15682 | fi |
| 15683 | |
| 15684 | if test "x$ac_cv_file__dev_ptc" = xyes; then |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15685 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15686 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15687 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 15688 | fi |
| 15689 | |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15690 | if test "$have_long_long" = yes |
| 15691 | then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 |
| 15693 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15694 | if ${ac_cv_have_long_long_format+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15695 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15696 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15697 | if test "$cross_compiling" = yes; then : |
Matthias Klose | 3b739b1 | 2012-03-15 19:31:06 +0100 | [diff] [blame] | 15698 | ac_cv_have_long_long_format="cross -- assuming no" |
| 15699 | if test x$GCC = xyes; then |
| 15700 | save_CFLAGS=$CFLAGS |
| 15701 | CFLAGS="$CFLAGS -Werror -Wformat" |
| 15702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15703 | /* end confdefs.h. */ |
| 15704 | |
| 15705 | #include <stdio.h> |
| 15706 | #include <stddef.h> |
| 15707 | |
| 15708 | int |
| 15709 | main () |
| 15710 | { |
| 15711 | |
| 15712 | char *buffer; |
| 15713 | sprintf(buffer, "%lld", (long long)123); |
| 15714 | sprintf(buffer, "%lld", (long long)-123); |
| 15715 | sprintf(buffer, "%llu", (unsigned long long)123); |
| 15716 | |
| 15717 | ; |
| 15718 | return 0; |
| 15719 | } |
| 15720 | _ACEOF |
| 15721 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15722 | ac_cv_have_long_long_format=yes |
| 15723 | |
| 15724 | fi |
| 15725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15726 | CFLAGS=$save_CFLAGS |
| 15727 | fi |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15728 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15730 | /* end confdefs.h. */ |
| 15731 | |
| 15732 | #include <stdio.h> |
| 15733 | #include <stddef.h> |
| 15734 | #include <string.h> |
| 15735 | |
| 15736 | #ifdef HAVE_SYS_TYPES_H |
| 15737 | #include <sys/types.h> |
| 15738 | #endif |
| 15739 | |
| 15740 | int main() |
| 15741 | { |
| 15742 | char buffer[256]; |
| 15743 | |
| 15744 | if (sprintf(buffer, "%lld", (long long)123) < 0) |
| 15745 | return 1; |
| 15746 | if (strcmp(buffer, "123")) |
| 15747 | return 1; |
| 15748 | |
| 15749 | if (sprintf(buffer, "%lld", (long long)-123) < 0) |
| 15750 | return 1; |
| 15751 | if (strcmp(buffer, "-123")) |
| 15752 | return 1; |
| 15753 | |
| 15754 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) |
| 15755 | return 1; |
| 15756 | if (strcmp(buffer, "123")) |
| 15757 | return 1; |
| 15758 | |
| 15759 | return 0; |
| 15760 | } |
| 15761 | |
| 15762 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15763 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15764 | ac_cv_have_long_long_format=yes |
| 15765 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15766 | ac_cv_have_long_long_format=no |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15767 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15768 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15769 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15770 | fi |
| 15771 | |
| 15772 | |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15773 | fi |
| 15774 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 |
| 15776 | $as_echo "$ac_cv_have_long_long_format" >&6; } |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15777 | fi |
| 15778 | |
Mark Dickinson | 89d7d41 | 2009-12-31 20:50:59 +0000 | [diff] [blame] | 15779 | if test "$ac_cv_have_long_long_format" = yes |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15780 | then |
| 15781 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15782 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15783 | |
| 15784 | fi |
| 15785 | |
Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 15786 | if test $ac_sys_system = Darwin |
| 15787 | then |
| 15788 | LIBS="$LIBS -framework CoreFoundation" |
| 15789 | fi |
Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 15790 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
| 15792 | $as_echo_n "checking for %zd printf() format support... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15793 | if ${ac_cv_have_size_t_format+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15794 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15795 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15796 | if test "$cross_compiling" = yes; then : |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 15797 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 15798 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15799 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15801 | /* end confdefs.h. */ |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15802 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15803 | #include <stdio.h> |
| 15804 | #include <stddef.h> |
| 15805 | #include <string.h> |
| 15806 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15807 | #ifdef HAVE_SYS_TYPES_H |
| 15808 | #include <sys/types.h> |
| 15809 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15810 | |
| 15811 | #ifdef HAVE_SSIZE_T |
| 15812 | typedef ssize_t Py_ssize_t; |
| 15813 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 15814 | typedef long Py_ssize_t; |
| 15815 | #else |
| 15816 | typedef int Py_ssize_t; |
| 15817 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15818 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 15819 | int main() |
| 15820 | { |
| 15821 | char buffer[256]; |
| 15822 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15823 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 15824 | return 1; |
| 15825 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15826 | if (strcmp(buffer, "123")) |
| 15827 | return 1; |
| 15828 | |
| 15829 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 15830 | return 1; |
| 15831 | |
| 15832 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15833 | return 1; |
| 15834 | |
| 15835 | return 0; |
| 15836 | } |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15837 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15838 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15839 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15840 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15841 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15842 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 15843 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15844 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15845 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 15846 | fi |
| 15847 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15848 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
| 15850 | $as_echo "$ac_cv_have_size_t_format" >&6; } |
Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 15851 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15852 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15853 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15854 | |
| 15855 | fi |
| 15856 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15857 | 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] | 15858 | #ifdef HAVE_SYS_TYPES_H |
| 15859 | #include <sys/types.h> |
| 15860 | #endif |
| 15861 | #ifdef HAVE_SYS_SOCKET_H |
| 15862 | #include <sys/socket.h> |
| 15863 | #endif |
| 15864 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15865 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15866 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 15867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15868 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15869 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15870 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15871 | |
| 15872 | fi |
| 15873 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15874 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 |
| 15876 | $as_echo_n "checking for broken mbstowcs... " >&6; } |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15877 | if ${ac_cv_broken_mbstowcs+:} false; then : |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15878 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15879 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15880 | if test "$cross_compiling" = yes; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15881 | ac_cv_broken_mbstowcs=no |
| 15882 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15884 | /* end confdefs.h. */ |
| 15885 | |
Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 15886 | #include <stdio.h> |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15887 | #include<stdlib.h> |
| 15888 | int main() { |
| 15889 | size_t len = -1; |
| 15890 | const char *str = "text"; |
| 15891 | len = mbstowcs(NULL, str, 0); |
| 15892 | return (len != 4); |
| 15893 | } |
| 15894 | |
| 15895 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15896 | if ac_fn_c_try_run "$LINENO"; then : |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15897 | ac_cv_broken_mbstowcs=no |
| 15898 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15899 | ac_cv_broken_mbstowcs=yes |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15900 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15901 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15902 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15903 | fi |
| 15904 | |
Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15905 | fi |
| 15906 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 |
| 15908 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15909 | if test "$ac_cv_broken_mbstowcs" = yes |
| 15910 | then |
| 15911 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15912 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h |
Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 15913 | |
| 15914 | fi |
| 15915 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15916 | # Check for --with-computed-gotos |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 |
| 15918 | $as_echo_n "checking for --with-computed-gotos... " >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15919 | |
| 15920 | # Check whether --with-computed-gotos was given. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15921 | if test "${with_computed_gotos+set}" = set; then : |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15922 | withval=$with_computed_gotos; |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 15923 | if test "$withval" = yes |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15924 | then |
| 15925 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15926 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15927 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15929 | $as_echo "yes" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15930 | fi |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 15931 | if test "$withval" = no |
| 15932 | then |
| 15933 | |
| 15934 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h |
| 15935 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15937 | $as_echo "no" >&6; } |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15938 | fi |
| 15939 | |
Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 15940 | else |
| 15941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 15942 | $as_echo "no value specified" >&6; } |
| 15943 | fi |
| 15944 | |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15945 | |
Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 15946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 |
| 15947 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } |
| 15948 | if ${ac_cv_computed_gotos+:} false; then : |
| 15949 | $as_echo_n "(cached) " >&6 |
| 15950 | else |
| 15951 | if test "$cross_compiling" = yes; then : |
| 15952 | if test "${with_computed_gotos+set}" = set; then |
| 15953 | ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" |
| 15954 | else |
| 15955 | ac_cv_computed_gotos=no |
| 15956 | fi |
| 15957 | else |
| 15958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15959 | /* end confdefs.h. */ |
| 15960 | |
| 15961 | int main(int argc, char **argv) |
| 15962 | { |
| 15963 | static void *targets[1] = { &&LABEL1 }; |
| 15964 | goto LABEL2; |
| 15965 | LABEL1: |
| 15966 | return 0; |
| 15967 | LABEL2: |
| 15968 | goto *targets[0]; |
| 15969 | return 1; |
| 15970 | } |
| 15971 | |
| 15972 | _ACEOF |
| 15973 | if ac_fn_c_try_run "$LINENO"; then : |
| 15974 | ac_cv_computed_gotos=yes |
| 15975 | else |
| 15976 | ac_cv_computed_gotos=no |
| 15977 | fi |
| 15978 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15979 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15980 | fi |
| 15981 | |
| 15982 | fi |
| 15983 | |
| 15984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 |
| 15985 | $as_echo "$ac_cv_computed_gotos" >&6; } |
| 15986 | case "$ac_cv_computed_gotos" in yes*) |
| 15987 | |
| 15988 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h |
| 15989 | |
| 15990 | esac |
| 15991 | |
Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 15992 | case $ac_sys_system in |
| 15993 | AIX*) |
| 15994 | |
| 15995 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h |
| 15996 | ;; |
| 15997 | esac |
Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 15998 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15999 | |
Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 16000 | |
| 16001 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16002 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 16003 | do |
| 16004 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 16005 | done |
| 16006 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16007 | |
Ned Deily | 0db50cf | 2014-07-25 12:41:31 -0700 | [diff] [blame] | 16008 | SRCDIRS="Parser Grammar Objects Python Modules Mac Programs" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
| 16010 | $as_echo_n "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16011 | for dir in $SRCDIRS; do |
| 16012 | if test ! -d $dir; then |
| 16013 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16014 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16015 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 16017 | $as_echo "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16018 | |
Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16019 | # Availability of -O2: |
| 16020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 |
| 16021 | $as_echo_n "checking for -O2... " >&6; } |
| 16022 | saved_cflags="$CFLAGS" |
| 16023 | CFLAGS="-O2" |
| 16024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16025 | /* end confdefs.h. */ |
| 16026 | |
| 16027 | int |
| 16028 | main () |
| 16029 | { |
| 16030 | |
| 16031 | |
| 16032 | ; |
| 16033 | return 0; |
| 16034 | } |
| 16035 | _ACEOF |
| 16036 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16037 | have_O2=yes |
| 16038 | else |
| 16039 | have_O2=no |
| 16040 | fi |
| 16041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 |
| 16043 | $as_echo "$have_O2" >&6; } |
| 16044 | CFLAGS="$saved_cflags" |
| 16045 | |
| 16046 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: |
| 16047 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html |
| 16048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 |
| 16049 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } |
| 16050 | saved_cflags="$CFLAGS" |
| 16051 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" |
| 16052 | if test "$have_O2" = no; then |
| 16053 | CFLAGS="" |
| 16054 | fi |
| 16055 | if test "$cross_compiling" = yes; then : |
| 16056 | have_glibc_memmove_bug=undefined |
| 16057 | else |
| 16058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16059 | /* end confdefs.h. */ |
| 16060 | |
| 16061 | #include <stdio.h> |
| 16062 | #include <stdlib.h> |
| 16063 | #include <string.h> |
| 16064 | void foo(void *p, void *q) { memmove(p, q, 19); } |
| 16065 | int main() { |
| 16066 | char a[32] = "123456789000000000"; |
| 16067 | foo(&a[9], a); |
| 16068 | if (strcmp(a, "123456789123456789000000000") != 0) |
| 16069 | return 1; |
| 16070 | foo(a, &a[9]); |
| 16071 | if (strcmp(a, "123456789000000000") != 0) |
| 16072 | return 1; |
| 16073 | return 0; |
| 16074 | } |
| 16075 | |
| 16076 | _ACEOF |
| 16077 | if ac_fn_c_try_run "$LINENO"; then : |
| 16078 | have_glibc_memmove_bug=no |
| 16079 | else |
| 16080 | have_glibc_memmove_bug=yes |
| 16081 | fi |
| 16082 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16083 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16084 | fi |
| 16085 | |
| 16086 | CFLAGS="$saved_cflags" |
| 16087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 |
| 16088 | $as_echo "$have_glibc_memmove_bug" >&6; } |
| 16089 | if test "$have_glibc_memmove_bug" = yes; then |
| 16090 | |
| 16091 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h |
| 16092 | |
| 16093 | fi |
| 16094 | |
| 16095 | if test "$have_gcc_asm_for_x87" = yes; then |
| 16096 | # Some versions of gcc miscompile inline asm: |
| 16097 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 |
| 16098 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html |
| 16099 | case $CC in |
| 16100 | *gcc*) |
| 16101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 |
| 16102 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } |
| 16103 | saved_cflags="$CFLAGS" |
| 16104 | CFLAGS="-O2" |
| 16105 | if test "$cross_compiling" = yes; then : |
| 16106 | have_ipa_pure_const_bug=undefined |
| 16107 | else |
| 16108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16109 | /* end confdefs.h. */ |
| 16110 | |
| 16111 | __attribute__((noinline)) int |
| 16112 | foo(int *p) { |
| 16113 | int r; |
| 16114 | asm ( "movl \$6, (%1)\n\t" |
| 16115 | "xorl %0, %0\n\t" |
| 16116 | : "=r" (r) : "r" (p) : "memory" |
| 16117 | ); |
| 16118 | return r; |
| 16119 | } |
| 16120 | int main() { |
| 16121 | int p = 8; |
| 16122 | if ((foo(&p) ? : p) != 6) |
| 16123 | return 1; |
| 16124 | return 0; |
| 16125 | } |
| 16126 | |
| 16127 | _ACEOF |
| 16128 | if ac_fn_c_try_run "$LINENO"; then : |
| 16129 | have_ipa_pure_const_bug=no |
| 16130 | else |
| 16131 | have_ipa_pure_const_bug=yes |
| 16132 | fi |
| 16133 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16134 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16135 | fi |
| 16136 | |
| 16137 | CFLAGS="$saved_cflags" |
| 16138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 |
| 16139 | $as_echo "$have_ipa_pure_const_bug" >&6; } |
| 16140 | if test "$have_ipa_pure_const_bug" = yes; then |
| 16141 | |
| 16142 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h |
| 16143 | |
| 16144 | fi |
| 16145 | ;; |
| 16146 | esac |
| 16147 | fi |
| 16148 | |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16149 | # Check for stdatomic.h |
| 16150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 |
| 16151 | $as_echo_n "checking for stdatomic.h... " >&6; } |
| 16152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16153 | /* end confdefs.h. */ |
| 16154 | |
| 16155 | |
| 16156 | #include <stdatomic.h> |
Victor Stinner | 923e06f | 2015-01-14 16:01:46 +0100 | [diff] [blame] | 16157 | atomic_int value = ATOMIC_VAR_INIT(1); |
| 16158 | _Atomic void *py_atomic_address = (void*) &value; |
Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16159 | int main() { |
| 16160 | int loaded_value = atomic_load(&value); |
| 16161 | return 0; |
| 16162 | } |
| 16163 | |
| 16164 | |
| 16165 | _ACEOF |
| 16166 | if ac_fn_c_try_link "$LINENO"; then : |
| 16167 | have_stdatomic_h=yes |
| 16168 | else |
| 16169 | have_stdatomic_h=no |
| 16170 | fi |
| 16171 | rm -f core conftest.err conftest.$ac_objext \ |
| 16172 | conftest$ac_exeext conftest.$ac_ext |
| 16173 | |
| 16174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 |
| 16175 | $as_echo "$have_stdatomic_h" >&6; } |
| 16176 | |
| 16177 | if test "$have_stdatomic_h" = yes; then |
| 16178 | |
| 16179 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h |
| 16180 | |
| 16181 | fi |
| 16182 | |
| 16183 | # Check for GCC >= 4.7 __atomic builtins |
| 16184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 |
| 16185 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } |
| 16186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16187 | /* end confdefs.h. */ |
| 16188 | |
| 16189 | |
| 16190 | volatile int val = 1; |
| 16191 | int main() { |
| 16192 | __atomic_load_n(&val, __ATOMIC_SEQ_CST); |
| 16193 | return 0; |
| 16194 | } |
| 16195 | |
| 16196 | |
| 16197 | _ACEOF |
| 16198 | if ac_fn_c_try_link "$LINENO"; then : |
| 16199 | have_builtin_atomic=yes |
| 16200 | else |
| 16201 | have_builtin_atomic=no |
| 16202 | fi |
| 16203 | rm -f core conftest.err conftest.$ac_objext \ |
| 16204 | conftest$ac_exeext conftest.$ac_ext |
| 16205 | |
| 16206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 |
| 16207 | $as_echo "$have_builtin_atomic" >&6; } |
| 16208 | |
| 16209 | if test "$have_builtin_atomic" = yes; then |
| 16210 | |
| 16211 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h |
| 16212 | |
| 16213 | fi |
| 16214 | |
Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 16215 | # ensurepip option |
| 16216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 |
| 16217 | $as_echo_n "checking for ensurepip... " >&6; } |
| 16218 | |
| 16219 | # Check whether --with-ensurepip was given. |
| 16220 | if test "${with_ensurepip+set}" = set; then : |
| 16221 | withval=$with_ensurepip; |
| 16222 | else |
| 16223 | with_ensurepip=upgrade |
| 16224 | fi |
| 16225 | |
| 16226 | case $with_ensurepip in #( |
| 16227 | yes|upgrade) : |
| 16228 | ENSUREPIP=upgrade ;; #( |
| 16229 | install) : |
| 16230 | ENSUREPIP=install ;; #( |
| 16231 | no) : |
| 16232 | ENSUREPIP=no ;; #( |
| 16233 | *) : |
| 16234 | as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; |
| 16235 | esac |
| 16236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 |
| 16237 | $as_echo "$ENSUREPIP" >&6; } |
| 16238 | |
| 16239 | |
Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 16240 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined |
| 16241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 |
| 16242 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } |
| 16243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16244 | /* end confdefs.h. */ |
| 16245 | |
| 16246 | |
| 16247 | #include <dirent.h> |
| 16248 | |
| 16249 | int main() { |
| 16250 | struct dirent entry; |
| 16251 | return entry.d_type == DT_UNKNOWN; |
| 16252 | } |
| 16253 | |
| 16254 | |
| 16255 | _ACEOF |
| 16256 | if ac_fn_c_try_link "$LINENO"; then : |
| 16257 | have_dirent_d_type=yes |
| 16258 | else |
| 16259 | have_dirent_d_type=no |
| 16260 | fi |
| 16261 | rm -f core conftest.err conftest.$ac_objext \ |
| 16262 | conftest$ac_exeext conftest.$ac_ext |
| 16263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 |
| 16264 | $as_echo "$have_dirent_d_type" >&6; } |
| 16265 | |
| 16266 | if test "$have_dirent_d_type" = yes; then |
| 16267 | |
| 16268 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h |
| 16269 | |
| 16270 | fi |
| 16271 | |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16272 | # check if the Linux getrandom() syscall is available |
| 16273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 |
| 16274 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } |
| 16275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16276 | /* end confdefs.h. */ |
| 16277 | |
| 16278 | |
Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 16279 | #include <unistd.h> |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16280 | #include <sys/syscall.h> |
| 16281 | |
| 16282 | int main() { |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16283 | char buffer[1]; |
Victor Stinner | bae2d62 | 2015-10-01 09:47:30 +0200 | [diff] [blame] | 16284 | const size_t buflen = sizeof(buffer); |
| 16285 | const int flags = 0; |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16286 | /* ignore the result, Python checks for ENOSYS at runtime */ |
Victor Stinner | bae2d62 | 2015-10-01 09:47:30 +0200 | [diff] [blame] | 16287 | (void)syscall(SYS_getrandom, buffer, buflen, flags); |
Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16288 | return 0; |
| 16289 | } |
| 16290 | |
| 16291 | |
| 16292 | _ACEOF |
| 16293 | if ac_fn_c_try_link "$LINENO"; then : |
| 16294 | have_getrandom_syscall=yes |
| 16295 | else |
| 16296 | have_getrandom_syscall=no |
| 16297 | fi |
| 16298 | rm -f core conftest.err conftest.$ac_objext \ |
| 16299 | conftest$ac_exeext conftest.$ac_ext |
| 16300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 |
| 16301 | $as_echo "$have_getrandom_syscall" >&6; } |
| 16302 | |
| 16303 | if test "$have_getrandom_syscall" = yes; then |
| 16304 | |
| 16305 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h |
| 16306 | |
| 16307 | fi |
| 16308 | |
Victor Stinner | bae2d62 | 2015-10-01 09:47:30 +0200 | [diff] [blame] | 16309 | # check if the getrandom() function is available |
| 16310 | # the test was written for the Solaris function of <sys/random.h> |
| 16311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 |
| 16312 | $as_echo_n "checking for the getrandom() function... " >&6; } |
| 16313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16314 | /* end confdefs.h. */ |
| 16315 | |
| 16316 | |
| 16317 | #include <sys/random.h> |
| 16318 | |
| 16319 | int main() { |
| 16320 | char buffer[1]; |
| 16321 | const size_t buflen = sizeof(buffer); |
| 16322 | const int flags = 0; |
| 16323 | /* ignore the result, Python checks for ENOSYS at runtime */ |
| 16324 | (void)getrandom(buffer, buflen, flags); |
| 16325 | return 0; |
| 16326 | } |
| 16327 | |
| 16328 | |
| 16329 | _ACEOF |
| 16330 | if ac_fn_c_try_link "$LINENO"; then : |
| 16331 | have_getrandom=yes |
| 16332 | else |
| 16333 | have_getrandom=no |
| 16334 | fi |
| 16335 | rm -f core conftest.err conftest.$ac_objext \ |
| 16336 | conftest$ac_exeext conftest.$ac_ext |
| 16337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 |
| 16338 | $as_echo "$have_getrandom" >&6; } |
| 16339 | |
| 16340 | if test "$have_getrandom" = yes; then |
| 16341 | |
| 16342 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h |
| 16343 | |
| 16344 | fi |
| 16345 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16346 | # generate output files |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 16347 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc Misc/python-config.sh" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 16348 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 16349 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
| 16350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16351 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16352 | # This file is a shell script that caches the results of configure |
| 16353 | # 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] | 16354 | # scripts and configure runs, see configure's option --config-cache. |
| 16355 | # It is not useful on other systems. If it contains results you don't |
| 16356 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16357 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16358 | # config.status only pays attention to the cache file if you give it |
| 16359 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16360 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16361 | # `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] | 16362 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16363 | # following values. |
| 16364 | |
| 16365 | _ACEOF |
| 16366 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16367 | # The following way of writing the cache mishandles newlines in values, |
| 16368 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16369 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16370 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16371 | # 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] | 16372 | ( |
| 16373 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 16374 | eval ac_val=\$$ac_var |
| 16375 | case $ac_val in #( |
| 16376 | *${as_nl}*) |
| 16377 | case $ac_var in #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16378 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 16379 | $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] | 16380 | esac |
| 16381 | case $ac_var in #( |
| 16382 | _ | IFS | as_nl) ;; #( |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16383 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 16384 | *) { eval $ac_var=; unset $ac_var;} ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16385 | esac ;; |
| 16386 | esac |
| 16387 | done |
| 16388 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16389 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16390 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 16391 | *${as_nl}ac_space=\ *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16392 | # `set' does not quote correctly, so add quotes: double-quote |
| 16393 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16394 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16395 | "s/'/'\\\\''/g; |
| 16396 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16397 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16398 | *) |
| 16399 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16400 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16401 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16402 | esac | |
| 16403 | sort |
| 16404 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16405 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16406 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16407 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16408 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16409 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16410 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16411 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16412 | :end' >>confcache |
| 16413 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 16414 | if test -w "$cache_file"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16415 | if test "x$cache_file" != "x/dev/null"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16416 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 16417 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16418 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 16419 | cat confcache >"$cache_file" |
| 16420 | else |
| 16421 | case $cache_file in #( |
| 16422 | */* | ?:*) |
| 16423 | mv -f confcache "$cache_file"$$ && |
| 16424 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 16425 | *) |
| 16426 | mv -f confcache "$cache_file" ;; |
| 16427 | esac |
| 16428 | fi |
| 16429 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16430 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16431 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 16432 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16433 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16434 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16435 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16436 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16437 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16438 | # Let make expand exec_prefix. |
| 16439 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16440 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16441 | DEFS=-DHAVE_CONFIG_H |
| 16442 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16443 | ac_libobjs= |
| 16444 | ac_ltlibobjs= |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16445 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16446 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16447 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16448 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16449 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16450 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 16451 | # will be set to the directory where LIBOBJS objects are built. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16452 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 16453 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16454 | done |
| 16455 | LIBOBJS=$ac_libobjs |
| 16456 | |
| 16457 | LTLIBOBJS=$ac_ltlibobjs |
| 16458 | |
| 16459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16460 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16461 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16462 | : "${CONFIG_STATUS=./config.status}" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16463 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16464 | ac_clean_files_save=$ac_clean_files |
| 16465 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16466 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 16467 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16468 | as_write_fail=0 |
| 16469 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16470 | #! $SHELL |
| 16471 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16472 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16473 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16474 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16476 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16477 | ac_cs_recheck=false |
| 16478 | ac_cs_silent=false |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16479 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16480 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16481 | export SHELL |
| 16482 | _ASEOF |
| 16483 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 16484 | ## -------------------- ## |
| 16485 | ## M4sh Initialization. ## |
| 16486 | ## -------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16487 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16488 | # Be more Bourne compatible |
| 16489 | DUALCASE=1; export DUALCASE # for MKS sh |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16490 | 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] | 16491 | emulate sh |
| 16492 | NULLCMD=: |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16493 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16494 | # is contrary to our usage. Disable this feature. |
| 16495 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16496 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 16497 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16498 | case `(set -o) 2>/dev/null` in #( |
| 16499 | *posix*) : |
| 16500 | set -o posix ;; #( |
| 16501 | *) : |
| 16502 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16503 | esac |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16504 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16505 | |
| 16506 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16507 | as_nl=' |
| 16508 | ' |
| 16509 | export as_nl |
| 16510 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 16511 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 16512 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16513 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16514 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 16515 | # but without wasting forks for bash or zsh. |
| 16516 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 16517 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16518 | as_echo='print -r --' |
| 16519 | as_echo_n='print -rn --' |
| 16520 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16521 | as_echo='printf %s\n' |
| 16522 | as_echo_n='printf %s' |
| 16523 | else |
| 16524 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 16525 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 16526 | as_echo_n='/usr/ucb/echo -n' |
| 16527 | else |
| 16528 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 16529 | as_echo_n_body='eval |
| 16530 | arg=$1; |
| 16531 | case $arg in #( |
| 16532 | *"$as_nl"*) |
| 16533 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 16534 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 16535 | esac; |
| 16536 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 16537 | ' |
| 16538 | export as_echo_n_body |
| 16539 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 16540 | fi |
| 16541 | export as_echo_body |
| 16542 | as_echo='sh -c $as_echo_body as_echo' |
| 16543 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16544 | |
| 16545 | # The user is always right. |
| 16546 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16547 | PATH_SEPARATOR=: |
| 16548 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 16549 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 16550 | PATH_SEPARATOR=';' |
| 16551 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16552 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16553 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16554 | |
| 16555 | # IFS |
| 16556 | # We need space, tab and new line, in precisely that order. Quoting is |
| 16557 | # there to prevent editors from complaining about space-tab. |
| 16558 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 16559 | # splitting by setting IFS to empty value.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16560 | IFS=" "" $as_nl" |
| 16561 | |
| 16562 | # 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] | 16563 | as_myself= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16564 | case $0 in #(( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16565 | *[\\/]* ) as_myself=$0 ;; |
| 16566 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16567 | for as_dir in $PATH |
| 16568 | do |
| 16569 | IFS=$as_save_IFS |
| 16570 | test -z "$as_dir" && as_dir=. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16571 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16572 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16573 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16574 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16575 | ;; |
| 16576 | esac |
| 16577 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16578 | # in which case we are not to be found in the path. |
| 16579 | if test "x$as_myself" = x; then |
| 16580 | as_myself=$0 |
| 16581 | fi |
| 16582 | if test ! -f "$as_myself"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16583 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 16584 | exit 1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16585 | fi |
| 16586 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16587 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 16588 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 16589 | # suppresses any "Segmentation fault" message there. '((' could |
| 16590 | # trigger a bug in pdksh 5.2.14. |
| 16591 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 16592 | do eval test x\${$as_var+set} = xset \ |
| 16593 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16594 | done |
| 16595 | PS1='$ ' |
| 16596 | PS2='> ' |
| 16597 | PS4='+ ' |
| 16598 | |
| 16599 | # NLS nuisances. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16600 | LC_ALL=C |
| 16601 | export LC_ALL |
| 16602 | LANGUAGE=C |
| 16603 | export LANGUAGE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16604 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16605 | # CDPATH. |
| 16606 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 16607 | |
| 16608 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16609 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 16610 | # ---------------------------------------- |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16611 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 16612 | # 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] | 16613 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16614 | as_fn_error () |
| 16615 | { |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16616 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 16617 | if test "$4"; then |
| 16618 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 16619 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16620 | fi |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16621 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16622 | as_fn_exit $as_status |
| 16623 | } # as_fn_error |
| 16624 | |
| 16625 | |
| 16626 | # as_fn_set_status STATUS |
| 16627 | # ----------------------- |
| 16628 | # Set $? to STATUS, without forking. |
| 16629 | as_fn_set_status () |
| 16630 | { |
| 16631 | return $1 |
| 16632 | } # as_fn_set_status |
| 16633 | |
| 16634 | # as_fn_exit STATUS |
| 16635 | # ----------------- |
| 16636 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 16637 | as_fn_exit () |
| 16638 | { |
| 16639 | set +e |
| 16640 | as_fn_set_status $1 |
| 16641 | exit $1 |
| 16642 | } # as_fn_exit |
| 16643 | |
| 16644 | # as_fn_unset VAR |
| 16645 | # --------------- |
| 16646 | # Portably unset VAR. |
| 16647 | as_fn_unset () |
| 16648 | { |
| 16649 | { eval $1=; unset $1;} |
| 16650 | } |
| 16651 | as_unset=as_fn_unset |
| 16652 | # as_fn_append VAR VALUE |
| 16653 | # ---------------------- |
| 16654 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 16655 | # advantage of any shell optimizations that allow amortized linear growth over |
| 16656 | # repeated appends, instead of the typical quadratic growth present in naive |
| 16657 | # implementations. |
| 16658 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 16659 | eval 'as_fn_append () |
| 16660 | { |
| 16661 | eval $1+=\$2 |
| 16662 | }' |
| 16663 | else |
| 16664 | as_fn_append () |
| 16665 | { |
| 16666 | eval $1=\$$1\$2 |
| 16667 | } |
| 16668 | fi # as_fn_append |
| 16669 | |
| 16670 | # as_fn_arith ARG... |
| 16671 | # ------------------ |
| 16672 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 16673 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 16674 | # must be portable across $(()) and expr. |
| 16675 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 16676 | eval 'as_fn_arith () |
| 16677 | { |
| 16678 | as_val=$(( $* )) |
| 16679 | }' |
| 16680 | else |
| 16681 | as_fn_arith () |
| 16682 | { |
| 16683 | as_val=`expr "$@" || test $? -eq 1` |
| 16684 | } |
| 16685 | fi # as_fn_arith |
| 16686 | |
| 16687 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16688 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 16689 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 16690 | as_expr=expr |
| 16691 | else |
| 16692 | as_expr=false |
| 16693 | fi |
| 16694 | |
| 16695 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 16696 | as_basename=basename |
| 16697 | else |
| 16698 | as_basename=false |
| 16699 | fi |
| 16700 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16701 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 16702 | as_dirname=dirname |
| 16703 | else |
| 16704 | as_dirname=false |
| 16705 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16706 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16707 | as_me=`$as_basename -- "$0" || |
| 16708 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16709 | X"$0" : 'X\(//\)$' \| \ |
| 16710 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16711 | $as_echo X/"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16712 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 16713 | s//\1/ |
| 16714 | q |
| 16715 | } |
| 16716 | /^X\/\(\/\/\)$/{ |
| 16717 | s//\1/ |
| 16718 | q |
| 16719 | } |
| 16720 | /^X\/\(\/\).*/{ |
| 16721 | s//\1/ |
| 16722 | q |
| 16723 | } |
| 16724 | s/.*/./; q'` |
| 16725 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16726 | # Avoid depending upon Character Ranges. |
| 16727 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16728 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16729 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16730 | as_cr_digits='0123456789' |
| 16731 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16732 | |
| 16733 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16734 | case `echo -n x` in #((((( |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16735 | -n*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16736 | case `echo 'xy\c'` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16737 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16738 | xy) ECHO_C='\c';; |
| 16739 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 16740 | ECHO_T=' ';; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16741 | esac;; |
| 16742 | *) |
| 16743 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16744 | esac |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 16745 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16746 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16747 | if test -d conf$$.dir; then |
| 16748 | rm -f conf$$.dir/conf$$.file |
| 16749 | else |
| 16750 | rm -f conf$$.dir |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16751 | mkdir conf$$.dir 2>/dev/null |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16752 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16753 | if (echo >conf$$.file) 2>/dev/null; then |
| 16754 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16755 | as_ln_s='ln -s' |
| 16756 | # ... but there are two gotchas: |
| 16757 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 16758 | # 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] | 16759 | # In both cases, we have to default to `cp -pR'. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16760 | 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] | 16761 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16762 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16763 | as_ln_s=ln |
| 16764 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16765 | as_ln_s='cp -pR' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16766 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16767 | else |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16768 | as_ln_s='cp -pR' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16769 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16770 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 16771 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16772 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16773 | |
| 16774 | # as_fn_mkdir_p |
| 16775 | # ------------- |
| 16776 | # Create "$as_dir" as a directory, including parents if necessary. |
| 16777 | as_fn_mkdir_p () |
| 16778 | { |
| 16779 | |
| 16780 | case $as_dir in #( |
| 16781 | -*) as_dir=./$as_dir;; |
| 16782 | esac |
| 16783 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 16784 | as_dirs= |
| 16785 | while :; do |
| 16786 | case $as_dir in #( |
| 16787 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 16788 | *) as_qdir=$as_dir;; |
| 16789 | esac |
| 16790 | as_dirs="'$as_qdir' $as_dirs" |
| 16791 | as_dir=`$as_dirname -- "$as_dir" || |
| 16792 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16793 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16794 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16795 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 16796 | $as_echo X"$as_dir" | |
| 16797 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16798 | s//\1/ |
| 16799 | q |
| 16800 | } |
| 16801 | /^X\(\/\/\)[^/].*/{ |
| 16802 | s//\1/ |
| 16803 | q |
| 16804 | } |
| 16805 | /^X\(\/\/\)$/{ |
| 16806 | s//\1/ |
| 16807 | q |
| 16808 | } |
| 16809 | /^X\(\/\).*/{ |
| 16810 | s//\1/ |
| 16811 | q |
| 16812 | } |
| 16813 | s/.*/./; q'` |
| 16814 | test -d "$as_dir" && break |
| 16815 | done |
| 16816 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16817 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16818 | |
| 16819 | |
| 16820 | } # as_fn_mkdir_p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16821 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16822 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16823 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16824 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16825 | as_mkdir_p=false |
| 16826 | fi |
| 16827 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16828 | |
| 16829 | # as_fn_executable_p FILE |
| 16830 | # ----------------------- |
| 16831 | # Test if FILE is an executable regular file. |
| 16832 | as_fn_executable_p () |
| 16833 | { |
| 16834 | test -f "$1" && test -x "$1" |
| 16835 | } # as_fn_executable_p |
| 16836 | as_test_x='test -x' |
| 16837 | as_executable_p=as_fn_executable_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16838 | |
| 16839 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16840 | 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] | 16841 | |
| 16842 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16843 | 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] | 16844 | |
| 16845 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16846 | exec 6>&1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16847 | ## ----------------------------------- ## |
| 16848 | ## Main body of $CONFIG_STATUS script. ## |
| 16849 | ## ----------------------------------- ## |
| 16850 | _ASEOF |
| 16851 | 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] | 16852 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16853 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16854 | # 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] | 16855 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16856 | # values after options handling. |
| 16857 | ac_log=" |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 16858 | This file was extended by python $as_me 3.5, which was |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16859 | generated by GNU Autoconf 2.69. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16860 | |
| 16861 | CONFIG_FILES = $CONFIG_FILES |
| 16862 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16863 | CONFIG_LINKS = $CONFIG_LINKS |
| 16864 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16865 | $ $0 $@ |
| 16866 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16867 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 16868 | " |
| 16869 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16870 | _ACEOF |
| 16871 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16872 | case $ac_config_files in *" |
| 16873 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 16874 | esac |
| 16875 | |
| 16876 | case $ac_config_headers in *" |
| 16877 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 16878 | esac |
| 16879 | |
| 16880 | |
| 16881 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16882 | # Files that config.status was made for. |
Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 16883 | config_files="$ac_config_files" |
| 16884 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16885 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16886 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16887 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16888 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16889 | ac_cs_usage="\ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16890 | \`$as_me' instantiates files and other configuration actions |
| 16891 | from templates according to the current configuration. Unless the files |
| 16892 | 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] | 16893 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16894 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16895 | |
| 16896 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16897 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16898 | --config print configuration, then exit |
| 16899 | -q, --quiet, --silent |
| 16900 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16901 | -d, --debug don't remove temporary files |
| 16902 | --recheck update $as_me by reconfiguring in the same conditions |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16903 | --file=FILE[:TEMPLATE] |
| 16904 | instantiate the configuration file FILE |
| 16905 | --header=FILE[:TEMPLATE] |
| 16906 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16907 | |
| 16908 | Configuration files: |
| 16909 | $config_files |
| 16910 | |
| 16911 | Configuration headers: |
| 16912 | $config_headers |
| 16913 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16914 | Report bugs to <http://bugs.python.org/>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 16915 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16916 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16917 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16918 | 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] | 16919 | ac_cs_version="\\ |
Yury Selivanov | 7aa5341 | 2015-05-30 10:57:56 -0400 | [diff] [blame] | 16920 | python config.status 3.5 |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16921 | configured by $0, generated by GNU Autoconf 2.69, |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16922 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16923 | |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 16924 | Copyright (C) 2012 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16925 | This config.status script is free software; the Free Software Foundation |
| 16926 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16927 | |
| 16928 | ac_pwd='$ac_pwd' |
| 16929 | srcdir='$srcdir' |
| 16930 | INSTALL='$INSTALL' |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 16931 | MKDIR_P='$MKDIR_P' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16932 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16933 | _ACEOF |
| 16934 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16935 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16936 | # 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] | 16937 | ac_need_defaults=: |
| 16938 | while test $# != 0 |
| 16939 | do |
| 16940 | case $1 in |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16941 | --*=?*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16942 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16943 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16944 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16945 | ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16946 | --*=) |
| 16947 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16948 | ac_optarg= |
| 16949 | ac_shift=: |
| 16950 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16951 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16952 | ac_option=$1 |
| 16953 | ac_optarg=$2 |
| 16954 | ac_shift=shift |
| 16955 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16956 | esac |
| 16957 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16958 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16959 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16960 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16961 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16962 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16963 | $as_echo "$ac_cs_version"; exit ;; |
| 16964 | --config | --confi | --conf | --con | --co | --c ) |
| 16965 | $as_echo "$ac_cs_config"; exit ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16966 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16967 | debug=: ;; |
| 16968 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16969 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16970 | case $ac_optarg in |
| 16971 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16972 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16973 | esac |
| 16974 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16975 | ac_need_defaults=false;; |
| 16976 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16977 | $ac_shift |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16978 | case $ac_optarg in |
| 16979 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 16980 | esac |
| 16981 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16982 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16983 | --he | --h) |
| 16984 | # Conflict between --help and --header |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16985 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16986 | Try \`$0 --help' for more information.";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16987 | --help | --hel | -h ) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16988 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16989 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16990 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16991 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16992 | |
| 16993 | # This is an error. |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16994 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16995 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16996 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16997 | *) as_fn_append ac_config_targets " $1" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16998 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16999 | |
| 17000 | esac |
| 17001 | shift |
| 17002 | done |
| 17003 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17004 | ac_configure_extra_args= |
| 17005 | |
| 17006 | if $ac_cs_silent; then |
| 17007 | exec 6>/dev/null |
| 17008 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 17009 | fi |
| 17010 | |
| 17011 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17012 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17013 | if \$ac_cs_recheck; then |
Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17014 | 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] | 17015 | shift |
| 17016 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 17017 | CONFIG_SHELL='$SHELL' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17018 | export CONFIG_SHELL |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17019 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17020 | fi |
| 17021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17022 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17023 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17024 | exec 5>>config.log |
| 17025 | { |
| 17026 | echo |
| 17027 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17028 | ## Running $as_me. ## |
| 17029 | _ASBOX |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17030 | $as_echo "$ac_log" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17031 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17032 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17033 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17034 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17035 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17036 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17037 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17038 | |
| 17039 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17040 | for ac_config_target in $ac_config_targets |
| 17041 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17042 | case $ac_config_target in |
| 17043 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 17044 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 17045 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 17046 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 17047 | "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] | 17048 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 17049 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17050 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17051 | "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17052 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17053 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17054 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17055 | esac |
| 17056 | done |
| 17057 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17059 | # If the user did not use the arguments to specify the items to instantiate, |
| 17060 | # then the envvar interface is used. Set only those that are not. |
| 17061 | # We use the long form for the default assignment because of an extremely |
| 17062 | # bizarre bug on SunOS 4.1.3. |
| 17063 | if $ac_need_defaults; then |
| 17064 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17065 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17066 | fi |
| 17067 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17068 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17069 | # 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] | 17070 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17071 | # Hook for its removal unless debugging. |
| 17072 | # Note that there is a small window in which the directory will not be cleaned: |
| 17073 | # 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] | 17074 | $debug || |
| 17075 | { |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17076 | tmp= ac_tmp= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17077 | trap 'exit_status=$? |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17078 | : "${ac_tmp:=$tmp}" |
| 17079 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17080 | ' 0 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17081 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17082 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17083 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17085 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17086 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17087 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17088 | } || |
| 17089 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17090 | tmp=./conf$$-$RANDOM |
| 17091 | (umask 077 && mkdir "$tmp") |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17092 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17093 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17094 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17095 | # Set up the scripts for CONFIG_FILES section. |
| 17096 | # No need to generate them if there are no CONFIG_FILES. |
| 17097 | # This happens for instance with `./config.status config.h'. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17098 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17099 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17100 | |
| 17101 | ac_cr=`echo X | tr X '\015'` |
| 17102 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 17103 | # But we know of no other shell where ac_cr would be empty at this |
| 17104 | # point, so we can use a bashism as a fallback. |
| 17105 | if test "x$ac_cr" = x; then |
| 17106 | eval ac_cr=\$\'\\r\' |
| 17107 | fi |
| 17108 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 17109 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17110 | ac_cs_awk_cr='\\r' |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17111 | else |
| 17112 | ac_cs_awk_cr=$ac_cr |
| 17113 | fi |
| 17114 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17115 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17116 | _ACEOF |
| 17117 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17118 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17119 | { |
| 17120 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 17121 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 17122 | echo "_ACEOF" |
| 17123 | } >conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17124 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 17125 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17126 | ac_delim='%!_!# ' |
| 17127 | for ac_last_try in false false false false false :; do |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17128 | . ./conf$$subs.sh || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17129 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17130 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17131 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 17132 | if test $ac_delim_n = $ac_delim_num; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17133 | break |
| 17134 | elif $ac_last_try; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17135 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17136 | else |
| 17137 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17138 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17139 | done |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17140 | rm -f conf$$subs.sh |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17141 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17142 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17143 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17144 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17145 | sed -n ' |
| 17146 | h |
| 17147 | s/^/S["/; s/!.*/"]=/ |
| 17148 | p |
| 17149 | g |
| 17150 | s/^[^!]*!// |
| 17151 | :repl |
| 17152 | t repl |
| 17153 | s/'"$ac_delim"'$// |
| 17154 | t delim |
| 17155 | :nl |
| 17156 | h |
| 17157 | s/\(.\{148\}\)..*/\1/ |
| 17158 | t more1 |
| 17159 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 17160 | p |
| 17161 | n |
| 17162 | b repl |
| 17163 | :more1 |
| 17164 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17165 | p |
| 17166 | g |
| 17167 | s/.\{148\}// |
| 17168 | t nl |
| 17169 | :delim |
| 17170 | h |
| 17171 | s/\(.\{148\}\)..*/\1/ |
| 17172 | t more2 |
| 17173 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 17174 | p |
| 17175 | b |
| 17176 | :more2 |
| 17177 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17178 | p |
| 17179 | g |
| 17180 | s/.\{148\}// |
| 17181 | t delim |
| 17182 | ' <conf$$subs.awk | sed ' |
| 17183 | /^[^""]/{ |
| 17184 | N |
| 17185 | s/\n// |
| 17186 | } |
| 17187 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17188 | rm -f conf$$subs.awk |
| 17189 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17190 | _ACAWK |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17191 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17192 | for (key in S) S_is_set[key] = 1 |
| 17193 | FS = "" |
| 17194 | |
| 17195 | } |
| 17196 | { |
| 17197 | line = $ 0 |
| 17198 | nfields = split(line, field, "@") |
| 17199 | substed = 0 |
| 17200 | len = length(field[1]) |
| 17201 | for (i = 2; i < nfields; i++) { |
| 17202 | key = field[i] |
| 17203 | keylen = length(key) |
| 17204 | if (S_is_set[key]) { |
| 17205 | value = S[key] |
| 17206 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 17207 | len += length(value) + length(field[++i]) |
| 17208 | substed = 1 |
| 17209 | } else |
| 17210 | len += 1 + keylen |
| 17211 | } |
| 17212 | |
| 17213 | print line |
| 17214 | } |
| 17215 | |
| 17216 | _ACAWK |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17217 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17218 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17219 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 17220 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 17221 | else |
| 17222 | cat |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17223 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17224 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17225 | _ACEOF |
| 17226 | |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17227 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 17228 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17229 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17230 | # (actually we leave an empty line to preserve line numbers). |
| 17231 | if test "x$srcdir" = x.; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17232 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 17233 | h |
| 17234 | s/// |
| 17235 | s/^/:/ |
| 17236 | s/[ ]*$/:/ |
| 17237 | s/:\$(srcdir):/:/g |
| 17238 | s/:\${srcdir}:/:/g |
| 17239 | s/:@srcdir@:/:/g |
| 17240 | s/^:*// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17241 | s/:*$// |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17242 | x |
| 17243 | s/\(=[ ]*\).*/\1/ |
| 17244 | G |
| 17245 | s/\n// |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17246 | s/^[^=]*=[ ]*$// |
| 17247 | }' |
| 17248 | fi |
| 17249 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17250 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17251 | fi # test -n "$CONFIG_FILES" |
| 17252 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17253 | # Set up the scripts for CONFIG_HEADERS section. |
| 17254 | # No need to generate them if there are no CONFIG_HEADERS. |
| 17255 | # This happens for instance with `./config.status Makefile'. |
| 17256 | if test -n "$CONFIG_HEADERS"; then |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17257 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17258 | BEGIN { |
| 17259 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17260 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17261 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 17262 | # here-document in config.status, that substitutes the proper values into |
| 17263 | # config.h.in to produce config.h. |
| 17264 | |
| 17265 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 17266 | # handling of long lines. |
| 17267 | ac_delim='%!_!# ' |
| 17268 | for ac_last_try in false false :; do |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17269 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 17270 | if test -z "$ac_tt"; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17271 | break |
| 17272 | elif $ac_last_try; then |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17273 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17274 | else |
| 17275 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17276 | fi |
| 17277 | done |
| 17278 | |
| 17279 | # For the awk script, D is an array of macro values keyed by name, |
| 17280 | # likewise P contains macro parameters if any. Preserve backslash |
| 17281 | # newline sequences. |
| 17282 | |
| 17283 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 17284 | sed -n ' |
| 17285 | s/.\{148\}/&'"$ac_delim"'/g |
| 17286 | t rset |
| 17287 | :rset |
| 17288 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 17289 | t def |
| 17290 | d |
| 17291 | :def |
| 17292 | s/\\$// |
| 17293 | t bsnl |
| 17294 | s/["\\]/\\&/g |
| 17295 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17296 | D["\1"]=" \3"/p |
| 17297 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 17298 | d |
| 17299 | :bsnl |
| 17300 | s/["\\]/\\&/g |
| 17301 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17302 | D["\1"]=" \3\\\\\\n"\\/p |
| 17303 | t cont |
| 17304 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 17305 | t cont |
| 17306 | d |
| 17307 | :cont |
| 17308 | n |
| 17309 | s/.\{148\}/&'"$ac_delim"'/g |
| 17310 | t clear |
| 17311 | :clear |
| 17312 | s/\\$// |
| 17313 | t bsnlc |
| 17314 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 17315 | d |
| 17316 | :bsnlc |
| 17317 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 17318 | b cont |
| 17319 | ' <confdefs.h | sed ' |
| 17320 | s/'"$ac_delim"'/"\\\ |
| 17321 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17322 | |
| 17323 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17324 | for (key in D) D_is_set[key] = 1 |
| 17325 | FS = "" |
| 17326 | } |
| 17327 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 17328 | line = \$ 0 |
| 17329 | split(line, arg, " ") |
| 17330 | if (arg[1] == "#") { |
| 17331 | defundef = arg[2] |
| 17332 | mac1 = arg[3] |
| 17333 | } else { |
| 17334 | defundef = substr(arg[1], 2) |
| 17335 | mac1 = arg[2] |
| 17336 | } |
| 17337 | split(mac1, mac2, "(") #) |
| 17338 | macro = mac2[1] |
| 17339 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 17340 | if (D_is_set[macro]) { |
| 17341 | # Preserve the white space surrounding the "#". |
| 17342 | print prefix "define", macro P[macro] D[macro] |
| 17343 | next |
| 17344 | } else { |
| 17345 | # Replace #undef with comments. This is necessary, for example, |
| 17346 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 17347 | # on some systems where configure will not decide to define it. |
| 17348 | if (defundef == "undef") { |
| 17349 | print "/*", prefix defundef, macro, "*/" |
| 17350 | next |
| 17351 | } |
| 17352 | } |
| 17353 | } |
| 17354 | { print } |
| 17355 | _ACAWK |
| 17356 | _ACEOF |
| 17357 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17358 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17359 | fi # test -n "$CONFIG_HEADERS" |
| 17360 | |
| 17361 | |
| 17362 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 17363 | shift |
| 17364 | for ac_tag |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17365 | do |
| 17366 | case $ac_tag in |
| 17367 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 17368 | esac |
| 17369 | case $ac_mode$ac_tag in |
| 17370 | :[FHL]*:*);; |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17371 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17372 | :[FH]-) ac_tag=-:-;; |
| 17373 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 17374 | esac |
| 17375 | ac_save_IFS=$IFS |
| 17376 | IFS=: |
| 17377 | set x $ac_tag |
| 17378 | IFS=$ac_save_IFS |
| 17379 | shift |
| 17380 | ac_file=$1 |
| 17381 | shift |
| 17382 | |
| 17383 | case $ac_mode in |
| 17384 | :L) ac_source=$1;; |
| 17385 | :[FH]) |
| 17386 | ac_file_inputs= |
| 17387 | for ac_f |
| 17388 | do |
| 17389 | case $ac_f in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17390 | -) ac_f="$ac_tmp/stdin";; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17391 | *) # Look for the file first in the build tree, then in the source tree |
| 17392 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 17393 | # because $ac_f cannot contain `:'. |
| 17394 | test -f "$ac_f" || |
| 17395 | case $ac_f in |
| 17396 | [\\/$]*) false;; |
| 17397 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 17398 | esac || |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17399 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17400 | esac |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17401 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 17402 | as_fn_append ac_file_inputs " '$ac_f'" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17403 | done |
| 17404 | |
| 17405 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17406 | # use $as_me), people would be surprised to read: |
| 17407 | # /* config.h. Generated by config.status. */ |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17408 | configure_input='Generated from '` |
| 17409 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 17410 | `' by configure.' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17411 | if test x"$ac_file" != x-; then |
| 17412 | configure_input="$ac_file. $configure_input" |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17413 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 17414 | $as_echo "$as_me: creating $ac_file" >&6;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17415 | fi |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17416 | # Neutralize special characters interpreted by sed in replacement strings. |
| 17417 | case $configure_input in #( |
| 17418 | *\&* | *\|* | *\\* ) |
| 17419 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 17420 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 17421 | *) ac_sed_conf_input=$configure_input;; |
| 17422 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17423 | |
| 17424 | case $ac_tag in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17425 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 17426 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17427 | esac |
| 17428 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17429 | esac |
| 17430 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17431 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17432 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17433 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17434 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17435 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17436 | $as_echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17437 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17438 | s//\1/ |
| 17439 | q |
| 17440 | } |
| 17441 | /^X\(\/\/\)[^/].*/{ |
| 17442 | s//\1/ |
| 17443 | q |
| 17444 | } |
| 17445 | /^X\(\/\/\)$/{ |
| 17446 | s//\1/ |
| 17447 | q |
| 17448 | } |
| 17449 | /^X\(\/\).*/{ |
| 17450 | s//\1/ |
| 17451 | q |
| 17452 | } |
| 17453 | s/.*/./; q'` |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17454 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17455 | ac_builddir=. |
| 17456 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17457 | case "$ac_dir" in |
| 17458 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17459 | *) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17460 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17461 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17462 | 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] | 17463 | case $ac_top_builddir_sub in |
| 17464 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17465 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 17466 | esac ;; |
| 17467 | esac |
| 17468 | ac_abs_top_builddir=$ac_pwd |
| 17469 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 17470 | # for backward compatibility: |
| 17471 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17472 | |
| 17473 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17474 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17475 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17476 | ac_top_srcdir=$ac_top_builddir_sub |
| 17477 | ac_abs_top_srcdir=$ac_pwd ;; |
| 17478 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17479 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17480 | ac_top_srcdir=$srcdir |
| 17481 | ac_abs_top_srcdir=$srcdir ;; |
| 17482 | *) # Relative name. |
| 17483 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 17484 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 17485 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17486 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17487 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17489 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17490 | case $ac_mode in |
| 17491 | :F) |
| 17492 | # |
| 17493 | # CONFIG_FILE |
| 17494 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17495 | |
| 17496 | case $INSTALL in |
| 17497 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17498 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17499 | esac |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17500 | ac_MKDIR_P=$MKDIR_P |
| 17501 | case $MKDIR_P in |
| 17502 | [\\/$]* | ?:[\\/]* ) ;; |
| 17503 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 17504 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17505 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17506 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17507 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17508 | # If the template does not know about datarootdir, expand it. |
| 17509 | # FIXME: This hack should be removed a few years after 2.60. |
| 17510 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17511 | ac_sed_dataroot=' |
| 17512 | /datarootdir/ { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17513 | p |
| 17514 | q |
| 17515 | } |
| 17516 | /@datadir@/p |
| 17517 | /@docdir@/p |
| 17518 | /@infodir@/p |
| 17519 | /@localedir@/p |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17520 | /@mandir@/p' |
| 17521 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17522 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 17523 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17524 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 17525 | $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] | 17526 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17527 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17528 | ac_datarootdir_hack=' |
| 17529 | s&@datadir@&$datadir&g |
| 17530 | s&@docdir@&$docdir&g |
| 17531 | s&@infodir@&$infodir&g |
| 17532 | s&@localedir@&$localedir&g |
| 17533 | s&@mandir@&$mandir&g |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17534 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17535 | esac |
| 17536 | _ACEOF |
| 17537 | |
| 17538 | # Neutralize VPATH when `$srcdir' = `.'. |
| 17539 | # Shell code in configure.ac might set extrasub. |
| 17540 | # FIXME: do we really want to maintain this feature? |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17541 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17542 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17543 | $extrasub |
| 17544 | _ACEOF |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17545 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17546 | :t |
| 17547 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17548 | s|@configure_input@|$ac_sed_conf_input|;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17549 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17550 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17551 | s&@srcdir@&$ac_srcdir&;t t |
| 17552 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 17553 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 17554 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 17555 | s&@builddir@&$ac_builddir&;t t |
| 17556 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 17557 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 17558 | s&@INSTALL@&$ac_INSTALL&;t t |
Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17559 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17560 | $ac_datarootdir_hack |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17561 | " |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17562 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 17563 | >$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] | 17564 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17565 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17566 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 17567 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 17568 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17569 | { $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] | 17570 | which seems to be undefined. Please make sure it is defined" >&5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17571 | $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] | 17572 | which seems to be undefined. Please make sure it is defined" >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17573 | |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17574 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17575 | case $ac_file in |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17576 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 17577 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17578 | esac \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17579 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17580 | ;; |
| 17581 | :H) |
| 17582 | # |
| 17583 | # CONFIG_HEADER |
| 17584 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17585 | if test x"$ac_file" != x-; then |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17586 | { |
| 17587 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17588 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 17589 | } >"$ac_tmp/config.h" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17590 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17591 | 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] | 17592 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 17593 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17594 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17595 | rm -f "$ac_file" |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17596 | mv "$ac_tmp/config.h" "$ac_file" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17597 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17598 | fi |
| 17599 | else |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17600 | $as_echo "/* $configure_input */" \ |
Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17601 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17602 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17603 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17604 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17605 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17606 | |
| 17607 | esac |
| 17608 | |
Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17609 | |
| 17610 | case $ac_file$ac_mode in |
| 17611 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; |
| 17612 | |
| 17613 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17614 | done # for ac_tag |
| 17615 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17616 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17617 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17618 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17619 | ac_clean_files=$ac_clean_files_save |
| 17620 | |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17621 | test $ac_write_fail = 0 || |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17622 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17624 | |
| 17625 | # configure is writing to config.log, and then calls config.status. |
| 17626 | # config.status does its own redirection, appending to config.log. |
| 17627 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17628 | # by configure, so config.status won't be able to write to it; its |
| 17629 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17630 | # effectively closing config.log, so it can be properly (re)opened and |
| 17631 | # appended to by config.status. When coming back to configure, we |
| 17632 | # need to make the FD available again. |
| 17633 | if test "$no_create" != yes; then |
| 17634 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17635 | ac_config_status_args= |
| 17636 | test "$silent" = yes && |
| 17637 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17638 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17639 | $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] | 17640 | exec 5>>config.log |
| 17641 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17642 | # would make configure fail if this is the last instruction. |
Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17643 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17644 | fi |
| 17645 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 17646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 17647 | $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] | 17648 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17649 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17650 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17651 | echo "creating Modules/Setup" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17652 | if test ! -f Modules/Setup |
| 17653 | then |
| 17654 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 17655 | fi |
| 17656 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17657 | echo "creating Modules/Setup.local" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17658 | if test ! -f Modules/Setup.local |
| 17659 | then |
| 17660 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 17661 | fi |
| 17662 | |
Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 17663 | echo "creating Makefile" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17664 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 17665 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17666 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17667 | mv config.c Modules |